@longvansoftware/service-js-client 1.16.4 → 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 +0 -4
- package/dist/src/graphql/cloud/mutations.js +1 -47
- 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 +0 -3
- package/dist/src/graphql/crm/queries.js +1 -71
- 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 -5
- package/dist/src/lib/cloud/index.js +0 -85
- 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 -6
- package/dist/src/lib/crm/index.js +0 -107
- 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
- package/dist/src/graphql/campaign/mutations.d.ts +0 -1
- package/dist/src/graphql/campaign/mutations.js +0 -34
- package/dist/src/graphql/campaign/queries.d.ts +0 -9
- package/dist/src/graphql/campaign/queries.js +0 -427
- package/dist/src/graphql/cashbook/queries.d.ts +0 -2
- package/dist/src/graphql/cashbook/queries.js +0 -99
- package/dist/src/graphql/fragments/product.d.ts +0 -38
- package/dist/src/graphql/fragments/product.js +0 -196
- package/dist/src/graphql/paymentV2/mutations.d.ts +0 -5
- package/dist/src/graphql/paymentV2/mutations.js +0 -120
- package/dist/src/graphql/paymentV2/queries.d.ts +0 -9
- package/dist/src/graphql/paymentV2/queries.js +0 -257
- package/dist/src/graphql/store/mutations.d.ts +0 -1
- package/dist/src/graphql/store/mutations.js +0 -29
- package/dist/src/graphql/store/queries.d.ts +0 -1
- package/dist/src/graphql/store/queries.js +0 -29
- package/dist/src/lib/accounting/index.d.ts +0 -5
- package/dist/src/lib/accounting/index.js +0 -32
- package/dist/src/lib/campaign/index.d.ts +0 -20
- package/dist/src/lib/campaign/index.js +0 -218
- package/dist/src/lib/cashbook/index.d.ts +0 -6
- package/dist/src/lib/cashbook/index.js +0 -56
- package/dist/src/lib/comhub/index.d.ts +0 -6
- package/dist/src/lib/comhub/index.js +0 -50
- package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -7
- package/dist/src/lib/deepLinkVietQr/index.js +0 -58
- package/dist/src/lib/fileService/index.d.ts +0 -34
- package/dist/src/lib/fileService/index.js +0 -80
- package/dist/src/lib/getImage/index.d.ts +0 -4
- package/dist/src/lib/getImage/index.js +0 -10
- package/dist/src/lib/image/index.d.ts +0 -7
- package/dist/src/lib/image/index.js +0 -49
- package/dist/src/lib/omnigateway/index.d.ts +0 -7
- package/dist/src/lib/omnigateway/index.js +0 -58
- package/dist/src/lib/paymentV2/index.d.ts +0 -18
- package/dist/src/lib/paymentV2/index.js +0 -245
- package/dist/src/lib/portal/index.d.ts +0 -23
- package/dist/src/lib/portal/index.js +0 -255
- package/dist/src/lib/shareZalo/index.d.ts +0 -5
- package/dist/src/lib/shareZalo/index.js +0 -32
- package/dist/src/lib/store/index.d.ts +0 -30
- package/dist/src/lib/store/index.js +0 -74
- package/dist/src/lib/token/index.d.ts +0 -5
- package/dist/src/lib/token/index.js +0 -32
- package/dist/src/lib/upload/index.d.ts +0 -5
- package/dist/src/lib/upload/index.js +0 -35
- package/dist/src/lib/warehouseV2/index.d.ts +0 -13
- package/dist/src/lib/warehouseV2/index.js +0 -54
- package/dist/src/lib/zca/index.d.ts +0 -12
- package/dist/src/lib/zca/index.js +0 -41
- package/dist/src/types/campaign.d.ts +0 -14
- package/dist/src/types/campaign.js +0 -2
- package/dist/src/types/common.d.ts +0 -264
- package/dist/src/types/common.js +0 -35
- package/dist/src/types/invoice.d.ts +0 -13
- package/dist/src/types/invoice.js +0 -2
- package/dist/src/types/portal.d.ts +0 -7
- package/dist/src/types/portal.js +0 -2
- package/dist/src/types/store.d.ts +0 -158
- package/dist/src/types/store.js +0 -3
- package/dist/src/utils/errorHandler.d.ts +0 -64
- package/dist/src/utils/errorHandler.js +0 -197
- package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
- package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -14,7 +14,3 @@ export declare const GET_ORDER_CHANGE_RESOURCE_TERM: import("graphql").DocumentN
|
|
14
14
|
export declare const CREATE_ACTION_CHANGE_IP_OF_SERVICE: import("graphql").DocumentNode;
|
15
15
|
export declare const UPDATE_ACTION_STATUS: import("graphql").DocumentNode;
|
16
16
|
export declare const UPDATE_ACTION_CUSTOM_ATTRIBUTE: import("graphql").DocumentNode;
|
17
|
-
export declare const UPDATE_SERVICE_COMPLETED: import("graphql").DocumentNode;
|
18
|
-
export declare const UPDATE_SERVICE_NEW: import("graphql").DocumentNode;
|
19
|
-
export declare const UPDATE_SERVICE_READY_DEPLOY: import("graphql").DocumentNode;
|
20
|
-
export declare const UPDATE_URL_PUBLIC: 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,49 +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
|
-
`;
|
@@ -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
|
-
`;
|
@@ -9,6 +9,3 @@ export declare const GET_RESUME_ID_BY_RESOURCE: import("graphql").DocumentNode;
|
|
9
9
|
export declare const GET_RESUME_CONTACT: import("graphql").DocumentNode;
|
10
10
|
export declare const GET_REUSME_BY_CUSTOMER_ID: import("graphql").DocumentNode;
|
11
11
|
export declare const GET_RESUME_DOMAIN_BY_SERVICE_ID: import("graphql").DocumentNode;
|
12
|
-
export declare const GET_COLLEGES_BY_PROVINCE_ID: import("graphql").DocumentNode;
|
13
|
-
export declare const GET_RELATED_RESOURCE_BY_RESOURCE_TYPE: import("graphql").DocumentNode;
|
14
|
-
export declare const GET_RESUME_INFO_BY_CUSTOMER_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(
|
@@ -336,73 +336,3 @@ exports.GET_RESUME_DOMAIN_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
336
336
|
}
|
337
337
|
}
|
338
338
|
`;
|
339
|
-
exports.GET_COLLEGES_BY_PROVINCE_ID = (0, graphql_tag_1.gql) `
|
340
|
-
query GetCollegesByProvinceId($provinceId: String) {
|
341
|
-
getCollegesByProvinceId(provinceId: $provinceId) {
|
342
|
-
id
|
343
|
-
name
|
344
|
-
provinceId
|
345
|
-
}
|
346
|
-
}
|
347
|
-
`;
|
348
|
-
exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = (0, graphql_tag_1.gql) `
|
349
|
-
query GetRelatedResourceByResourceType(
|
350
|
-
$fromId: String!
|
351
|
-
$fromResourceType: String!
|
352
|
-
$toResourceType: String!
|
353
|
-
$partnerId: String!
|
354
|
-
$accessToken: String!
|
355
|
-
) {
|
356
|
-
getRelatedResourceByResourceType(
|
357
|
-
fromId: $fromId
|
358
|
-
fromResourceType: $fromResourceType
|
359
|
-
toResourceType: $toResourceType
|
360
|
-
partnerId: $partnerId
|
361
|
-
accessToken: $accessToken
|
362
|
-
) {
|
363
|
-
id
|
364
|
-
name
|
365
|
-
description
|
366
|
-
type
|
367
|
-
status
|
368
|
-
createdBy
|
369
|
-
createdStamp
|
370
|
-
updatedStamp
|
371
|
-
accountableId
|
372
|
-
}
|
373
|
-
}
|
374
|
-
`;
|
375
|
-
exports.GET_RESUME_INFO_BY_CUSTOMER_ID = (0, graphql_tag_1.gql) `
|
376
|
-
query GetResumeInfoByCustomerId($customerId: String!, $orgId: String!) {
|
377
|
-
getResumeInfoByCustomerId(customerId: $customerId, orgId: $orgId) {
|
378
|
-
resumeId
|
379
|
-
partyId
|
380
|
-
name
|
381
|
-
otherName
|
382
|
-
customerType
|
383
|
-
email
|
384
|
-
country
|
385
|
-
province
|
386
|
-
district
|
387
|
-
ward
|
388
|
-
countryId
|
389
|
-
provinceId
|
390
|
-
districtId
|
391
|
-
wardId
|
392
|
-
address
|
393
|
-
phone
|
394
|
-
contactType
|
395
|
-
taxCode
|
396
|
-
businessCode
|
397
|
-
identityNumber
|
398
|
-
gender
|
399
|
-
birthday
|
400
|
-
cpFrom
|
401
|
-
level
|
402
|
-
ID_BACK
|
403
|
-
ID_FRONT
|
404
|
-
BUSINESS_LICENSE
|
405
|
-
statusCode
|
406
|
-
}
|
407
|
-
}
|
408
|
-
`;
|
@@ -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;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = exports.GET_TAGS_BY_CATEGORY = exports.GET_TAGS = exports.GET_LIST_PRICE = exports.GET_DETAIL_STORES = exports.GET_RELATED_INFOR = exports.GET_PRODUCT_VARIANT_BY_ID = exports.GET_RESOURCE_BY_PRODUCT = exports.GET_HANDLE_BY_SERVICETYPE = exports.GET_PRODUCTS_DYNAMIC = exports.GET_PRODUCTS = exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY_DYNAMIC = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
// export const GET_PRODUCT_BY_ID_QUERY = gql`
|
6
6
|
// query GetProductById(
|
@@ -907,24 +907,6 @@ exports.GET_PRODUCT_VARIANT_BY_ID = (0, graphql_tag_1.gql) `
|
|
907
907
|
}
|
908
908
|
}
|
909
909
|
`;
|
910
|
-
const GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = (fields = []) => {
|
911
|
-
const fieldStr = fields.join("\n ");
|
912
|
-
const hasFields = fields.length > 0;
|
913
|
-
return (0, graphql_tag_1.gql) `
|
914
|
-
query GetProductVariantById(
|
915
|
-
$partnerId: String!
|
916
|
-
$storeChannel: String!
|
917
|
-
$variantId: String!
|
918
|
-
) {
|
919
|
-
getProductVariantById(
|
920
|
-
partnerId: $partnerId
|
921
|
-
storeChannel: $storeChannel
|
922
|
-
variantId: $variantId
|
923
|
-
) ${hasFields ? `{ ${fieldStr} }` : ""}
|
924
|
-
}
|
925
|
-
`;
|
926
|
-
};
|
927
|
-
exports.GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC = GET_PRODUCT_VARIANT_BY_ID_QUERY_DYNAMIC;
|
928
910
|
exports.GET_RELATED_INFOR = (0, graphql_tag_1.gql) `
|
929
911
|
query GetProductVariantById($id: String!) {
|
930
912
|
getRelatedInfor(id: $id) {
|
@@ -1036,16 +1018,3 @@ const GET_LIST_PRODUCTS_CONFIG_DYNAMIC = (fields = []) => {
|
|
1036
1018
|
`;
|
1037
1019
|
};
|
1038
1020
|
exports.GET_LIST_PRODUCTS_CONFIG_DYNAMIC = GET_LIST_PRODUCTS_CONFIG_DYNAMIC;
|
1039
|
-
exports.GET_CATEGORIES = (0, graphql_tag_1.gql) `
|
1040
|
-
query GetCategories($partnerId: String!, $storeChannel: String!) {
|
1041
|
-
getCategories(partnerId: $partnerId, storeChannel: $storeChannel) {
|
1042
|
-
id
|
1043
|
-
title
|
1044
|
-
image
|
1045
|
-
icon
|
1046
|
-
parentId
|
1047
|
-
level
|
1048
|
-
handle
|
1049
|
-
}
|
1050
|
-
}
|
1051
|
-
`;
|
@@ -32,7 +32,7 @@ export declare class AuthService extends Service {
|
|
32
32
|
getUserLoginByToken(accessToken: string): Promise<any>;
|
33
33
|
updateProfile(userLoginId: string, name: string, phone: string, email: string): Promise<any>;
|
34
34
|
createUserDetail(userLoginId: string): Promise<any>;
|
35
|
-
updateInfo(accessToken: string, updateUserRequest: UpdateInfoRequest['updateUserRequest'], type: string, password: string | null): Promise<any>;
|
35
|
+
updateInfo(orgId: string, accessToken: string, updateUserRequest: UpdateInfoRequest['updateUserRequest'], type: string, password: string | null): Promise<any>;
|
36
36
|
linkingUserLoginAndUserDetail(userLoginId: string, partyId: string): Promise<any>;
|
37
37
|
getUserLoginByUserLoginId(userLoginId: string): Promise<any>;
|
38
38
|
checkUsernameExisted(username: string): Promise<any>;
|
@@ -174,11 +174,11 @@ class AuthService extends serviceSDK_1.Service {
|
|
174
174
|
}
|
175
175
|
});
|
176
176
|
}
|
177
|
-
updateInfo(accessToken, updateUserRequest, type, password) {
|
177
|
+
updateInfo(orgId, accessToken, updateUserRequest, type, password) {
|
178
178
|
return __awaiter(this, void 0, void 0, function* () {
|
179
179
|
const mutation = mutations_1.UPDATE_INFO_MUTATION;
|
180
180
|
const variables = {
|
181
|
-
orgId
|
181
|
+
orgId,
|
182
182
|
accessToken,
|
183
183
|
updateUserRequest: {
|
184
184
|
fullName: updateUserRequest.fullName,
|
@@ -189,13 +189,14 @@ class AuthService extends serviceSDK_1.Service {
|
|
189
189
|
gender: updateUserRequest.gender || null,
|
190
190
|
imageUrl: updateUserRequest.imageUrl || null,
|
191
191
|
personalTitle: updateUserRequest.personalTitle || null,
|
192
|
-
birthDate: updateUserRequest.birthDate || null,
|
193
192
|
},
|
194
193
|
type,
|
195
194
|
password,
|
196
195
|
};
|
196
|
+
console.log("variables", variables);
|
197
197
|
try {
|
198
198
|
const response = yield this.graphqlMutation(mutation, variables);
|
199
|
+
console.log("res update", response);
|
199
200
|
return response.updateInfo;
|
200
201
|
}
|
201
202
|
catch (error) {
|
@@ -11,10 +11,6 @@ export declare class CloudService extends Service {
|
|
11
11
|
setToken(token: string): void;
|
12
12
|
setStoreId(storeId: string): void;
|
13
13
|
serviceDetail(serviceId: string): Promise<any>;
|
14
|
-
updateServiceCompleted(serviceId: string, handleBy: string): Promise<any>;
|
15
|
-
updateServiceNew(serviceId: string, handleBy: string): Promise<any>;
|
16
|
-
updateServiceReadyDeploy(serviceId: string, handleBy: string): Promise<any>;
|
17
|
-
updateUrlPublic(serviceId: string, handleBy: string, urlPublic: string): Promise<any>;
|
18
14
|
getMailResource(serviceId: string): Promise<any>;
|
19
15
|
changeServiceName(serviceId: string, updateBy: string, updateData: string): Promise<any>;
|
20
16
|
getUserMailHosting(serviceId: string): Promise<any>;
|
@@ -48,5 +44,4 @@ export declare class CloudService extends Service {
|
|
48
44
|
createActionChangeIpOfService(action: any, byUser: string): Promise<any>;
|
49
45
|
updateActionStatus(actionId: string, status: string, byUser: string): Promise<any>;
|
50
46
|
updateActionCustomAttribute(actionId: string, attrName: string, attrValue: string, byUser: string): Promise<any>;
|
51
|
-
getElasticCloudResource(serviceId: string): Promise<any>;
|
52
47
|
}
|