@longvansoftware/service-js-client 1.16.0 → 1.16.2

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 (91) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/accounting_service/mutations.js +96 -96
  3. package/dist/src/graphql/accounting_service/queries.js +57 -57
  4. package/dist/src/graphql/auth/mutations.js +235 -235
  5. package/dist/src/graphql/auth/queries.js +68 -68
  6. package/dist/src/graphql/cloud/mutations.js +282 -282
  7. package/dist/src/graphql/cloud/queries.js +341 -341
  8. package/dist/src/graphql/computing/mutations.js +303 -303
  9. package/dist/src/graphql/computing/queries.js +548 -548
  10. package/dist/src/graphql/crm/mutations.js +390 -390
  11. package/dist/src/graphql/crm/queries.js +357 -357
  12. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  13. package/dist/src/graphql/crm_camping/queries.js +228 -199
  14. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  15. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  16. package/dist/src/graphql/payment/mutations.js +45 -45
  17. package/dist/src/graphql/payment/queries.js +60 -60
  18. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  19. package/dist/src/graphql/paymentLV/queries.js +75 -75
  20. package/dist/src/graphql/product/queries.d.ts +1 -0
  21. package/dist/src/graphql/product/queries.js +910 -892
  22. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  23. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  24. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  25. package/dist/src/graphql/resource_permission/queries.js +13 -13
  26. package/dist/src/graphql/service/mutations.js +228 -228
  27. package/dist/src/graphql/service/queries.js +128 -128
  28. package/dist/src/graphql/user/mutations.js +214 -214
  29. package/dist/src/graphql/user/queries.js +312 -312
  30. package/dist/src/lib/crm_camping/index.d.ts +1 -1
  31. package/dist/src/lib/crm_camping/index.js +10 -6
  32. package/dist/src/lib/product/index.d.ts +1 -0
  33. package/dist/src/lib/product/index.js +18 -0
  34. package/dist/src/lib/service.d.ts +14 -0
  35. package/dist/src/lib/service.js +101 -0
  36. package/dist/src/lib/serviceSDK.js +12 -12
  37. package/dist/src/utils/build-field-string.d.ts +1 -0
  38. package/dist/src/utils/build-field-string.js +16 -0
  39. package/package.json +43 -44
  40. package/dist/src/graphql/campaign/mutations.d.ts +0 -1
  41. package/dist/src/graphql/campaign/mutations.js +0 -34
  42. package/dist/src/graphql/campaign/queries.d.ts +0 -9
  43. package/dist/src/graphql/campaign/queries.js +0 -412
  44. package/dist/src/graphql/cashbook/queries.d.ts +0 -2
  45. package/dist/src/graphql/cashbook/queries.js +0 -99
  46. package/dist/src/graphql/paymentV2/mutations.d.ts +0 -3
  47. package/dist/src/graphql/paymentV2/mutations.js +0 -54
  48. package/dist/src/graphql/paymentV2/queries.d.ts +0 -6
  49. package/dist/src/graphql/paymentV2/queries.js +0 -186
  50. package/dist/src/graphql/store/mutations.d.ts +0 -1
  51. package/dist/src/graphql/store/mutations.js +0 -29
  52. package/dist/src/graphql/store/queries.d.ts +0 -1
  53. package/dist/src/graphql/store/queries.js +0 -29
  54. package/dist/src/lib/accounting/index.d.ts +0 -5
  55. package/dist/src/lib/accounting/index.js +0 -32
  56. package/dist/src/lib/campaign/index.d.ts +0 -20
  57. package/dist/src/lib/campaign/index.js +0 -213
  58. package/dist/src/lib/cashbook/index.d.ts +0 -6
  59. package/dist/src/lib/cashbook/index.js +0 -56
  60. package/dist/src/lib/comhub/index.d.ts +0 -6
  61. package/dist/src/lib/comhub/index.js +0 -50
  62. package/dist/src/lib/deepLinkVietQr/index.d.ts +0 -6
  63. package/dist/src/lib/deepLinkVietQr/index.js +0 -45
  64. package/dist/src/lib/getImage/index.d.ts +0 -4
  65. package/dist/src/lib/getImage/index.js +0 -10
  66. package/dist/src/lib/image/index.d.ts +0 -7
  67. package/dist/src/lib/image/index.js +0 -49
  68. package/dist/src/lib/omnigateway/index.d.ts +0 -7
  69. package/dist/src/lib/omnigateway/index.js +0 -58
  70. package/dist/src/lib/paymentV2/index.d.ts +0 -13
  71. package/dist/src/lib/paymentV2/index.js +0 -163
  72. package/dist/src/lib/portal/index.d.ts +0 -21
  73. package/dist/src/lib/portal/index.js +0 -225
  74. package/dist/src/lib/store/index.d.ts +0 -30
  75. package/dist/src/lib/store/index.js +0 -74
  76. package/dist/src/lib/token/index.d.ts +0 -5
  77. package/dist/src/lib/token/index.js +0 -32
  78. package/dist/src/lib/upload/index.d.ts +0 -5
  79. package/dist/src/lib/upload/index.js +0 -35
  80. package/dist/src/lib/warehouseV2/index.d.ts +0 -13
  81. package/dist/src/lib/warehouseV2/index.js +0 -54
  82. package/dist/src/lib/zca/index.d.ts +0 -12
  83. package/dist/src/lib/zca/index.js +0 -41
  84. package/dist/src/types/campaign.d.ts +0 -14
  85. package/dist/src/types/campaign.js +0 -2
  86. package/dist/src/types/invoice.d.ts +0 -13
  87. package/dist/src/types/invoice.js +0 -2
  88. package/dist/src/types/store.d.ts +0 -158
  89. package/dist/src/types/store.js +0 -3
  90. package/dist/src/utils/validatePhoneNumber.d.ts +0 -1
  91. package/dist/src/utils/validatePhoneNumber.js +0 -20
@@ -2,36 +2,36 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ADD_CUSTOMER_TO_VOUCHER = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.ADD_CUSTOMER_TO_VOUCHER = (0, graphql_tag_1.gql) `
6
- mutation AddCustomerToVoucher(
7
- $partyId: String!
8
- $userId: String!
9
- $voucherCode: String!
10
- ) {
11
- addCustomerToVoucher(
12
- partyId: $partyId
13
- userId: $userId
14
- voucherCode: $voucherCode
15
- ) {
16
- campaignActionId
17
- campaignId
18
- partyId
19
- voucherCode
20
- voucherType
21
- status
22
- discountAmount
23
- discountPercent
24
- usageLimitPerVoucher
25
- maximumDiscount
26
- numberOfTimeUsed
27
- id
28
- createdStamp
29
- updatedStamp
30
- updatedBy
31
- createdBy
32
- isBirthday
33
- customerId
34
- scope
35
- }
36
- }
5
+ exports.ADD_CUSTOMER_TO_VOUCHER = (0, graphql_tag_1.gql) `
6
+ mutation AddCustomerToVoucher(
7
+ $partyId: String!
8
+ $userId: String!
9
+ $voucherCode: String!
10
+ ) {
11
+ addCustomerToVoucher(
12
+ partyId: $partyId
13
+ userId: $userId
14
+ voucherCode: $voucherCode
15
+ ) {
16
+ campaignActionId
17
+ campaignId
18
+ partyId
19
+ voucherCode
20
+ voucherType
21
+ status
22
+ discountAmount
23
+ discountPercent
24
+ usageLimitPerVoucher
25
+ maximumDiscount
26
+ numberOfTimeUsed
27
+ id
28
+ createdStamp
29
+ updatedStamp
30
+ updatedBy
31
+ createdBy
32
+ isBirthday
33
+ customerId
34
+ scope
35
+ }
36
+ }
37
37
  `;
@@ -2,44 +2,44 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = exports.GET_NUMBER_OF_TICKET_EVALUATION = exports.GET_URL_EVALUATION = exports.GET_AVERAGE_RATING = exports.GET_VOUCHERS = exports.SUGGEST_VOUCHER = exports.GET_CAMPAIGN_ACTION_BY_ID = exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = (0, graphql_tag_1.gql) `
6
- query SearchProductQuantityPromotionAction(
7
- $productId: String!
8
- $partyId: String!
9
- $storeChannel: String!
10
- ) {
11
- searchProductQuantityPromotionAction(
12
- productId: $productId
13
- partyId: $partyId
14
- storeChannel: $storeChannel
15
- )
16
- }
5
+ exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = (0, graphql_tag_1.gql) `
6
+ query SearchProductQuantityPromotionAction(
7
+ $productId: String!
8
+ $partyId: String!
9
+ $storeChannel: String!
10
+ ) {
11
+ searchProductQuantityPromotionAction(
12
+ productId: $productId
13
+ partyId: $partyId
14
+ storeChannel: $storeChannel
15
+ )
16
+ }
17
17
  `;
18
- exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
19
- query GetCampaignActionById($id: String!) {
20
- getCampaignActionById(id: $id) {
21
- name
22
- description
23
- partyId
24
- type
25
- viewTemplateId
26
- urlTemplate
27
- shortCode
28
- uriPattern
29
- parameterPattern
30
- status
31
- extendDaysForHeadReview
32
- priorityLevel
33
- positionConnectionType
34
- baseCommissionPercent
35
- targetType
36
- id
37
- createdStamp
38
- updatedStamp
39
- updatedBy
40
- createdBy
41
- }
42
- }
18
+ exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
19
+ query GetCampaignActionById($id: String!) {
20
+ getCampaignActionById(id: $id) {
21
+ name
22
+ description
23
+ partyId
24
+ type
25
+ viewTemplateId
26
+ urlTemplate
27
+ shortCode
28
+ uriPattern
29
+ parameterPattern
30
+ status
31
+ extendDaysForHeadReview
32
+ priorityLevel
33
+ positionConnectionType
34
+ baseCommissionPercent
35
+ targetType
36
+ id
37
+ createdStamp
38
+ updatedStamp
39
+ updatedBy
40
+ createdBy
41
+ }
42
+ }
43
43
  `;
44
44
  // export const SUGGEST_VOUCHER = gql`
45
45
  // query SuggestVoucher (
@@ -78,173 +78,202 @@ 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
- exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
85
- query SuggestVoucher($partyId: String, $excludeExpired: Boolean, $customerId: String, $scope: String, $isNewCustomer: Boolean, $scopeIgnore: String) {
86
- suggestVoucher(
87
- searchVoucherRequest: {
88
- partyId: $partyId
89
- excludeExpired: $excludeExpired
90
- customerId: $customerId
91
- scope: $scope
92
- isNewCustomer: $isNewCustomer
93
- scopeIgnore: $scopeIgnore
94
- }
95
- ) {
96
- total
97
- totalPages
98
- totalElements
99
- last
100
- first
101
- number
102
- numberOfElements
103
- size
104
- empty
105
- content {
106
- campaignActionId
107
- campaignId
108
- partyId
109
- voucherCode
110
- voucherType
111
- status
112
- discountAmount
113
- discountPercent
114
- description
115
- usageLimitPerVoucher
116
- maximumDiscount
117
- numberOfTimeUsed
118
- id
119
- createdStamp
120
- updatedStamp
121
- updatedBy
122
- createdBy
123
- isBirthday
124
- customerId
125
- scope
126
- affiliateId
127
- maximumSpend
128
- minimumSpend
129
- maximumDiscountType
130
- }
131
- }
132
- }
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
+ ) {
93
+ suggestVoucher(
94
+ searchVoucherRequest: {
95
+ partyId: $partyId
96
+ excludeExpired: $excludeExpired
97
+ customerId: $customerId
98
+ scope: $scope
99
+ isNewCustomer: $isNewCustomer
100
+ scopeIgnore: $scopeIgnore
101
+ }
102
+ ) {
103
+ total
104
+ totalPages
105
+ totalElements
106
+ last
107
+ first
108
+ number
109
+ numberOfElements
110
+ size
111
+ empty
112
+ content {
113
+ campaignActionId
114
+ campaignId
115
+ partyId
116
+ voucherCode
117
+ voucherType
118
+ status
119
+ discountAmount
120
+ discountPercent
121
+ description
122
+ usageLimitPerVoucher
123
+ maximumDiscount
124
+ numberOfTimeUsed
125
+ id
126
+ createdStamp
127
+ updatedStamp
128
+ updatedBy
129
+ createdBy
130
+ isBirthday
131
+ customerId
132
+ scope
133
+ affiliateId
134
+ maximumSpend
135
+ minimumSpend
136
+ maximumDiscountType
137
+ }
138
+ }
139
+ }
133
140
  `;
134
- exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
135
- query SearchVoucher(
136
- $partyId: String
137
- $campaignId: String
138
- $campaignActionId: String
139
- $campaignActionType: String
140
- $customerId: String
141
- $pageNumber: Int
142
- $pageSize: Int
143
- ) {
144
- searchVoucher(
145
- searchVoucherRequest: {
146
- partyId: $partyId
147
- campaignId: $campaignId
148
- campaignActionId: $campaignActionId
149
- campaignActionType: $campaignActionType
150
- customerId: $customerId
151
- pageNumber: $pageNumber
152
- pageSize: $pageSize
153
- }
154
- ) {
155
- total
156
- totalPages
157
- totalElements
158
- last
159
- first
160
- number
161
- numberOfElements
162
- size
163
- empty
164
- content {
165
- campaignActionId
166
- campaignId
167
- partyId
168
- voucherCode
169
- voucherType
170
- status
171
- discountAmount
172
- discountPercent
173
- usageLimitPerVoucher
174
- maximumDiscount
175
- numberOfTimeUsed
176
- id
177
- createdStamp
178
- updatedStamp
179
- updatedBy
180
- createdBy
181
- isBirthday
182
- customerId
183
- scope
184
- }
185
- }
186
- }
141
+ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
142
+ query SearchVoucher(
143
+ $partyId: String
144
+ $campaignId: String
145
+ $campaignActionId: String
146
+ $campaignActionType: String
147
+ $customerId: String
148
+ $pageNumber: Int
149
+ $pageSize: Int
150
+ ) {
151
+ searchVoucher(
152
+ searchVoucherRequest: {
153
+ partyId: $partyId
154
+ campaignId: $campaignId
155
+ campaignActionId: $campaignActionId
156
+ campaignActionType: $campaignActionType
157
+ customerId: $customerId
158
+ pageNumber: $pageNumber
159
+ pageSize: $pageSize
160
+ }
161
+ ) {
162
+ total
163
+ totalPages
164
+ totalElements
165
+ last
166
+ first
167
+ number
168
+ numberOfElements
169
+ size
170
+ empty
171
+ content {
172
+ campaignActionId
173
+ campaignId
174
+ partyId
175
+ voucherCode
176
+ voucherType
177
+ status
178
+ discountAmount
179
+ discountPercent
180
+ usageLimitPerVoucher
181
+ maximumDiscount
182
+ numberOfTimeUsed
183
+ id
184
+ createdStamp
185
+ updatedStamp
186
+ updatedBy
187
+ createdBy
188
+ isBirthday
189
+ customerId
190
+ scope
191
+ }
192
+ }
193
+ }
187
194
  `;
188
- exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
189
- query GetAverageRating($targetIds: [String]!, $customerId: String!, $evaluationType: String!, $orgId: String!) {
190
- getAverageRating(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId) {
191
- url
192
- targetId
193
- evaluationType
194
- averageRating
195
- haveEvaluation
196
- }
197
- }
195
+ exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
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
+ ) {
208
+ url
209
+ targetId
210
+ evaluationType
211
+ averageRating
212
+ haveEvaluation
213
+ }
214
+ }
198
215
  `;
199
- exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
200
- query GetUrlEvaluation($targetIds: [String]!, $customerId: String!, $evaluationType: String!, $orgId: String!) {
201
- getUrlEvaluation(targetIds: $targetIds, customerId: $customerId, evaluationType: $evaluationType, orgId: $orgId,) {
202
- url
203
- targetId
204
- evaluationType
205
- averageRating
206
- haveEvaluation
207
- }
208
- }
216
+ exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
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
+ ) {
229
+ url
230
+ targetId
231
+ evaluationType
232
+ averageRating
233
+ haveEvaluation
234
+ }
235
+ }
209
236
  `;
210
- exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
211
- query GetNumberOfTicketEvaluation($customerId: String!, $orgId: String!) {
212
- getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId,)
213
- }
237
+ exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
238
+ query GetNumberOfTicketEvaluation($customerId: String!, $orgId: String!) {
239
+ getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId)
240
+ }
214
241
  `;
215
- exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
216
- query SearchProductGiftPromotionResponse($partyId: String!, $productId: String!) {
217
- searchProductGiftPromotionResponse(
218
- parameterSearchProductGift: {
219
- partyId: $partyId
220
- productId: $productId
221
- }
222
- ) {
223
- total
224
- totalPages
225
- totalElements
226
- content {
227
- partyId
228
- campaignId
229
- campaignActionId
230
- campaignActionName
231
- startDate
232
- endDate
233
- productId
234
-
235
- productParentId
236
-
237
- quantityLimit
238
- newCustomer
239
- giftPromotions {
240
- fromQuantity
241
- toQuantity
242
- toProductId
243
- productName
244
- sku
245
- featureImage
246
- }
247
- }
248
- }
249
- }
242
+ exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
243
+ query SearchProductGiftPromotionResponse(
244
+ $parameterSearchProductGift: ParameterSearchProductGift
245
+ ) {
246
+ searchProductGiftPromotionResponse(
247
+ parameterSearchProductGift: $parameterSearchProductGift
248
+ ) {
249
+ total
250
+ totalPages
251
+ totalElements
252
+ content {
253
+ id
254
+ partyId
255
+ campaignId
256
+ campaignActionId
257
+ productId
258
+ productParentId
259
+ quantityLimit
260
+ giftPromotions {
261
+ fromQuantity
262
+ toProductId
263
+ toQuantity
264
+ productName
265
+ sku
266
+ featureImage
267
+ }
268
+ campaignActionName
269
+ startDate
270
+ endDate
271
+ newCustomer
272
+ createdStamp
273
+ updatedStamp
274
+ updatedBy
275
+ createdBy
276
+ }
277
+ }
278
+ }
250
279
  `;