@longvansoftware/service-js-client 2.3.8 → 2.4.0

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.
@@ -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
  }
@@ -46,7 +46,7 @@ export declare class AuthService extends Service {
46
46
  getEmailByPartyId(partyId: string): Promise<any>;
47
47
  getPartyDetailByPhone(phone: string, fields: string[]): Promise<any>;
48
48
  getPartyDetailByContactInfo(contactInfo: string, fields: string[]): Promise<any>;
49
- createPartyDetail(name: string, phone: string, createdBy: string, source: string, fields: string[]): Promise<any>;
49
+ createPartyDetail(name: string, phone: string | null, email: string | null, createdBy: string, source: string, fields: string[]): Promise<any>;
50
50
  getOrganizationsByPartyIdDynamic(partyId: string, fields: string[]): Promise<any>;
51
51
  checkEnabled2FA(partyId: string, fields: string[]): Promise<any>;
52
52
  logout(accessToken: string, partyId: string): Promise<any>;
@@ -425,12 +425,13 @@ class AuthService extends serviceSDK_1.Service {
425
425
  }
426
426
  });
427
427
  }
428
- createPartyDetail(name, phone, createdBy, source, fields) {
428
+ createPartyDetail(name, phone, email, createdBy, source, fields) {
429
429
  return __awaiter(this, void 0, void 0, function* () {
430
430
  const mutation = (0, mutations_1.CREATE_PARTY_DETAIL)(fields);
431
431
  const variables = {
432
432
  name,
433
433
  phone,
434
+ email,
434
435
  orgId: this.orgId,
435
436
  createdBy,
436
437
  source,
@@ -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.8",
3
+ "version": "2.4.0",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [