qeai-sdk 2.1.1 → 2.1.3
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/dtos/index.d.ts +1 -0
- package/dist/dtos/index.js +1 -0
- package/dist/dtos/ingredients/create-ingredient.dto.d.ts +1 -1
- package/dist/dtos/ingredients/create-ingredient.dto.js +1 -1
- package/dist/dtos/ingredients/update-ingredient.dto.d.ts +1 -1
- package/dist/dtos/ingredients/update-ingredient.dto.js +1 -1
- package/dist/dtos/inventory/index.d.ts +2 -0
- package/dist/dtos/inventory/index.js +2 -0
- package/dist/interfaces/index.d.ts +13 -12
- package/dist/interfaces/index.js +14 -12
- package/dist/interfaces/inventory/ingredient-inventory.interface.d.ts +3 -3
- package/package.json +1 -1
package/dist/dtos/index.d.ts
CHANGED
package/dist/dtos/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsNotEmpty, MaxLength, IsMongoId, IsIn, } from "class-validator";
|
|
11
|
-
import { INGREDIENT_UNITS, } from "../../types/ingredient-unit.type";
|
|
11
|
+
import { INGREDIENT_UNITS, } from "../../types/ingredient-unit.type.js";
|
|
12
12
|
/**
|
|
13
13
|
* DTO for creating a new ingredient.
|
|
14
14
|
*
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsString, IsOptional, IsMongoId, IsUUID, MaxLength, IsNotEmpty, IsIn, } from "class-validator";
|
|
11
|
-
import { INGREDIENT_UNITS, } from "../../types/ingredient-unit.type";
|
|
11
|
+
import { INGREDIENT_UNITS, } from "../../types/ingredient-unit.type.js";
|
|
12
12
|
/**
|
|
13
13
|
* DTO for updating an existing ingredient.
|
|
14
14
|
*
|
|
@@ -16,15 +16,16 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @since 2.0.0
|
|
18
18
|
*/
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
19
|
+
export * from "./common/index.js";
|
|
20
|
+
export * from "./auth/index.js";
|
|
21
|
+
export * from "./orders/index.js";
|
|
22
|
+
export * from "./payments/index.js";
|
|
23
|
+
export * from "./products/index.js";
|
|
24
|
+
export * from "./chains/index.js";
|
|
25
|
+
export * from "./restaurants/index.js";
|
|
26
|
+
export * from "./categories/index.js";
|
|
27
|
+
export * from "./tags/index.js";
|
|
28
|
+
export * from "./ingredients/index.js";
|
|
29
|
+
export * from "./translations/index.js";
|
|
30
|
+
export * from "./questions/index.js";
|
|
31
|
+
export * from "./inventory/index.js";
|
package/dist/interfaces/index.js
CHANGED
|
@@ -17,26 +17,28 @@
|
|
|
17
17
|
* @since 2.0.0
|
|
18
18
|
*/
|
|
19
19
|
// Common interfaces
|
|
20
|
-
export * from
|
|
20
|
+
export * from "./common/index.js";
|
|
21
21
|
// Auth interfaces
|
|
22
|
-
export * from
|
|
22
|
+
export * from "./auth/index.js";
|
|
23
23
|
// Order interfaces
|
|
24
|
-
export * from
|
|
24
|
+
export * from "./orders/index.js";
|
|
25
25
|
// Payment interfaces
|
|
26
|
-
export * from
|
|
26
|
+
export * from "./payments/index.js";
|
|
27
27
|
// Product interfaces
|
|
28
|
-
export * from
|
|
28
|
+
export * from "./products/index.js";
|
|
29
29
|
// Chain interfaces
|
|
30
|
-
export * from
|
|
30
|
+
export * from "./chains/index.js";
|
|
31
31
|
// Restaurant interfaces
|
|
32
|
-
export * from
|
|
32
|
+
export * from "./restaurants/index.js";
|
|
33
33
|
// Category interfaces
|
|
34
|
-
export * from
|
|
34
|
+
export * from "./categories/index.js";
|
|
35
35
|
// Tag interfaces
|
|
36
|
-
export * from
|
|
36
|
+
export * from "./tags/index.js";
|
|
37
37
|
// Ingredient interfaces
|
|
38
|
-
export * from
|
|
38
|
+
export * from "./ingredients/index.js";
|
|
39
39
|
// Translation interfaces
|
|
40
|
-
export * from
|
|
40
|
+
export * from "./translations/index.js";
|
|
41
41
|
// Questions interfaces
|
|
42
|
-
export * from
|
|
42
|
+
export * from "./questions/index.js";
|
|
43
|
+
// Inventory interfaces
|
|
44
|
+
export * from "./inventory/index.js";
|
|
@@ -21,11 +21,11 @@ export interface IngredientInventory {
|
|
|
21
21
|
restaurantId: string;
|
|
22
22
|
ingredientId: string;
|
|
23
23
|
quantity: number;
|
|
24
|
-
lowStockLimit?: number;
|
|
24
|
+
lowStockLimit?: number | null;
|
|
25
25
|
createdAt: Date;
|
|
26
26
|
updatedAt: Date;
|
|
27
|
-
createdBy?: string;
|
|
28
|
-
updatedBy?: string;
|
|
27
|
+
createdBy?: string | null;
|
|
28
|
+
updatedBy?: string | null;
|
|
29
29
|
}
|
|
30
30
|
export interface IngredientInventoryExpandRestaurant extends IngredientInventory {
|
|
31
31
|
restaurant: Restaurant;
|