@longvansoftware/service-js-client 1.16.2 → 1.16.4

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.
Files changed (79) hide show
  1. package/dist/src/graphql/campaign/mutations.d.ts +1 -0
  2. package/dist/src/graphql/campaign/mutations.js +34 -0
  3. package/dist/src/graphql/campaign/queries.d.ts +9 -0
  4. package/dist/src/graphql/campaign/queries.js +427 -0
  5. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  6. package/dist/src/graphql/cashbook/queries.js +99 -0
  7. package/dist/src/graphql/crm/mutations.d.ts +2 -0
  8. package/dist/src/graphql/crm/mutations.js +37 -1
  9. package/dist/src/graphql/crm/queries.d.ts +1 -0
  10. package/dist/src/graphql/crm/queries.js +35 -1
  11. package/dist/src/graphql/fragments/product.d.ts +38 -0
  12. package/dist/src/graphql/fragments/product.js +196 -0
  13. package/dist/src/graphql/paymentV2/mutations.d.ts +5 -0
  14. package/dist/src/graphql/paymentV2/mutations.js +120 -0
  15. package/dist/src/graphql/paymentV2/queries.d.ts +9 -0
  16. package/dist/src/graphql/paymentV2/queries.js +257 -0
  17. package/dist/src/graphql/product/queries.d.ts +1 -0
  18. package/dist/src/graphql/product/queries.js +14 -1
  19. package/dist/src/graphql/store/mutations.d.ts +1 -0
  20. package/dist/src/graphql/store/mutations.js +29 -0
  21. package/dist/src/graphql/store/queries.d.ts +1 -0
  22. package/dist/src/graphql/store/queries.js +29 -0
  23. package/dist/src/lib/accounting/index.d.ts +5 -0
  24. package/dist/src/lib/accounting/index.js +32 -0
  25. package/dist/src/lib/campaign/index.d.ts +20 -0
  26. package/dist/src/lib/campaign/index.js +218 -0
  27. package/dist/src/lib/cashbook/index.d.ts +6 -0
  28. package/dist/src/lib/cashbook/index.js +56 -0
  29. package/dist/src/lib/comhub/index.d.ts +6 -0
  30. package/dist/src/lib/comhub/index.js +50 -0
  31. package/dist/src/lib/crm/index.d.ts +3 -0
  32. package/dist/src/lib/crm/index.js +51 -0
  33. package/dist/src/lib/deepLinkVietQr/index.d.ts +7 -0
  34. package/dist/src/lib/deepLinkVietQr/index.js +58 -0
  35. package/dist/src/lib/fileService/index.d.ts +34 -0
  36. package/dist/src/lib/fileService/index.js +80 -0
  37. package/dist/src/lib/getImage/index.d.ts +4 -0
  38. package/dist/src/lib/getImage/index.js +10 -0
  39. package/dist/src/lib/image/index.d.ts +7 -0
  40. package/dist/src/lib/image/index.js +49 -0
  41. package/dist/src/lib/omnigateway/index.d.ts +7 -0
  42. package/dist/src/lib/omnigateway/index.js +58 -0
  43. package/dist/src/lib/paymentV2/index.d.ts +18 -0
  44. package/dist/src/lib/paymentV2/index.js +245 -0
  45. package/dist/src/lib/portal/index.d.ts +23 -0
  46. package/dist/src/lib/portal/index.js +255 -0
  47. package/dist/src/lib/product/index.d.ts +1 -0
  48. package/dist/src/lib/product/index.js +16 -0
  49. package/dist/src/lib/shareZalo/index.d.ts +5 -0
  50. package/dist/src/lib/shareZalo/index.js +32 -0
  51. package/dist/src/lib/store/index.d.ts +30 -0
  52. package/dist/src/lib/store/index.js +74 -0
  53. package/dist/src/lib/token/index.d.ts +5 -0
  54. package/dist/src/lib/token/index.js +32 -0
  55. package/dist/src/lib/upload/index.d.ts +5 -0
  56. package/dist/src/lib/upload/index.js +35 -0
  57. package/dist/src/lib/warehouseV2/index.d.ts +13 -0
  58. package/dist/src/lib/warehouseV2/index.js +54 -0
  59. package/dist/src/lib/zca/index.d.ts +12 -0
  60. package/dist/src/lib/zca/index.js +41 -0
  61. package/dist/src/types/campaign.d.ts +14 -0
  62. package/dist/src/types/campaign.js +2 -0
  63. package/dist/src/types/common.d.ts +264 -0
  64. package/dist/src/types/common.js +35 -0
  65. package/dist/src/types/invoice.d.ts +13 -0
  66. package/dist/src/types/invoice.js +2 -0
  67. package/dist/src/types/portal.d.ts +7 -0
  68. package/dist/src/types/portal.js +2 -0
  69. package/dist/src/types/store.d.ts +158 -0
  70. package/dist/src/types/store.js +3 -0
  71. package/dist/src/utils/errorHandler.d.ts +64 -0
  72. package/dist/src/utils/errorHandler.js +197 -0
  73. package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
  74. package/dist/src/utils/validatePhoneNumber.js +20 -0
  75. package/package.json +1 -1
  76. package/dist/src/lib/service.d.ts +0 -14
  77. package/dist/src/lib/service.js +0 -101
  78. package/dist/src/utils/build-field-string.d.ts +0 -1
  79. package/dist/src/utils/build-field-string.js +0 -16
@@ -0,0 +1 @@
1
+ export declare const ADD_CUSTOMER_ID_INTO_VOUCHER: import("graphql").DocumentNode;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ADD_CUSTOMER_ID_INTO_VOUCHER = void 0;
7
+ const graphql_tag_1 = __importDefault(require("graphql-tag"));
8
+ exports.ADD_CUSTOMER_ID_INTO_VOUCHER = (0, graphql_tag_1.default) `
9
+ mutation AddCustomerToVoucher(
10
+ $partyId: String!
11
+ $voucherCode: String!
12
+ $userId: String!
13
+ $affiliateId: String
14
+ ) {
15
+ addCustomerToVoucher(
16
+ partyId: $partyId
17
+ voucherCode: $voucherCode
18
+ userId: $userId
19
+ affiliateId: $affiliateId
20
+ ) {
21
+ id
22
+ customerId
23
+ campaignActionId
24
+ campaignId
25
+ partyId
26
+ voucherCode
27
+ voucherType
28
+ status
29
+ discountAmount
30
+ discountPercent
31
+ usageLimitPerVoucher
32
+ }
33
+ }
34
+ `;
@@ -0,0 +1,9 @@
1
+ export declare const GET_CAMPAIGN_ACTION_ACTIVE_NOW: import("graphql").DocumentNode;
2
+ export declare const GET_VOUCHERS: import("graphql").DocumentNode;
3
+ export declare const CHECK_VALID_VOUCHER: import("graphql").DocumentNode;
4
+ export declare const GET_CAMPAIGN_ACTIVE_NOW: import("graphql").DocumentNode;
5
+ export declare const GET_PROMOTION_PRODUCT_PRICE: import("graphql").DocumentNode;
6
+ export declare const GET_VOUCHER_AVAILABLE_FOR_CUSTOMER: import("graphql").DocumentNode;
7
+ export declare const SUGGEST_VOUCHER: import("graphql").DocumentNode;
8
+ export declare const GET_CAMPAIGN_ACTION_BY_ID: import("graphql").DocumentNode;
9
+ export declare const SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE: import("graphql").DocumentNode;
@@ -0,0 +1,427 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = exports.GET_CAMPAIGN_ACTION_BY_ID = exports.SUGGEST_VOUCHER = exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = exports.GET_PROMOTION_PRODUCT_PRICE = exports.GET_CAMPAIGN_ACTIVE_NOW = exports.CHECK_VALID_VOUCHER = exports.GET_VOUCHERS = exports.GET_CAMPAIGN_ACTION_ACTIVE_NOW = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.GET_CAMPAIGN_ACTION_ACTIVE_NOW = (0, graphql_tag_1.gql) `
6
+ query GetCampaignActionActiveNow(
7
+ $partyId: String!
8
+ $customerId: String
9
+ $campaignActionType: String
10
+ $productStoreId: String
11
+ ) {
12
+ getCampaignActionActiveNow(
13
+ checkCampaignActiveRequest: {
14
+ partyId: $partyId
15
+ customerId: $customerId
16
+ campaignActionType: $campaignActionType
17
+ productStoreId: $productStoreId
18
+ }
19
+ ) {
20
+ campaignId
21
+ campaignName
22
+ statusCampaign
23
+ campaignDescription
24
+ fromDate
25
+ toDate
26
+ campaignActionId
27
+ campaignActionName
28
+ type
29
+ campaignActionDescription
30
+ priorityLevel
31
+ }
32
+ }
33
+ `;
34
+ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
35
+ query SearchVoucher(
36
+ $partyId: String
37
+ $storeId: String
38
+ $campaignId: String
39
+ $campaignActionId: String
40
+ $campaignActionType: String
41
+ $customerId: String
42
+ $excludeExpired: Boolean
43
+ $pageNumber: Int
44
+ $pageSize: Int
45
+ ) {
46
+ searchVoucher(
47
+ searchVoucherRequest: {
48
+ partyId: $partyId
49
+ storeId: $storeId
50
+ campaignId: $campaignId
51
+ campaignActionId: $campaignActionId
52
+ campaignActionType: $campaignActionType
53
+ customerId: $customerId
54
+ excludeExpired: $excludeExpired
55
+ pageNumber: $pageNumber
56
+ pageSize: $pageSize
57
+ }
58
+ ) {
59
+ total
60
+ totalPages
61
+ totalElements
62
+ last
63
+ first
64
+ number
65
+ numberOfElements
66
+ size
67
+ empty
68
+ content {
69
+ campaignActionId
70
+ campaignId
71
+ partyId
72
+ voucherCode
73
+ voucherType
74
+ status
75
+ discountAmount
76
+ discountPercent
77
+ usageLimitPerVoucher
78
+ maximumDiscount
79
+ numberOfTimeUsed
80
+ id
81
+ createdStamp
82
+ updatedStamp
83
+ updatedBy
84
+ createdBy
85
+ isBirthday
86
+ customerId
87
+ }
88
+ }
89
+ }
90
+ `;
91
+ exports.CHECK_VALID_VOUCHER = (0, graphql_tag_1.gql) `
92
+ query CheckValidVoucher(
93
+ $partyId: String
94
+ $productStoreId: String
95
+ $customerId: String
96
+ $voucherCode: String!
97
+ ) {
98
+ checkValidVoucher(
99
+ checkValidVoucherRequest: {
100
+ customerId: $customerId
101
+ voucherCode: $voucherCode
102
+ productStoreId: $productStoreId
103
+ }
104
+ partyId: $partyId
105
+ ) {
106
+ campaignActionId
107
+ campaignId
108
+ partyId
109
+ voucherCode
110
+ voucherType
111
+ status
112
+ discountAmount
113
+ discountPercent
114
+ usageLimitPerVoucher
115
+ maximumDiscount
116
+ numberOfTimeUsed
117
+ id
118
+ createdStamp
119
+ updatedStamp
120
+ updatedBy
121
+ createdBy
122
+ }
123
+ }
124
+ `;
125
+ exports.GET_CAMPAIGN_ACTIVE_NOW = (0, graphql_tag_1.gql) `
126
+ query GetCampaignActiveNow(
127
+ $partyId: String!
128
+ $productStoreId: String
129
+ $campaignActionType: String
130
+ $customerId: String
131
+ ) {
132
+ getCampaignActiveNow(
133
+ checkCampaignActiveRequest: {
134
+ partyId: $partyId
135
+ customerId: $customerId
136
+ campaignActionType: $campaignActionType
137
+ productStoreId: $productStoreId
138
+ }
139
+ ) {
140
+ campaign {
141
+ id
142
+ createdStamp
143
+ updatedStamp
144
+ updatedBy
145
+ createdBy
146
+ useForAll
147
+ description
148
+ partyId
149
+ name
150
+ type
151
+ domain
152
+ fromDate
153
+ toDate
154
+ status
155
+ }
156
+ campaignActions {
157
+ name
158
+ description
159
+ partyId
160
+ type
161
+ viewTemplateId
162
+ urlTemplate
163
+ shortCode
164
+ uriPattern
165
+ parameterPattern
166
+ status
167
+ extendDaysForHeadReview
168
+ priorityLevel
169
+ positionConnectionType
170
+ baseCommissionPercent
171
+ targetType
172
+ id
173
+ createdStamp
174
+ updatedStamp
175
+ updatedBy
176
+ createdBy
177
+ }
178
+ }
179
+ }
180
+ `;
181
+ exports.GET_PROMOTION_PRODUCT_PRICE = (0, graphql_tag_1.gql) `
182
+ query GetPromotionProductPrice(
183
+ $partyId: String!
184
+ $productStoreId: String!
185
+ $productId: String!
186
+ $productPrice: BigDecimal!
187
+ ) {
188
+ getPromotionProductPrice(
189
+ partyId: $partyId
190
+ productStoreId: $productStoreId
191
+ productId: $productId
192
+ productPrice: $productPrice
193
+ ) {
194
+ campaignId
195
+ campaignName
196
+ statusCampaign
197
+ campaignDescription
198
+ fromDate
199
+ toDate
200
+ campaignPrivateUse
201
+ useWithOtherCampaignIds
202
+ campaignActionId
203
+ campaignActionName
204
+ type
205
+ campaignActionDescription
206
+ priorityLevel
207
+ campaignActionPrivateUse
208
+ useWithOtherCampaignActionIds
209
+ }
210
+ }
211
+ `;
212
+ exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
213
+ query GetVoucherAvailableForCustomer(
214
+ $partyId: String
215
+ $storeId: String
216
+ $campaignId: String
217
+ $campaignActionId: String
218
+ $customerId: String
219
+ $excludeExpired: Boolean
220
+ $isPageAble: Boolean
221
+ ) {
222
+ getVoucherAvailableForCustomer(
223
+ searchVoucherRequest: {
224
+ partyId: $partyId
225
+ storeId: $storeId
226
+ campaignId: $campaignId
227
+ campaignActionId: $campaignActionId
228
+ customerId: $customerId
229
+ excludeExpired: $excludeExpired
230
+ isPageAble: $isPageAble
231
+ }
232
+ ) {
233
+ total
234
+ totalPages
235
+ totalElements
236
+ last
237
+ first
238
+ number
239
+ numberOfElements
240
+ size
241
+ empty
242
+ content {
243
+ campaignActionId
244
+ campaignId
245
+ partyId
246
+ voucherCode
247
+ voucherType
248
+ status
249
+ discountAmount
250
+ discountPercent
251
+ usageLimitPerVoucher
252
+ maximumDiscount
253
+ numberOfTimeUsed
254
+ id
255
+ createdStamp
256
+ updatedStamp
257
+ updatedBy
258
+ createdBy
259
+ isBirthday
260
+ customerId
261
+ }
262
+ }
263
+ }
264
+ `;
265
+ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
266
+ query SuggestVoucher(
267
+ $partyId: String
268
+ $customerId: String
269
+ $excludeExpired: Boolean
270
+ $campaignId: String
271
+ $campaignActionId: String
272
+ $isBirthday: Boolean
273
+ ) {
274
+ suggestVoucher(
275
+ searchVoucherRequest: {
276
+ partyId: $partyId
277
+ customerId: $customerId
278
+ excludeExpired: $excludeExpired
279
+ campaignId: $campaignId
280
+ campaignActionId: $campaignActionId
281
+ isBirthday: $isBirthday
282
+ }
283
+ ) {
284
+ total
285
+ totalPages
286
+ totalElements
287
+ last
288
+ first
289
+ number
290
+ numberOfElements
291
+ size
292
+ empty
293
+ content {
294
+ campaignActionId
295
+ campaignId
296
+ partyId
297
+ voucherCode
298
+ voucherType
299
+ status
300
+ discountAmount
301
+ discountPercent
302
+ usageLimitPerVoucher
303
+ maximumDiscount
304
+ numberOfTimeUsed
305
+ id
306
+ createdStamp
307
+ updatedStamp
308
+ updatedBy
309
+ createdBy
310
+ isBirthday
311
+ customerId
312
+ scope
313
+ affiliateId
314
+ maximumSpend
315
+ minimumSpend
316
+ maximumDiscountType
317
+ }
318
+ }
319
+ }
320
+ `;
321
+ // query GetCampaignActionById {
322
+ // getCampaignActionById(id: "20.1273.888") {
323
+ // name
324
+ // description
325
+ // partyId
326
+ // type
327
+ // viewTemplateId
328
+ // urlTemplate
329
+ // shortCode
330
+ // uriPattern
331
+ // parameterPattern
332
+ // status
333
+ // extendDaysForHeadReview
334
+ // priorityLevel
335
+ // positionConnectionType
336
+ // baseCommissionPercent
337
+ // targetType
338
+ // id
339
+ // createdStamp
340
+ // updatedStamp
341
+ // updatedBy
342
+ // createdBy
343
+ // }
344
+ // }
345
+ exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
346
+ query GetCampaignActionById($id: String!) {
347
+ getCampaignActionById(id: $id) {
348
+ name
349
+ description
350
+ partyId
351
+ type
352
+ viewTemplateId
353
+ urlTemplate
354
+ shortCode
355
+ uriPattern
356
+ parameterPattern
357
+ status
358
+ extendDaysForHeadReview
359
+ priorityLevel
360
+ positionConnectionType
361
+ baseCommissionPercent
362
+ targetType
363
+ id
364
+ createdStamp
365
+ updatedStamp
366
+ updatedBy
367
+ createdBy
368
+ }
369
+ }
370
+ `;
371
+ exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
372
+ query SearchProductGiftPromotionResponse(
373
+ $partyId: String!
374
+ $storeId: String
375
+ $productIds: [String]
376
+ $campaignActionId: String
377
+ $sort: [BaseSortRequest]
378
+ ) {
379
+ searchProductGiftPromotionResponse(
380
+ parameterSearchProductGift: {
381
+ partyId: $partyId
382
+ storeId: $storeId
383
+ productIds: $productIds
384
+ campaignActionId: $campaignActionId
385
+ sort: $sort
386
+ }
387
+ ) {
388
+ total
389
+ totalPages
390
+ totalElements
391
+ last
392
+ first
393
+ number
394
+ numberOfElements
395
+ size
396
+ empty
397
+ content {
398
+ id
399
+ partyId
400
+ campaignId
401
+ campaignActionId
402
+ productId
403
+ quantityLimit
404
+ campaignActionName
405
+ startDate
406
+ productParentId
407
+ endDate
408
+ newCustomer
409
+ createdStamp
410
+ updatedStamp
411
+ updatedBy
412
+ createdBy
413
+ giftPromotions {
414
+ fromQuantity
415
+ toProductId
416
+ toQuantity
417
+ productName
418
+ sku
419
+ featureImage
420
+ }
421
+ }
422
+ sort {
423
+ sorted
424
+ }
425
+ }
426
+ }
427
+ `;
@@ -0,0 +1,2 @@
1
+ export declare const SEARCH_TRANSACTIONS: import("graphql").DocumentNode;
2
+ export declare const GET_CASHBOOK_TRANSACTION_DETAIL: import("graphql").DocumentNode;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_CASHBOOK_TRANSACTION_DETAIL = exports.SEARCH_TRANSACTIONS = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.SEARCH_TRANSACTIONS = (0, graphql_tag_1.gql) `
6
+ query SearchTransactions(
7
+ $partnerId: String!
8
+ $keyword: String
9
+ $dateFrom: Long
10
+ $dateTo: Long
11
+ $currentPage: Int
12
+ $pageSize: Int
13
+ ) {
14
+ searchTransactions(
15
+ partnerId: $partnerId
16
+ keyword: $keyword
17
+ dateFrom: $dateFrom
18
+ dateTo: $dateTo
19
+ currentPage: $currentPage
20
+ pageSize: $pageSize
21
+ ) {
22
+ total
23
+ index
24
+ maxResult
25
+ resultList {
26
+ id
27
+ createdStamp
28
+ updatedStamp
29
+ createdBy
30
+ updatedBy
31
+ partnerId
32
+ extId
33
+ transactionId
34
+ paymentGatewayType
35
+ bankCode
36
+ bankAccountNumber
37
+ extBankAccountNumber
38
+ extBank
39
+ amount
40
+ currencyCode
41
+ description
42
+ timeTransaction
43
+ status
44
+ gateway
45
+ paymentId
46
+ paymentAmount
47
+ paymentConfirmStatus
48
+ paymentConfirmNote
49
+ accountTransactionId
50
+ orderId
51
+ invoiceId
52
+ cashAccountId
53
+ purpose
54
+ customAttributes
55
+ }
56
+ }
57
+ }
58
+ `;
59
+ exports.GET_CASHBOOK_TRANSACTION_DETAIL = (0, graphql_tag_1.gql) `
60
+ query GetCashbookTransactionDetail(
61
+ $partnerId: String!
62
+ $cashTransactionId: String!
63
+ ) {
64
+ getCashbookTransactionDetail(
65
+ partnerId: $partnerId
66
+ cashTransactionId: $cashTransactionId
67
+ ) {
68
+ id
69
+ createdStamp
70
+ updatedStamp
71
+ createdBy
72
+ updatedBy
73
+ partnerId
74
+ extId
75
+ transactionId
76
+ paymentGatewayType
77
+ bankCode
78
+ bankAccountNumber
79
+ extBankAccountNumber
80
+ extBank
81
+ amount
82
+ currencyCode
83
+ description
84
+ timeTransaction
85
+ status
86
+ gateway
87
+ paymentId
88
+ paymentAmount
89
+ paymentConfirmStatus
90
+ paymentConfirmNote
91
+ accountTransactionId
92
+ orderId
93
+ invoiceId
94
+ cashAccountId
95
+ purpose
96
+ customAttributes
97
+ }
98
+ }
99
+ `;
@@ -12,3 +12,5 @@ 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
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.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;
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(
@@ -406,3 +406,39 @@ exports.ADD_RESOURCE_RELATED = (0, graphql_tag_1.gql) `
406
406
  )
407
407
  }
408
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
+ `;
@@ -11,3 +11,4 @@ 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
12
  export declare const GET_COLLEGES_BY_PROVINCE_ID: import("graphql").DocumentNode;
13
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.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_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_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(
@@ -372,3 +372,37 @@ exports.GET_RELATED_RESOURCE_BY_RESOURCE_TYPE = (0, graphql_tag_1.gql) `
372
372
  }
373
373
  }
374
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
+ `;