@longvansoftware/storefront-js-client 4.6.2 → 4.6.3

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 (74) hide show
  1. package/dist/src/graphql/accounting_service/mutations.d.ts +2 -0
  2. package/dist/src/graphql/accounting_service/mutations.js +100 -0
  3. package/dist/src/graphql/accounting_service/queries.d.ts +1 -0
  4. package/dist/src/graphql/accounting_service/queries.js +62 -0
  5. package/dist/src/graphql/content_api/queries.d.ts +2 -0
  6. package/dist/src/graphql/content_api/queries.js +23 -0
  7. package/dist/src/graphql/crm_camping/mutations.d.ts +1 -0
  8. package/dist/src/graphql/crm_camping/mutations.js +37 -0
  9. package/dist/src/graphql/crm_camping/queries.d.ts +14 -0
  10. package/dist/src/graphql/crm_camping/queries.js +420 -0
  11. package/dist/src/graphql/orderGraphQL/mutations.d.ts +10 -0
  12. package/dist/src/graphql/orderGraphQL/mutations.js +410 -0
  13. package/dist/src/graphql/orderGraphQL/queries.d.ts +10 -0
  14. package/dist/src/graphql/orderGraphQL/queries.js +480 -0
  15. package/dist/src/graphql/paymentLV/mutations.d.ts +2 -0
  16. package/dist/src/graphql/paymentLV/mutations.js +31 -0
  17. package/dist/src/graphql/paymentLV/queries.d.ts +5 -0
  18. package/dist/src/graphql/paymentLV/queries.js +135 -0
  19. package/dist/src/graphql/product/queries.d.ts +31 -29
  20. package/dist/src/graphql/product/queries.js +20 -10
  21. package/dist/src/graphql/quicklab_service/mutations.d.ts +8 -0
  22. package/dist/src/graphql/quicklab_service/mutations.js +171 -0
  23. package/dist/src/graphql/quicklab_service/queries.d.ts +7 -0
  24. package/dist/src/graphql/quicklab_service/queries.js +131 -0
  25. package/dist/src/graphql/remote_access_service/mutations.d.ts +7 -0
  26. package/dist/src/graphql/remote_access_service/mutations.js +89 -0
  27. package/dist/src/graphql/remote_access_service/queries.d.ts +2 -0
  28. package/dist/src/graphql/remote_access_service/queries.js +34 -0
  29. package/dist/src/graphql/resource_permission/mutations.d.ts +2 -0
  30. package/dist/src/graphql/resource_permission/mutations.js +65 -0
  31. package/dist/src/graphql/resource_permission/queries.d.ts +1 -0
  32. package/dist/src/graphql/resource_permission/queries.js +18 -0
  33. package/dist/src/graphql/storage_s3/mutations.d.ts +27 -0
  34. package/dist/src/graphql/storage_s3/mutations.js +603 -0
  35. package/dist/src/graphql/storage_s3/queries.d.ts +12 -0
  36. package/dist/src/graphql/storage_s3/queries.js +129 -0
  37. package/dist/src/lib/accounting_service/index.d.ts +9 -0
  38. package/dist/src/lib/accounting_service/index.js +69 -0
  39. package/dist/src/lib/cloud_rest/index.d.ts +17 -0
  40. package/dist/src/lib/cloud_rest/index.js +101 -0
  41. package/dist/src/lib/content_api/index.d.ts +7 -0
  42. package/dist/src/lib/content_api/index.js +43 -0
  43. package/dist/src/lib/crm_camping/index.d.ts +21 -0
  44. package/dist/src/lib/crm_camping/index.js +302 -0
  45. package/dist/src/lib/dns/index.d.ts +7 -0
  46. package/dist/src/lib/{cloudService → dns}/index.js +16 -11
  47. package/dist/src/lib/orderGraphQL/index.d.ts +24 -0
  48. package/dist/src/lib/orderGraphQL/index.js +342 -0
  49. package/dist/src/lib/order_cloud_rest/index.d.ts +7 -0
  50. package/dist/src/lib/order_cloud_rest/index.js +39 -0
  51. package/dist/src/lib/paymentLV/index.d.ts +13 -0
  52. package/dist/src/lib/paymentLV/index.js +149 -0
  53. package/dist/src/lib/product/index.d.ts +1 -0
  54. package/dist/src/lib/product/index.js +18 -0
  55. package/dist/src/lib/quicklab_service/index.d.ts +19 -0
  56. package/dist/src/lib/quicklab_service/index.js +211 -0
  57. package/dist/src/lib/remote_access_service/index.d.ts +16 -0
  58. package/dist/src/lib/remote_access_service/index.js +181 -0
  59. package/dist/src/lib/resource_permission/index.d.ts +9 -0
  60. package/dist/src/lib/resource_permission/index.js +82 -0
  61. package/dist/src/lib/service.d.ts +14 -0
  62. package/dist/src/lib/service.js +101 -0
  63. package/dist/src/lib/storage_s3/index.d.ts +42 -0
  64. package/dist/src/lib/storage_s3/index.js +736 -0
  65. package/dist/src/types/remote_access_service.d.ts +12 -0
  66. package/dist/src/types/remote_access_service.js +2 -0
  67. package/dist/src/types/storage_s3.d.ts +10 -0
  68. package/dist/src/types/storage_s3.js +2 -0
  69. package/dist/src/utils/build-field-string.d.ts +1 -0
  70. package/dist/src/utils/build-field-string.js +16 -0
  71. package/package.json +3 -2
  72. package/dist/src/graphql/cloudService/queries.d.ts +0 -1
  73. package/dist/src/graphql/cloudService/queries.js +0 -71
  74. package/dist/src/lib/cloudService/index.d.ts +0 -5
@@ -0,0 +1,2 @@
1
+ export declare const DEPOSIT_WALLET: import("graphql").DocumentNode;
2
+ export declare const CONFIRM_DEPOSIT_WALLET: import("graphql").DocumentNode;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONFIRM_DEPOSIT_WALLET = exports.DEPOSIT_WALLET = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.DEPOSIT_WALLET = (0, graphql_tag_1.gql) `
6
+ mutation DepositWallet(
7
+ $partnerId: String!
8
+ $storeId: String!
9
+ $partyId: String!
10
+ $storeName: String
11
+ $amountDeposit: BigDecimal!
12
+ $amountPromotion: BigDecimal
13
+ $orderNote: String
14
+ $paymentMethodCode: String
15
+ $sourcePayment: String
16
+ $returnUrl: String
17
+ $createBy: String
18
+ ) {
19
+ depositWallet(
20
+ partnerId: $partnerId
21
+ partyId: $partyId
22
+ storeId: $storeId
23
+ storeName: $storeName
24
+ amountDeposit: $amountDeposit
25
+ amountPromotion: $amountPromotion
26
+ orderNote: $orderNote
27
+ paymentMethodCode: $paymentMethodCode
28
+ sourcePayment: $sourcePayment
29
+ returnUrl: $returnUrl
30
+ createBy: $createBy
31
+ ) {
32
+ order {
33
+ orderId
34
+ }
35
+ payment {
36
+ code
37
+ message
38
+ data
39
+ qrCodeUrl
40
+ deeplink
41
+ deeplinkMiniApp
42
+ invoiceId
43
+ orderId
44
+ paymentId
45
+ }
46
+ financialOrder {
47
+ partnerId
48
+ name
49
+ userId
50
+ totalAmount
51
+ type
52
+ transactionId
53
+ status
54
+ accountNumber
55
+ method
56
+ gateway
57
+ extOrderId
58
+ extTransactionId
59
+ transactionTime
60
+ description
61
+ source
62
+ level
63
+ }
64
+ }
65
+ }
66
+ `;
67
+ exports.CONFIRM_DEPOSIT_WALLET = (0, graphql_tag_1.gql) `
68
+ mutation ConfirmDepositWallet(
69
+ $partnerId: String!
70
+ $orderId: String!
71
+ $transactionId: String
72
+ $transactionTime: Long!
73
+ $createBy: String
74
+ ) {
75
+ confirmDepositWallet(
76
+ partnerId: $partnerId
77
+ orderId: $orderId
78
+ transactionId: $transactionId
79
+ transactionTime: $transactionTime
80
+ createBy: $createBy
81
+ ) {
82
+ partnerId
83
+ name
84
+ userId
85
+ totalAmount
86
+ type
87
+ transactionId
88
+ status
89
+ accountNumber
90
+ method
91
+ gateway
92
+ extOrderId
93
+ extTransactionId
94
+ transactionTime
95
+ description
96
+ source
97
+ level
98
+ }
99
+ }
100
+ `;
@@ -0,0 +1 @@
1
+ export declare const FINANCIAL_ACCOUNT_WALLET_INFO: import("graphql").DocumentNode;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FINANCIAL_ACCOUNT_WALLET_INFO = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.FINANCIAL_ACCOUNT_WALLET_INFO = (0, graphql_tag_1.gql) `
6
+ query FinancialAccountWalletInfo(
7
+ $partnerId: String!
8
+ $partyId: String
9
+ $showTransaction: Boolean!
10
+ ) {
11
+ financialAccountWalletInfo(
12
+ partnerId: $partnerId
13
+ partyId: $partyId
14
+ showTransaction: $showTransaction
15
+ ) {
16
+ financialAccount {
17
+ id
18
+ partyId
19
+ partnerId
20
+ type
21
+ description
22
+ glAccountNumber
23
+ created
24
+ updated
25
+ }
26
+ glAccount {
27
+ partnerId
28
+ accountNumber
29
+ owner
30
+ debit
31
+ credit
32
+ balance
33
+ type
34
+ parent
35
+ level
36
+ description
37
+ created
38
+ updated
39
+ deleteAble
40
+ }
41
+ transactions {
42
+ partnerId
43
+ name
44
+ userId
45
+ totalAmount
46
+ type
47
+ transactionId
48
+ status
49
+ accountNumber
50
+ method
51
+ gateway
52
+ extOrderId
53
+ extTransactionId
54
+ transactionTime
55
+ description
56
+ source
57
+ level
58
+ createdStamp
59
+ }
60
+ }
61
+ }
62
+ `;
@@ -0,0 +1,2 @@
1
+ import { DocumentNode } from "graphql";
2
+ export declare const GET_ARTICLE_RELATED_TO_PRODUCT: (fields?: string[]) => DocumentNode;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_ARTICLE_RELATED_TO_PRODUCT = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ const GET_ARTICLE_RELATED_TO_PRODUCT = (fields = []) => {
6
+ const fieldStr = fields.join("\n ");
7
+ const hasFields = fields.length > 0;
8
+ return (0, graphql_tag_1.gql) `
9
+ query getArticleRelatedToProduct(
10
+ $partnerId: String!
11
+ $productId: String!
12
+ ) {
13
+ getArticleRelatedToProduct(
14
+ partnerId: $partnerId
15
+ productId: $productId
16
+ )
17
+ {
18
+ ${hasFields ? `${fieldStr}` : ""}
19
+ }
20
+ }
21
+ `;
22
+ };
23
+ exports.GET_ARTICLE_RELATED_TO_PRODUCT = GET_ARTICLE_RELATED_TO_PRODUCT;
@@ -0,0 +1 @@
1
+ export declare const ADD_CUSTOMER_TO_VOUCHER: import("graphql").DocumentNode;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ADD_CUSTOMER_TO_VOUCHER = void 0;
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
+ }
37
+ `;
@@ -0,0 +1,14 @@
1
+ import { DocumentNode } from "graphql";
2
+ export declare const SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION: DocumentNode;
3
+ export declare const GET_CAMPAIGN_ACTION_BY_ID: DocumentNode;
4
+ export declare const GET_PRODUCT_DISCOUNT_BUY_WITH_DYNAMIC: (fields?: string[]) => DocumentNode;
5
+ export declare const SUGGEST_VOUCHER: DocumentNode;
6
+ export declare const GET_VOUCHERS: DocumentNode;
7
+ export declare const GET_AVERAGE_RATING: DocumentNode;
8
+ export declare const GET_URL_EVALUATION: DocumentNode;
9
+ export declare const GET_NUMBER_OF_TICKET_EVALUATION: DocumentNode;
10
+ export declare const SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE: DocumentNode;
11
+ export declare const GET_VOUCHERS_V2: DocumentNode;
12
+ export declare const SEARCH_CAMPAIGN: DocumentNode;
13
+ export declare const GET_CONDITION_BY_ORGID_CAMPAIGN_ACTIONIDS: DocumentNode;
14
+ export declare const GET_VOUCHERS_FOR_USER: (fields?: string[]) => DocumentNode;
@@ -0,0 +1,420 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_VOUCHERS_FOR_USER = exports.GET_CONDITION_BY_ORGID_CAMPAIGN_ACTIONIDS = exports.SEARCH_CAMPAIGN = exports.GET_VOUCHERS_V2 = 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_PRODUCT_DISCOUNT_BUY_WITH_DYNAMIC = exports.GET_CAMPAIGN_ACTION_BY_ID = exports.SEARCH_PRODUCT_QUANTITY_PROMOTION_ACTION = void 0;
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
+ }
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
+ }
43
+ `;
44
+ const GET_PRODUCT_DISCOUNT_BUY_WITH_DYNAMIC = (fields = []) => {
45
+ const fieldStr = fields.join('\n ');
46
+ const hasFields = fields.length > 0;
47
+ return (0, graphql_tag_1.gql) `
48
+ query GetProductDiscountBuyWith(
49
+ $partnerId: String!
50
+ $storeId: String!
51
+ $productId: String!
52
+ ) {
53
+ getProductDiscountBuyWith(
54
+ partnerId: $partnerId
55
+ storeId: $storeId
56
+ productId: $productId
57
+ ) {
58
+ ${hasFields ? `${fieldStr}` : ''}
59
+ }
60
+ }
61
+ `;
62
+ };
63
+ exports.GET_PRODUCT_DISCOUNT_BUY_WITH_DYNAMIC = GET_PRODUCT_DISCOUNT_BUY_WITH_DYNAMIC;
64
+ // export const SUGGEST_VOUCHER = gql`
65
+ // query SuggestVoucher (
66
+ // searchVoucherRequest: { partyId: String, customerId: String }
67
+ // ) {
68
+ // suggestVoucher(
69
+ // searchVoucherRequest: { partyId: $partyId, customerId: $customerId }
70
+ // ) {
71
+ // total
72
+ // totalPages
73
+ // totalElements
74
+ // last
75
+ // first
76
+ // number
77
+ // numberOfElements
78
+ // size
79
+ // empty
80
+ // content {
81
+ // campaignActionId
82
+ // campaignId
83
+ // partyId
84
+ // voucherCode
85
+ // voucherType
86
+ // status
87
+ // discountAmount
88
+ // discountPercent
89
+ // usageLimitPerVoucher
90
+ // maximumDiscount
91
+ // numberOfTimeUsed
92
+ // id
93
+ // createdStamp
94
+ // updatedStamp
95
+ // updatedBy
96
+ // createdBy
97
+ // isBirthday
98
+ // customerId
99
+ // scope
100
+ // }
101
+ // }
102
+ // }
103
+ // `;
104
+ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
105
+ query SuggestVoucher($searchVoucherRequest: SearchVoucherRequest) {
106
+ suggestVoucher(searchVoucherRequest: $searchVoucherRequest) {
107
+ total
108
+ totalPages
109
+ totalElements
110
+ last
111
+ first
112
+ number
113
+ numberOfElements
114
+ size
115
+ empty
116
+ content {
117
+ campaignActionId
118
+ campaignId
119
+ partyId
120
+ voucherCode
121
+ voucherType
122
+ status
123
+ discountAmount
124
+ discountPercent
125
+ description
126
+ usageLimitPerVoucher
127
+ maximumDiscount
128
+ numberOfTimeUsed
129
+ id
130
+ createdStamp
131
+ updatedStamp
132
+ updatedBy
133
+ createdBy
134
+ isBirthday
135
+ customerId
136
+ scope
137
+ affiliateId
138
+ maximumSpend
139
+ minimumSpend
140
+ maximumDiscountType
141
+ customAttribute
142
+ assignUserLimit
143
+ usageLimitType
144
+ }
145
+ }
146
+ }
147
+ `;
148
+ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
149
+ query SearchVoucher(
150
+ $partyId: String
151
+ $campaignId: String
152
+ $campaignActionId: String
153
+ $campaignActionType: String
154
+ $customerId: String
155
+ $pageNumber: Int
156
+ $pageSize: Int
157
+ ) {
158
+ searchVoucher(
159
+ searchVoucherRequest: {
160
+ partyId: $partyId
161
+ campaignId: $campaignId
162
+ campaignActionId: $campaignActionId
163
+ campaignActionType: $campaignActionType
164
+ customerId: $customerId
165
+ pageNumber: $pageNumber
166
+ pageSize: $pageSize
167
+ }
168
+ ) {
169
+ total
170
+ totalPages
171
+ totalElements
172
+ last
173
+ first
174
+ number
175
+ numberOfElements
176
+ size
177
+ empty
178
+ content {
179
+ campaignActionId
180
+ campaignId
181
+ partyId
182
+ voucherCode
183
+ voucherType
184
+ status
185
+ discountAmount
186
+ discountPercent
187
+ usageLimitPerVoucher
188
+ maximumDiscount
189
+ numberOfTimeUsed
190
+ id
191
+ createdStamp
192
+ updatedStamp
193
+ updatedBy
194
+ createdBy
195
+ isBirthday
196
+ customerId
197
+ scope
198
+ affiliateId
199
+ description
200
+ usageLimitType
201
+ maximumDiscountType
202
+ customAttribute
203
+ assignUserLimit
204
+ }
205
+ }
206
+ }
207
+ `;
208
+ exports.GET_AVERAGE_RATING = (0, graphql_tag_1.gql) `
209
+ query GetAverageRating(
210
+ $targetIds: [String]!
211
+ $customerId: String!
212
+ $evaluationType: String!
213
+ $orgId: String!
214
+ ) {
215
+ getAverageRating(
216
+ targetIds: $targetIds
217
+ customerId: $customerId
218
+ evaluationType: $evaluationType
219
+ orgId: $orgId
220
+ ) {
221
+ url
222
+ targetId
223
+ evaluationType
224
+ averageRating
225
+ haveEvaluation
226
+ }
227
+ }
228
+ `;
229
+ exports.GET_URL_EVALUATION = (0, graphql_tag_1.gql) `
230
+ query GetUrlEvaluation(
231
+ $targetIds: [String]!
232
+ $customerId: String!
233
+ $evaluationType: String!
234
+ $orgId: String!
235
+ ) {
236
+ getUrlEvaluation(
237
+ targetIds: $targetIds
238
+ customerId: $customerId
239
+ evaluationType: $evaluationType
240
+ orgId: $orgId
241
+ ) {
242
+ url
243
+ targetId
244
+ evaluationType
245
+ averageRating
246
+ haveEvaluation
247
+ }
248
+ }
249
+ `;
250
+ exports.GET_NUMBER_OF_TICKET_EVALUATION = (0, graphql_tag_1.gql) `
251
+ query GetNumberOfTicketEvaluation($customerId: String!, $orgId: String!) {
252
+ getNumberOfTicketEvaluation(customerId: $customerId, orgId: $orgId)
253
+ }
254
+ `;
255
+ exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
256
+ query SearchProductGiftPromotionResponse(
257
+ $parameterSearchProductGift: ParameterSearchProductGift
258
+ ) {
259
+ searchProductGiftPromotionResponse(
260
+ parameterSearchProductGift: $parameterSearchProductGift
261
+ ) {
262
+ content {
263
+ id
264
+ partyId
265
+ campaignId
266
+ campaignActionId
267
+ productId
268
+ productParentId
269
+ quantityLimit
270
+ giftPromotions {
271
+ fromQuantity
272
+ toProductId
273
+ toProductParentId
274
+ toQuantity
275
+ priceType
276
+ productName
277
+ sku
278
+ featureImage
279
+ unit
280
+ }
281
+ unit
282
+ campaignActionName
283
+ startDate
284
+ endDate
285
+ newCustomer
286
+ minimumSpend
287
+ createdStamp
288
+ updatedStamp
289
+ updatedBy
290
+ createdBy
291
+ }
292
+ total
293
+ totalPages
294
+ totalElements
295
+ last
296
+ first
297
+ number
298
+ numberOfElements
299
+ size
300
+ empty
301
+ sort {
302
+ sorted
303
+ unsorted
304
+ empty
305
+ }
306
+ }
307
+ }
308
+ `;
309
+ exports.GET_VOUCHERS_V2 = (0, graphql_tag_1.gql) `
310
+ query SearchVoucher($searchVoucherRequest: SearchVoucherRequest) {
311
+ searchVoucher(searchVoucherRequest: $searchVoucherRequest) {
312
+ total
313
+ totalPages
314
+ totalElements
315
+ last
316
+ first
317
+ number
318
+ numberOfElements
319
+ size
320
+ empty
321
+ content {
322
+ campaignActionId
323
+ campaignId
324
+ partyId
325
+ voucherCode
326
+ voucherType
327
+ status
328
+ discountAmount
329
+ discountPercent
330
+ usageLimitPerVoucher
331
+ maximumDiscount
332
+ numberOfTimeUsed
333
+ id
334
+ createdStamp
335
+ updatedStamp
336
+ updatedBy
337
+ createdBy
338
+ isBirthday
339
+ customerId
340
+ scope
341
+ affiliateId
342
+ description
343
+ usageLimitType
344
+ maximumDiscountType
345
+ customAttribute
346
+ assignUserLimit
347
+ }
348
+ }
349
+ }
350
+ `;
351
+ exports.SEARCH_CAMPAIGN = (0, graphql_tag_1.gql) `
352
+ query SearchCampaign($searchCampaignRequest: SearchCampaignRequest) {
353
+ searchCampaign(searchCampaignRequest: $searchCampaignRequest) {
354
+ content {
355
+ id
356
+ createdStamp
357
+ updatedStamp
358
+ updatedBy
359
+ createdBy
360
+ useForAll
361
+ description
362
+ partyId
363
+ name
364
+ type
365
+ domain
366
+ fromDate
367
+ toDate
368
+ status
369
+ }
370
+ total
371
+ totalPages
372
+ totalElements
373
+ last
374
+ first
375
+ number
376
+ numberOfElements
377
+ size
378
+ empty
379
+ sort {
380
+ sorted
381
+ unsorted
382
+ empty
383
+ }
384
+ }
385
+ }
386
+ `;
387
+ exports.GET_CONDITION_BY_ORGID_CAMPAIGN_ACTIONIDS = (0, graphql_tag_1.gql) `
388
+ query GetConditionByOrgIdCampaignActionIds(
389
+ $orgId: String!
390
+ $campaignActionIds: [String]!
391
+ ) {
392
+ getConditionByOrgIdCampaignActionIds(
393
+ orgId: $orgId
394
+ campaignActionIds: $campaignActionIds
395
+ ) {
396
+ partyId
397
+ campaignActionId
398
+ type
399
+ minimumSpend
400
+ maximumSpend
401
+ description
402
+ newCustomer
403
+ id
404
+ createdStamp
405
+ updatedStamp
406
+ updatedBy
407
+ createdBy
408
+ }
409
+ }
410
+ `;
411
+ const GET_VOUCHERS_FOR_USER = (fields = []) => {
412
+ const fieldStr = fields.join("\n ");
413
+ const hasFields = fields.length > 0;
414
+ return (0, graphql_tag_1.gql) `
415
+ query getVouchersForUser($voucherForUserRequest: VoucherForUserRequest) {
416
+ getVouchersForUser(voucherForUserRequest: $voucherForUserRequest) ${hasFields ? `{ ${fieldStr} }` : ""}
417
+ }
418
+ `;
419
+ };
420
+ exports.GET_VOUCHERS_FOR_USER = GET_VOUCHERS_FOR_USER;
@@ -0,0 +1,10 @@
1
+ import { DocumentNode } from "graphql";
2
+ export declare const CREATE_ORDER: DocumentNode;
3
+ export declare const UPDATE_QUANTITY_V2: DocumentNode;
4
+ export declare const ADD_TO_CART: DocumentNode;
5
+ export declare const REMOVE_PRODUCT_OPTION_ORDER_LINE_ITEM: DocumentNode;
6
+ export declare const ADD_ITEM_INTO_ORDER_BY_PRODUCT_JSON_RESOURCE: (fields?: string[]) => DocumentNode;
7
+ export declare const UPDATE_ORDER_LINE_ITEM_PARENT_ID: DocumentNode;
8
+ export declare const UPDATE_PRODUCT_OPTION_ORDERLINE_ITEM: DocumentNode;
9
+ export declare const APPLY_REFERRAL_CODE: DocumentNode;
10
+ export declare const REMOVE_REFERRAL_CODE: DocumentNode;