@longvansoftware/storefront-js-client 2.6.0 → 2.6.1

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.
@@ -216,6 +216,7 @@ exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
216
216
  $campaignId: String
217
217
  $customerId: String
218
218
  $excludeExpired: Boolean
219
+ $isPageAble: Boolean
219
220
  ) {
220
221
  getVoucherAvailableForCustomer(
221
222
  searchVoucherRequest: {
@@ -224,6 +225,7 @@ exports.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER = (0, graphql_tag_1.gql) `
224
225
  campaignId: $campaignId
225
226
  customerId: $customerId
226
227
  excludeExpired: $excludeExpired
228
+ isPageAble: $isPageAble
227
229
  }
228
230
  ) {
229
231
  total
@@ -12,7 +12,7 @@ export declare class CampaignService extends Service {
12
12
  checkValidVoucher(customerId: string, voucherCode: string): Promise<any>;
13
13
  getCampaignActiveNow(campaignActionType: string, customerId: string): Promise<any>;
14
14
  getPromotionProductPrice(productId: String, productPrice: number): Promise<any>;
15
- getVoucherAvailableForCustomer(campaignId: string, customerId: string, excludeExpired: Boolean): Promise<any>;
15
+ getVoucherAvailableForCustomer(campaignId: string, customerId: string, excludeExpired: Boolean, isPageAble: Boolean): Promise<any>;
16
16
  addCustomerToVoucher(voucherCode: string, userId: string): Promise<any>;
17
17
  suggestVoucher(): Promise<any>;
18
18
  getCampaignActionById(id: string): Promise<any>;
@@ -121,7 +121,7 @@ class CampaignService extends serviceSDK_1.Service {
121
121
  }
122
122
  });
123
123
  }
124
- getVoucherAvailableForCustomer(campaignId, customerId, excludeExpired) {
124
+ getVoucherAvailableForCustomer(campaignId, customerId, excludeExpired, isPageAble) {
125
125
  return __awaiter(this, void 0, void 0, function* () {
126
126
  const query = queries_1.GET_VOUCHER_AVAILABLE_FOR_CUSTOMER;
127
127
  const variables = {
@@ -130,6 +130,7 @@ class CampaignService extends serviceSDK_1.Service {
130
130
  campaignId,
131
131
  customerId,
132
132
  excludeExpired,
133
+ isPageAble,
133
134
  };
134
135
  try {
135
136
  const response = yield this.graphqlQuery(query, variables);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [