@longvansoftware/storefront-js-client 1.3.8 → 1.3.9

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.
@@ -1,7 +1,7 @@
1
1
  import { ProductService } from "../lib/product/index";
2
2
  import { AuthService } from "../lib/auth/index";
3
3
  import { OrderService } from "../lib/order/index";
4
- import { ServiceManagementService } from "./service";
4
+ import { ServiceManagementService } from "./service/index";
5
5
  import { UserService } from "../lib/user/index";
6
6
  import { PaymentService } from "../lib/payment/index";
7
7
  import { CrmService } from "../lib/crm/index";
@@ -5,13 +5,13 @@ exports.SDK = void 0;
5
5
  const index_1 = require("../lib/product/index");
6
6
  const index_2 = require("../lib/auth/index");
7
7
  const index_3 = require("../lib/order/index");
8
- const service_1 = require("./service");
9
- const index_4 = require("../lib/user/index");
8
+ const index_4 = require("./service/index");
9
+ const index_5 = require("../lib/user/index");
10
10
  const config_1 = require("../../config/config");
11
11
  const helpers_1 = require("../utils/helpers");
12
- const index_5 = require("../lib/payment/index");
13
- const index_6 = require("../lib/crm/index");
14
- const index_7 = require("../lib/warehouse/index");
12
+ const index_6 = require("../lib/payment/index");
13
+ const index_7 = require("../lib/crm/index");
14
+ const index_8 = require("../lib/warehouse/index");
15
15
  class SDK {
16
16
  constructor(orgId, storeId, storefrontAccessToken) {
17
17
  this.orgId = orgId;
@@ -25,11 +25,11 @@ class SDK {
25
25
  this.product = new index_1.ProductService(endpoints.product, orgId, storeId);
26
26
  this.auth = new index_2.AuthService(endpoints.auth, orgId, storeId);
27
27
  this.order = new index_3.OrderService(endpoints.order, orgId, storeId);
28
- this.user = new index_4.UserService(endpoints.user, orgId, storeId);
29
- this.payment = new index_5.PaymentService(endpoints.payment, orgId, storeId);
30
- this.crm = new index_6.CrmService(endpoints.crm, orgId, storeId);
31
- this.service = new service_1.ServiceManagementService(endpoints.service, orgId, storeId);
32
- this.warehouse = new index_7.WarehouseService(endpoints.warehouse, orgId, storeId);
28
+ this.user = new index_5.UserService(endpoints.user, orgId, storeId);
29
+ this.payment = new index_6.PaymentService(endpoints.payment, orgId, storeId);
30
+ this.crm = new index_7.CrmService(endpoints.crm, orgId, storeId);
31
+ this.service = new index_4.ServiceManagementService(endpoints.service, orgId, storeId);
32
+ this.warehouse = new index_8.WarehouseService(endpoints.warehouse, orgId, storeId);
33
33
  // Initialize other services here
34
34
  }
35
35
  setToken(token) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [