@longvansoftware/service-js-client 1.15.8 → 1.15.9

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 (86) 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/campaign/mutations.d.ts +1 -0
  7. package/dist/src/graphql/campaign/mutations.js +34 -0
  8. package/dist/src/graphql/campaign/queries.d.ts +9 -0
  9. package/dist/src/graphql/campaign/queries.js +412 -0
  10. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  11. package/dist/src/graphql/cashbook/queries.js +99 -0
  12. package/dist/src/graphql/cloud/mutations.js +282 -282
  13. package/dist/src/graphql/cloud/queries.js +341 -341
  14. package/dist/src/graphql/computing/mutations.js +303 -303
  15. package/dist/src/graphql/computing/queries.js +548 -548
  16. package/dist/src/graphql/crm/mutations.d.ts +1 -0
  17. package/dist/src/graphql/crm/mutations.js +392 -375
  18. package/dist/src/graphql/crm/queries.d.ts +1 -0
  19. package/dist/src/graphql/crm/queries.js +359 -332
  20. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  21. package/dist/src/graphql/crm_camping/queries.js +198 -198
  22. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  23. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  24. package/dist/src/graphql/payment/mutations.js +45 -45
  25. package/dist/src/graphql/payment/queries.js +60 -60
  26. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  27. package/dist/src/graphql/paymentLV/queries.js +75 -75
  28. package/dist/src/graphql/paymentV2/mutations.d.ts +3 -0
  29. package/dist/src/graphql/paymentV2/mutations.js +54 -0
  30. package/dist/src/graphql/paymentV2/queries.d.ts +6 -0
  31. package/dist/src/graphql/paymentV2/queries.js +186 -0
  32. package/dist/src/graphql/product/queries.js +891 -891
  33. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  34. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  35. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  36. package/dist/src/graphql/resource_permission/queries.js +13 -13
  37. package/dist/src/graphql/service/mutations.js +228 -228
  38. package/dist/src/graphql/service/queries.js +128 -128
  39. package/dist/src/graphql/store/mutations.d.ts +1 -0
  40. package/dist/src/graphql/store/mutations.js +29 -0
  41. package/dist/src/graphql/store/queries.d.ts +1 -0
  42. package/dist/src/graphql/store/queries.js +29 -0
  43. package/dist/src/graphql/user/mutations.js +214 -214
  44. package/dist/src/graphql/user/queries.js +312 -312
  45. package/dist/src/lib/accounting/index.d.ts +5 -0
  46. package/dist/src/lib/accounting/index.js +32 -0
  47. package/dist/src/lib/campaign/index.d.ts +20 -0
  48. package/dist/src/lib/campaign/index.js +213 -0
  49. package/dist/src/lib/cashbook/index.d.ts +6 -0
  50. package/dist/src/lib/cashbook/index.js +56 -0
  51. package/dist/src/lib/comhub/index.d.ts +6 -0
  52. package/dist/src/lib/comhub/index.js +50 -0
  53. package/dist/src/lib/crm/index.d.ts +2 -0
  54. package/dist/src/lib/crm/index.js +40 -0
  55. package/dist/src/lib/deepLinkVietQr/index.d.ts +6 -0
  56. package/dist/src/lib/deepLinkVietQr/index.js +45 -0
  57. package/dist/src/lib/getImage/index.d.ts +4 -0
  58. package/dist/src/lib/getImage/index.js +10 -0
  59. package/dist/src/lib/image/index.d.ts +7 -0
  60. package/dist/src/lib/image/index.js +49 -0
  61. package/dist/src/lib/omnigateway/index.d.ts +7 -0
  62. package/dist/src/lib/omnigateway/index.js +58 -0
  63. package/dist/src/lib/paymentV2/index.d.ts +13 -0
  64. package/dist/src/lib/paymentV2/index.js +163 -0
  65. package/dist/src/lib/portal/index.d.ts +21 -0
  66. package/dist/src/lib/portal/index.js +225 -0
  67. package/dist/src/lib/serviceSDK.js +12 -12
  68. package/dist/src/lib/store/index.d.ts +30 -0
  69. package/dist/src/lib/store/index.js +74 -0
  70. package/dist/src/lib/token/index.d.ts +5 -0
  71. package/dist/src/lib/token/index.js +32 -0
  72. package/dist/src/lib/upload/index.d.ts +5 -0
  73. package/dist/src/lib/upload/index.js +35 -0
  74. package/dist/src/lib/warehouseV2/index.d.ts +13 -0
  75. package/dist/src/lib/warehouseV2/index.js +54 -0
  76. package/dist/src/lib/zca/index.d.ts +12 -0
  77. package/dist/src/lib/zca/index.js +41 -0
  78. package/dist/src/types/campaign.d.ts +14 -0
  79. package/dist/src/types/campaign.js +2 -0
  80. package/dist/src/types/invoice.d.ts +13 -0
  81. package/dist/src/types/invoice.js +2 -0
  82. package/dist/src/types/store.d.ts +158 -0
  83. package/dist/src/types/store.js +3 -0
  84. package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
  85. package/dist/src/utils/validatePhoneNumber.js +20 -0
  86. package/package.json +44 -43
@@ -2,358 +2,358 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM = exports.ADD_TO_CART = exports.UPDATE_QUANTITY_V2 = exports.CREATE_ORDER = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.CREATE_ORDER = (0, graphql_tag_1.gql) `
6
- mutation CreateOrder($input: CreateOrderInput!) {
7
- createOrder(input: $input) {
8
- cancelReason
9
- currencyCode
10
- currentSubtotalPrice {
11
- amount
12
- currencyCode
13
- }
14
- currentTotalDuties {
15
- amount
16
- currencyCode
17
- }
18
- currentTotalPrice {
19
- amount
20
- currencyCode
21
- }
22
- currentTotalTax {
23
- amount
24
- currencyCode
25
- }
26
- edited
27
- financialStatus
28
- fulfillmentStatus
29
- orderStatus
30
- id
31
- partnerId
32
- ownerName
33
- ownerEmail
34
- ownerPhone
35
- orderNumber
36
- originalTotalDuties {
37
- amount
38
- currencyCode
39
- }
40
- originalTotalPrice {
41
- amount
42
- currencyCode
43
- }
44
- shippingAddress {
45
- address1
46
- address2
47
- city
48
- company
49
- country
50
- countryCode
51
- firstName
52
- formattedArea
53
- id
54
- lastName
55
- latitude
56
- longitude
57
- name
58
- phone
59
- province
60
- provinceCode
61
- zip
62
- }
63
- subtotalPrice {
64
- amount
65
- currencyCode
66
- }
67
- totalPrice {
68
- amount
69
- currencyCode
70
- }
71
- totalRefunded {
72
- amount
73
- currencyCode
74
- }
75
- totalShippingPrice {
76
- amount
77
- currencyCode
78
- }
79
- totalTax {
80
- amount
81
- currencyCode
82
- }
83
- discountTotalPrice {
84
- amount
85
- currencyCode
86
- }
87
- cod {
88
- amount
89
- currencyCode
90
- }
91
- rawData
92
- orderId
93
- note
94
- pending
95
- checkCommodities
96
- shipmentNote
97
- shopId
98
- facilityId
99
- orderType
100
- shippingServiceId
101
- carrierId
102
- fromOrderId
103
- externalCode
104
- createdAt
105
- createdStamp
106
- canceledAt
107
- updatedAt
108
- approvedAt
109
- processedAt
110
- completedAt
111
- createdBy
112
- saleName
113
- salePartyId
114
- ownerPartyId
115
- customerLocale
116
- orderParentId
117
- totalVAT {
118
- amount
119
- currencyCode
120
- }
121
- shopName
122
- version
123
- discountApplications {
124
- allocationMethod
125
- targetSelection
126
- targetType
127
- title
128
- value {
129
- amount
130
- currencyCode
131
- }
132
- }
133
- }
134
- }
5
+ exports.CREATE_ORDER = (0, graphql_tag_1.gql) `
6
+ mutation CreateOrder($input: CreateOrderInput!) {
7
+ createOrder(input: $input) {
8
+ cancelReason
9
+ currencyCode
10
+ currentSubtotalPrice {
11
+ amount
12
+ currencyCode
13
+ }
14
+ currentTotalDuties {
15
+ amount
16
+ currencyCode
17
+ }
18
+ currentTotalPrice {
19
+ amount
20
+ currencyCode
21
+ }
22
+ currentTotalTax {
23
+ amount
24
+ currencyCode
25
+ }
26
+ edited
27
+ financialStatus
28
+ fulfillmentStatus
29
+ orderStatus
30
+ id
31
+ partnerId
32
+ ownerName
33
+ ownerEmail
34
+ ownerPhone
35
+ orderNumber
36
+ originalTotalDuties {
37
+ amount
38
+ currencyCode
39
+ }
40
+ originalTotalPrice {
41
+ amount
42
+ currencyCode
43
+ }
44
+ shippingAddress {
45
+ address1
46
+ address2
47
+ city
48
+ company
49
+ country
50
+ countryCode
51
+ firstName
52
+ formattedArea
53
+ id
54
+ lastName
55
+ latitude
56
+ longitude
57
+ name
58
+ phone
59
+ province
60
+ provinceCode
61
+ zip
62
+ }
63
+ subtotalPrice {
64
+ amount
65
+ currencyCode
66
+ }
67
+ totalPrice {
68
+ amount
69
+ currencyCode
70
+ }
71
+ totalRefunded {
72
+ amount
73
+ currencyCode
74
+ }
75
+ totalShippingPrice {
76
+ amount
77
+ currencyCode
78
+ }
79
+ totalTax {
80
+ amount
81
+ currencyCode
82
+ }
83
+ discountTotalPrice {
84
+ amount
85
+ currencyCode
86
+ }
87
+ cod {
88
+ amount
89
+ currencyCode
90
+ }
91
+ rawData
92
+ orderId
93
+ note
94
+ pending
95
+ checkCommodities
96
+ shipmentNote
97
+ shopId
98
+ facilityId
99
+ orderType
100
+ shippingServiceId
101
+ carrierId
102
+ fromOrderId
103
+ externalCode
104
+ createdAt
105
+ createdStamp
106
+ canceledAt
107
+ updatedAt
108
+ approvedAt
109
+ processedAt
110
+ completedAt
111
+ createdBy
112
+ saleName
113
+ salePartyId
114
+ ownerPartyId
115
+ customerLocale
116
+ orderParentId
117
+ totalVAT {
118
+ amount
119
+ currencyCode
120
+ }
121
+ shopName
122
+ version
123
+ discountApplications {
124
+ allocationMethod
125
+ targetSelection
126
+ targetType
127
+ title
128
+ value {
129
+ amount
130
+ currencyCode
131
+ }
132
+ }
133
+ }
134
+ }
135
135
  `;
136
- exports.UPDATE_QUANTITY_V2 = (0, graphql_tag_1.gql) `
137
- mutation UpdateQuantityV2(
138
- $partnerId: String!
139
- $orderId: String!
140
- $updateItemInputs: [UpdateItemInput]!
141
- $updateBy: String!
142
- ) {
143
- updateQuantityV2(
144
- partnerId: $partnerId
145
- orderId: $orderId
146
- updateItemInputs: $updateItemInputs
147
- updateBy: $updateBy
148
- ) {
149
- cancelReason
150
- currencyCode
151
- currentSubtotalPrice {
152
- amount
153
- currencyCode
154
- }
155
- currentTotalDuties {
156
- amount
157
- currencyCode
158
- }
159
- currentTotalPrice {
160
- amount
161
- currencyCode
162
- }
163
- currentTotalTax {
164
- amount
165
- currencyCode
166
- }
167
- edited
168
- financialStatus
169
- fulfillmentStatus
170
- orderStatus
171
- id
172
- partnerId
173
- ownerName
174
- ownerEmail
175
- ownerPhone
176
- orderNumber
177
- originalTotalDuties {
178
- amount
179
- currencyCode
180
- }
181
- originalTotalPrice {
182
- amount
183
- currencyCode
184
- }
185
- shippingAddress {
186
- address1
187
- address2
188
- city
189
- company
190
- country
191
- countryCode
192
- firstName
193
- formattedArea
194
- id
195
- lastName
196
- latitude
197
- longitude
198
- name
199
- phone
200
- province
201
- provinceCode
202
- zip
203
- }
204
- subtotalPrice {
205
- amount
206
- currencyCode
207
- }
208
- totalPrice {
209
- amount
210
- currencyCode
211
- }
212
- totalRefunded {
213
- amount
214
- currencyCode
215
- }
216
- totalShippingPrice {
217
- amount
218
- currencyCode
219
- }
220
- totalTax {
221
- amount
222
- currencyCode
223
- }
224
- discountTotalPrice {
225
- amount
226
- currencyCode
227
- }
228
- cod {
229
- amount
230
- currencyCode
231
- }
232
- rawData
233
- orderId
234
- note
235
- pending
236
- checkCommodities
237
- shipmentNote
238
- shopId
239
- facilityId
240
- orderType
241
- shippingServiceId
242
- carrierId
243
- fromOrderId
244
- externalCode
245
- createdAt
246
- createdStamp
247
- canceledAt
248
- updatedAt
249
- approvedAt
250
- processedAt
251
- completedAt
252
- createdBy
253
- saleName
254
- salePartyId
255
- ownerPartyId
256
- customerLocale
257
- orderParentId
258
- totalVAT {
259
- amount
260
- currencyCode
261
- }
262
- shopName
263
- version
264
- discountApplications {
265
- allocationMethod
266
- targetSelection
267
- targetType
268
- title
269
- }
270
- }
271
- }
136
+ exports.UPDATE_QUANTITY_V2 = (0, graphql_tag_1.gql) `
137
+ mutation UpdateQuantityV2(
138
+ $partnerId: String!
139
+ $orderId: String!
140
+ $updateItemInputs: [UpdateItemInput]!
141
+ $updateBy: String!
142
+ ) {
143
+ updateQuantityV2(
144
+ partnerId: $partnerId
145
+ orderId: $orderId
146
+ updateItemInputs: $updateItemInputs
147
+ updateBy: $updateBy
148
+ ) {
149
+ cancelReason
150
+ currencyCode
151
+ currentSubtotalPrice {
152
+ amount
153
+ currencyCode
154
+ }
155
+ currentTotalDuties {
156
+ amount
157
+ currencyCode
158
+ }
159
+ currentTotalPrice {
160
+ amount
161
+ currencyCode
162
+ }
163
+ currentTotalTax {
164
+ amount
165
+ currencyCode
166
+ }
167
+ edited
168
+ financialStatus
169
+ fulfillmentStatus
170
+ orderStatus
171
+ id
172
+ partnerId
173
+ ownerName
174
+ ownerEmail
175
+ ownerPhone
176
+ orderNumber
177
+ originalTotalDuties {
178
+ amount
179
+ currencyCode
180
+ }
181
+ originalTotalPrice {
182
+ amount
183
+ currencyCode
184
+ }
185
+ shippingAddress {
186
+ address1
187
+ address2
188
+ city
189
+ company
190
+ country
191
+ countryCode
192
+ firstName
193
+ formattedArea
194
+ id
195
+ lastName
196
+ latitude
197
+ longitude
198
+ name
199
+ phone
200
+ province
201
+ provinceCode
202
+ zip
203
+ }
204
+ subtotalPrice {
205
+ amount
206
+ currencyCode
207
+ }
208
+ totalPrice {
209
+ amount
210
+ currencyCode
211
+ }
212
+ totalRefunded {
213
+ amount
214
+ currencyCode
215
+ }
216
+ totalShippingPrice {
217
+ amount
218
+ currencyCode
219
+ }
220
+ totalTax {
221
+ amount
222
+ currencyCode
223
+ }
224
+ discountTotalPrice {
225
+ amount
226
+ currencyCode
227
+ }
228
+ cod {
229
+ amount
230
+ currencyCode
231
+ }
232
+ rawData
233
+ orderId
234
+ note
235
+ pending
236
+ checkCommodities
237
+ shipmentNote
238
+ shopId
239
+ facilityId
240
+ orderType
241
+ shippingServiceId
242
+ carrierId
243
+ fromOrderId
244
+ externalCode
245
+ createdAt
246
+ createdStamp
247
+ canceledAt
248
+ updatedAt
249
+ approvedAt
250
+ processedAt
251
+ completedAt
252
+ createdBy
253
+ saleName
254
+ salePartyId
255
+ ownerPartyId
256
+ customerLocale
257
+ orderParentId
258
+ totalVAT {
259
+ amount
260
+ currencyCode
261
+ }
262
+ shopName
263
+ version
264
+ discountApplications {
265
+ allocationMethod
266
+ targetSelection
267
+ targetType
268
+ title
269
+ }
270
+ }
271
+ }
272
272
  `;
273
- exports.ADD_TO_CART = (0, graphql_tag_1.gql) `
274
- mutation AddToCart($serviceId: String!, $actorId: String!, $cartId: String) {
275
- addToCart(serviceId: $serviceId, actorId: $actorId, cartId: $cartId) {
276
- order {
277
- financialStatus
278
- orderStatus
279
- ownerName
280
- ownerEmail
281
- ownerPhone
282
- ownerPartyId
283
- orderId
284
- id
285
- createdAt
286
- currentTotalPrice {
287
- amount
288
- currencyCode
289
- }
290
- createdStamp
291
- }
292
- lineItems {
293
- orderLineItem {
294
- unitType
295
- customAttributes {
296
- key
297
- value
298
- }
299
- id
300
- orderItemId
301
- quantity
302
- totalVAT {
303
- amount
304
- currencyCode
305
- }
306
- variant {
307
- id
308
- price {
309
- amount
310
- currencyCode
311
- }
312
- product {
313
- id
314
- title
315
- }
316
- title
317
- unitPrice {
318
- amount
319
- currencyCode
320
- }
321
- }
322
- productOptions {
323
- idOption
324
- name
325
- value
326
- title
327
- }
328
- resourceItems {
329
- name
330
- quantity
331
- unit
332
- productId
333
- }
334
- resourceConfigs {
335
- name
336
- quantity
337
- unit
338
- productId
339
- }
340
- }
341
- }
342
- }
343
- }
273
+ exports.ADD_TO_CART = (0, graphql_tag_1.gql) `
274
+ mutation AddToCart($serviceId: String!, $actorId: String!, $cartId: String) {
275
+ addToCart(serviceId: $serviceId, actorId: $actorId, cartId: $cartId) {
276
+ order {
277
+ financialStatus
278
+ orderStatus
279
+ ownerName
280
+ ownerEmail
281
+ ownerPhone
282
+ ownerPartyId
283
+ orderId
284
+ id
285
+ createdAt
286
+ currentTotalPrice {
287
+ amount
288
+ currencyCode
289
+ }
290
+ createdStamp
291
+ }
292
+ lineItems {
293
+ orderLineItem {
294
+ unitType
295
+ customAttributes {
296
+ key
297
+ value
298
+ }
299
+ id
300
+ orderItemId
301
+ quantity
302
+ totalVAT {
303
+ amount
304
+ currencyCode
305
+ }
306
+ variant {
307
+ id
308
+ price {
309
+ amount
310
+ currencyCode
311
+ }
312
+ product {
313
+ id
314
+ title
315
+ }
316
+ title
317
+ unitPrice {
318
+ amount
319
+ currencyCode
320
+ }
321
+ }
322
+ productOptions {
323
+ idOption
324
+ name
325
+ value
326
+ title
327
+ }
328
+ resourceItems {
329
+ name
330
+ quantity
331
+ unit
332
+ productId
333
+ }
334
+ resourceConfigs {
335
+ name
336
+ quantity
337
+ unit
338
+ productId
339
+ }
340
+ }
341
+ }
342
+ }
343
+ }
344
344
  `;
345
- exports.REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM = (0, graphql_tag_1.gql) `
346
- mutation RemoveProductOptionOrderLineItem(
347
- $partnerId: String!
348
- $orderLineItemId: String!
349
- $optionId: String!
350
- $updateBy: String!
351
- ) {
352
- removeProductOptionOrderLineItem(
353
- partnerId: $partnerId
354
- orderLineItemId: $orderLineItemId
355
- optionId: $optionId
356
- updateBy: $updateBy
357
- )
358
- }
345
+ exports.REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM = (0, graphql_tag_1.gql) `
346
+ mutation RemoveProductOptionOrderLineItem(
347
+ $partnerId: String!
348
+ $orderLineItemId: String!
349
+ $optionId: String!
350
+ $updateBy: String!
351
+ ) {
352
+ removeProductOptionOrderLineItem(
353
+ partnerId: $partnerId
354
+ orderLineItemId: $orderLineItemId
355
+ optionId: $optionId
356
+ updateBy: $updateBy
357
+ )
358
+ }
359
359
  `;