@longvansoftware/service-js-client 2.3.9 → 2.4.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.
@@ -242,8 +242,8 @@ const CREATE_PARTY_DETAIL = (fields = []) => {
242
242
  const fieldStr = fields.join("\n ");
243
243
  const hasFields = fields.length > 0;
244
244
  return (0, graphql_tag_1.gql) `
245
- mutation CreatePartyDetail($name: String!, $phone: String!, $orgId: String!, $createdBy: String!, $source: String) {
246
- createPartyDetail(name: $name ,phone: $phone, orgId: $orgId, createdBy: $createdBy, source: $source) {
245
+ mutation CreatePartyDetail($name: String, $phone: String, $email: String, $orgId: String!, $createdBy: String!, $source: String) {
246
+ createPartyDetail(name: $name ,phone: $phone, email: $email, orgId: $orgId, createdBy: $createdBy, source: $source) {
247
247
  ${hasFields ? `${fieldStr}` : ""}
248
248
  }
249
249
  }
@@ -118,6 +118,9 @@ exports.SUGGEST_VOUCHER = (0, graphql_tag_1.gql) `
118
118
  maximumSpend
119
119
  minimumSpend
120
120
  maximumDiscountType
121
+ customAttribute
122
+ assignUserLimit
123
+ usageLimitType
121
124
  }
122
125
  }
123
126
  }
@@ -6,7 +6,7 @@ export declare class CrmCampingService extends Service {
6
6
  searchProductQuantityPromotionAction(productId: string): Promise<any>;
7
7
  addCustomerToVoucher(userId: string, voucherCode: string): Promise<any>;
8
8
  getCampaignActionById(campaignActionId: string): Promise<any>;
9
- suggestVoucher(customerId: string, scopeIgnore: string | null, scope: string | null, isNewCustomer: boolean): Promise<any>;
9
+ suggestVoucher(customerId: string, scopeIgnore: string | null, scope: string | null, isNewCustomer: boolean, voucherCode: string | null): Promise<any>;
10
10
  searchVouchers(campaignId: String, campaignActionId: String, campaignActionType: String, customerId: String, pageNumber: number, pageSize: number): Promise<any>;
11
11
  getAverageRating(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
12
12
  getUrlEvaluation(targetIds: [string], customerId: string, evaluationType: string): Promise<any>;
@@ -89,7 +89,7 @@ class CrmCampingService extends serviceSDK_1.Service {
89
89
  // throw error;
90
90
  // }
91
91
  // }
92
- suggestVoucher(customerId, scopeIgnore, scope, isNewCustomer) {
92
+ suggestVoucher(customerId, scopeIgnore, scope, isNewCustomer, voucherCode) {
93
93
  return __awaiter(this, void 0, void 0, function* () {
94
94
  const query = queries_1.SUGGEST_VOUCHER;
95
95
  const variables = {
@@ -101,6 +101,7 @@ class CrmCampingService extends serviceSDK_1.Service {
101
101
  isNewCustomer,
102
102
  scopeIgnore,
103
103
  isPageAble: false,
104
+ voucherCode
104
105
  },
105
106
  };
106
107
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/service-js-client",
3
- "version": "2.3.9",
3
+ "version": "2.4.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [