@longvansoftware/storefront-js-client 1.3.4 → 1.3.6

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.
@@ -9,5 +9,5 @@ export declare class UserService extends Service {
9
9
  getCustomerById(id: string): Promise<any>;
10
10
  searchCompany(keyword: string, limit: number): Promise<any>;
11
11
  createCustomerV2(createCustomerRequest: createCustomerRequest, createdBy: string): Promise<any>;
12
- createCustomer(dataCustomerRequest: dataCustomerRequest, createdBy: string, type: string): Promise<void>;
12
+ createCustomer(dataCustomerRequest: dataCustomerRequest, createdBy: string, type: string): Promise<any>;
13
13
  }
@@ -160,10 +160,12 @@ class UserService extends service_1.Service {
160
160
  address: (dataCustomerRequest === null || dataCustomerRequest === void 0 ? void 0 : dataCustomerRequest.address) || "",
161
161
  };
162
162
  if (type == "PERSON") {
163
- this.createCustomerV2(dataCreateCustomer, createdBy);
163
+ const dataPERSON = yield this.createCustomerV2(dataCreateCustomer, createdBy);
164
+ return dataPERSON;
164
165
  }
165
166
  else if (type == "COMPANY") {
166
- this.createCompany(dataCreateCompany, createdBy);
167
+ const dataCOMPANY = yield this.createCompany(dataCreateCompany, createdBy);
168
+ return dataCOMPANY;
167
169
  }
168
170
  });
169
171
  }
@@ -63,6 +63,4 @@ export interface dataCustomerRequest {
63
63
  email: string;
64
64
  address: string;
65
65
  birthDate: Date;
66
- tenantId: string;
67
- createdBy: string;
68
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [