@nomalism-com/types 0.9.551 → 0.9.553

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.
@@ -198,7 +198,6 @@ export interface IFindByProductTypeResponse {
198
198
  price: number;
199
199
  }
200
200
  export interface IDuplicateProductRequest {
201
- product_id: string;
202
201
  color_id: string[];
203
202
  }
204
203
  export interface IRepository {
@@ -9,4 +9,4 @@ export declare const findByRef: joi.ObjectSchema<any>;
9
9
  export declare const findOrCreateProductionProductBody: joi.ObjectSchema<any>;
10
10
  export declare const findByProductTypeParams: joi.ObjectSchema<any>;
11
11
  export declare const printLabelQuery: joi.ObjectSchema<any>;
12
- export declare const duplicateProductParams: joi.ObjectSchema<any>;
12
+ export declare const duplicateProductBody: joi.ObjectSchema<any>;
@@ -15,7 +15,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  };
16
16
  var _a, _b, _c, _d;
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.duplicateProductParams = exports.printLabelQuery = exports.findByProductTypeParams = exports.findOrCreateProductionProductBody = exports.findByRef = exports.basicSearchQuery = exports.findWithPaginationQuery = exports.findQuery = exports.bulkUpdateBody = exports.updateBody = exports.createBody = void 0;
18
+ exports.duplicateProductBody = exports.printLabelQuery = exports.findByProductTypeParams = exports.findOrCreateProductionProductBody = exports.findByRef = exports.basicSearchQuery = exports.findWithPaginationQuery = exports.findQuery = exports.bulkUpdateBody = exports.updateBody = exports.createBody = void 0;
19
19
  var joi_1 = __importDefault(require("joi"));
20
20
  var messages_1 = require("../../../shared/messages");
21
21
  var interface_1 = require("./interface");
@@ -146,11 +146,10 @@ exports.printLabelQuery = joi_1.default
146
146
  .object()
147
147
  .keys(printLabelQueryKeys)
148
148
  .messages(messages_1.messages);
149
- var duplicateProductParamsKeys = {
150
- product_id: joi_1.default.string().uuid().required(),
149
+ var duplicateProductBodyKeys = {
151
150
  color_id: joi_1.default.array().items(joi_1.default.string().uuid().required()).required(),
152
151
  };
153
- exports.duplicateProductParams = joi_1.default
152
+ exports.duplicateProductBody = joi_1.default
154
153
  .object()
155
- .keys(duplicateProductParamsKeys)
154
+ .keys(duplicateProductBodyKeys)
156
155
  .messages(messages_1.messages);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.9.551",
12
+ "version": "0.9.553",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [