@longvansoftware/service-js-client 1.16.6 → 1.16.7
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/campaign/mutations.d.ts +1 -0
- package/dist/src/graphql/campaign/mutations.js +34 -0
- package/dist/src/graphql/campaign/queries.d.ts +9 -0
- package/dist/src/graphql/campaign/queries.js +427 -0
- package/dist/src/graphql/cashbook/queries.d.ts +2 -0
- package/dist/src/graphql/cashbook/queries.js +99 -0
- package/dist/src/graphql/cloud/mutations.d.ts +23 -16
- package/dist/src/graphql/cloud/mutations.js +101 -1
- package/dist/src/graphql/cloud/queries.d.ts +1 -0
- package/dist/src/graphql/cloud/queries.js +26 -1
- package/dist/src/graphql/computing/mutations.d.ts +1 -0
- package/dist/src/graphql/computing/mutations.js +15 -1
- package/dist/src/graphql/crm/mutations.d.ts +3 -0
- package/dist/src/graphql/crm/mutations.js +54 -1
- package/dist/src/graphql/crm/queries.d.ts +17 -11
- package/dist/src/graphql/crm/queries.js +107 -1
- package/dist/src/graphql/crm_camping/queries.js +49 -19
- package/dist/src/graphql/fragments/product.d.ts +38 -0
- package/dist/src/graphql/fragments/product.js +196 -0
- package/dist/src/graphql/orderGraphQL/queries.d.ts +7 -5
- package/dist/src/graphql/orderGraphQL/queries.js +11 -1
- package/dist/src/graphql/paymentV2/mutations.d.ts +5 -0
- package/dist/src/graphql/paymentV2/mutations.js +120 -0
- package/dist/src/graphql/paymentV2/queries.d.ts +9 -0
- package/dist/src/graphql/paymentV2/queries.js +257 -0
- package/dist/src/graphql/product/queries.d.ts +2 -0
- package/dist/src/graphql/product/queries.js +41 -1
- package/dist/src/graphql/store/mutations.d.ts +1 -0
- package/dist/src/graphql/store/mutations.js +29 -0
- package/dist/src/graphql/store/queries.d.ts +1 -0
- package/dist/src/graphql/store/queries.js +29 -0
- package/dist/src/lib/accounting/index.d.ts +5 -0
- package/dist/src/lib/accounting/index.js +32 -0
- package/dist/src/lib/auth/index.d.ts +1 -1
- package/dist/src/lib/auth/index.js +3 -4
- package/dist/src/lib/campaign/index.d.ts +20 -0
- package/dist/src/lib/campaign/index.js +218 -0
- package/dist/src/lib/cashbook/index.d.ts +6 -0
- package/dist/src/lib/cashbook/index.js +56 -0
- package/dist/src/lib/cloud/index.d.ts +7 -0
- package/dist/src/lib/cloud/index.js +123 -0
- package/dist/src/lib/comhub/index.d.ts +6 -0
- package/dist/src/lib/comhub/index.js +50 -0
- package/dist/src/lib/computing/index.d.ts +1 -0
- package/dist/src/lib/computing/index.js +17 -0
- package/dist/src/lib/crm/index.d.ts +8 -0
- package/dist/src/lib/crm/index.js +141 -0
- package/dist/src/lib/crm_camping/index.d.ts +2 -2
- package/dist/src/lib/crm_camping/index.js +13 -8
- package/dist/src/lib/deepLinkVietQr/index.d.ts +7 -0
- package/dist/src/lib/deepLinkVietQr/index.js +58 -0
- package/dist/src/lib/fileService/index.d.ts +34 -0
- package/dist/src/lib/fileService/index.js +80 -0
- package/dist/src/lib/getImage/index.d.ts +4 -0
- package/dist/src/lib/getImage/index.js +10 -0
- package/dist/src/lib/image/index.d.ts +7 -0
- package/dist/src/lib/image/index.js +49 -0
- package/dist/src/lib/omnigateway/index.d.ts +7 -0
- package/dist/src/lib/omnigateway/index.js +58 -0
- package/dist/src/lib/orderGraphQL/index.d.ts +1 -0
- package/dist/src/lib/orderGraphQL/index.js +16 -0
- package/dist/src/lib/paymentV2/index.d.ts +18 -0
- package/dist/src/lib/paymentV2/index.js +245 -0
- package/dist/src/lib/portal/index.d.ts +23 -0
- package/dist/src/lib/portal/index.js +255 -0
- package/dist/src/lib/product/index.d.ts +2 -0
- package/dist/src/lib/product/index.js +34 -0
- 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/shareZalo/index.d.ts +5 -0
- package/dist/src/lib/shareZalo/index.js +32 -0
- package/dist/src/lib/store/index.d.ts +30 -0
- package/dist/src/lib/store/index.js +74 -0
- package/dist/src/lib/token/index.d.ts +5 -0
- package/dist/src/lib/token/index.js +32 -0
- package/dist/src/lib/upload/index.d.ts +5 -0
- package/dist/src/lib/upload/index.js +35 -0
- package/dist/src/lib/warehouseV2/index.d.ts +13 -0
- package/dist/src/lib/warehouseV2/index.js +54 -0
- package/dist/src/lib/zca/index.d.ts +12 -0
- package/dist/src/lib/zca/index.js +41 -0
- package/dist/src/types/campaign.d.ts +14 -0
- package/dist/src/types/campaign.js +2 -0
- package/dist/src/types/common.d.ts +264 -0
- package/dist/src/types/common.js +35 -0
- package/dist/src/types/invoice.d.ts +13 -0
- package/dist/src/types/invoice.js +2 -0
- package/dist/src/types/portal.d.ts +7 -0
- package/dist/src/types/portal.js +2 -0
- package/dist/src/types/store.d.ts +158 -0
- package/dist/src/types/store.js +3 -0
- package/dist/src/utils/errorHandler.d.ts +64 -0
- package/dist/src/utils/errorHandler.js +197 -0
- package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
- package/dist/src/utils/validatePhoneNumber.js +20 -0
- package/package.json +1 -1
- package/dist/src/lib/service.d.ts +0 -14
- package/dist/src/lib/service.js +0 -101
- package/dist/src/utils/build-field-string.d.ts +0 -1
- package/dist/src/utils/build-field-string.js +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.CHECK_BUSINESS_BY_TAX_CODE_DYNAMIC = exports.CHECK_ENTERPRISE_BY_TAX_CODE_DYNAMIC = exports.UPDATE_URL_PUBLIC = exports.UPDATE_SERVICE_READY_DEPLOY = exports.UPDATE_SERVICE_NEW = exports.UPDATE_SERVICE_COMPLETED = 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,3 +258,103 @@ 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,3 +16,4 @@ 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.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;
|
|
3
|
+
exports.GET_ELASTIC_CLOUD_RESOURCE = 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,3 +337,28 @@ 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,3 +22,4 @@ 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.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;
|
|
3
|
+
exports.CREATE_COMPUTING_FOR_EC = 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,3 +330,17 @@ 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,3 +11,6 @@ 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.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;
|
|
3
|
+
exports.UPDATE_FIELD_RESUME = exports.CREATE_RUSUME_INFO = exports.ADD_RESOURCE_RELATED = 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,3 +389,56 @@ 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,11 +1,17 @@
|
|
|
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
|
|
1
|
+
import { DocumentNode } from "graphql";
|
|
2
|
+
export declare const GET_LIST_OPPORTUNITY_QUERY: DocumentNode;
|
|
3
|
+
export declare const GET_LIST_TODO: DocumentNode;
|
|
4
|
+
export declare const GET_LIST_WORK_EFFORT_TYPE: DocumentNode;
|
|
5
|
+
export declare const GET_LIST_TICKET: DocumentNode;
|
|
6
|
+
export declare const GET_LIST_TICKET_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
7
|
+
export declare const GET_TICKET_BY_ID: DocumentNode;
|
|
8
|
+
export declare const GET_LIST_TICKET_BY_ID_DYNAMIC: (fields?: string[]) => DocumentNode;
|
|
9
|
+
export declare const GET_ATTACHMENT_BY_WORK_EFFORT_ID: DocumentNode;
|
|
10
|
+
export declare const GET_LIST_COMMENT: DocumentNode;
|
|
11
|
+
export declare const GET_RESUME_ID_BY_RESOURCE: DocumentNode;
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.GET_RESUME_INFO_BY_CUSTOMER_ID = exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = exports.GET_COLLEGES_BY_PROVINCE_ID = 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_LIST_TICKET_BY_ID_DYNAMIC = exports.GET_TICKET_BY_ID = exports.GET_LIST_TICKET_DYNAMIC = 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,6 +198,30 @@ 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;
|
|
201
225
|
exports.GET_TICKET_BY_ID = (0, graphql_tag_1.gql) `
|
|
202
226
|
query GetTicketById($ticketId: String!) {
|
|
203
227
|
getTicketById(ticketId: $ticketId) {
|
|
@@ -226,6 +250,18 @@ exports.GET_TICKET_BY_ID = (0, graphql_tag_1.gql) `
|
|
|
226
250
|
}
|
|
227
251
|
}
|
|
228
252
|
`;
|
|
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;
|
|
229
265
|
exports.GET_ATTACHMENT_BY_WORK_EFFORT_ID = (0, graphql_tag_1.gql) `
|
|
230
266
|
query GetAttachmentByWorkEffortId(
|
|
231
267
|
$partyId: String!
|
|
@@ -336,3 +372,73 @@ exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
|
336
372
|
}
|
|
337
373
|
}
|
|
338
374
|
`;
|
|
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,11 +78,18 @@ 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(
|
|
85
|
+
query SuggestVoucher(
|
|
86
|
+
$partyId: String
|
|
87
|
+
$excludeExpired: Boolean
|
|
88
|
+
$customerId: String
|
|
89
|
+
$scope: String
|
|
90
|
+
$isNewCustomer: Boolean
|
|
91
|
+
$scopeIgnore: String
|
|
92
|
+
) {
|
|
86
93
|
suggestVoucher(
|
|
87
94
|
searchVoucherRequest: {
|
|
88
95
|
partyId: $partyId
|
|
@@ -90,6 +97,7 @@ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
|
|
|
90
97
|
customerId: $customerId
|
|
91
98
|
scope: $scope
|
|
92
99
|
isNewCustomer: $isNewCustomer
|
|
100
|
+
scopeIgnore: $scopeIgnore
|
|
93
101
|
}
|
|
94
102
|
) {
|
|
95
103
|
total
|
|
@@ -185,8 +193,18 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
|
|
|
185
193
|
}
|
|
186
194
|
`;
|
|
187
195
|
exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
|
|
188
|
-
query GetAverageRating(
|
|
189
|
-
|
|
196
|
+
query GetAverageRating(
|
|
197
|
+
$targetIds: [String]!
|
|
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
|
+
) {
|
|
190
208
|
url
|
|
191
209
|
targetId
|
|
192
210
|
evaluationType
|
|
@@ -196,8 +214,18 @@ exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
|
|
|
196
214
|
}
|
|
197
215
|
`;
|
|
198
216
|
exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
|
|
199
|
-
query GetUrlEvaluation(
|
|
200
|
-
|
|
217
|
+
query GetUrlEvaluation(
|
|
218
|
+
$targetIds: [String]!
|
|
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
|
+
) {
|
|
201
229
|
url
|
|
202
230
|
targetId
|
|
203
231
|
evaluationType
|
|
@@ -208,41 +236,43 @@ exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
|
|
|
208
236
|
`;
|
|
209
237
|
exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
|
|
210
238
|
query GetNumberOfTicketEvaluation($customerId: String!, $orgId: String!) {
|
|
211
|
-
getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId
|
|
239
|
+
getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId)
|
|
212
240
|
}
|
|
213
241
|
`;
|
|
214
242
|
exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
|
|
215
|
-
query SearchProductGiftPromotionResponse(
|
|
243
|
+
query SearchProductGiftPromotionResponse(
|
|
244
|
+
$parameterSearchProductGift: ParameterSearchProductGift
|
|
245
|
+
) {
|
|
216
246
|
searchProductGiftPromotionResponse(
|
|
217
|
-
parameterSearchProductGift:
|
|
218
|
-
partyId: $partyId
|
|
219
|
-
productId: $productId
|
|
220
|
-
}
|
|
247
|
+
parameterSearchProductGift: $parameterSearchProductGift
|
|
221
248
|
) {
|
|
222
249
|
total
|
|
223
250
|
totalPages
|
|
224
251
|
totalElements
|
|
225
252
|
content {
|
|
253
|
+
id
|
|
226
254
|
partyId
|
|
227
255
|
campaignId
|
|
228
256
|
campaignActionId
|
|
229
|
-
campaignActionName
|
|
230
|
-
startDate
|
|
231
|
-
endDate
|
|
232
257
|
productId
|
|
233
|
-
|
|
234
258
|
productParentId
|
|
235
|
-
|
|
236
259
|
quantityLimit
|
|
237
|
-
newCustomer
|
|
238
260
|
giftPromotions {
|
|
239
261
|
fromQuantity
|
|
240
|
-
toQuantity
|
|
241
262
|
toProductId
|
|
263
|
+
toQuantity
|
|
242
264
|
productName
|
|
243
265
|
sku
|
|
244
266
|
featureImage
|
|
245
267
|
}
|
|
268
|
+
campaignActionName
|
|
269
|
+
startDate
|
|
270
|
+
endDate
|
|
271
|
+
newCustomer
|
|
272
|
+
createdStamp
|
|
273
|
+
updatedStamp
|
|
274
|
+
updatedBy
|
|
275
|
+
createdBy
|
|
246
276
|
}
|
|
247
277
|
}
|
|
248
278
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common product fields fragment
|
|
3
|
+
* Used across multiple product queries to reduce duplication
|
|
4
|
+
*/
|
|
5
|
+
export declare const PRODUCT_CORE_FIELDS: import("graphql").DocumentNode;
|
|
6
|
+
/**
|
|
7
|
+
* Product attributes fragment
|
|
8
|
+
*/
|
|
9
|
+
export declare const PRODUCT_ATTRIBUTES: import("graphql").DocumentNode;
|
|
10
|
+
/**
|
|
11
|
+
* Product variants fragment
|
|
12
|
+
*/
|
|
13
|
+
export declare const PRODUCT_VARIANTS: import("graphql").DocumentNode;
|
|
14
|
+
/**
|
|
15
|
+
* Product feature types fragment
|
|
16
|
+
*/
|
|
17
|
+
export declare const PRODUCT_FEATURE_TYPES: import("graphql").DocumentNode;
|
|
18
|
+
/**
|
|
19
|
+
* Product categories fragment
|
|
20
|
+
*/
|
|
21
|
+
export declare const PRODUCT_CATEGORIES: import("graphql").DocumentNode;
|
|
22
|
+
/**
|
|
23
|
+
* Product unit fragment
|
|
24
|
+
*/
|
|
25
|
+
export declare const PRODUCT_UNIT: import("graphql").DocumentNode;
|
|
26
|
+
/**
|
|
27
|
+
* Complete product details fragment
|
|
28
|
+
* Combines all product fragments for detailed queries
|
|
29
|
+
*/
|
|
30
|
+
export declare const PRODUCT_FULL_DETAILS: import("graphql").DocumentNode;
|
|
31
|
+
/**
|
|
32
|
+
* Simple product fields for list views
|
|
33
|
+
*/
|
|
34
|
+
export declare const PRODUCT_SIMPLE_FIELDS: import("graphql").DocumentNode;
|
|
35
|
+
/**
|
|
36
|
+
* Extended product fields for getProducts query
|
|
37
|
+
*/
|
|
38
|
+
export declare const PRODUCT_EXTENDED_FIELDS: import("graphql").DocumentNode;
|