@nomalism-com/types 0.11.26 → 0.11.28

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.
@@ -46,7 +46,9 @@ export interface IEntityMinified {
46
46
  multimedia_id: string | null;
47
47
  integer_only: boolean;
48
48
  }
49
- export type IFindByIdResponse = Omit<IEntityExtended, ''>;
49
+ export interface IFindByIdResponse extends Omit<IEntityExtended, ''> {
50
+ ordered_quantity: number;
51
+ }
50
52
  export type IFindRequest = Record<string, unknown>;
51
53
  export type IFindResponse = Omit<IFindDetailedResponse, ''>;
52
54
  export interface IFindByOwnerIdResponse {
@@ -230,6 +230,7 @@ var findByIdBodyResponseKeys = {
230
230
  origin_cabide_product_id: joi_1.default.string().uuid().allow(null).required(),
231
231
  origin_cabide_product: joi_1.default.any(),
232
232
  cabide_product: joi_1.default.any(),
233
+ ordered_quantity: joi_1.default.number().required(),
233
234
  };
234
235
  exports.findByIdBodyResponse = joi_1.default
235
236
  .object()
@@ -180,6 +180,7 @@ export interface IUpdateDataRequest {
180
180
  export interface IUpdateManyRequest {
181
181
  ids: string[];
182
182
  client_discount?: number | null;
183
+ price_cost?: number | null;
183
184
  provider_discount?: number | null;
184
185
  provider_estimated_delivery_date?: Date | null;
185
186
  }
@@ -83,6 +83,7 @@ exports.updateDataBody = joi_1.default
83
83
  var updateManyKeys = {
84
84
  ids: joi_1.default.array().items(joi_1.default.string().uuid().required()).required(),
85
85
  client_discount: joi_1.default.number().optional().allow(null, ''),
86
+ price_cost: joi_1.default.number().optional().allow(null, ''),
86
87
  provider_discount: joi_1.default.number().optional().allow(null, ''),
87
88
  provider_estimated_delivery_date: joi_1.default.date().optional().allow(null, ''),
88
89
  };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.11.26",
12
+ "version": "0.11.28",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [