@nomalism-com/types 0.9.484 → 0.9.486

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.
@@ -168,6 +168,8 @@ export interface ICreateInventoryRequest {
168
168
  plot_id: string | null;
169
169
  registered_quantity: number;
170
170
  inventory_quantity: number;
171
+ new_plot_id: string;
172
+ is_virtual?: boolean;
171
173
  }
172
174
  export interface IRepository {
173
175
  findById(id: string): Promise<Entity | null>;
@@ -91,6 +91,8 @@ var createInventoryRequestKeys = {
91
91
  plot_id: joi_1.default.string().uuid().allow(null).required(),
92
92
  registered_quantity: joi_1.default.number().positive().allow(0).optional(),
93
93
  inventory_quantity: joi_1.default.number().positive().allow(0).required(),
94
+ new_plot_id: joi_1.default.string().uuid().required(),
95
+ is_virtual: joi_1.default.boolean().default(false).optional(),
94
96
  };
95
97
  exports.createInventoryRequest = joi_1.default
96
98
  .object()
@@ -57,11 +57,8 @@ export interface IBasicSearchRequest extends IShared.IPaginationRequest {
57
57
  search_value: string | null;
58
58
  inactive?: boolean;
59
59
  }
60
- export interface IBasicSearchResponse {
61
- id: string;
60
+ export interface IBasicSearchResponse extends Pick<Entity, 'id' | 'origin_id' | 'code'> {
62
61
  reference: string;
63
- origin_id: string;
64
- code: string;
65
62
  product_counter: number;
66
63
  }
67
64
  export interface IRepository {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.9.484",
12
+ "version": "0.9.486",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [