@longvansoftware/storefront-js-client 3.6.0 → 3.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.
@@ -500,6 +500,7 @@ export declare class OrderService extends Service {
500
500
  * @throws If an error occurs while creating the order.
501
501
  */
502
502
  reportByDetail(employee_assign: string, type_view: string, date_from: number, date_to: number): Promise<any>;
503
+ reportByDetailV2(employee_assign: string, type_view: string, date_from: number, date_to: number, storeId: string): Promise<any>;
503
504
  /**
504
505
  * report by store
505
506
  * @param date_from
@@ -508,6 +509,7 @@ export declare class OrderService extends Service {
508
509
  * @throws If an error occurs while creating the order.
509
510
  */
510
511
  reporByStores(date_from: number, date_to: number): Promise<any>;
512
+ reporByStoresV2(date_from: number, date_to: number, storeId: string): Promise<any>;
511
513
  updateExchangeOrder(exchangeOrder: string, returnOrder: string, sellOrder: string): Promise<any>;
512
514
  removeShippingAddress(orderId: string, updateBy: string): Promise<any>;
513
515
  removeShippingInfo(orderId: string, updateBy: string): Promise<any>;
@@ -1475,6 +1475,19 @@ class OrderService extends serviceSDK_1.Service {
1475
1475
  }
1476
1476
  });
1477
1477
  }
1478
+ reportByDetailV2(employee_assign, type_view, date_from, date_to, storeId) {
1479
+ return __awaiter(this, void 0, void 0, function* () {
1480
+ const endpoint = `/orders/${this.orgId}/${storeId}/${employee_assign}/reportByDetail?type_view=${type_view}&date_from=${date_from}&date_to=${date_to}`;
1481
+ const method = "GET";
1482
+ try {
1483
+ const response = yield this.restApiCallWithToken(endpoint, method);
1484
+ return response;
1485
+ }
1486
+ catch (error) {
1487
+ throw error;
1488
+ }
1489
+ });
1490
+ }
1478
1491
  /**
1479
1492
  * report by store
1480
1493
  * @param date_from
@@ -1495,6 +1508,19 @@ class OrderService extends serviceSDK_1.Service {
1495
1508
  }
1496
1509
  });
1497
1510
  }
1511
+ reporByStoresV2(date_from, date_to, storeId) {
1512
+ return __awaiter(this, void 0, void 0, function* () {
1513
+ const endpoint = `/orders/${this.orgId}/${storeId}/reportByStores?date_from=${date_from}&date_to=${date_to}`;
1514
+ const method = "GET";
1515
+ try {
1516
+ const response = yield this.restApiCallWithToken(endpoint, method);
1517
+ return response;
1518
+ }
1519
+ catch (error) {
1520
+ throw error;
1521
+ }
1522
+ });
1523
+ }
1498
1524
  updateExchangeOrder(exchangeOrder, returnOrder, sellOrder) {
1499
1525
  return __awaiter(this, void 0, void 0, function* () {
1500
1526
  const endpoint = `/orders/${this.orgId}/${exchangeOrder}/${returnOrder}/${sellOrder}/updateExchangeOrder`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [