@managesome/eposmatic-toolkit 0.2.519 → 0.2.521
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/lib/schemas/models/index.d.ts +3 -0
- package/lib/schemas/models/index.js +3 -0
- package/lib/schemas/models/inventories.d.ts +9 -0
- package/lib/schemas/models/inventory_department_transactions.d.ts +86 -0
- package/lib/schemas/models/inventory_department_transactions.js +116 -0
- package/lib/schemas/models/inventory_department_utilities.d.ts +108 -0
- package/lib/schemas/models/inventory_department_utilities.js +88 -0
- package/lib/schemas/models/inventory_departments.d.ts +53 -0
- package/lib/schemas/models/inventory_departments.js +58 -0
- package/lib/schemas/models/inventory_transactions.d.ts +3 -0
- package/lib/schemas/models/inventory_transactions.js +5 -0
- package/lib/schemas/models/items.d.ts +93 -0
- package/lib/schemas/models/items.js +5 -0
- package/lib/schemas/models/warehouse_items.d.ts +9 -0
- package/lib/schemas/types/common.d.ts +1 -0
- package/lib/schemas/types/index.d.ts +3 -0
- package/lib/schemas/types/index.js +3 -0
- package/lib/schemas/types/inventory_department_transactions.d.ts +24 -0
- package/lib/schemas/types/inventory_department_transactions.js +2 -0
- package/lib/schemas/types/inventory_department_utilities.d.ts +50 -0
- package/lib/schemas/types/inventory_department_utilities.js +2 -0
- package/lib/schemas/types/inventory_departments.d.ts +12 -0
- package/lib/schemas/types/inventory_departments.js +2 -0
- package/lib/schemas/types/inventory_transactions.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,12 +9,15 @@ export declare const IngredientSchema: Schema<any, import("mongoose").Model<any,
|
|
|
9
9
|
}, {
|
|
10
10
|
inventory_code: string;
|
|
11
11
|
usage_quantity: number;
|
|
12
|
+
department_code?: string | null | undefined;
|
|
12
13
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
13
14
|
inventory_code: string;
|
|
14
15
|
usage_quantity: number;
|
|
16
|
+
department_code?: string | null | undefined;
|
|
15
17
|
}>> & import("mongoose").FlatRecord<{
|
|
16
18
|
inventory_code: string;
|
|
17
19
|
usage_quantity: number;
|
|
20
|
+
department_code?: string | null | undefined;
|
|
18
21
|
}> & {
|
|
19
22
|
_id: import("mongoose").Types.ObjectId;
|
|
20
23
|
} & {
|
|
@@ -423,12 +426,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
423
426
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
424
427
|
inventory_code: string;
|
|
425
428
|
usage_quantity: number;
|
|
429
|
+
department_code?: string | null | undefined;
|
|
426
430
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
427
431
|
inventory_code: string;
|
|
428
432
|
usage_quantity: number;
|
|
433
|
+
department_code?: string | null | undefined;
|
|
429
434
|
}> & {
|
|
430
435
|
inventory_code: string;
|
|
431
436
|
usage_quantity: number;
|
|
437
|
+
department_code?: string | null | undefined;
|
|
432
438
|
}>;
|
|
433
439
|
included_platforms: import("../../constants").PLATFORMS_ENUM[];
|
|
434
440
|
hide_name: boolean;
|
|
@@ -828,12 +834,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
828
834
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
829
835
|
inventory_code: string;
|
|
830
836
|
usage_quantity: number;
|
|
837
|
+
department_code?: string | null | undefined;
|
|
831
838
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
832
839
|
inventory_code: string;
|
|
833
840
|
usage_quantity: number;
|
|
841
|
+
department_code?: string | null | undefined;
|
|
834
842
|
}> & {
|
|
835
843
|
inventory_code: string;
|
|
836
844
|
usage_quantity: number;
|
|
845
|
+
department_code?: string | null | undefined;
|
|
837
846
|
}> | null | undefined;
|
|
838
847
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
839
848
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -1177,12 +1186,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
1177
1186
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
1178
1187
|
inventory_code: string;
|
|
1179
1188
|
usage_quantity: number;
|
|
1189
|
+
department_code?: string | null | undefined;
|
|
1180
1190
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1181
1191
|
inventory_code: string;
|
|
1182
1192
|
usage_quantity: number;
|
|
1193
|
+
department_code?: string | null | undefined;
|
|
1183
1194
|
}> & {
|
|
1184
1195
|
inventory_code: string;
|
|
1185
1196
|
usage_quantity: number;
|
|
1197
|
+
department_code?: string | null | undefined;
|
|
1186
1198
|
}> | null | undefined;
|
|
1187
1199
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
1188
1200
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -1526,12 +1538,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
1526
1538
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
1527
1539
|
inventory_code: string;
|
|
1528
1540
|
usage_quantity: number;
|
|
1541
|
+
department_code?: string | null | undefined;
|
|
1529
1542
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1530
1543
|
inventory_code: string;
|
|
1531
1544
|
usage_quantity: number;
|
|
1545
|
+
department_code?: string | null | undefined;
|
|
1532
1546
|
}> & {
|
|
1533
1547
|
inventory_code: string;
|
|
1534
1548
|
usage_quantity: number;
|
|
1549
|
+
department_code?: string | null | undefined;
|
|
1535
1550
|
}> | null | undefined;
|
|
1536
1551
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
1537
1552
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -1893,12 +1908,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
1893
1908
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
1894
1909
|
inventory_code: string;
|
|
1895
1910
|
usage_quantity: number;
|
|
1911
|
+
department_code?: string | null | undefined;
|
|
1896
1912
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1897
1913
|
inventory_code: string;
|
|
1898
1914
|
usage_quantity: number;
|
|
1915
|
+
department_code?: string | null | undefined;
|
|
1899
1916
|
}> & {
|
|
1900
1917
|
inventory_code: string;
|
|
1901
1918
|
usage_quantity: number;
|
|
1919
|
+
department_code?: string | null | undefined;
|
|
1902
1920
|
}> | null | undefined;
|
|
1903
1921
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
1904
1922
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -2242,12 +2260,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
2242
2260
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
2243
2261
|
inventory_code: string;
|
|
2244
2262
|
usage_quantity: number;
|
|
2263
|
+
department_code?: string | null | undefined;
|
|
2245
2264
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
2246
2265
|
inventory_code: string;
|
|
2247
2266
|
usage_quantity: number;
|
|
2267
|
+
department_code?: string | null | undefined;
|
|
2248
2268
|
}> & {
|
|
2249
2269
|
inventory_code: string;
|
|
2250
2270
|
usage_quantity: number;
|
|
2271
|
+
department_code?: string | null | undefined;
|
|
2251
2272
|
}> | null | undefined;
|
|
2252
2273
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
2253
2274
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -2591,12 +2612,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
2591
2612
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
2592
2613
|
inventory_code: string;
|
|
2593
2614
|
usage_quantity: number;
|
|
2615
|
+
department_code?: string | null | undefined;
|
|
2594
2616
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
2595
2617
|
inventory_code: string;
|
|
2596
2618
|
usage_quantity: number;
|
|
2619
|
+
department_code?: string | null | undefined;
|
|
2597
2620
|
}> & {
|
|
2598
2621
|
inventory_code: string;
|
|
2599
2622
|
usage_quantity: number;
|
|
2623
|
+
department_code?: string | null | undefined;
|
|
2600
2624
|
}> | null | undefined;
|
|
2601
2625
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
2602
2626
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -2958,12 +2982,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
2958
2982
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
2959
2983
|
inventory_code: string;
|
|
2960
2984
|
usage_quantity: number;
|
|
2985
|
+
department_code?: string | null | undefined;
|
|
2961
2986
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
2962
2987
|
inventory_code: string;
|
|
2963
2988
|
usage_quantity: number;
|
|
2989
|
+
department_code?: string | null | undefined;
|
|
2964
2990
|
}> & {
|
|
2965
2991
|
inventory_code: string;
|
|
2966
2992
|
usage_quantity: number;
|
|
2993
|
+
department_code?: string | null | undefined;
|
|
2967
2994
|
}> | null | undefined;
|
|
2968
2995
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
2969
2996
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -3307,12 +3334,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
3307
3334
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
3308
3335
|
inventory_code: string;
|
|
3309
3336
|
usage_quantity: number;
|
|
3337
|
+
department_code?: string | null | undefined;
|
|
3310
3338
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
3311
3339
|
inventory_code: string;
|
|
3312
3340
|
usage_quantity: number;
|
|
3341
|
+
department_code?: string | null | undefined;
|
|
3313
3342
|
}> & {
|
|
3314
3343
|
inventory_code: string;
|
|
3315
3344
|
usage_quantity: number;
|
|
3345
|
+
department_code?: string | null | undefined;
|
|
3316
3346
|
}> | null | undefined;
|
|
3317
3347
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
3318
3348
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -3656,12 +3686,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
3656
3686
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
3657
3687
|
inventory_code: string;
|
|
3658
3688
|
usage_quantity: number;
|
|
3689
|
+
department_code?: string | null | undefined;
|
|
3659
3690
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
3660
3691
|
inventory_code: string;
|
|
3661
3692
|
usage_quantity: number;
|
|
3693
|
+
department_code?: string | null | undefined;
|
|
3662
3694
|
}> & {
|
|
3663
3695
|
inventory_code: string;
|
|
3664
3696
|
usage_quantity: number;
|
|
3697
|
+
department_code?: string | null | undefined;
|
|
3665
3698
|
}> | null | undefined;
|
|
3666
3699
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
3667
3700
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -4071,12 +4104,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4071
4104
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
4072
4105
|
inventory_code: string;
|
|
4073
4106
|
usage_quantity: number;
|
|
4107
|
+
department_code?: string | null | undefined;
|
|
4074
4108
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
4075
4109
|
inventory_code: string;
|
|
4076
4110
|
usage_quantity: number;
|
|
4111
|
+
department_code?: string | null | undefined;
|
|
4077
4112
|
}> & {
|
|
4078
4113
|
inventory_code: string;
|
|
4079
4114
|
usage_quantity: number;
|
|
4115
|
+
department_code?: string | null | undefined;
|
|
4080
4116
|
}>;
|
|
4081
4117
|
included_platforms: import("../../constants").PLATFORMS_ENUM[];
|
|
4082
4118
|
hide_name: boolean;
|
|
@@ -4476,12 +4512,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4476
4512
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
4477
4513
|
inventory_code: string;
|
|
4478
4514
|
usage_quantity: number;
|
|
4515
|
+
department_code?: string | null | undefined;
|
|
4479
4516
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
4480
4517
|
inventory_code: string;
|
|
4481
4518
|
usage_quantity: number;
|
|
4519
|
+
department_code?: string | null | undefined;
|
|
4482
4520
|
}> & {
|
|
4483
4521
|
inventory_code: string;
|
|
4484
4522
|
usage_quantity: number;
|
|
4523
|
+
department_code?: string | null | undefined;
|
|
4485
4524
|
}> | null | undefined;
|
|
4486
4525
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
4487
4526
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -4825,12 +4864,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4825
4864
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
4826
4865
|
inventory_code: string;
|
|
4827
4866
|
usage_quantity: number;
|
|
4867
|
+
department_code?: string | null | undefined;
|
|
4828
4868
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
4829
4869
|
inventory_code: string;
|
|
4830
4870
|
usage_quantity: number;
|
|
4871
|
+
department_code?: string | null | undefined;
|
|
4831
4872
|
}> & {
|
|
4832
4873
|
inventory_code: string;
|
|
4833
4874
|
usage_quantity: number;
|
|
4875
|
+
department_code?: string | null | undefined;
|
|
4834
4876
|
}> | null | undefined;
|
|
4835
4877
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
4836
4878
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -5174,12 +5216,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5174
5216
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
5175
5217
|
inventory_code: string;
|
|
5176
5218
|
usage_quantity: number;
|
|
5219
|
+
department_code?: string | null | undefined;
|
|
5177
5220
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
5178
5221
|
inventory_code: string;
|
|
5179
5222
|
usage_quantity: number;
|
|
5223
|
+
department_code?: string | null | undefined;
|
|
5180
5224
|
}> & {
|
|
5181
5225
|
inventory_code: string;
|
|
5182
5226
|
usage_quantity: number;
|
|
5227
|
+
department_code?: string | null | undefined;
|
|
5183
5228
|
}> | null | undefined;
|
|
5184
5229
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
5185
5230
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -5541,12 +5586,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5541
5586
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
5542
5587
|
inventory_code: string;
|
|
5543
5588
|
usage_quantity: number;
|
|
5589
|
+
department_code?: string | null | undefined;
|
|
5544
5590
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
5545
5591
|
inventory_code: string;
|
|
5546
5592
|
usage_quantity: number;
|
|
5593
|
+
department_code?: string | null | undefined;
|
|
5547
5594
|
}> & {
|
|
5548
5595
|
inventory_code: string;
|
|
5549
5596
|
usage_quantity: number;
|
|
5597
|
+
department_code?: string | null | undefined;
|
|
5550
5598
|
}> | null | undefined;
|
|
5551
5599
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
5552
5600
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -5890,12 +5938,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5890
5938
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
5891
5939
|
inventory_code: string;
|
|
5892
5940
|
usage_quantity: number;
|
|
5941
|
+
department_code?: string | null | undefined;
|
|
5893
5942
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
5894
5943
|
inventory_code: string;
|
|
5895
5944
|
usage_quantity: number;
|
|
5945
|
+
department_code?: string | null | undefined;
|
|
5896
5946
|
}> & {
|
|
5897
5947
|
inventory_code: string;
|
|
5898
5948
|
usage_quantity: number;
|
|
5949
|
+
department_code?: string | null | undefined;
|
|
5899
5950
|
}> | null | undefined;
|
|
5900
5951
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
5901
5952
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -6239,12 +6290,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
6239
6290
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
6240
6291
|
inventory_code: string;
|
|
6241
6292
|
usage_quantity: number;
|
|
6293
|
+
department_code?: string | null | undefined;
|
|
6242
6294
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
6243
6295
|
inventory_code: string;
|
|
6244
6296
|
usage_quantity: number;
|
|
6297
|
+
department_code?: string | null | undefined;
|
|
6245
6298
|
}> & {
|
|
6246
6299
|
inventory_code: string;
|
|
6247
6300
|
usage_quantity: number;
|
|
6301
|
+
department_code?: string | null | undefined;
|
|
6248
6302
|
}> | null | undefined;
|
|
6249
6303
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
6250
6304
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -6606,12 +6660,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
6606
6660
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
6607
6661
|
inventory_code: string;
|
|
6608
6662
|
usage_quantity: number;
|
|
6663
|
+
department_code?: string | null | undefined;
|
|
6609
6664
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
6610
6665
|
inventory_code: string;
|
|
6611
6666
|
usage_quantity: number;
|
|
6667
|
+
department_code?: string | null | undefined;
|
|
6612
6668
|
}> & {
|
|
6613
6669
|
inventory_code: string;
|
|
6614
6670
|
usage_quantity: number;
|
|
6671
|
+
department_code?: string | null | undefined;
|
|
6615
6672
|
}> | null | undefined;
|
|
6616
6673
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
6617
6674
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -6955,12 +7012,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
6955
7012
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
6956
7013
|
inventory_code: string;
|
|
6957
7014
|
usage_quantity: number;
|
|
7015
|
+
department_code?: string | null | undefined;
|
|
6958
7016
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
6959
7017
|
inventory_code: string;
|
|
6960
7018
|
usage_quantity: number;
|
|
7019
|
+
department_code?: string | null | undefined;
|
|
6961
7020
|
}> & {
|
|
6962
7021
|
inventory_code: string;
|
|
6963
7022
|
usage_quantity: number;
|
|
7023
|
+
department_code?: string | null | undefined;
|
|
6964
7024
|
}> | null | undefined;
|
|
6965
7025
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
6966
7026
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -7304,12 +7364,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
7304
7364
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
7305
7365
|
inventory_code: string;
|
|
7306
7366
|
usage_quantity: number;
|
|
7367
|
+
department_code?: string | null | undefined;
|
|
7307
7368
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
7308
7369
|
inventory_code: string;
|
|
7309
7370
|
usage_quantity: number;
|
|
7371
|
+
department_code?: string | null | undefined;
|
|
7310
7372
|
}> & {
|
|
7311
7373
|
inventory_code: string;
|
|
7312
7374
|
usage_quantity: number;
|
|
7375
|
+
department_code?: string | null | undefined;
|
|
7313
7376
|
}> | null | undefined;
|
|
7314
7377
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
7315
7378
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -7719,12 +7782,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
7719
7782
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
7720
7783
|
inventory_code: string;
|
|
7721
7784
|
usage_quantity: number;
|
|
7785
|
+
department_code?: string | null | undefined;
|
|
7722
7786
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
7723
7787
|
inventory_code: string;
|
|
7724
7788
|
usage_quantity: number;
|
|
7789
|
+
department_code?: string | null | undefined;
|
|
7725
7790
|
}> & {
|
|
7726
7791
|
inventory_code: string;
|
|
7727
7792
|
usage_quantity: number;
|
|
7793
|
+
department_code?: string | null | undefined;
|
|
7728
7794
|
}>;
|
|
7729
7795
|
included_platforms: import("../../constants").PLATFORMS_ENUM[];
|
|
7730
7796
|
hide_name: boolean;
|
|
@@ -8124,12 +8190,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
8124
8190
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
8125
8191
|
inventory_code: string;
|
|
8126
8192
|
usage_quantity: number;
|
|
8193
|
+
department_code?: string | null | undefined;
|
|
8127
8194
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
8128
8195
|
inventory_code: string;
|
|
8129
8196
|
usage_quantity: number;
|
|
8197
|
+
department_code?: string | null | undefined;
|
|
8130
8198
|
}> & {
|
|
8131
8199
|
inventory_code: string;
|
|
8132
8200
|
usage_quantity: number;
|
|
8201
|
+
department_code?: string | null | undefined;
|
|
8133
8202
|
}> | null | undefined;
|
|
8134
8203
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
8135
8204
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -8473,12 +8542,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
8473
8542
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
8474
8543
|
inventory_code: string;
|
|
8475
8544
|
usage_quantity: number;
|
|
8545
|
+
department_code?: string | null | undefined;
|
|
8476
8546
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
8477
8547
|
inventory_code: string;
|
|
8478
8548
|
usage_quantity: number;
|
|
8549
|
+
department_code?: string | null | undefined;
|
|
8479
8550
|
}> & {
|
|
8480
8551
|
inventory_code: string;
|
|
8481
8552
|
usage_quantity: number;
|
|
8553
|
+
department_code?: string | null | undefined;
|
|
8482
8554
|
}> | null | undefined;
|
|
8483
8555
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
8484
8556
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -8822,12 +8894,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
8822
8894
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
8823
8895
|
inventory_code: string;
|
|
8824
8896
|
usage_quantity: number;
|
|
8897
|
+
department_code?: string | null | undefined;
|
|
8825
8898
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
8826
8899
|
inventory_code: string;
|
|
8827
8900
|
usage_quantity: number;
|
|
8901
|
+
department_code?: string | null | undefined;
|
|
8828
8902
|
}> & {
|
|
8829
8903
|
inventory_code: string;
|
|
8830
8904
|
usage_quantity: number;
|
|
8905
|
+
department_code?: string | null | undefined;
|
|
8831
8906
|
}> | null | undefined;
|
|
8832
8907
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
8833
8908
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -9189,12 +9264,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
9189
9264
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
9190
9265
|
inventory_code: string;
|
|
9191
9266
|
usage_quantity: number;
|
|
9267
|
+
department_code?: string | null | undefined;
|
|
9192
9268
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
9193
9269
|
inventory_code: string;
|
|
9194
9270
|
usage_quantity: number;
|
|
9271
|
+
department_code?: string | null | undefined;
|
|
9195
9272
|
}> & {
|
|
9196
9273
|
inventory_code: string;
|
|
9197
9274
|
usage_quantity: number;
|
|
9275
|
+
department_code?: string | null | undefined;
|
|
9198
9276
|
}> | null | undefined;
|
|
9199
9277
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
9200
9278
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -9538,12 +9616,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
9538
9616
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
9539
9617
|
inventory_code: string;
|
|
9540
9618
|
usage_quantity: number;
|
|
9619
|
+
department_code?: string | null | undefined;
|
|
9541
9620
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
9542
9621
|
inventory_code: string;
|
|
9543
9622
|
usage_quantity: number;
|
|
9623
|
+
department_code?: string | null | undefined;
|
|
9544
9624
|
}> & {
|
|
9545
9625
|
inventory_code: string;
|
|
9546
9626
|
usage_quantity: number;
|
|
9627
|
+
department_code?: string | null | undefined;
|
|
9547
9628
|
}> | null | undefined;
|
|
9548
9629
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
9549
9630
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -9887,12 +9968,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
9887
9968
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
9888
9969
|
inventory_code: string;
|
|
9889
9970
|
usage_quantity: number;
|
|
9971
|
+
department_code?: string | null | undefined;
|
|
9890
9972
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
9891
9973
|
inventory_code: string;
|
|
9892
9974
|
usage_quantity: number;
|
|
9975
|
+
department_code?: string | null | undefined;
|
|
9893
9976
|
}> & {
|
|
9894
9977
|
inventory_code: string;
|
|
9895
9978
|
usage_quantity: number;
|
|
9979
|
+
department_code?: string | null | undefined;
|
|
9896
9980
|
}> | null | undefined;
|
|
9897
9981
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
9898
9982
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -10254,12 +10338,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10254
10338
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
10255
10339
|
inventory_code: string;
|
|
10256
10340
|
usage_quantity: number;
|
|
10341
|
+
department_code?: string | null | undefined;
|
|
10257
10342
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
10258
10343
|
inventory_code: string;
|
|
10259
10344
|
usage_quantity: number;
|
|
10345
|
+
department_code?: string | null | undefined;
|
|
10260
10346
|
}> & {
|
|
10261
10347
|
inventory_code: string;
|
|
10262
10348
|
usage_quantity: number;
|
|
10349
|
+
department_code?: string | null | undefined;
|
|
10263
10350
|
}> | null | undefined;
|
|
10264
10351
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
10265
10352
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -10603,12 +10690,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10603
10690
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
10604
10691
|
inventory_code: string;
|
|
10605
10692
|
usage_quantity: number;
|
|
10693
|
+
department_code?: string | null | undefined;
|
|
10606
10694
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
10607
10695
|
inventory_code: string;
|
|
10608
10696
|
usage_quantity: number;
|
|
10697
|
+
department_code?: string | null | undefined;
|
|
10609
10698
|
}> & {
|
|
10610
10699
|
inventory_code: string;
|
|
10611
10700
|
usage_quantity: number;
|
|
10701
|
+
department_code?: string | null | undefined;
|
|
10612
10702
|
}> | null | undefined;
|
|
10613
10703
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
10614
10704
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -10952,12 +11042,15 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10952
11042
|
ingredients?: import("mongoose").Types.DocumentArray<{
|
|
10953
11043
|
inventory_code: string;
|
|
10954
11044
|
usage_quantity: number;
|
|
11045
|
+
department_code?: string | null | undefined;
|
|
10955
11046
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
10956
11047
|
inventory_code: string;
|
|
10957
11048
|
usage_quantity: number;
|
|
11049
|
+
department_code?: string | null | undefined;
|
|
10958
11050
|
}> & {
|
|
10959
11051
|
inventory_code: string;
|
|
10960
11052
|
usage_quantity: number;
|
|
11053
|
+
department_code?: string | null | undefined;
|
|
10961
11054
|
}> | null | undefined;
|
|
10962
11055
|
item_modifier_option_special_hours?: import("mongoose").Types.DocumentArray<{
|
|
10963
11056
|
days_index: import("../../constants").DAY_INDEX_ENUM[];
|
|
@@ -23,12 +23,15 @@ export declare const WarehouseItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
23
23
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
24
24
|
inventory_code: string;
|
|
25
25
|
usage_quantity: number;
|
|
26
|
+
department_code?: string | null | undefined;
|
|
26
27
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
27
28
|
inventory_code: string;
|
|
28
29
|
usage_quantity: number;
|
|
30
|
+
department_code?: string | null | undefined;
|
|
29
31
|
}> & {
|
|
30
32
|
inventory_code: string;
|
|
31
33
|
usage_quantity: number;
|
|
34
|
+
department_code?: string | null | undefined;
|
|
32
35
|
}>;
|
|
33
36
|
hide_name: boolean;
|
|
34
37
|
keywords: string[];
|
|
@@ -69,12 +72,15 @@ export declare const WarehouseItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
69
72
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
70
73
|
inventory_code: string;
|
|
71
74
|
usage_quantity: number;
|
|
75
|
+
department_code?: string | null | undefined;
|
|
72
76
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
73
77
|
inventory_code: string;
|
|
74
78
|
usage_quantity: number;
|
|
79
|
+
department_code?: string | null | undefined;
|
|
75
80
|
}> & {
|
|
76
81
|
inventory_code: string;
|
|
77
82
|
usage_quantity: number;
|
|
83
|
+
department_code?: string | null | undefined;
|
|
78
84
|
}>;
|
|
79
85
|
hide_name: boolean;
|
|
80
86
|
keywords: string[];
|
|
@@ -115,12 +121,15 @@ export declare const WarehouseItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
115
121
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
116
122
|
inventory_code: string;
|
|
117
123
|
usage_quantity: number;
|
|
124
|
+
department_code?: string | null | undefined;
|
|
118
125
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
119
126
|
inventory_code: string;
|
|
120
127
|
usage_quantity: number;
|
|
128
|
+
department_code?: string | null | undefined;
|
|
121
129
|
}> & {
|
|
122
130
|
inventory_code: string;
|
|
123
131
|
usage_quantity: number;
|
|
132
|
+
department_code?: string | null | undefined;
|
|
124
133
|
}>;
|
|
125
134
|
hide_name: boolean;
|
|
126
135
|
keywords: string[];
|
|
@@ -31,6 +31,9 @@ export * from './internal_operational_roles';
|
|
|
31
31
|
export * from './internal_staffs';
|
|
32
32
|
export * from './inventories';
|
|
33
33
|
export * from './inventory_categories';
|
|
34
|
+
export * from './inventory_department_transactions';
|
|
35
|
+
export * from './inventory_department_utilities';
|
|
36
|
+
export * from './inventory_departments';
|
|
34
37
|
export * from './inventory_transactions';
|
|
35
38
|
export * from './item_transactions';
|
|
36
39
|
export * from './items';
|
|
@@ -47,6 +47,9 @@ __exportStar(require("./internal_operational_roles"), exports);
|
|
|
47
47
|
__exportStar(require("./internal_staffs"), exports);
|
|
48
48
|
__exportStar(require("./inventories"), exports);
|
|
49
49
|
__exportStar(require("./inventory_categories"), exports);
|
|
50
|
+
__exportStar(require("./inventory_department_transactions"), exports);
|
|
51
|
+
__exportStar(require("./inventory_department_utilities"), exports);
|
|
52
|
+
__exportStar(require("./inventory_departments"), exports);
|
|
50
53
|
__exportStar(require("./inventory_transactions"), exports);
|
|
51
54
|
__exportStar(require("./item_transactions"), exports);
|
|
52
55
|
__exportStar(require("./items"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { INVENTORY_TRANSACTION_CATEGORY_ENUM, INVENTORY_TRANSACTION_TYPE_ENUM } from '../../constants';
|
|
2
|
+
export interface IInventoryDepartmentTransaction {
|
|
3
|
+
_id: string;
|
|
4
|
+
tenant_id: string;
|
|
5
|
+
department_code: string;
|
|
6
|
+
inventory_code: string;
|
|
7
|
+
transaction_quantity: number;
|
|
8
|
+
previous_quantity_left: number;
|
|
9
|
+
quantity_left: number;
|
|
10
|
+
previous_unit_price: number;
|
|
11
|
+
unit_price: number;
|
|
12
|
+
remaining_stock_price: number;
|
|
13
|
+
previous_remaining_stock_price: number;
|
|
14
|
+
transaction_type: INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
15
|
+
transaction_category: INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
16
|
+
stock_price?: number;
|
|
17
|
+
stock_expiry_date?: Date | null;
|
|
18
|
+
order_id?: string;
|
|
19
|
+
order_number?: number | null;
|
|
20
|
+
description?: string;
|
|
21
|
+
createdAt_mins: number;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { INVENTORY_ITEM_TYPE_ENUM, INVENTORY_ITEM_UNIT_ENUM } from '../../constants';
|
|
2
|
+
import { IIngredient } from './common';
|
|
3
|
+
export interface IInventoryDepartmentUtility {
|
|
4
|
+
_id: string;
|
|
5
|
+
code: string;
|
|
6
|
+
tenant_id: string;
|
|
7
|
+
department_code: string;
|
|
8
|
+
name: string;
|
|
9
|
+
unit: INVENTORY_ITEM_UNIT_ENUM;
|
|
10
|
+
threshold_quantity: number;
|
|
11
|
+
quantity_left: number;
|
|
12
|
+
unit_price: number;
|
|
13
|
+
remaining_stock_price: number;
|
|
14
|
+
type: INVENTORY_ITEM_TYPE_ENUM;
|
|
15
|
+
ingredients?: IIngredient[] | null;
|
|
16
|
+
image_url: string | null;
|
|
17
|
+
active: boolean;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
21
|
+
export interface IKitchenInventoryDepartment {
|
|
22
|
+
_id: string;
|
|
23
|
+
code: string;
|
|
24
|
+
tenant_id: string;
|
|
25
|
+
department_code: string;
|
|
26
|
+
name: string;
|
|
27
|
+
unit: INVENTORY_ITEM_UNIT_ENUM;
|
|
28
|
+
threshold_quantity: number;
|
|
29
|
+
quantity_left: number;
|
|
30
|
+
unit_price: number;
|
|
31
|
+
remaining_stock_price: number;
|
|
32
|
+
type: INVENTORY_ITEM_TYPE_ENUM;
|
|
33
|
+
ingredients?: IIngredient[] | null;
|
|
34
|
+
image_url: string | null;
|
|
35
|
+
active: boolean;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
updatedAt: Date;
|
|
38
|
+
previous_quantity_left: number;
|
|
39
|
+
previous_unit_price: number;
|
|
40
|
+
previous_remaining_stock_price: number;
|
|
41
|
+
quantity_added: number;
|
|
42
|
+
quantity_consumed: number;
|
|
43
|
+
quantity_wasted: number;
|
|
44
|
+
quantity_short: number;
|
|
45
|
+
variance_quantity: number;
|
|
46
|
+
transfer_quantity: number;
|
|
47
|
+
return_quantity: number;
|
|
48
|
+
total_transactions: number;
|
|
49
|
+
new_stock_price: number;
|
|
50
|
+
}
|