@nomalism-com/api 0.8.418 → 0.8.419

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.
@@ -24,6 +24,7 @@ export import IProductPromotionVirtuals = Entity.IProductPromotionVirtuals;
24
24
  export import IFindOrCreateProductionProductRequest = Entity.IFindOrCreateProductionProductRequest;
25
25
  export import IFindByProductTypeRequest = Entity.IFindByProductTypeRequest;
26
26
  export import IFindByProductTypeResponse = Entity.IFindByProductTypeResponse;
27
+ export import IDuplicateProductRequest = Entity.IDuplicateProductRequest;
27
28
  export type IPaginationResponse = shared.IPaginationResponse<Entity.IFindResponse>;
28
29
  export declare const route: string;
29
30
  export declare const publicRoute: string;
@@ -212,6 +212,19 @@ var repository = {
212
212
  }
213
213
  });
214
214
  }); },
215
+ duplicateProduct: function (params) { return __awaiter(void 0, void 0, void 0, function () {
216
+ var response;
217
+ return __generator(this, function (_a) {
218
+ switch (_a.label) {
219
+ case 0: return [4, client_1.default.get("".concat(exports.route, "duplicate_product"), {
220
+ params: params,
221
+ })];
222
+ case 1:
223
+ response = _a.sent();
224
+ return [2, response.data];
225
+ }
226
+ });
227
+ }); },
215
228
  };
216
229
  var printLabelToPdfUrl = function (_a, token) {
217
230
  var id = _a.id;
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.8.418",
12
+ "version": "0.8.419",
13
13
  "main": "dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -47,7 +47,7 @@
47
47
  "typescript": "^5.1.6"
48
48
  },
49
49
  "dependencies": {
50
- "@nomalism-com/types": "^0.9.550",
50
+ "@nomalism-com/types": "^0.9.551",
51
51
  "axios": "^0.27.2"
52
52
  }
53
53
  }