@nomalism-com/types 0.9.552 → 0.9.554
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 {
|
|
@@ -217,7 +216,7 @@ export interface IRepository {
|
|
|
217
216
|
create(data: ICreateRequest): Promise<IFindResponse>;
|
|
218
217
|
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<IFindResponse | null>;
|
|
219
218
|
deleteOne(selector: IShared.IFindByIdRequest): Promise<IFindResponse | null>;
|
|
220
|
-
duplicateProduct(
|
|
219
|
+
duplicateProduct(selector: IShared.IFindByIdRequest, body: IDuplicateProductRequest): Promise<IFindResponse>;
|
|
221
220
|
}
|
|
222
221
|
export type IApi = Omit<IRepository, 'getLabelData'>;
|
|
223
222
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -147,7 +147,6 @@ exports.printLabelQuery = joi_1.default
|
|
|
147
147
|
.keys(printLabelQueryKeys)
|
|
148
148
|
.messages(messages_1.messages);
|
|
149
149
|
var duplicateProductBodyKeys = {
|
|
150
|
-
product_id: joi_1.default.string().uuid().required(),
|
|
151
150
|
color_id: joi_1.default.array().items(joi_1.default.string().uuid().required()).required(),
|
|
152
151
|
};
|
|
153
152
|
exports.duplicateProductBody = joi_1.default
|