@nomalism-com/types 0.39.14 → 0.39.16
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.
package/dist/index.cjs
CHANGED
|
@@ -5045,6 +5045,7 @@ var createInventoryRequestKeys = {
|
|
|
5045
5045
|
product_id: joi92.string().uuid().required(),
|
|
5046
5046
|
registered_quantity: joi92.number().allow(0).optional(),
|
|
5047
5047
|
inventory_quantity: joi92.number().positive().allow(0).required(),
|
|
5048
|
+
note: joi92.string().optional(),
|
|
5048
5049
|
created_by: joi92.string().uuid().optional(),
|
|
5049
5050
|
updated_by: joi92.string().uuid().optional()
|
|
5050
5051
|
};
|
package/dist/index.js
CHANGED
|
@@ -5045,6 +5045,7 @@ var createInventoryRequestKeys = {
|
|
|
5045
5045
|
product_id: joi92.string().uuid().required(),
|
|
5046
5046
|
registered_quantity: joi92.number().allow(0).optional(),
|
|
5047
5047
|
inventory_quantity: joi92.number().positive().allow(0).required(),
|
|
5048
|
+
note: joi92.string().optional(),
|
|
5048
5049
|
created_by: joi92.string().uuid().optional(),
|
|
5049
5050
|
updated_by: joi92.string().uuid().optional()
|
|
5050
5051
|
};
|
|
@@ -6,10 +6,12 @@ export interface ICreateInventoryRequest {
|
|
|
6
6
|
product_id: string;
|
|
7
7
|
registered_quantity: number;
|
|
8
8
|
inventory_quantity: number;
|
|
9
|
+
note?: string;
|
|
9
10
|
created_by?: string;
|
|
10
11
|
updated_by?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface IRepository {
|
|
13
14
|
createInventory(data: ICreateInventoryRequest): Promise<void>;
|
|
15
|
+
createManyInventory(data: ICreateInventoryRequest[]): Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.39.
|
|
4
|
+
"version": "0.39.16",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|