@longvansoftware/storefront-js-client 2.5.3 → 2.5.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.
@@ -2,259 +2,259 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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
- $customerId: String
218
- $excludeExpired: Boolean
219
- ) {
220
- getVoucherAvailableForCustomer(
221
- searchVoucherRequest: {
222
- partyId: $partyId
223
- storeId: $storeId
224
- campaignId: $campaignId
225
- customerId: $customerId
226
- excludeExpired: $excludeExpired
227
- }
228
- ) {
229
- total
230
- totalPages
231
- totalElements
232
- last
233
- first
234
- number
235
- numberOfElements
236
- size
237
- empty
238
- content {
239
- campaignActionId
240
- campaignId
241
- partyId
242
- voucherCode
243
- voucherType
244
- status
245
- discountAmount
246
- discountPercent
247
- usageLimitPerVoucher
248
- maximumDiscount
249
- numberOfTimeUsed
250
- id
251
- createdStamp
252
- updatedStamp
253
- updatedBy
254
- createdBy
255
- isBirthday
256
- customerId
257
- }
258
- }
259
- }
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
+ $customerId: String
218
+ $excludeExpired: Boolean
219
+ ) {
220
+ getVoucherAvailableForCustomer(
221
+ searchVoucherRequest: {
222
+ partyId: $partyId
223
+ storeId: $storeId
224
+ campaignId: $campaignId
225
+ customerId: $customerId
226
+ excludeExpired: $excludeExpired
227
+ }
228
+ ) {
229
+ total
230
+ totalPages
231
+ totalElements
232
+ last
233
+ first
234
+ number
235
+ numberOfElements
236
+ size
237
+ empty
238
+ content {
239
+ campaignActionId
240
+ campaignId
241
+ partyId
242
+ voucherCode
243
+ voucherType
244
+ status
245
+ discountAmount
246
+ discountPercent
247
+ usageLimitPerVoucher
248
+ maximumDiscount
249
+ numberOfTimeUsed
250
+ id
251
+ createdStamp
252
+ updatedStamp
253
+ updatedBy
254
+ createdBy
255
+ isBirthday
256
+ customerId
257
+ }
258
+ }
259
+ }
260
260
  `;