Skip to content

Commit b54c610

Browse files
committed
removing debug logs
1 parent 6b247e1 commit b54c610

File tree

9 files changed

+9
-40
lines changed

9 files changed

+9
-40
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules/
2+
demo/node_modules/
23
.idea/
34
dist/
45
.vscode

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "helyosjs-sdk",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Comunication with helyos postgress database using graphql interface",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/cruds/assignments.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ import { H_Assignment } from '../helyos.models';
111111

112112

113113
get(assignmentId: string ): Promise<H_Assignment> {
114-
console.log("id", assignmentId)
115-
116114
const QUERY_FUNTCION = 'assignmentById';
117115
const QUERY_STR = gql`
118116
query ${QUERY_FUNTCION}($assignmentId: BigInt! ){
@@ -183,7 +181,6 @@ import { H_Assignment } from '../helyos.models';
183181

184182
return this._client.mutate({ mutation: SHAPE_UPDATE, variables: { postMessage, assignment: patch } })
185183
.then(response => {
186-
console.log('create request', response);
187184
return response;
188185
})
189186
.catch(e => {

src/cruds/mission_queue.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ import { H_MissionQueue } from '../helyos.models';
8686

8787

8888
const postMessage = { clientMutationId: "not_used", missionQueue: missionQueue };
89-
console.log("postMessage",postMessage)
9089
return this._client.mutate({ mutation: CREATE, variables: { postMessage, missionQueue: missionQueue } })
9190
.then(response => {
9291
return response.data.createMissionQueue.missionQueue;

src/cruds/userAccounts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import { H_UserAccount } from '../helyos.models';
8080

8181
stringifyJsonFields(userAccount, ['metadata']);
8282
const postMessage = { clientMutationId: "not_used", userAccount: userAccount };
83-
console.log("postMessage",postMessage)
8483
return this._client.mutate({ mutation: CREATE, variables: { postMessage, userAccount: userAccount } })
8584
.then(response => {
8685
return response.data.createUserAccount.userAccount;

src/cruds/wprocess.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import { H_WorkProcess } from '../helyos.models';
6262

6363
})
6464
.catch(e => {
65-
console.log(e);
65+
console.error(e);
6666
return e;
6767
});
6868

@@ -100,7 +100,6 @@ import { H_WorkProcess } from '../helyos.models';
100100

101101
stringifyJsonFields(workProcess, ['data']);
102102
const postMessage = { clientMutationId: "not_used", workProcess: workProcess };
103-
console.log("postMessage",postMessage)
104103
return this._client.mutate({ mutation: CREATE, variables: { postMessage, workProcess: workProcess } })
105104
.then(response => {
106105
return response.data.createWorkProcess.workProcess;
@@ -144,19 +143,16 @@ import { H_WorkProcess } from '../helyos.models';
144143
const postMessage = { id: wprocess.id, workProcessPatch: patch };
145144
return this._client.mutate({ mutation: UPDATE, variables: { postMessage } })
146145
.then(response => {
147-
console.log('create request', response);
148146
return response;
149147
})
150148
.catch(e => {
151-
console.log(e);
149+
console.error(e);
152150
return e;
153151
});
154152
}
155153

156154

157155
get(workProcessId: string ): Promise<any> {
158-
console.log("id", workProcessId)
159-
160156
const QUERY_FUNTCION = 'workProcessById';
161157
const QUERY_STR = gql`
162158
query ${QUERY_FUNTCION}($workProcessId: BigInt! ){
@@ -189,7 +185,7 @@ import { H_WorkProcess } from '../helyos.models';
189185
return data;
190186
})
191187
.catch(e => {
192-
console.log(e);
188+
console.error(e);
193189
return e;
194190
});
195191

@@ -198,7 +194,6 @@ import { H_WorkProcess } from '../helyos.models';
198194

199195

