@longvansoftware/storefront-js-client 2.7.2 → 2.7.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.
@@ -2,306 +2,306 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
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
- }
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
264
  `;
265
- exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
266
- query SuggestVoucher($partyId: String, $excludeExpired: Boolean) {
267
- suggestVoucher(
268
- searchVoucherRequest: {
269
- partyId: $partyId
270
- excludeExpired: $excludeExpired
271
- }
272
- ) {
273
- total
274
- totalPages
275
- totalElements
276
- last
277
- first
278
- number
279
- numberOfElements
280
- size
281
- empty
282
- content {
283
- campaignActionId
284
- campaignId
285
- partyId
286
- voucherCode
287
- voucherType
288
- status
289
- discountAmount
290
- discountPercent
291
- usageLimitPerVoucher
292
- maximumDiscount
293
- numberOfTimeUsed
294
- id
295
- createdStamp
296
- updatedStamp
297
- updatedBy
298
- createdBy
299
- isBirthday
300
- customerId
301
- scope
302
- }
303
- }
304
- }
265
+ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
266
+ query SuggestVoucher($partyId: String, $excludeExpired: Boolean) {
267
+ suggestVoucher(
268
+ searchVoucherRequest: {
269
+ partyId: $partyId
270
+ excludeExpired: $excludeExpired
271
+ }
272
+ ) {
273
+ total
274
+ totalPages
275
+ totalElements
276
+ last
277
+ first
278
+ number
279
+ numberOfElements
280
+ size
281
+ empty
282
+ content {
283
+ campaignActionId
284
+ campaignId
285
+ partyId
286
+ voucherCode
287
+ voucherType
288
+ status
289
+ discountAmount
290
+ discountPercent
291
+ usageLimitPerVoucher
292
+ maximumDiscount
293
+ numberOfTimeUsed
294
+ id
295
+ createdStamp
296
+ updatedStamp
297
+ updatedBy
298
+ createdBy
299
+ isBirthday
300
+ customerId
301
+ scope
302
+ }
303
+ }
304
+ }
305
305
  `;
306
306
  // query GetCampaignActionById {
307
307
  // getCampaignActionById(id: "20.1273.888") {
@@ -327,79 +327,79 @@ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
327
327
  // createdBy
328
328
  // }
329
329
  // }
330
- exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
331
- query GetCampaignActionById($id: String!) {
332
- getCampaignActionById(id: $id) {
333
- name
334
- description
335
- partyId
336
- type
337
- viewTemplateId
338
- urlTemplate
339
- shortCode
340
- uriPattern
341
- parameterPattern
342
- status
343
- extendDaysForHeadReview
344
- priorityLevel
345
- positionConnectionType
346
- baseCommissionPercent
347
- targetType
348
- id
349
- createdStamp
350
- updatedStamp
351
- updatedBy
352
- createdBy
353
- }
354
- }
330
+ exports.GET_CAMPAIGN_ACTION_BY_ID = (0, graphql_tag_1.gql) `
331
+ query GetCampaignActionById($id: String!) {
332
+ getCampaignActionById(id: $id) {
333
+ name
334
+ description
335
+ partyId
336
+ type
337
+ viewTemplateId
338
+ urlTemplate
339
+ shortCode
340
+ uriPattern
341
+ parameterPattern
342
+ status
343
+ extendDaysForHeadReview
344
+ priorityLevel
345
+ positionConnectionType
346
+ baseCommissionPercent
347
+ targetType
348
+ id
349
+ createdStamp
350
+ updatedStamp
351
+ updatedBy
352
+ createdBy
353
+ }
354
+ }
355
355
  `;
356
- exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
357
- query SearchProductGiftPromotionResponse(
358
- $partyId: String!
359
- $storeId: String
360
- $campaignActionId: String
361
- ){
362
- searchProductGiftPromotionResponse(
363
- parameterSearchProductGift:{
364
- partyId: $partyId
365
- storeId: $storeId
366
- campaignActionId: $campaignActionId
367
- }
368
- ){
369
- total
370
- totalPages
371
- totalElements
372
- last
373
- first
374
- number
375
- numberOfElements
376
- size
377
- empty
378
- content {
379
- id
380
- partyId
381
- campaignId
382
- campaignActionId
383
- productId
384
- quantityLimit
385
- campaignActionName
386
- startDate
387
- endDate
388
- newCustomer
389
- createdStamp
390
- updatedStamp
391
- updatedBy
392
- createdBy
393
- giftPromotions {
394
- fromQuantity
395
- toProductId
396
- toQuantity
397
- productName
398
- sku
399
- featureImage
400
- }
401
- }
402
- }
403
- }
404
-
356
+ exports.SEARCH_PRODUCT_GIFT_PROMOTION_RESPONSE = (0, graphql_tag_1.gql) `
357
+ query SearchProductGiftPromotionResponse(
358
+ $partyId: String!
359
+ $storeId: String
360
+ $campaignActionId: String
361
+ ){
362
+ searchProductGiftPromotionResponse(
363
+ parameterSearchProductGift:{
364
+ partyId: $partyId
365
+ storeId: $storeId
366
+ campaignActionId: $campaignActionId
367
+ }
368
+ ){
369
+ total
370
+ totalPages
371
+ totalElements
372
+ last
373
+ first
374
+ number
375
+ numberOfElements
376
+ size
377
+ empty
378
+ content {
379
+ id
380
+ partyId
381
+ campaignId
382
+ campaignActionId
383
+ productId
384
+ quantityLimit
385
+ campaignActionName
386
+ startDate
387
+ endDate
388
+ newCustomer
389
+ createdStamp
390
+ updatedStamp
391
+ updatedBy
392
+ createdBy
393
+ giftPromotions {
394
+ fromQuantity
395
+ toProductId
396
+ toQuantity
397
+ productName
398
+ sku
399
+ featureImage
400
+ }
401
+ }
402
+ }
403
+ }
404
+
405
405
  `;