@longvansoftware/service-js-client 1.16.5 → 1.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/graphql/cloud/mutations.d.ts +16 -23
- package/dist/src/graphql/cloud/mutations.js +1 -101
- package/dist/src/graphql/cloud/queries.d.ts +0 -1
- package/dist/src/graphql/cloud/queries.js +1 -26
- package/dist/src/graphql/computing/mutations.d.ts +0 -1
- package/dist/src/graphql/computing/mutations.js +1 -15
- package/dist/src/graphql/crm/mutations.d.ts +0 -3
- package/dist/src/graphql/crm/mutations.js +1 -54
- package/dist/src/graphql/crm/queries.d.ts +11 -17
- package/dist/src/graphql/crm/queries.js +1 -107
- package/dist/src/graphql/crm_camping/queries.js +19 -49
- package/dist/src/graphql/orderGraphQL/queries.d.ts +5 -7
- package/dist/src/graphql/orderGraphQL/queries.js +1 -11
- package/dist/src/graphql/product/queries.d.ts +0 -2
- package/dist/src/graphql/product/queries.js +1 -32
- package/dist/src/lib/auth/index.d.ts +1 -1
- package/dist/src/lib/auth/index.js +4 -3
- package/dist/src/lib/cloud/index.d.ts +0 -7
- package/dist/src/lib/cloud/index.js +0 -123
- package/dist/src/lib/computing/index.d.ts +0 -1
- package/dist/src/lib/computing/index.js +0 -17
- package/dist/src/lib/crm/index.d.ts +0 -8
- package/dist/src/lib/crm/index.js +0 -141
- package/dist/src/lib/crm_camping/index.d.ts +2 -2
- package/dist/src/lib/crm_camping/index.js +8 -13
- package/dist/src/lib/orderGraphQL/index.d.ts +0 -1
- package/dist/src/lib/orderGraphQL/index.js +0 -16
- package/dist/src/lib/product/index.d.ts +0 -2
- package/dist/src/lib/product/index.js +0 -34
- package/dist/src/lib/resource_permission/index.d.ts +2 -2
- package/dist/src/lib/resource_permission/index.js +4 -4
- package/dist/src/lib/service.d.ts +14 -0
- package/dist/src/lib/service.js +101 -0
- package/dist/src/utils/build-field-string.d.ts +1 -0
- package/dist/src/utils/build-field-string.js +16 -0
- package/package.json +1 -1
@@ -1,23 +1,16 @@
|
|
1
|
-
|
2
|
-
export declare const
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const
|
6
|
-
export declare const
|
7
|
-
export declare const
|
8
|
-
export declare const
|
9
|
-
export declare const
|
10
|
-
export declare const
|
11
|
-
export declare const
|
12
|
-
export declare const
|
13
|
-
export declare const
|
14
|
-
export declare const
|
15
|
-
export declare const
|
16
|
-
export declare const
|
17
|
-
export declare const UPDATE_ACTION_CUSTOM_ATTRIBUTE: DocumentNode;
|
18
|
-
export declare const UPDATE_SERVICE_COMPLETED: DocumentNode;
|
19
|
-
export declare const UPDATE_SERVICE_NEW: DocumentNode;
|
20
|
-
export declare const UPDATE_SERVICE_READY_DEPLOY: DocumentNode;
|
21
|
-
export declare const UPDATE_URL_PUBLIC: DocumentNode;
|
22
|
-
export declare const CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC: (fields?: string[]) => DocumentNode;
|
23
|
-
export declare const CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC: (fields?: string[]) => DocumentNode;
|
1
|
+
export declare const GET_DOMAIN_INFO: import("graphql").DocumentNode;
|
2
|
+
export declare const CHECK_LIST_DOMAIN_NAME: import("graphql").DocumentNode;
|
3
|
+
export declare const CHECK_DOMAIN_NAME: import("graphql").DocumentNode;
|
4
|
+
export declare const CHANGE_SERVICE_NAME: import("graphql").DocumentNode;
|
5
|
+
export declare const CREATE_USER_MAIL_HOSTING: import("graphql").DocumentNode;
|
6
|
+
export declare const DELETE_USER_MAIL_HOSTING: import("graphql").DocumentNode;
|
7
|
+
export declare const UPDATE_DOMAIN_NAME: import("graphql").DocumentNode;
|
8
|
+
export declare const UPDATE_USER_NAME: import("graphql").DocumentNode;
|
9
|
+
export declare const UPDATE_PASSWORD: import("graphql").DocumentNode;
|
10
|
+
export declare const UPDATE_USER_PASSWORD: import("graphql").DocumentNode;
|
11
|
+
export declare const UPDATE_DNS: import("graphql").DocumentNode;
|
12
|
+
export declare const CREATE_DOMAIN_CONTACT: import("graphql").DocumentNode;
|
13
|
+
export declare const GET_ORDER_CHANGE_RESOURCE_TERM: import("graphql").DocumentNode;
|
14
|
+
export declare const CREATE_ACTION_CHANGE_IP_OF_SERVICE: import("graphql").DocumentNode;
|
15
|
+
export declare const UPDATE_ACTION_STATUS: import("graphql").DocumentNode;
|
16
|
+
export declare const UPDATE_ACTION_CUSTOM_ATTRIBUTE: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = exports.UPDATE_ACTION_STATUS = exports.CREATE_ACTION_CHANGE_IP_OF_SERVICE = exports.GET_ORDER_CHANGE_RESOURCE_TERM = exports.CREATE_DOMAIN_CONTACT = exports.UPDATE_DNS = exports.UPDATE_USER_PASSWORD = exports.UPDATE_PASSWORD = exports.UPDATE_USER_NAME = exports.UPDATE_DOMAIN_NAME = exports.DELETE_USER_MAIL_HOSTING = exports.CREATE_USER_MAIL_HOSTING = exports.CHANGE_SERVICE_NAME = exports.CHECK_DOMAIN_NAME = exports.CHECK_LIST_DOMAIN_NAME = exports.GET_DOMAIN_INFO = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_DOMAIN_INFO = (0, graphql_tag_1.gql) `
|
6
6
|
mutation GetDomainInfo($domainName: String!) {
|
@@ -258,103 +258,3 @@ exports.UPDATE_ACTION_CUSTOM_ATTRIBUTE = (0, graphql_tag_1.gql) `
|
|
258
258
|
)
|
259
259
|
}
|
260
260
|
`;
|
261
|
-
exports.UPDATE_SERVICE_COMPLETED = (0, graphql_tag_1.gql) `
|
262
|
-
mutation UpdateServiceCompleted(
|
263
|
-
$serviceId: String!
|
264
|
-
$handleBy: String!
|
265
|
-
) {
|
266
|
-
updateServiceCompleted(
|
267
|
-
serviceId: $serviceId
|
268
|
-
handleBy: $handleBy
|
269
|
-
)
|
270
|
-
}
|
271
|
-
`;
|
272
|
-
exports.UPDATE_SERVICE_NEW = (0, graphql_tag_1.gql) `
|
273
|
-
mutation UpdateServiceNew(
|
274
|
-
$serviceId: String!
|
275
|
-
$handleBy: String!
|
276
|
-
) {
|
277
|
-
updateServiceNew(
|
278
|
-
serviceId: $serviceId
|
279
|
-
handleBy: $handleBy
|
280
|
-
)
|
281
|
-
}
|
282
|
-
`;
|
283
|
-
exports.UPDATE_SERVICE_READY_DEPLOY = (0, graphql_tag_1.gql) `
|
284
|
-
mutation UpdateServiceReadyDeploy(
|
285
|
-
$serviceId: String!
|
286
|
-
$handleBy: String!
|
287
|
-
) {
|
288
|
-
updateServiceReadyDeploy(
|
289
|
-
serviceId: $serviceId
|
290
|
-
handleBy: $handleBy
|
291
|
-
)
|
292
|
-
}
|
293
|
-
`;
|
294
|
-
exports.UPDATE_URL_PUBLIC = (0, graphql_tag_1.gql) `
|
295
|
-
mutation UpdateUrlPublic(
|
296
|
-
$serviceId: String!
|
297
|
-
$handleBy: String!
|
298
|
-
$urlPublic: String!
|
299
|
-
) {
|
300
|
-
updateUrlPublic(
|
301
|
-
serviceId: $serviceId
|
302
|
-
handleBy: $handleBy
|
303
|
-
urlPublic: $urlPublic
|
304
|
-
)
|
305
|
-
}
|
306
|
-
`;
|
307
|
-
const CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = (fields = []) => {
|
308
|
-
const fieldStr = fields.join("\n ");
|
309
|
-
const hasFields = fields.length > 0;
|
310
|
-
return (0, graphql_tag_1.gql) `
|
311
|
-
mutation CheckEnterpriseByTaxCode(
|
312
|
-
$domainName: String!
|
313
|
-
$taxCode: String!
|
314
|
-
$checkPromotion: Boolean!
|
315
|
-
$domainResumeId: String
|
316
|
-
) {
|
317
|
-
checkEnterpriseByTaxCode(
|
318
|
-
domainName: $domainName
|
319
|
-
taxCode: $taxCode
|
320
|
-
checkPromotion: $checkPromotion
|
321
|
-
domainResumeId: $domainResumeId
|
322
|
-
) {
|
323
|
-
success
|
324
|
-
message
|
325
|
-
promotionCode
|
326
|
-
data {
|
327
|
-
${hasFields ? `${fieldStr}` : ""}
|
328
|
-
}
|
329
|
-
}
|
330
|
-
}
|
331
|
-
`;
|
332
|
-
};
|
333
|
-
exports.CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC;
|
334
|
-
const CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = (fields = []) => {
|
335
|
-
const fieldStr = fields.join("\n ");
|
336
|
-
const hasFields = fields.length > 0;
|
337
|
-
return (0, graphql_tag_1.gql) `
|
338
|
-
mutation CheckBusinessByTaxCode(
|
339
|
-
$domainName: String!
|
340
|
-
$taxCode: String!
|
341
|
-
$checkPromotion: Boolean!
|
342
|
-
$domainResumeId: String
|
343
|
-
) {
|
344
|
-
checkBusinessByTaxCode(
|
345
|
-
domainName: $domainName
|
346
|
-
taxCode: $taxCode
|
347
|
-
checkPromotion: $checkPromotion
|
348
|
-
domainResumeId: $domainResumeId
|
349
|
-
) {
|
350
|
-
success
|
351
|
-
message
|
352
|
-
promotionCode
|
353
|
-
data {
|
354
|
-
${hasFields ? `${fieldStr}` : ""}
|
355
|
-
}
|
356
|
-
}
|
357
|
-
}
|
358
|
-
`;
|
359
|
-
};
|
360
|
-
exports.CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC;
|
@@ -16,4 +16,3 @@ export declare const GET_CONTACTS_BY_OWNER_ID: import("graphql").DocumentNode;
|
|
16
16
|
export declare const GET_DOMAIN_SUPPLIER: import("graphql").DocumentNode;
|
17
17
|
export declare const CHECK_DOMAIN_EXIST: import("graphql").DocumentNode;
|
18
18
|
export declare const SEARCH_ACTIONS: import("graphql").DocumentNode;
|
19
|
-
export declare const GET_ELASTIC_CLOUD_RESOURCE: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.SEARCH_ACTIONS = exports.CHECK_DOMAIN_EXIST = exports.GET_DOMAIN_SUPPLIER = exports.GET_CONTACTS_BY_OWNER_ID = exports.GET_OWNERS_BY_CUSTOMER_ID = exports.GET_DOMAIN_CONTACTS = exports.GET_SERVICE_TYPE_LIST = exports.GET_SERVICES_BY_ORDER_ID = exports.GET_IPS_OF_SERVICE = exports.GET_PRODUCTS_OF_SERVICE = exports.SEARCH_SERVICE = exports.SERVICE_TYPE = exports.GET_USER_MAIL_HOSTING = exports.GET_MAIL_RESOURCE = exports.SERVICE_DETAIL = exports.GET_WHOIS_DOMAIN_INFO = exports.CHECK_DOMAIN_NAME_AVAILAVLE_VNNIC = exports.CHECK_DOMAIN_NAME_AVAILABLE = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.CHECK_DOMAIN_NAME_AVAILABLE = (0, graphql_tag_1.gql) `
|
6
6
|
query CheckDomainNameAvailable($domainName: String!) {
|
@@ -337,28 +337,3 @@ exports.SEARCH_ACTIONS = (0, graphql_tag_1.gql) `
|
|
337
337
|
}
|
338
338
|
}
|
339
339
|
`;
|
340
|
-
exports.GET_ELASTIC_CLOUD_RESOURCE = (0, graphql_tag_1.gql) `
|
341
|
-
query GetElasticCloudResource($serviceId: String!) {
|
342
|
-
getElasticCloudResource(serviceId: $serviceId) {
|
343
|
-
ram {
|
344
|
-
size
|
345
|
-
used
|
346
|
-
unit
|
347
|
-
}
|
348
|
-
cpu {
|
349
|
-
size
|
350
|
-
used
|
351
|
-
unit
|
352
|
-
}
|
353
|
-
disk {
|
354
|
-
size
|
355
|
-
used
|
356
|
-
unit
|
357
|
-
}
|
358
|
-
ip {
|
359
|
-
size
|
360
|
-
used
|
361
|
-
}
|
362
|
-
}
|
363
|
-
}
|
364
|
-
`;
|
@@ -22,4 +22,3 @@ export declare const RESTORE_COMPUTING_WAITING_REVOKE: (fields?: string[]) => Do
|
|
22
22
|
export declare const DELETE_COMPUTING: (fields?: string[]) => DocumentNode;
|
23
23
|
export declare const UPDATE_CPU: DocumentNode;
|
24
24
|
export declare const UPDATE_RAM: DocumentNode;
|
25
|
-
export declare const CREATE_COMPUTING_FOR_EC: DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.UPDATE_RAM = exports.UPDATE_CPU = exports.DELETE_COMPUTING = exports.RESTORE_COMPUTING_WAITING_REVOKE = exports.COMPUTING_WAITING_REVOKE = exports.UPDATE_NAME_COMPUTING = exports.CREATE_COMPUTING_FOR_DC = exports.UPDATE_DESCRIPTION_COMPUTING = exports.ADD_PORT_NAT = exports.STOP_USE_COMPUTING = exports.REMOVE_COMPUTING_IN_CLUSTER = exports.ADD_COMPUTING_IN_CLUSTER = exports.CREATE_CLUSTER = exports.DELETE_SNAPSHOT = exports.ROLLBACK_SNAPSHOT = exports.CREATE_SNAP_SHOT = exports.POWER_OFF = exports.POWER_ON = exports.REMOVE_PORT_NAT = exports.UPDATE_PORT_NAT = exports.CREATE_PORT_NAT = exports.UPDATE_DESCRIPTION_PORTNAT = exports.RESTARTVM = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.RESTARTVM = (0, graphql_tag_1.gql) `
|
6
6
|
mutation Restart($computingId: String!, $actor: String!) {
|
@@ -330,17 +330,3 @@ exports.UPDATE_RAM = (0, graphql_tag_1.gql) `
|
|
330
330
|
)
|
331
331
|
}
|
332
332
|
`;
|
333
|
-
exports.CREATE_COMPUTING_FOR_EC = (0, graphql_tag_1.gql) `
|
334
|
-
mutation CreateComputingForEC(
|
335
|
-
$createComputingInputForEC: CreateComputingInputForEC!
|
336
|
-
$createBy: String!
|
337
|
-
) {
|
338
|
-
createComputingForEC(
|
339
|
-
createComputingInputForEC: $createComputingInputForEC
|
340
|
-
createBy: $createBy
|
341
|
-
) {
|
342
|
-
computingId
|
343
|
-
message
|
344
|
-
}
|
345
|
-
}
|
346
|
-
`;
|
@@ -11,6 +11,3 @@ export declare const UPDATE_RESUME_CONTACT: import("graphql").DocumentNode;
|
|
11
11
|
export declare const LINKING_RESUME_SERVICE: import("graphql").DocumentNode;
|
12
12
|
export declare const CLONE_RESUME: import("graphql").DocumentNode;
|
13
13
|
export declare const LINKING_RESUME_DOMAIN_AND_CONTACT: import("graphql").DocumentNode;
|
14
|
-
export declare const ADD_RESOURCE_RELATED: import("graphql").DocumentNode;
|
15
|
-
export declare const CREATE_RUSUME_INFO: import("graphql").DocumentNode;
|
16
|
-
export declare const UPDATE_FIELD_RESUME: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.LINKING_RESUME_DOMAIN_AND_CONTACT = exports.CLONE_RESUME = exports.LINKING_RESUME_SERVICE = exports.UPDATE_RESUME_CONTACT = exports.CREATE_RESUME = exports.ADD_COMMENT = exports.ADD_TICKED = exports.ADD_ATTACHMENT_FOR_WORK_EFFORT = exports.UPDATE_WORK_EFFORT_STATUS = exports.UPDATE_WORK_EFFORT_NAME = exports.UPDATE_WORK_EFFORT_DESCRIPTION = exports.UPDATE_STATUS_ATTACHMENT_BY_ID = exports.ADD_OPPORTUNITY_MUTATION = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.ADD_OPPORTUNITY_MUTATION = (0, graphql_tag_1.gql) `
|
6
6
|
mutation AddOpportunity(
|
@@ -389,56 +389,3 @@ exports.LINKING_RESUME_DOMAIN_AND_CONTACT = (0, graphql_tag_1.gql) `
|
|
389
389
|
)
|
390
390
|
}
|
391
391
|
`;
|
392
|
-
exports.ADD_RESOURCE_RELATED = (0, graphql_tag_1.gql) `
|
393
|
-
mutation AddResourceRelated(
|
394
|
-
$fromId: String!
|
395
|
-
$fromResourceType: String!
|
396
|
-
$toIds: [String]!
|
397
|
-
$toResourceType: String!
|
398
|
-
$createdBy: String!
|
399
|
-
) {
|
400
|
-
addResourceRelated(
|
401
|
-
fromId: $fromId
|
402
|
-
fromResourceType: $fromResourceType
|
403
|
-
toIds: $toIds
|
404
|
-
toResourceType: $toResourceType
|
405
|
-
createdBy: $createdBy
|
406
|
-
)
|
407
|
-
}
|
408
|
-
`;
|
409
|
-
exports.CREATE_RUSUME_INFO = (0, graphql_tag_1.gql) `
|
410
|
-
mutation CreateResumeInfo(
|
411
|
-
$customerId: String
|
412
|
-
$name: String
|
413
|
-
$phone: String
|
414
|
-
$email: String
|
415
|
-
$orgId: String!
|
416
|
-
$createdBy: String!
|
417
|
-
) {
|
418
|
-
createResumeInfo(
|
419
|
-
customerId: $customerId
|
420
|
-
name: $name
|
421
|
-
phone: $phone
|
422
|
-
email: $email
|
423
|
-
orgId: $orgId
|
424
|
-
createdBy: $createdBy
|
425
|
-
)
|
426
|
-
}
|
427
|
-
`;
|
428
|
-
exports.UPDATE_FIELD_RESUME = (0, graphql_tag_1.gql) `
|
429
|
-
mutation UpdateFieldResume(
|
430
|
-
$resumeId: String!
|
431
|
-
$fieldName: String!
|
432
|
-
$value: String!
|
433
|
-
$resourceType: String
|
434
|
-
$updatedBy: String!
|
435
|
-
) {
|
436
|
-
updateFieldResume(
|
437
|
-
resumeId: $resumeId
|
438
|
-
fieldName: $fieldName
|
439
|
-
value: $value
|
440
|
-
resourceType: $resourceType
|
441
|
-
updatedBy: $updatedBy
|
442
|
-
)
|
443
|
-
}
|
444
|
-
`;
|
@@ -1,17 +1,11 @@
|
|
1
|
-
|
2
|
-
export declare const
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const
|
6
|
-
export declare const
|
7
|
-
export declare const
|
8
|
-
export declare const
|
9
|
-
export declare const
|
10
|
-
export declare const
|
11
|
-
export declare const
|
12
|
-
export declare const GET_RESUME_CONTACT: DocumentNode;
|
13
|
-
export declare const GET_REUSME_BY_CUSTOMER_ID: DocumentNode;
|
14
|
-
export declare const GET_RESUME_DOMAIN_BY_SERVICE_ID: DocumentNode;
|
15
|
-
export declare const GET_COLLEGES_BY_PROVINCE_ID: DocumentNode;
|
16
|
-
export declare const GET_RELATED_RESOURCE_BY_RESOURCE_TYPE: DocumentNode;
|
17
|
-
export declare const GET_RESUME_INFO_BY_CUSTOMER_ID: DocumentNode;
|
1
|
+
export declare const GET_LIST_OPPORTUNITY_QUERY: import("graphql").DocumentNode;
|
2
|
+
export declare const GET_LIST_TODO: import("graphql").DocumentNode;
|
3
|
+
export declare const GET_LIST_WORK_EFFORT_TYPE: import("graphql").DocumentNode;
|
4
|
+
export declare const GET_LIST_TICKET: import("graphql").DocumentNode;
|
5
|
+
export declare const GET_TICKET_BY_ID: import("graphql").DocumentNode;
|
6
|
+
export declare const GET_ATTACHMENT_BY_WORK_EFFORT_ID: import("graphql").DocumentNode;
|
7
|
+
export declare const GET_LIST_COMMENT: import("graphql").DocumentNode;
|
8
|
+
export declare const GET_RESUME_ID_BY_RESOURCE: import("graphql").DocumentNode;
|
9
|
+
export declare const GET_RESUME_CONTACT: import("graphql").DocumentNode;
|
10
|
+
export declare const GET_REUSME_BY_CUSTOMER_ID: import("graphql").DocumentNode;
|
11
|
+
export declare const GET_RESUME_DOMAIN_BY_SERVICE_ID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = exports.GET_REUSME_BY_CUSTOMER_ID = exports.GET_RESUME_CONTACT = exports.GET_RESUME_ID_BY_RESOURCE = exports.GET_LIST_COMMENT = exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET = exports.GET_LIST_WORK_EFFORT_TYPE = exports.GET_LIST_TODO = exports.GET_LIST_OPPORTUNITY_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_LIST_OPPORTUNITY_QUERY = (0, graphql_tag_1.gql) `
|
6
6
|
query GetListOpportunity(
|
@@ -198,30 +198,6 @@ exports.GET_LIST_TICKET = (0, graphql_tag_1.gql) `
|
|
198
198
|
}
|
199
199
|
}
|
200
200
|
`;
|
201
|
-
const GET_LIST_TICKET_DYNAMIC = (fields = []) => {
|
202
|
-
const fieldStr = fields.join("\n ");
|
203
|
-
const hasFields = fields.length > 0;
|
204
|
-
return (0, graphql_tag_1.gql) `
|
205
|
-
query GetListTicket(
|
206
|
-
$partyId: String!
|
207
|
-
$performerId: String!
|
208
|
-
$getTicketRequest: GetTicketRequest!
|
209
|
-
) {
|
210
|
-
getListTicket(
|
211
|
-
partyId: $partyId
|
212
|
-
performerId: $performerId
|
213
|
-
getTicketRequest: $getTicketRequest
|
214
|
-
)
|
215
|
-
{
|
216
|
-
total
|
217
|
-
data {
|
218
|
-
${hasFields ? `${fieldStr}` : ""}
|
219
|
-
}
|
220
|
-
}
|
221
|
-
}
|
222
|
-
`;
|
223
|
-
};
|
224
|
-
exports.GET_LIST_TICKET_DYNAMIC = GET_LIST_TICKET_DYNAMIC;
|
225
201
|
exports.GET_TICKET_BY_ID = (0, graphql_tag_1.gql) `
|
226
202
|
query GetTicketById($ticketId: String!) {
|
227
203
|
getTicketById(ticketId: $ticketId) {
|
@@ -250,18 +226,6 @@ exports.GET_TICKET_BY_ID = (0, graphql_tag_1.gql) `
|
|
250
226
|
}
|
251
227
|
}
|
252
228
|
`;
|
253
|
-
const GET_LIST_TICKET_BY_ID_DYNAMIC = (fields = []) => {
|
254
|
-
const fieldStr = fields.join("\n ");
|
255
|
-
const hasFields = fields.length > 0;
|
256
|
-
return (0, graphql_tag_1.gql) `
|
257
|
-
query GetTicketById($ticketId: String!) {
|
258
|
-
getTicketById(ticketId: $ticketId) {
|
259
|
-
${hasFields ? `${fieldStr}` : ""}
|
260
|
-
}
|
261
|
-
}
|
262
|
-
`;
|
263
|
-
};
|
264
|
-
exports.GET_LIST_TICKET_BY_ID_DYNAMIC = GET_LIST_TICKET_BY_ID_DYNAMIC;
|
265
229
|
exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = (0, graphql_tag_1.gql) `
|
266
230
|
query GetAttachmentByWorkEffortId(
|
267
231
|
$partyId: String!
|
@@ -372,73 +336,3 @@ exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
372
336
|
}
|
373
337
|
}
|
374
338
|
`;
|
375
|
-
exports.GET_COLLEGES_BY_PROVINCE_ID = (0, graphql_tag_1.gql) `
|
376
|
-
query GetCollegesByProvinceId($provinceId: String) {
|
377
|
-
getCollegesByProvinceId(provinceId: $provinceId) {
|
378
|
-
id
|
379
|
-
name
|
380
|
-
provinceId
|
381
|
-
}
|
382
|
-
}
|
383
|
-
`;
|
384
|
-
exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = (0, graphql_tag_1.gql) `
|
385
|
-
query GetRelatedResourceByResourceType(
|
386
|
-
$fromId: String!
|
387
|
-
$fromResourceType: String!
|
388
|
-
$toResourceType: String!
|
389
|
-
$partnerId: String!
|
390
|
-
$accessToken: String!
|
391
|
-
) {
|
392
|
-
getRelatedResourceByResourceType(
|
393
|
-
fromId: $fromId
|
394
|
-
fromResourceType: $fromResourceType
|
395
|
-
toResourceType: $toResourceType
|
396
|
-
partnerId: $partnerId
|
397
|
-
accessToken: $accessToken
|
398
|
-
) {
|
399
|
-
id
|
400
|
-
name
|
401
|
-
description
|
402
|
-
type
|
403
|
-
status
|
404
|
-
createdBy
|
405
|
-
createdStamp
|
406
|
-
updatedStamp
|
407
|
-
accountableId
|
408
|
-
}
|
409
|
-
}
|
410
|
-
`;
|
411
|
-
exports.GET_RESUME_INFO_BY_CUSTOMER_ID = (0, graphql_tag_1.gql) `
|
412
|
-
query GetResumeInfoByCustomerId($customerId: String!, $orgId: String!) {
|
413
|
-
getResumeInfoByCustomerId(customerId: $customerId, orgId: $orgId) {
|
414
|
-
resumeId
|
415
|
-
partyId
|
416
|
-
name
|
417
|
-
otherName
|
418
|
-
customerType
|
419
|
-
email
|
420
|
-
country
|
421
|
-
province
|
422
|
-
district
|
423
|
-
ward
|
424
|
-
countryId
|
425
|
-
provinceId
|
426
|
-
districtId
|
427
|
-
wardId
|
428
|
-
address
|
429
|
-
phone
|
430
|
-
contactType
|
431
|
-
taxCode
|
432
|
-
businessCode
|
433
|
-
identityNumber
|
434
|
-
gender
|
435
|
-
birthday
|
436
|
-
cpFrom
|
437
|
-
level
|
438
|
-
ID_BACK
|
439
|
-
ID_FRONT
|
440
|
-
BUSINESS_LICENSE
|
441
|
-
statusCode
|
442
|
-
}
|
443
|
-
}
|
444
|
-
`;
|
@@ -78,18 +78,11 @@ exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
|
|
78
78
|
// customerId
|
79
79
|
// scope
|
80
80
|
// }
|
81
|
-
// }
|
81
|
+
// }
|
82
82
|
// }
|
83
83
|
// `;
|
84
84
|
exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
|
85
|
-
query SuggestVoucher(
|
86
|
-
$partyId: String
|
87
|
-
$excludeExpired: Boolean
|
88
|
-
$customerId: String
|
89
|
-
$scope: String
|
90
|
-
$isNewCustomer: Boolean
|
91
|
-
$scopeIgnore: String
|
92
|
-
) {
|
85
|
+
query SuggestVoucher($partyId: String, $excludeExpired: Boolean, $customerId: String, $scope: String, $isNewCustomer: Boolean) {
|
93
86
|
suggestVoucher(
|
94
87
|
searchVoucherRequest: {
|
95
88
|
partyId: $partyId
|
@@ -97,7 +90,6 @@ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
|
|
97
90
|
customerId: $customerId
|
98
91
|
scope: $scope
|
99
92
|
isNewCustomer: $isNewCustomer
|
100
|
-
scopeIgnore: $scopeIgnore
|
101
93
|
}
|
102
94
|
) {
|
103
95
|
total
|
@@ -193,18 +185,8 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
193
185
|
}
|
194
186
|
`;
|
195
187
|
exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
|
196
|
-
query GetAverageRating(
|
197
|
-
$targetIds:
|
198
|
-
$customerId: String!
|
199
|
-
$evaluationType: String!
|
200
|
-
$orgId: String!
|
201
|
-
) {
|
202
|
-
getAverageRating(
|
203
|
-
targetIds: $targetIds
|
204
|
-
customerId: $customerId
|
205
|
-
evaluationType: $evaluationType
|
206
|
-
orgId: $orgId
|
207
|
-
) {
|
188
|
+
query GetAverageRating($targetIds: [String]!, $customerId: String!, $evaluationType: String!, $orgId: String!) {
|
189
|
+
getAverageRating(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId) {
|
208
190
|
url
|
209
191
|
targetId
|
210
192
|
evaluationType
|
@@ -214,18 +196,8 @@ exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
|
|
214
196
|
}
|
215
197
|
`;
|
216
198
|
exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
|
217
|
-
query GetUrlEvaluation(
|
218
|
-
$targetIds:
|
219
|
-
$customerId: String!
|
220
|
-
$evaluationType: String!
|
221
|
-
$orgId: String!
|
222
|
-
) {
|
223
|
-
getUrlEvaluation(
|
224
|
-
targetIds: $targetIds
|
225
|
-
customerId: $customerId
|
226
|
-
evaluationType: $evaluationType
|
227
|
-
orgId: $orgId
|
228
|
-
) {
|
199
|
+
query GetUrlEvaluation($targetIds: [String]!, $customerId: String!, $evaluationType: String!, $orgId: String!) {
|
200
|
+
getUrlEvaluation(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId,) {
|
229
201
|
url
|
230
202
|
targetId
|
231
203
|
evaluationType
|
@@ -236,43 +208,41 @@ exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
|
|
236
208
|
`;
|
237
209
|
exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
|
238
210
|
query GetNumberOfTicketEvaluation($customerId: String!, $orgId: String!) {
|
239
|
-
getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId)
|
211
|
+
getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId,)
|
240
212
|
}
|
241
213
|
`;
|
242
214
|
exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
243
|
-
query SearchProductGiftPromotionResponse(
|
244
|
-
$parameterSearchProductGift: ParameterSearchProductGift
|
245
|
-
) {
|
215
|
+
query SearchProductGiftPromotionResponse($partyId: String!, $productId: String!) {
|
246
216
|
searchProductGiftPromotionResponse(
|
247
|
-
parameterSearchProductGift:
|
217
|
+
parameterSearchProductGift: {
|
218
|
+
partyId: $partyId
|
219
|
+
productId: $productId
|
220
|
+
}
|
248
221
|
) {
|
249
222
|
total
|
250
223
|
totalPages
|
251
224
|
totalElements
|
252
225
|
content {
|
253
|
-
id
|
254
226
|
partyId
|
255
227
|
campaignId
|
256
228
|
campaignActionId
|
229
|
+
campaignActionName
|
230
|
+
startDate
|
231
|
+
endDate
|
257
232
|
productId
|
233
|
+
|
258
234
|
productParentId
|
235
|
+
|
259
236
|
quantityLimit
|
237
|
+
newCustomer
|
260
238
|
giftPromotions {
|
261
239
|
fromQuantity
|
262
|
-
toProductId
|
263
240
|
toQuantity
|
241
|
+
toProductId
|
264
242
|
productName
|
265
243
|
sku
|
266
244
|
featureImage
|
267
245
|
}
|
268
|
-
campaignActionName
|
269
|
-
startDate
|
270
|
-
endDate
|
271
|
-
newCustomer
|
272
|
-
createdStamp
|
273
|
-
updatedStamp
|
274
|
-
updatedBy
|
275
|
-
createdBy
|
276
246
|
}
|
277
247
|
}
|
278
248
|
}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
export declare const
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const
|
6
|
-
export declare const GET_ORDER_BY_SERVICE_ID: DocumentNode;
|
7
|
-
export declare const FIND_ORDER_BY_OWNER_PARTYID: DocumentNode;
|
1
|
+
export declare const GET_ORDER_DETAIL: import("graphql").DocumentNode;
|
2
|
+
export declare const GET_QUANTITY_ORDER_LINEITEMS: import("graphql").DocumentNode;
|
3
|
+
export declare const GET_ORDER_LINE_ITEM_BY_SERVICE_ID: import("graphql").DocumentNode;
|
4
|
+
export declare const GET_ORDER_BY_SERVICE_ID: import("graphql").DocumentNode;
|
5
|
+
export declare const FIND_ORDER_BY_OWNER_PARTYID: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.FIND_ORDER_BY_OWNER_PARTYID = exports.GET_ORDER_BY_SERVICE_ID = exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = exports.GET_QUANTITY_ORDER_LINEITEMS = exports.
|
3
|
+
exports.FIND_ORDER_BY_OWNER_PARTYID = exports.GET_ORDER_BY_SERVICE_ID = exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = exports.GET_QUANTITY_ORDER_LINEITEMS = exports.GET_ORDER_DETAIL = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query getOrderDetail($orderId: String!) {
|
@@ -154,16 +154,6 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
|
154
154
|
}
|
155
155
|
}
|
156
156
|
`;
|
157
|
-
const GET_ORDER_DETAIL_DYNAMIC = (fields = []) => {
|
158
|
-
const fieldStr = fields.join("\n ");
|
159
|
-
const hasFields = fields.length > 0;
|
160
|
-
return (0, graphql_tag_1.gql) `
|
161
|
-
query getOrderDetail($orderId: String!) {
|
162
|
-
orderDetail(orderId: $orderId) ${hasFields ? `{ ${fieldStr} }` : ""}
|
163
|
-
}
|
164
|
-
`;
|
165
|
-
};
|
166
|
-
exports.GET_ORDER_DETAIL_DYNAMIC = GET_ORDER_DETAIL_DYNAMIC;
|
167
157
|
exports.GET_QUANTITY_ORDER_LINEITEMS = (0, graphql_tag_1.gql) `
|
168
158
|
query getOrderDetail($orderId: String!) {
|
169
159
|
orderDetail(orderId: $orderId) {
|
@@ -16,11 +16,9 @@ export declare const GET_PRODUCTS_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
16
16
|
export declare const GET_HANDLE_BY_SERVICETYPE: DocumentNode;
|
17
17
|
export declare const GET_RESOURCE_BY_PRODUCT: DocumentNode;
|
18
18
|
export declare const GET_PRODUCT_VARIANT_BY_ID: DocumentNode;
|
19
|
-
export declare const GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC: (fields?: string[]) => DocumentNode;
|
20
19
|
export declare const GET_RELATED_INFOR: DocumentNode;
|
21
20
|
export declare const GET_DETAIL_STORES: DocumentNode;
|
22
21
|
export declare const GET_LIST_PRICE: DocumentNode;
|
23
22
|
export declare const GET_TAGS: DocumentNode;
|
24
23
|
export declare const GET_TAGS_BY_CATEGORY: DocumentNode;
|
25
24
|
export declare const GET_LIST_PRODUCTS_CONFIG_DYNAMIC: (fields?: string[]) => DocumentNode;
|
26
|
-
export declare const GET_CATEGORIES: DocumentNode;
|