200196
getActions(workProcessId: string ): Promise<any> {
201-
console.log("workProcessId id", workProcessId)
202197
// use Int! because the postgress function is recognized as Int!.
203198
const QUERY_FUNTCION = 'getworkprocessactiondata';
204199
const QUERY_STR = gql`
@@ -223,7 +218,7 @@ import { H_WorkProcess } from '../helyos.models';
223218
return actions;
224219
})
225220
.catch(e => {
226-
console.log(e);
221+
console.error(e);
227222
return e;
228223
});
229224

src/cruds/yards.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ import { H_Yard } from '../helyos.models';
9494
`;
9595

9696
const postMessage = { clientMutationId: "not_used", yard: yard };
97-
console.log("postMessage",postMessage)
9897
return this._client.mutate({ mutation: CREATE, variables: { postMessage, yard: yard } })
9998
.then(response => {
10099
return response.data.createYard.yard;

src/helyos.models.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class H_WorkProcess {
233233
processType: string;
234234
workProcessTypeName: string;
235235
workProcessTypeId: string;
236-
description: MoveToTargetDescriptor | MoveFreeDescriptor | string;
236+
description: string;
237237
data: any;
238238
waitFreeAgent: boolean;
239239
}
@@ -276,20 +276,6 @@ export class H_WorkProcessServicePlan {
276276

277277
}
278278

279-
export class MoveToTargetDescriptor {
280-
agentId: string | number;
281-
targetId?: string | number;
282-
targetType?: string;
283-
}
284-
285-
export class MoveFreeDescriptor {
286-
agentId: string | number;
287-
x: number;
288-
y: number;
289-
orientation: number;
290-
orientations?: number[];
291-
292-
}
293279

294280
export class H_Target {
295281
id: string | number;

src/index.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class HelyosServices {
6161
workProcessType: WORKPROCESS_TYPE;
6262
extServices: EXTERNALSERVICES;
6363
servciceRequests: SERVICEREQUESTS;
64+
serviceRequests: SERVICEREQUESTS;
6465
toolsInterconnections: AGENTS_INTERCONNECTIONS;
6566
agentsInterconnections: AGENTS_INTERCONNECTIONS;
6667

@@ -120,12 +121,10 @@ export class HelyosServices {
120121
this.extServices = new EXTERNALSERVICES(this._client, this.socket);
121122
this.assignments = new ASSIGNMENT(this._client, this.socket);
122123
this.servciceRequests = new SERVICEREQUESTS(this._client, this.socket);
124+
this.serviceRequests = new SERVICEREQUESTS(this._client, this.socket);
123125
this.toolsInterconnections = new AGENTS_INTERCONNECTIONS(this._client, this.socket);
124126
this.agentsInterconnections = new AGENTS_INTERCONNECTIONS(this._client, this.socket);
125127

126-
127-
} else {
128-
console.log('web socket is not connected; check websocket url and port or try to login (username, password) again.')
129128
}
130129
}
131130

@@ -173,7 +172,6 @@ export class HelyosServices {
173172
`;
174173

175174
const postMessage = { clientMutationId: "not_used", ...{name, username, password, adminPassword} };
176-
console.log("postMessage",postMessage)
177175
return this._client.mutate({ mutation: GQL_REQUEST, variables: { postMessage, ...{name, username, password, adminPassword} } })
178176
.then(response => {
179177
return response.data[QUERY_FUNTCION].user;
@@ -196,7 +194,6 @@ export class HelyosServices {
196194
`;
197195

198196
const postMessage = { clientMutationId: "not_used", ...{username, password} };
199-
console.log("postMessage",postMessage)
200197
return this._client.mutate({ mutation: GQL_REQUEST, variables: { postMessage, ...{username, password} } })
201198
.then(response => {
202199
if (response.data[QUERY_FUNTCION].jwtToken) {
@@ -223,7 +220,6 @@ export class HelyosServices {
223220
}
224221
`;
225222
const postMessage = { clientMutationId: "not_used", ...{username} };
226-
console.log("postMessage",postMessage)
227223
return this._client.mutate({ mutation: GQL_REQUEST, variables: { postMessage, ...{username} } })
228224
.then(response => {
229225
return response.data[QUERY_FUNTCION];
@@ -245,7 +241,6 @@ export class HelyosServices {
245241
`;
246242

247243
const postMessage = { clientMutationId: "not_used", ...{username, currentPassword, newPassword} };
248-
console.log("postMessage",postMessage)
249244
return this._client.mutate({ mutation: GQL_REQUEST, variables: { postMessage, ...{username, currentPassword, newPassword} } })
250245
.then(response => {
251246

@@ -269,7 +264,6 @@ export class HelyosServices {
269264
`;
270265

271266
const postMessage = { clientMutationId: "not_used", ...{username, password} };
272-
console.log("postMessage",postMessage)
273267
return this._client.mutate({ mutation: GQL_REQUEST, variables: { postMessage, ...{username, password} } })
274268
.then(response => {
275269
return response.data[QUERY_FUNTCION];
@@ -295,7 +289,6 @@ export class HelyosServices {
295289
username = this.username;
296290
}
297291
const postMessage = { clientMutationId: "not_used", ...{username} };
298-
console.log("postMessage",postMessage)
299292
return this._client.mutate({ mutation: GQL_REQUEST, variables: { postMessage, ...{username} } })
300293
.then(response => {
301294
if (response.data[QUERY_FUNTCION].jwtToken) {

0 commit comments

Comments
 (0)