@managesome/eposmatic-toolkit 0.2.537 → 0.2.539
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/helpers/utils/index.d.ts +1 -1
- package/lib/helpers/utils/index.js +1 -1
- package/lib/helpers/utils/tenant_cash_in_hand_transactions.d.ts +3 -0
- package/lib/helpers/utils/{cash_in_hand_transactions.js → tenant_cash_in_hand_transactions.js} +4 -4
- package/lib/helpers/utils/warehouse-sale-order-engine.d.ts +1 -1
- package/lib/helpers/utils/warehouse-sale-order-engine.js +1 -1
- package/lib/schemas/models/customer_redemptions.d.ts +3 -3
- package/lib/schemas/models/deliveries.d.ts +3 -3
- package/lib/schemas/models/discounts.d.ts +6 -6
- package/lib/schemas/models/expense_categories.d.ts +3 -3
- package/lib/schemas/models/expense_details.d.ts +3 -3
- package/lib/schemas/models/gift_cards.d.ts +3 -3
- package/lib/schemas/models/halfhalf_setup.d.ts +6 -6
- package/lib/schemas/models/index.d.ts +6 -6
- package/lib/schemas/models/index.js +6 -6
- package/lib/schemas/models/internal_invoices.d.ts +3 -3
- package/lib/schemas/models/internal_leads.d.ts +3 -3
- package/lib/schemas/models/inventory_transactions.d.ts +6 -6
- package/lib/schemas/models/item_transactions.d.ts +3 -3
- package/lib/schemas/models/items.d.ts +15 -15
- package/lib/schemas/models/modifier_extras.d.ts +3 -3
- package/lib/schemas/models/offers.d.ts +3 -3
- package/lib/schemas/models/specials.d.ts +12 -12
- package/lib/schemas/models/{cash_drawer_sessions.d.ts → tenant_cash_drawer_sessions.d.ts} +5 -5
- package/lib/schemas/models/{cash_drawer_sessions.js → tenant_cash_drawer_sessions.js} +3 -3
- package/lib/schemas/models/{cash_drawers.d.ts → tenant_cash_drawers.d.ts} +2 -2
- package/lib/schemas/models/{cash_drawers.js → tenant_cash_drawers.js} +3 -3
- package/lib/schemas/models/{cash_in_hand_transactions.d.ts → tenant_cash_in_hand_transactions.d.ts} +8 -8
- package/lib/schemas/models/{cash_in_hand_transactions.js → tenant_cash_in_hand_transactions.js} +3 -3
- package/lib/schemas/models/{cash_in_out.d.ts → tenant_cash_in_out.d.ts} +5 -5
- package/lib/schemas/models/{cash_in_out.js → tenant_cash_in_out.js} +3 -3
- package/lib/schemas/models/tenant_days.d.ts +3 -3
- package/lib/schemas/models/{instore_shift_sessions.d.ts → tenant_instore_shift_sessions.d.ts} +11 -11
- package/lib/schemas/models/{instore_shift_sessions.js → tenant_instore_shift_sessions.js} +7 -7
- package/lib/schemas/models/{instore_shifts.d.ts → tenant_instore_shifts.d.ts} +2 -2
- package/lib/schemas/models/{instore_shifts.js → tenant_instore_shifts.js} +3 -3
- package/lib/schemas/models/tenant_inventory_department_transactions.d.ts +6 -6
- package/lib/schemas/models/tenant_shifts.d.ts +3 -3
- package/lib/schemas/models/tenants.d.ts +60 -60
- package/lib/schemas/models/terminal_devices.d.ts +3 -3
- package/lib/schemas/models/vouchers.d.ts +6 -6
- package/lib/schemas/models/wallet_transactions.d.ts +3 -3
- package/lib/schemas/models/warehouse_internal_movements.d.ts +3 -3
- package/lib/schemas/models/warehouse_inventory_transactions.d.ts +6 -6
- package/lib/schemas/models/warehouse_item_transactions.d.ts +3 -3
- package/lib/schemas/models/warehouse_items.d.ts +6 -6
- package/lib/schemas/models/warehouse_operational_roles.d.ts +3 -3
- package/lib/schemas/models/warehouses.d.ts +12 -12
- package/lib/schemas/types/index.d.ts +6 -6
- package/lib/schemas/types/index.js +6 -6
- package/lib/schemas/types/{cash_drawer_sessions.d.ts → tenant_cash_drawer_sessions.d.ts} +1 -1
- package/lib/schemas/types/{cash_drawers.d.ts → tenant_cash_drawers.d.ts} +1 -1
- package/lib/schemas/types/{cash_in_hand_transactions.d.ts → tenant_cash_in_hand_transactions.d.ts} +3 -3
- package/lib/schemas/types/{cash_in_out.d.ts → tenant_cash_in_out.d.ts} +1 -1
- package/lib/schemas/types/{instore_shift_sessions.d.ts → tenant_instore_shift_sessions.d.ts} +5 -5
- package/lib/schemas/types/{instore_shifts.d.ts → tenant_instore_shifts.d.ts} +1 -1
- package/package.json +1 -1
- package/lib/helpers/utils/cash_in_hand_transactions.d.ts +0 -3
- /package/lib/schemas/types/{cash_drawer_sessions.js → tenant_cash_drawer_sessions.js} +0 -0
- /package/lib/schemas/types/{cash_drawers.js → tenant_cash_drawers.js} +0 -0
- /package/lib/schemas/types/{cash_in_hand_transactions.js → tenant_cash_in_hand_transactions.js} +0 -0
- /package/lib/schemas/types/{cash_in_out.js → tenant_cash_in_out.js} +0 -0
- /package/lib/schemas/types/{instore_shift_sessions.js → tenant_instore_shift_sessions.js} +0 -0
- /package/lib/schemas/types/{instore_shifts.js → tenant_instore_shifts.js} +0 -0
|
@@ -373,11 +373,11 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
373
373
|
createdAt: NativeDate;
|
|
374
374
|
updatedAt: NativeDate;
|
|
375
375
|
image_url: string;
|
|
376
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
377
|
-
description: string;
|
|
378
376
|
brand_id: string;
|
|
379
377
|
active: boolean;
|
|
380
378
|
sort_id: number;
|
|
379
|
+
category_id: import("mongoose").Types.ObjectId;
|
|
380
|
+
description: string;
|
|
381
381
|
price: {
|
|
382
382
|
"POS_WALK-IN": number;
|
|
383
383
|
"POS_TAKE-AWAY": number;
|
|
@@ -774,9 +774,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
774
774
|
_id: string;
|
|
775
775
|
name: string;
|
|
776
776
|
ref: string;
|
|
777
|
-
description: string;
|
|
778
777
|
active: boolean;
|
|
779
778
|
sort_id: number;
|
|
779
|
+
description: string;
|
|
780
780
|
sold_out: string[];
|
|
781
781
|
options: import("mongoose").Types.DocumentArray<{
|
|
782
782
|
_id: string;
|
|
@@ -1848,9 +1848,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
1848
1848
|
_id: string;
|
|
1849
1849
|
name: string;
|
|
1850
1850
|
ref: string;
|
|
1851
|
-
description: string;
|
|
1852
1851
|
active: boolean;
|
|
1853
1852
|
sort_id: number;
|
|
1853
|
+
description: string;
|
|
1854
1854
|
sold_out: string[];
|
|
1855
1855
|
options: import("mongoose").Types.DocumentArray<{
|
|
1856
1856
|
_id: string;
|
|
@@ -2922,9 +2922,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
2922
2922
|
_id: string;
|
|
2923
2923
|
name: string;
|
|
2924
2924
|
ref: string;
|
|
2925
|
-
description: string;
|
|
2926
2925
|
active: boolean;
|
|
2927
2926
|
sort_id: number;
|
|
2927
|
+
description: string;
|
|
2928
2928
|
sold_out: string[];
|
|
2929
2929
|
options: import("mongoose").Types.DocumentArray<{
|
|
2930
2930
|
_id: string;
|
|
@@ -4051,11 +4051,11 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4051
4051
|
createdAt: NativeDate;
|
|
4052
4052
|
updatedAt: NativeDate;
|
|
4053
4053
|
image_url: string;
|
|
4054
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
4055
|
-
description: string;
|
|
4056
4054
|
brand_id: string;
|
|
4057
4055
|
active: boolean;
|
|
4058
4056
|
sort_id: number;
|
|
4057
|
+
category_id: import("mongoose").Types.ObjectId;
|
|
4058
|
+
description: string;
|
|
4059
4059
|
price: {
|
|
4060
4060
|
"POS_WALK-IN": number;
|
|
4061
4061
|
"POS_TAKE-AWAY": number;
|
|
@@ -4452,9 +4452,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4452
4452
|
_id: string;
|
|
4453
4453
|
name: string;
|
|
4454
4454
|
ref: string;
|
|
4455
|
-
description: string;
|
|
4456
4455
|
active: boolean;
|
|
4457
4456
|
sort_id: number;
|
|
4457
|
+
description: string;
|
|
4458
4458
|
sold_out: string[];
|
|
4459
4459
|
options: import("mongoose").Types.DocumentArray<{
|
|
4460
4460
|
_id: string;
|
|
@@ -5526,9 +5526,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5526
5526
|
_id: string;
|
|
5527
5527
|
name: string;
|
|
5528
5528
|
ref: string;
|
|
5529
|
-
description: string;
|
|
5530
5529
|
active: boolean;
|
|
5531
5530
|
sort_id: number;
|
|
5531
|
+
description: string;
|
|
5532
5532
|
sold_out: string[];
|
|
5533
5533
|
options: import("mongoose").Types.DocumentArray<{
|
|
5534
5534
|
_id: string;
|
|
@@ -6600,9 +6600,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
6600
6600
|
_id: string;
|
|
6601
6601
|
name: string;
|
|
6602
6602
|
ref: string;
|
|
6603
|
-
description: string;
|
|
6604
6603
|
active: boolean;
|
|
6605
6604
|
sort_id: number;
|
|
6605
|
+
description: string;
|
|
6606
6606
|
sold_out: string[];
|
|
6607
6607
|
options: import("mongoose").Types.DocumentArray<{
|
|
6608
6608
|
_id: string;
|
|
@@ -7729,11 +7729,11 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
7729
7729
|
createdAt: NativeDate;
|
|
7730
7730
|
updatedAt: NativeDate;
|
|
7731
7731
|
image_url: string;
|
|
7732
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
7733
|
-
description: string;
|
|
7734
7732
|
brand_id: string;
|
|
7735
7733
|
active: boolean;
|
|
7736
7734
|
sort_id: number;
|
|
7735
|
+
category_id: import("mongoose").Types.ObjectId;
|
|
7736
|
+
description: string;
|
|
7737
7737
|
price: {
|
|
7738
7738
|
"POS_WALK-IN": number;
|
|
7739
7739
|
"POS_TAKE-AWAY": number;
|
|
@@ -8130,9 +8130,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
8130
8130
|
_id: string;
|
|
8131
8131
|
name: string;
|
|
8132
8132
|
ref: string;
|
|
8133
|
-
description: string;
|
|
8134
8133
|
active: boolean;
|
|
8135
8134
|
sort_id: number;
|
|
8135
|
+
description: string;
|
|
8136
8136
|
sold_out: string[];
|
|
8137
8137
|
options: import("mongoose").Types.DocumentArray<{
|
|
8138
8138
|
_id: string;
|
|
@@ -9204,9 +9204,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
9204
9204
|
_id: string;
|
|
9205
9205
|
name: string;
|
|
9206
9206
|
ref: string;
|
|
9207
|
-
description: string;
|
|
9208
9207
|
active: boolean;
|
|
9209
9208
|
sort_id: number;
|
|
9209
|
+
description: string;
|
|
9210
9210
|
sold_out: string[];
|
|
9211
9211
|
options: import("mongoose").Types.DocumentArray<{
|
|
9212
9212
|
_id: string;
|
|
@@ -10278,9 +10278,9 @@ export declare const ItemSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10278
10278
|
_id: string;
|
|
10279
10279
|
name: string;
|
|
10280
10280
|
ref: string;
|
|
10281
|
-
description: string;
|
|
10282
10281
|
active: boolean;
|
|
10283
10282
|
sort_id: number;
|
|
10283
|
+
description: string;
|
|
10284
10284
|
sold_out: string[];
|
|
10285
10285
|
options: import("mongoose").Types.DocumentArray<{
|
|
10286
10286
|
_id: string;
|
|
@@ -12,8 +12,8 @@ export declare const ModifierExtraSchema: Schema<any, import("mongoose").Model<a
|
|
|
12
12
|
tenants: string[];
|
|
13
13
|
createdAt: NativeDate;
|
|
14
14
|
updatedAt: NativeDate;
|
|
15
|
-
description: string;
|
|
16
15
|
sort_id: number;
|
|
16
|
+
description: string;
|
|
17
17
|
sold_out: string[];
|
|
18
18
|
max_num_options: number;
|
|
19
19
|
min_option_choice_quantity: number;
|
|
@@ -186,8 +186,8 @@ export declare const ModifierExtraSchema: Schema<any, import("mongoose").Model<a
|
|
|
186
186
|
tenants: string[];
|
|
187
187
|
createdAt: NativeDate;
|
|
188
188
|
updatedAt: NativeDate;
|
|
189
|
-
description: string;
|
|
190
189
|
sort_id: number;
|
|
190
|
+
description: string;
|
|
191
191
|
sold_out: string[];
|
|
192
192
|
max_num_options: number;
|
|
193
193
|
min_option_choice_quantity: number;
|
|
@@ -360,8 +360,8 @@ export declare const ModifierExtraSchema: Schema<any, import("mongoose").Model<a
|
|
|
360
360
|
tenants: string[];
|
|
361
361
|
createdAt: NativeDate;
|
|
362
362
|
updatedAt: NativeDate;
|
|
363
|
-
description: string;
|
|
364
363
|
sort_id: number;
|
|
364
|
+
description: string;
|
|
365
365
|
sold_out: string[];
|
|
366
366
|
max_num_options: number;
|
|
367
367
|
min_option_choice_quantity: number;
|
|
@@ -14,10 +14,10 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
14
14
|
createdAt: NativeDate;
|
|
15
15
|
updatedAt: NativeDate;
|
|
16
16
|
image_url: string;
|
|
17
|
-
description: string;
|
|
18
17
|
brand_id: string;
|
|
19
18
|
active: boolean;
|
|
20
19
|
sort_id: number;
|
|
20
|
+
description: string;
|
|
21
21
|
included_platforms: import("../../constants").PLATFORMS_ENUM[];
|
|
22
22
|
auto_apply: boolean;
|
|
23
23
|
pathway_to_unlock_type: PATHWAY_TO_UNLOCK_TYPE_ENUM;
|
|
@@ -410,10 +410,10 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
410
410
|
createdAt: NativeDate;
|
|
411
411
|
updatedAt: NativeDate;
|
|
412
412
|
image_url: string;
|
|
413
|
-
description: string;
|
|
414
413
|
brand_id: string;
|
|
415
414
|
active: boolean;
|
|
416
415
|
sort_id: number;
|
|
416
|
+
description: string;
|
|
417
417
|
included_platforms: import("../../constants").PLATFORMS_ENUM[];
|
|
418
418
|
auto_apply: boolean;
|
|
419
419
|
pathway_to_unlock_type: PATHWAY_TO_UNLOCK_TYPE_ENUM;
|
|
@@ -806,10 +806,10 @@ export declare const OfferSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
806
806
|
createdAt: NativeDate;
|
|
807
807
|
updatedAt: NativeDate;
|
|
808
808
|
image_url: string;
|
|
809
|
-
description: string;
|
|
810
809
|
brand_id: string;
|
|
811
810
|
active: boolean;
|
|
812
811
|
sort_id: number;
|
|
812
|
+
description: string;
|
|
813
813
|
included_platforms: import("../../constants").PLATFORMS_ENUM[];
|
|
814
814
|
auto_apply: boolean;
|
|
815
815
|
pathway_to_unlock_type: PATHWAY_TO_UNLOCK_TYPE_ENUM;
|
|
@@ -202,10 +202,10 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
202
202
|
createdAt: NativeDate;
|
|
203
203
|
updatedAt: NativeDate;
|
|
204
204
|
image_url: string;
|
|
205
|
-
description: string;
|
|
206
205
|
brand_id: string;
|
|
207
206
|
active: boolean;
|
|
208
207
|
sort_id: number;
|
|
208
|
+
description: string;
|
|
209
209
|
price: {
|
|
210
210
|
"POS_WALK-IN": number;
|
|
211
211
|
"POS_TAKE-AWAY": number;
|
|
@@ -541,6 +541,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
541
541
|
modifier_specials: import("mongoose").Types.DocumentArray<{
|
|
542
542
|
_id: import("mongoose").Types.ObjectId;
|
|
543
543
|
name: string;
|
|
544
|
+
sort_id: number;
|
|
544
545
|
items: import("mongoose").Types.DocumentArray<{
|
|
545
546
|
sort_id: number;
|
|
546
547
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -680,7 +681,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
680
681
|
BASE_PRICE: number;
|
|
681
682
|
};
|
|
682
683
|
}>;
|
|
683
|
-
sort_id: number;
|
|
684
684
|
excluded_refs: string[];
|
|
685
685
|
exclusive_refs: string[];
|
|
686
686
|
quantity: number;
|
|
@@ -689,6 +689,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
689
689
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
690
690
|
_id: import("mongoose").Types.ObjectId;
|
|
691
691
|
name: string;
|
|
692
|
+
sort_id: number;
|
|
692
693
|
items: import("mongoose").Types.DocumentArray<{
|
|
693
694
|
sort_id: number;
|
|
694
695
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -828,7 +829,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
828
829
|
BASE_PRICE: number;
|
|
829
830
|
};
|
|
830
831
|
}>;
|
|
831
|
-
sort_id: number;
|
|
832
832
|
excluded_refs: string[];
|
|
833
833
|
exclusive_refs: string[];
|
|
834
834
|
quantity: number;
|
|
@@ -837,6 +837,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
837
837
|
}> & {
|
|
838
838
|
_id: import("mongoose").Types.ObjectId;
|
|
839
839
|
name: string;
|
|
840
|
+
sort_id: number;
|
|
840
841
|
items: import("mongoose").Types.DocumentArray<{
|
|
841
842
|
sort_id: number;
|
|
842
843
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -976,7 +977,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
976
977
|
BASE_PRICE: number;
|
|
977
978
|
};
|
|
978
979
|
}>;
|
|
979
|
-
sort_id: number;
|
|
980
980
|
excluded_refs: string[];
|
|
981
981
|
exclusive_refs: string[];
|
|
982
982
|
quantity: number;
|
|
@@ -1036,10 +1036,10 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1036
1036
|
createdAt: NativeDate;
|
|
1037
1037
|
updatedAt: NativeDate;
|
|
1038
1038
|
image_url: string;
|
|
1039
|
-
description: string;
|
|
1040
1039
|
brand_id: string;
|
|
1041
1040
|
active: boolean;
|
|
1042
1041
|
sort_id: number;
|
|
1042
|
+
description: string;
|
|
1043
1043
|
price: {
|
|
1044
1044
|
"POS_WALK-IN": number;
|
|
1045
1045
|
"POS_TAKE-AWAY": number;
|
|
@@ -1375,6 +1375,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1375
1375
|
modifier_specials: import("mongoose").Types.DocumentArray<{
|
|
1376
1376
|
_id: import("mongoose").Types.ObjectId;
|
|
1377
1377
|
name: string;
|
|
1378
|
+
sort_id: number;
|
|
1378
1379
|
items: import("mongoose").Types.DocumentArray<{
|
|
1379
1380
|
sort_id: number;
|
|
1380
1381
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -1514,7 +1515,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1514
1515
|
BASE_PRICE: number;
|
|
1515
1516
|
};
|
|
1516
1517
|
}>;
|
|
1517
|
-
sort_id: number;
|
|
1518
1518
|
excluded_refs: string[];
|
|
1519
1519
|
exclusive_refs: string[];
|
|
1520
1520
|
quantity: number;
|
|
@@ -1523,6 +1523,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1523
1523
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
1524
1524
|
_id: import("mongoose").Types.ObjectId;
|
|
1525
1525
|
name: string;
|
|
1526
|
+
sort_id: number;
|
|
1526
1527
|
items: import("mongoose").Types.DocumentArray<{
|
|
1527
1528
|
sort_id: number;
|
|
1528
1529
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -1662,7 +1663,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1662
1663
|
BASE_PRICE: number;
|
|
1663
1664
|
};
|
|
1664
1665
|
}>;
|
|
1665
|
-
sort_id: number;
|
|
1666
1666
|
excluded_refs: string[];
|
|
1667
1667
|
exclusive_refs: string[];
|
|
1668
1668
|
quantity: number;
|
|
@@ -1671,6 +1671,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1671
1671
|
}> & {
|
|
1672
1672
|
_id: import("mongoose").Types.ObjectId;
|
|
1673
1673
|
name: string;
|
|
1674
|
+
sort_id: number;
|
|
1674
1675
|
items: import("mongoose").Types.DocumentArray<{
|
|
1675
1676
|
sort_id: number;
|
|
1676
1677
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -1810,7 +1811,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1810
1811
|
BASE_PRICE: number;
|
|
1811
1812
|
};
|
|
1812
1813
|
}>;
|
|
1813
|
-
sort_id: number;
|
|
1814
1814
|
excluded_refs: string[];
|
|
1815
1815
|
exclusive_refs: string[];
|
|
1816
1816
|
quantity: number;
|
|
@@ -1870,10 +1870,10 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
1870
1870
|
createdAt: NativeDate;
|
|
1871
1871
|
updatedAt: NativeDate;
|
|
1872
1872
|
image_url: string;
|
|
1873
|
-
description: string;
|
|
1874
1873
|
brand_id: string;
|
|
1875
1874
|
active: boolean;
|
|
1876
1875
|
sort_id: number;
|
|
1876
|
+
description: string;
|
|
1877
1877
|
price: {
|
|
1878
1878
|
"POS_WALK-IN": number;
|
|
1879
1879
|
"POS_TAKE-AWAY": number;
|
|
@@ -2209,6 +2209,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
2209
2209
|
modifier_specials: import("mongoose").Types.DocumentArray<{
|
|
2210
2210
|
_id: import("mongoose").Types.ObjectId;
|
|
2211
2211
|
name: string;
|
|
2212
|
+
sort_id: number;
|
|
2212
2213
|
items: import("mongoose").Types.DocumentArray<{
|
|
2213
2214
|
sort_id: number;
|
|
2214
2215
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -2348,7 +2349,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
2348
2349
|
BASE_PRICE: number;
|
|
2349
2350
|
};
|
|
2350
2351
|
}>;
|
|
2351
|
-
sort_id: number;
|
|
2352
2352
|
excluded_refs: string[];
|
|
2353
2353
|
exclusive_refs: string[];
|
|
2354
2354
|
quantity: number;
|
|
@@ -2357,6 +2357,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
2357
2357
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
2358
2358
|
_id: import("mongoose").Types.ObjectId;
|
|
2359
2359
|
name: string;
|
|
2360
|
+
sort_id: number;
|
|
2360
2361
|
items: import("mongoose").Types.DocumentArray<{
|
|
2361
2362
|
sort_id: number;
|
|
2362
2363
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -2496,7 +2497,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
2496
2497
|
BASE_PRICE: number;
|
|
2497
2498
|
};
|
|
2498
2499
|
}>;
|
|
2499
|
-
sort_id: number;
|
|
2500
2500
|
excluded_refs: string[];
|
|
2501
2501
|
exclusive_refs: string[];
|
|
2502
2502
|
quantity: number;
|
|
@@ -2505,6 +2505,7 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
2505
2505
|
}> & {
|
|
2506
2506
|
_id: import("mongoose").Types.ObjectId;
|
|
2507
2507
|
name: string;
|
|
2508
|
+
sort_id: number;
|
|
2508
2509
|
items: import("mongoose").Types.DocumentArray<{
|
|
2509
2510
|
sort_id: number;
|
|
2510
2511
|
item_id: import("mongoose").Types.ObjectId;
|
|
@@ -2644,7 +2645,6 @@ export declare const SpecialsSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
2644
2645
|
BASE_PRICE: number;
|
|
2645
2646
|
};
|
|
2646
2647
|
}>;
|
|
2647
|
-
sort_id: number;
|
|
2648
2648
|
excluded_refs: string[];
|
|
2649
2649
|
exclusive_refs: string[];
|
|
2650
2650
|
quantity: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const TenantCashDrawerSessionsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
3
|
timestamps: true;
|
|
4
4
|
versionKey: false;
|
|
5
5
|
minimize: false;
|
|
@@ -13,10 +13,10 @@ export declare const CashDrawerSessionsSchema: Schema<any, import("mongoose").Mo
|
|
|
13
13
|
staff_name: string;
|
|
14
14
|
createdAt: NativeDate;
|
|
15
15
|
updatedAt: NativeDate;
|
|
16
|
+
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
16
17
|
shift_id: import("mongoose").Types.ObjectId;
|
|
17
18
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
18
19
|
drawer_name: string;
|
|
19
|
-
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
20
20
|
denominations: Map<string, number>;
|
|
21
21
|
balance: number;
|
|
22
22
|
expected_balance: number;
|
|
@@ -45,10 +45,10 @@ export declare const CashDrawerSessionsSchema: Schema<any, import("mongoose").Mo
|
|
|
45
45
|
staff_name: string;
|
|
46
46
|
createdAt: NativeDate;
|
|
47
47
|
updatedAt: NativeDate;
|
|
48
|
+
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
48
49
|
shift_id: import("mongoose").Types.ObjectId;
|
|
49
50
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
50
51
|
drawer_name: string;
|
|
51
|
-
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
52
52
|
denominations: Map<string, number>;
|
|
53
53
|
balance: number;
|
|
54
54
|
expected_balance: number;
|
|
@@ -77,10 +77,10 @@ export declare const CashDrawerSessionsSchema: Schema<any, import("mongoose").Mo
|
|
|
77
77
|
staff_name: string;
|
|
78
78
|
createdAt: NativeDate;
|
|
79
79
|
updatedAt: NativeDate;
|
|
80
|
+
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
80
81
|
shift_id: import("mongoose").Types.ObjectId;
|
|
81
82
|
drawer_id: import("mongoose").Types.ObjectId;
|
|
82
83
|
drawer_name: string;
|
|
83
|
-
status: import("../../constants").CASH_DRAWER_STATUS_ENUM;
|
|
84
84
|
denominations: Map<string, number>;
|
|
85
85
|
balance: number;
|
|
86
86
|
expected_balance: number;
|
|
@@ -104,4 +104,4 @@ export declare const CashDrawerSessionsSchema: Schema<any, import("mongoose").Mo
|
|
|
104
104
|
}> & {
|
|
105
105
|
__v: number;
|
|
106
106
|
}>;
|
|
107
|
-
export declare const
|
|
107
|
+
export declare const TENANT_CASH_DRAWER_SESSIONS_COLLECTION_NAME = "tenant_cash_drawer_sessions";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TENANT_CASH_DRAWER_SESSIONS_COLLECTION_NAME = exports.TenantCashDrawerSessionsSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const common_models_1 = require("./common-models");
|
|
7
|
-
exports.
|
|
7
|
+
exports.TenantCashDrawerSessionsSchema = new mongoose_1.Schema({
|
|
8
8
|
_id: {
|
|
9
9
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
10
10
|
required: true,
|
|
@@ -75,4 +75,4 @@ exports.CashDrawerSessionsSchema = new mongoose_1.Schema({
|
|
|
75
75
|
versionKey: false,
|
|
76
76
|
minimize: false,
|
|
77
77
|
});
|
|
78
|
-
exports.
|
|
78
|
+
exports.TENANT_CASH_DRAWER_SESSIONS_COLLECTION_NAME = 'tenant_cash_drawer_sessions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const TenantCashDrawerSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
3
|
timestamps: true;
|
|
4
4
|
versionKey: false;
|
|
5
5
|
minimize: false;
|
|
@@ -41,4 +41,4 @@ export declare const CashDrawerSchema: Schema<any, import("mongoose").Model<any,
|
|
|
41
41
|
}> & {
|
|
42
42
|
__v: number;
|
|
43
43
|
}>;
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const TENANT_CASH_DRAWERS_COLLECTION_NAME = "tenant_cash_drawers";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TENANT_CASH_DRAWERS_COLLECTION_NAME = exports.TenantCashDrawerSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
exports.
|
|
5
|
+
exports.TenantCashDrawerSchema = new mongoose_1.Schema({
|
|
6
6
|
_id: {
|
|
7
7
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
8
|
required: true,
|
|
@@ -43,4 +43,4 @@ exports.CashDrawerSchema = new mongoose_1.Schema({
|
|
|
43
43
|
versionKey: false,
|
|
44
44
|
minimize: false,
|
|
45
45
|
});
|
|
46
|
-
exports.
|
|
46
|
+
exports.TENANT_CASH_DRAWERS_COLLECTION_NAME = 'tenant_cash_drawers';
|
package/lib/schemas/models/{cash_in_hand_transactions.d.ts → tenant_cash_in_hand_transactions.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const TenantCashInHandTransactionsSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
3
|
timestamps: true;
|
|
4
4
|
versionKey: false;
|
|
5
5
|
minimize: false;
|
|
@@ -14,12 +14,12 @@ export declare const CashInHandTransactionsSchema: Schema<any, import("mongoose"
|
|
|
14
14
|
createdAt: NativeDate;
|
|
15
15
|
updatedAt: NativeDate;
|
|
16
16
|
note: string;
|
|
17
|
+
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
18
|
+
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
17
19
|
processed_by_id: string;
|
|
18
20
|
processed_by_name: string;
|
|
19
21
|
prev_cash_in_hand: number;
|
|
20
22
|
cash_in_hand: number;
|
|
21
|
-
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
22
|
-
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
23
23
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
24
24
|
createdAt: NativeDate;
|
|
25
25
|
updatedAt: NativeDate;
|
|
@@ -31,12 +31,12 @@ export declare const CashInHandTransactionsSchema: Schema<any, import("mongoose"
|
|
|
31
31
|
createdAt: NativeDate;
|
|
32
32
|
updatedAt: NativeDate;
|
|
33
33
|
note: string;
|
|
34
|
+
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
35
|
+
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
34
36
|
processed_by_id: string;
|
|
35
37
|
processed_by_name: string;
|
|
36
38
|
prev_cash_in_hand: number;
|
|
37
39
|
cash_in_hand: number;
|
|
38
|
-
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
39
|
-
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
40
40
|
}>> & import("mongoose").FlatRecord<{
|
|
41
41
|
createdAt: NativeDate;
|
|
42
42
|
updatedAt: NativeDate;
|
|
@@ -48,15 +48,15 @@ export declare const CashInHandTransactionsSchema: Schema<any, import("mongoose"
|
|
|
48
48
|
createdAt: NativeDate;
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
50
|
note: string;
|
|
51
|
+
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
52
|
+
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
51
53
|
processed_by_id: string;
|
|
52
54
|
processed_by_name: string;
|
|
53
55
|
prev_cash_in_hand: number;
|
|
54
56
|
cash_in_hand: number;
|
|
55
|
-
transaction_type: import("../../constants").CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
56
|
-
transaction_category: import("../../constants").CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
57
57
|
}> & Required<{
|
|
58
58
|
_id: import("mongoose").Types.ObjectId;
|
|
59
59
|
}> & {
|
|
60
60
|
__v: number;
|
|
61
61
|
}>;
|
|
62
|
-
export declare const
|
|
62
|
+
export declare const TENANT_CASH_IN_HAND_TRANSACTIONS_COLLECTION_NAME = "tenant_cash_in_hand_transactions";
|
package/lib/schemas/models/{cash_in_hand_transactions.js → tenant_cash_in_hand_transactions.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TENANT_CASH_IN_HAND_TRANSACTIONS_COLLECTION_NAME = exports.TenantCashInHandTransactionsSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
|
-
exports.
|
|
6
|
+
exports.TenantCashInHandTransactionsSchema = new mongoose_1.Schema({
|
|
7
7
|
_id: {
|
|
8
8
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
9
9
|
required: true,
|
|
@@ -69,4 +69,4 @@ exports.CashInHandTransactionsSchema = new mongoose_1.Schema({
|
|
|
69
69
|
versionKey: false,
|
|
70
70
|
minimize: false,
|
|
71
71
|
});
|
|
72
|
-
exports.
|
|
72
|
+
exports.TENANT_CASH_IN_HAND_TRANSACTIONS_COLLECTION_NAME = 'tenant_cash_in_hand_transactions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const TenantCashInOutSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
3
|
timestamps: true;
|
|
4
4
|
versionKey: false;
|
|
5
5
|
minimize: false;
|
|
@@ -15,6 +15,7 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
15
15
|
createdAt: NativeDate;
|
|
16
16
|
updatedAt: NativeDate;
|
|
17
17
|
note: string;
|
|
18
|
+
amount: number;
|
|
18
19
|
shift_id: string;
|
|
19
20
|
drawer_id: string;
|
|
20
21
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -33,7 +34,6 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
33
34
|
localDayOfYear: number;
|
|
34
35
|
expense_id: string;
|
|
35
36
|
shift_number: number;
|
|
36
|
-
amount: number;
|
|
37
37
|
drawer_balance_before: number;
|
|
38
38
|
drawer_balance_after: number;
|
|
39
39
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -48,6 +48,7 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
48
48
|
createdAt: NativeDate;
|
|
49
49
|
updatedAt: NativeDate;
|
|
50
50
|
note: string;
|
|
51
|
+
amount: number;
|
|
51
52
|
shift_id: string;
|
|
52
53
|
drawer_id: string;
|
|
53
54
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -66,7 +67,6 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
66
67
|
localDayOfYear: number;
|
|
67
68
|
expense_id: string;
|
|
68
69
|
shift_number: number;
|
|
69
|
-
amount: number;
|
|
70
70
|
drawer_balance_before: number;
|
|
71
71
|
drawer_balance_after: number;
|
|
72
72
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -81,6 +81,7 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
81
81
|
createdAt: NativeDate;
|
|
82
82
|
updatedAt: NativeDate;
|
|
83
83
|
note: string;
|
|
84
|
+
amount: number;
|
|
84
85
|
shift_id: string;
|
|
85
86
|
drawer_id: string;
|
|
86
87
|
day_index: import("../../constants").DAY_INDEX_ENUM;
|
|
@@ -99,7 +100,6 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
99
100
|
localDayOfYear: number;
|
|
100
101
|
expense_id: string;
|
|
101
102
|
shift_number: number;
|
|
102
|
-
amount: number;
|
|
103
103
|
drawer_balance_before: number;
|
|
104
104
|
drawer_balance_after: number;
|
|
105
105
|
}> & Required<{
|
|
@@ -107,4 +107,4 @@ export declare const CashInOutSchema: Schema<any, import("mongoose").Model<any,
|
|
|
107
107
|
}> & {
|
|
108
108
|
__v: number;
|
|
109
109
|
}>;
|
|
110
|
-
export declare const
|
|
110
|
+
export declare const TENANT_CASH_IN_OUT_COLLECTION_NAME = "tenant_cash_in_out";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TENANT_CASH_IN_OUT_COLLECTION_NAME = exports.TenantCashInOutSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const common_models_1 = require("./common-models");
|
|
7
|
-
exports.
|
|
7
|
+
exports.TenantCashInOutSchema = new mongoose_1.Schema({
|
|
8
8
|
_id: {
|
|
9
9
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
10
10
|
required: true,
|
|
@@ -78,4 +78,4 @@ exports.CashInOutSchema = new mongoose_1.Schema({
|
|
|
78
78
|
versionKey: false,
|
|
79
79
|
minimize: false,
|
|
80
80
|
});
|
|
81
|
-
exports.
|
|
81
|
+
exports.TENANT_CASH_IN_OUT_COLLECTION_NAME = 'tenant_cash_in_out';
|
|
@@ -39,8 +39,8 @@ export declare const TenantDaySchema: Schema<any, import("mongoose").Model<any,
|
|
|
39
39
|
note: string;
|
|
40
40
|
cash_amount: number;
|
|
41
41
|
closed_at: NativeDate;
|
|
42
|
-
difference: number;
|
|
43
42
|
expected_cash_amount: number;
|
|
43
|
+
difference: number;
|
|
44
44
|
cash_in_out_id: string;
|
|
45
45
|
};
|
|
46
46
|
total_shifts: number;
|
|
@@ -80,8 +80,8 @@ export declare const TenantDaySchema: Schema<any, import("mongoose").Model<any,
|
|
|
80
80
|
note: string;
|
|
81
81
|
cash_amount: number;
|
|
82
82
|
closed_at: NativeDate;
|
|
83
|
-
difference: number;
|
|
84
83
|
expected_cash_amount: number;
|
|
84
|
+
difference: number;
|
|
85
85
|
cash_in_out_id: string;
|
|
86
86
|
};
|
|
87
87
|
total_shifts: number;
|
|
@@ -121,8 +121,8 @@ export declare const TenantDaySchema: Schema<any, import("mongoose").Model<any,
|
|
|
121
121
|
note: string;
|
|
122
122
|
cash_amount: number;
|
|
123
123
|
closed_at: NativeDate;
|
|
124
|
-
difference: number;
|
|
125
124
|
expected_cash_amount: number;
|
|
125
|
+
difference: number;
|
|
126
126
|
cash_in_out_id: string;
|
|
127
127
|
};
|
|
128
128
|
total_shifts: number;
|