@managesome/eposmatic-toolkit 0.2.538 → 0.2.540
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/types/common.d.ts +1 -0
- 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/time-helpers.d.ts +1 -0
- package/lib/helpers/utils/time-helpers.js +3 -0
- 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
|
@@ -14,9 +14,9 @@ export declare const WalletTransactionsSchema: Schema<any, import("mongoose").Mo
|
|
|
14
14
|
updatedAt: NativeDate;
|
|
15
15
|
payment_provider: string;
|
|
16
16
|
payment_id: string;
|
|
17
|
+
payment_method: string;
|
|
17
18
|
transaction_type: import("../../constants").WALLET_TRANSACTION_TYPE_ENUM;
|
|
18
19
|
transaction_category: import("../../constants").WALLET_TRANSACTION_CATEGORY_ENUM;
|
|
19
|
-
payment_method: string;
|
|
20
20
|
previous_balance: number;
|
|
21
21
|
transaction_amount: number;
|
|
22
22
|
running_balance: number;
|
|
@@ -36,9 +36,9 @@ export declare const WalletTransactionsSchema: Schema<any, import("mongoose").Mo
|
|
|
36
36
|
updatedAt: NativeDate;
|
|
37
37
|
payment_provider: string;
|
|
38
38
|
payment_id: string;
|
|
39
|
+
payment_method: string;
|
|
39
40
|
transaction_type: import("../../constants").WALLET_TRANSACTION_TYPE_ENUM;
|
|
40
41
|
transaction_category: import("../../constants").WALLET_TRANSACTION_CATEGORY_ENUM;
|
|
41
|
-
payment_method: string;
|
|
42
42
|
previous_balance: number;
|
|
43
43
|
transaction_amount: number;
|
|
44
44
|
running_balance: number;
|
|
@@ -58,9 +58,9 @@ export declare const WalletTransactionsSchema: Schema<any, import("mongoose").Mo
|
|
|
58
58
|
updatedAt: NativeDate;
|
|
59
59
|
payment_provider: string;
|
|
60
60
|
payment_id: string;
|
|
61
|
+
payment_method: string;
|
|
61
62
|
transaction_type: import("../../constants").WALLET_TRANSACTION_TYPE_ENUM;
|
|
62
63
|
transaction_category: import("../../constants").WALLET_TRANSACTION_CATEGORY_ENUM;
|
|
63
|
-
payment_method: string;
|
|
64
64
|
previous_balance: number;
|
|
65
65
|
transaction_amount: number;
|
|
66
66
|
running_balance: number;
|
|
@@ -42,8 +42,8 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
42
42
|
unit_price?: number | null | undefined;
|
|
43
43
|
dispatched_qty?: number | null | undefined;
|
|
44
44
|
}>;
|
|
45
|
-
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
46
45
|
ref_id: string;
|
|
46
|
+
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
47
47
|
payments: import("mongoose").Types.DocumentArray<{
|
|
48
48
|
payment_type: string;
|
|
49
49
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -230,8 +230,8 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
230
230
|
unit_price?: number | null | undefined;
|
|
231
231
|
dispatched_qty?: number | null | undefined;
|
|
232
232
|
}>;
|
|
233
|
-
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
234
233
|
ref_id: string;
|
|
234
|
+
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
235
235
|
payments: import("mongoose").Types.DocumentArray<{
|
|
236
236
|
payment_type: string;
|
|
237
237
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -418,8 +418,8 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
418
418
|
unit_price?: number | null | undefined;
|
|
419
419
|
dispatched_qty?: number | null | undefined;
|
|
420
420
|
}>;
|
|
421
|
-
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
422
421
|
ref_id: string;
|
|
422
|
+
status: import("../../constants").WAREHOUSE_INTERNAL_MOVEMENT_STATUS_ENUM;
|
|
423
423
|
payments: import("mongoose").Types.DocumentArray<{
|
|
424
424
|
payment_type: string;
|
|
425
425
|
payment_status: import("../../constants").PAYMENT_STATUS_ENUM;
|
|
@@ -11,8 +11,6 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
|
|
|
11
11
|
createdAt_mins: number;
|
|
12
12
|
createdAt: NativeDate;
|
|
13
13
|
updatedAt: NativeDate;
|
|
14
|
-
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
15
|
-
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
16
14
|
inventory_code: string;
|
|
17
15
|
warehouse_id: string;
|
|
18
16
|
quantity_left: number;
|
|
@@ -22,6 +20,8 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
|
|
|
22
20
|
previous_unit_price: number;
|
|
23
21
|
previous_remaining_stock_price: number;
|
|
24
22
|
transaction_quantity: number;
|
|
23
|
+
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
24
|
+
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
25
25
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
26
26
|
description?: string | null | undefined;
|
|
27
27
|
order_number?: number | null | undefined;
|
|
@@ -35,8 +35,6 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
|
|
|
35
35
|
createdAt_mins: number;
|
|
36
36
|
createdAt: NativeDate;
|
|
37
37
|
updatedAt: NativeDate;
|
|
38
|
-
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
39
|
-
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
40
38
|
inventory_code: string;
|
|
41
39
|
warehouse_id: string;
|
|
42
40
|
quantity_left: number;
|
|
@@ -46,6 +44,8 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
|
|
|
46
44
|
previous_unit_price: number;
|
|
47
45
|
previous_remaining_stock_price: number;
|
|
48
46
|
transaction_quantity: number;
|
|
47
|
+
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
48
|
+
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
49
49
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
50
50
|
description?: string | null | undefined;
|
|
51
51
|
order_number?: number | null | undefined;
|
|
@@ -59,8 +59,6 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
|
|
|
59
59
|
createdAt_mins: number;
|
|
60
60
|
createdAt: NativeDate;
|
|
61
61
|
updatedAt: NativeDate;
|
|
62
|
-
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
63
|
-
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
64
62
|
inventory_code: string;
|
|
65
63
|
warehouse_id: string;
|
|
66
64
|
quantity_left: number;
|
|
@@ -70,6 +68,8 @@ export declare const WarehouseInventoryTransactionsSchema: Schema<any, import("m
|
|
|
70
68
|
previous_unit_price: number;
|
|
71
69
|
previous_remaining_stock_price: number;
|
|
72
70
|
transaction_quantity: number;
|
|
71
|
+
transaction_type: import("../../constants").INVENTORY_TRANSACTION_TYPE_ENUM;
|
|
72
|
+
transaction_category: import("../../constants").INVENTORY_TRANSACTION_CATEGORY_ENUM;
|
|
73
73
|
order_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
74
74
|
description?: string | null | undefined;
|
|
75
75
|
order_number?: number | null | undefined;
|
|
@@ -12,12 +12,12 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
|
|
|
12
12
|
createdAt: NativeDate;
|
|
13
13
|
updatedAt: NativeDate;
|
|
14
14
|
category_id: import("mongoose").Types.ObjectId;
|
|
15
|
-
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
16
15
|
inventory_code: string;
|
|
17
16
|
order_number: number;
|
|
18
17
|
warehouse_id: string;
|
|
19
18
|
item_id: import("mongoose").Types.ObjectId;
|
|
20
19
|
quantity: number;
|
|
20
|
+
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
21
21
|
selling_price: number;
|
|
22
22
|
item_name: string;
|
|
23
23
|
category_name: string;
|
|
@@ -33,12 +33,12 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
|
|
|
33
33
|
createdAt: NativeDate;
|
|
34
34
|
updatedAt: NativeDate;
|
|
35
35
|
category_id: import("mongoose").Types.ObjectId;
|
|
36
|
-
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
37
36
|
inventory_code: string;
|
|
38
37
|
order_number: number;
|
|
39
38
|
warehouse_id: string;
|
|
40
39
|
item_id: import("mongoose").Types.ObjectId;
|
|
41
40
|
quantity: number;
|
|
41
|
+
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
42
42
|
selling_price: number;
|
|
43
43
|
item_name: string;
|
|
44
44
|
category_name: string;
|
|
@@ -54,12 +54,12 @@ export declare const WarehouseItemTransactionsSchema: Schema<any, import("mongoo
|
|
|
54
54
|
createdAt: NativeDate;
|
|
55
55
|
updatedAt: NativeDate;
|
|
56
56
|
category_id: import("mongoose").Types.ObjectId;
|
|
57
|
-
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
58
57
|
inventory_code: string;
|
|
59
58
|
order_number: number;
|
|
60
59
|
warehouse_id: string;
|
|
61
60
|
item_id: import("mongoose").Types.ObjectId;
|
|
62
61
|
quantity: number;
|
|
62
|
+
transaction_type: import("../../constants").ITEM_TRANSACTION_TYPE_ENUM;
|
|
63
63
|
selling_price: number;
|
|
64
64
|
item_name: string;
|
|
65
65
|
category_name: string;
|
|
@@ -14,11 +14,11 @@ export declare const WarehouseItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
14
14
|
createdAt: NativeDate;
|
|
15
15
|
updatedAt: NativeDate;
|
|
16
16
|
image_url: string;
|
|
17
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
18
|
-
description: string;
|
|
19
17
|
brand_id: string;
|
|
20
18
|
active: boolean;
|
|
21
19
|
sort_id: number;
|
|
20
|
+
category_id: import("mongoose").Types.ObjectId;
|
|
21
|
+
description: string;
|
|
22
22
|
inventory_code: string;
|
|
23
23
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
24
24
|
inventory_code: string;
|
|
@@ -63,11 +63,11 @@ export declare const WarehouseItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
63
63
|
createdAt: NativeDate;
|
|
64
64
|
updatedAt: NativeDate;
|
|
65
65
|
image_url: string;
|
|
66
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
67
|
-
description: string;
|
|
68
66
|
brand_id: string;
|
|
69
67
|
active: boolean;
|
|
70
68
|
sort_id: number;
|
|
69
|
+
category_id: import("mongoose").Types.ObjectId;
|
|
70
|
+
description: string;
|
|
71
71
|
inventory_code: string;
|
|
72
72
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
73
73
|
inventory_code: string;
|
|
@@ -112,11 +112,11 @@ export declare const WarehouseItemSchema: Schema<any, import("mongoose").Model<a
|
|
|
112
112
|
createdAt: NativeDate;
|
|
113
113
|
updatedAt: NativeDate;
|
|
114
114
|
image_url: string;
|
|
115
|
-
category_id: import("mongoose").Types.ObjectId;
|
|
116
|
-
description: string;
|
|
117
115
|
brand_id: string;
|
|
118
116
|
active: boolean;
|
|
119
117
|
sort_id: number;
|
|
118
|
+
category_id: import("mongoose").Types.ObjectId;
|
|
119
|
+
description: string;
|
|
120
120
|
inventory_code: string;
|
|
121
121
|
ingredients: import("mongoose").Types.DocumentArray<{
|
|
122
122
|
inventory_code: string;
|
|
@@ -10,7 +10,6 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
10
10
|
_id: import("mongoose").Types.ObjectId;
|
|
11
11
|
createdAt: NativeDate;
|
|
12
12
|
updatedAt: NativeDate;
|
|
13
|
-
warehouse_id: string;
|
|
14
13
|
roles: {
|
|
15
14
|
SUPER_ADMIN: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
16
15
|
MODERATOR: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
@@ -25,6 +24,7 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
25
24
|
STAFF: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
26
25
|
DRIVER: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
27
26
|
};
|
|
27
|
+
warehouse_id: string;
|
|
28
28
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
29
29
|
createdAt: NativeDate;
|
|
30
30
|
updatedAt: NativeDate;
|
|
@@ -32,7 +32,6 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
32
32
|
_id: import("mongoose").Types.ObjectId;
|
|
33
33
|
createdAt: NativeDate;
|
|
34
34
|
updatedAt: NativeDate;
|
|
35
|
-
warehouse_id: string;
|
|
36
35
|
roles: {
|
|
37
36
|
SUPER_ADMIN: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
38
37
|
MODERATOR: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
@@ -47,6 +46,7 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
47
46
|
STAFF: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
48
47
|
DRIVER: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
49
48
|
};
|
|
49
|
+
warehouse_id: string;
|
|
50
50
|
}>> & import("mongoose").FlatRecord<{
|
|
51
51
|
createdAt: NativeDate;
|
|
52
52
|
updatedAt: NativeDate;
|
|
@@ -54,7 +54,6 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
54
54
|
_id: import("mongoose").Types.ObjectId;
|
|
55
55
|
createdAt: NativeDate;
|
|
56
56
|
updatedAt: NativeDate;
|
|
57
|
-
warehouse_id: string;
|
|
58
57
|
roles: {
|
|
59
58
|
SUPER_ADMIN: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
60
59
|
MODERATOR: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
@@ -69,6 +68,7 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
69
68
|
STAFF: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
70
69
|
DRIVER: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
71
70
|
};
|
|
71
|
+
warehouse_id: string;
|
|
72
72
|
}> & Required<{
|
|
73
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
74
|
}> & {
|
|
@@ -16,6 +16,10 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
16
16
|
brand_id: string;
|
|
17
17
|
active: boolean;
|
|
18
18
|
country_code: COUNTRY_CODE_ENUM;
|
|
19
|
+
public_business_name: string;
|
|
20
|
+
brand_color: string;
|
|
21
|
+
country_name: COUNTRY_NAME_ENUM;
|
|
22
|
+
coordinates: number[];
|
|
19
23
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
20
24
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
21
25
|
support_email: string;
|
|
@@ -24,11 +28,7 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
24
28
|
currency_code: CURRENCY_CODE_ENUM;
|
|
25
29
|
currency_name: CURRENCY_NAME_ENUM;
|
|
26
30
|
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
27
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
28
31
|
country_flag: COUNTRY_FLAG_ENUM;
|
|
29
|
-
coordinates: number[];
|
|
30
|
-
brand_color: string;
|
|
31
|
-
public_business_name: string;
|
|
32
32
|
im_card_gst: number;
|
|
33
33
|
im_cash_gst: number;
|
|
34
34
|
default_im_gst_type: GST_TYPE_ENUM;
|
|
@@ -70,6 +70,10 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
70
70
|
brand_id: string;
|
|
71
71
|
active: boolean;
|
|
72
72
|
country_code: COUNTRY_CODE_ENUM;
|
|
73
|
+
public_business_name: string;
|
|
74
|
+
brand_color: string;
|
|
75
|
+
country_name: COUNTRY_NAME_ENUM;
|
|
76
|
+
coordinates: number[];
|
|
73
77
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
74
78
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
75
79
|
support_email: string;
|
|
@@ -78,11 +82,7 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
78
82
|
currency_code: CURRENCY_CODE_ENUM;
|
|
79
83
|
currency_name: CURRENCY_NAME_ENUM;
|
|
80
84
|
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
81
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
82
85
|
country_flag: COUNTRY_FLAG_ENUM;
|
|
83
|
-
coordinates: number[];
|
|
84
|
-
brand_color: string;
|
|
85
|
-
public_business_name: string;
|
|
86
86
|
im_card_gst: number;
|
|
87
87
|
im_cash_gst: number;
|
|
88
88
|
default_im_gst_type: GST_TYPE_ENUM;
|
|
@@ -124,6 +124,10 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
124
124
|
brand_id: string;
|
|
125
125
|
active: boolean;
|
|
126
126
|
country_code: COUNTRY_CODE_ENUM;
|
|
127
|
+
public_business_name: string;
|
|
128
|
+
brand_color: string;
|
|
129
|
+
country_name: COUNTRY_NAME_ENUM;
|
|
130
|
+
coordinates: number[];
|
|
127
131
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
128
132
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
129
133
|
support_email: string;
|
|
@@ -132,11 +136,7 @@ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any,
|
|
|
132
136
|
currency_code: CURRENCY_CODE_ENUM;
|
|
133
137
|
currency_name: CURRENCY_NAME_ENUM;
|
|
134
138
|
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
135
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
136
139
|
country_flag: COUNTRY_FLAG_ENUM;
|
|
137
|
-
coordinates: number[];
|
|
138
|
-
brand_color: string;
|
|
139
|
-
public_business_name: string;
|
|
140
140
|
im_card_gst: number;
|
|
141
141
|
im_cash_gst: number;
|
|
142
142
|
default_im_gst_type: GST_TYPE_ENUM;
|
|
@@ -2,10 +2,6 @@ export * from '../../helpers/types/customer_wallet_assignments';
|
|
|
2
2
|
export * from './app_configs';
|
|
3
3
|
export * from './applied_order_discounts';
|
|
4
4
|
export * from './brands';
|
|
5
|
-
export * from './cash_drawer_sessions';
|
|
6
|
-
export * from './cash_drawers';
|
|
7
|
-
export * from './cash_in_hand_transactions';
|
|
8
|
-
export * from './cash_in_out';
|
|
9
5
|
export * from './categories';
|
|
10
6
|
export * from './close_dates';
|
|
11
7
|
export * from './common';
|
|
@@ -22,8 +18,6 @@ export * from './expense_categories';
|
|
|
22
18
|
export * from './expense_details';
|
|
23
19
|
export * from './gift_cards';
|
|
24
20
|
export * from './halfhalf_setup';
|
|
25
|
-
export * from './instore_shift_sessions';
|
|
26
|
-
export * from './instore_shifts';
|
|
27
21
|
export * from './internal_customers';
|
|
28
22
|
export * from './internal_invoices';
|
|
29
23
|
export * from './internal_leads';
|
|
@@ -55,7 +49,13 @@ export * from './riders';
|
|
|
55
49
|
export * from './specials';
|
|
56
50
|
export * from './staff_shifts';
|
|
57
51
|
export * from './tenant-activity-logs';
|
|
52
|
+
export * from './tenant_cash_drawer_sessions';
|
|
53
|
+
export * from './tenant_cash_drawers';
|
|
54
|
+
export * from './tenant_cash_in_hand_transactions';
|
|
55
|
+
export * from './tenant_cash_in_out';
|
|
58
56
|
export * from './tenant_days';
|
|
57
|
+
export * from './tenant_instore_shift_sessions';
|
|
58
|
+
export * from './tenant_instore_shifts';
|
|
59
59
|
export * from './tenant_metadata';
|
|
60
60
|
export * from './tenant_purchase_order_vendor_returns';
|
|
61
61
|
export * from './tenant_purchase_orders';
|
|
@@ -18,10 +18,6 @@ __exportStar(require("../../helpers/types/customer_wallet_assignments"), exports
|
|
|
18
18
|
__exportStar(require("./app_configs"), exports);
|
|
19
19
|
__exportStar(require("./applied_order_discounts"), exports);
|
|
20
20
|
__exportStar(require("./brands"), exports);
|
|
21
|
-
__exportStar(require("./cash_drawer_sessions"), exports);
|
|
22
|
-
__exportStar(require("./cash_drawers"), exports);
|
|
23
|
-
__exportStar(require("./cash_in_hand_transactions"), exports);
|
|
24
|
-
__exportStar(require("./cash_in_out"), exports);
|
|
25
21
|
__exportStar(require("./categories"), exports);
|
|
26
22
|
__exportStar(require("./close_dates"), exports);
|
|
27
23
|
__exportStar(require("./common"), exports);
|
|
@@ -38,8 +34,6 @@ __exportStar(require("./expense_categories"), exports);
|
|
|
38
34
|
__exportStar(require("./expense_details"), exports);
|
|
39
35
|
__exportStar(require("./gift_cards"), exports);
|
|
40
36
|
__exportStar(require("./halfhalf_setup"), exports);
|
|
41
|
-
__exportStar(require("./instore_shift_sessions"), exports);
|
|
42
|
-
__exportStar(require("./instore_shifts"), exports);
|
|
43
37
|
__exportStar(require("./internal_customers"), exports);
|
|
44
38
|
__exportStar(require("./internal_invoices"), exports);
|
|
45
39
|
__exportStar(require("./internal_leads"), exports);
|
|
@@ -71,7 +65,13 @@ __exportStar(require("./riders"), exports);
|
|
|
71
65
|
__exportStar(require("./specials"), exports);
|
|
72
66
|
__exportStar(require("./staff_shifts"), exports);
|
|
73
67
|
__exportStar(require("./tenant-activity-logs"), exports);
|
|
68
|
+
__exportStar(require("./tenant_cash_drawer_sessions"), exports);
|
|
69
|
+
__exportStar(require("./tenant_cash_drawers"), exports);
|
|
70
|
+
__exportStar(require("./tenant_cash_in_hand_transactions"), exports);
|
|
71
|
+
__exportStar(require("./tenant_cash_in_out"), exports);
|
|
74
72
|
__exportStar(require("./tenant_days"), exports);
|
|
73
|
+
__exportStar(require("./tenant_instore_shift_sessions"), exports);
|
|
74
|
+
__exportStar(require("./tenant_instore_shifts"), exports);
|
|
75
75
|
__exportStar(require("./tenant_metadata"), exports);
|
|
76
76
|
__exportStar(require("./tenant_purchase_order_vendor_returns"), exports);
|
|
77
77
|
__exportStar(require("./tenant_purchase_orders"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CASH_DRAWER_STATUS_ENUM } from '../../constants';
|
|
2
2
|
import { ILocalTimeFields } from '../../helpers';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ITenantCashDrawerSession extends ILocalTimeFields {
|
|
4
4
|
_id: string;
|
|
5
5
|
tenant_id: string;
|
|
6
6
|
shift_id: string;
|
package/lib/schemas/types/{cash_in_hand_transactions.d.ts → tenant_cash_in_hand_transactions.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CASH_IN_HAND_TRANSACTION_TYPE_ENUM } from '../../constants';
|
|
2
|
-
export interface
|
|
1
|
+
import { CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM, CASH_IN_HAND_TRANSACTION_TYPE_ENUM } from '../../constants';
|
|
2
|
+
export interface ITenantCashInHandTransaction {
|
|
3
3
|
_id: string;
|
|
4
4
|
tenant_id: string;
|
|
5
5
|
staff_id: string;
|
|
@@ -9,7 +9,7 @@ export interface ICashInHandTransaction {
|
|
|
9
9
|
prev_cash_in_hand: number;
|
|
10
10
|
cash_in_hand: number;
|
|
11
11
|
transaction_type: CASH_IN_HAND_TRANSACTION_TYPE_ENUM;
|
|
12
|
-
transaction_category:
|
|
12
|
+
transaction_category: CASH_IN_HAND_TRANSACTION_CATEGORY_ENUM;
|
|
13
13
|
note?: string | null;
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
updatedAt: Date;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CASH_IN_OUT_TYPE_ENUM } from '../../constants';
|
|
2
2
|
import { ILocalTimeFields } from '../../helpers';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ITenantCashInOut extends ILocalTimeFields {
|
|
4
4
|
_id: string;
|
|
5
5
|
tenant_id: string;
|
|
6
6
|
shift_id: string;
|
package/lib/schemas/types/{instore_shift_sessions.d.ts → tenant_instore_shift_sessions.d.ts}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { POS_SHIFT_STATUS_ENUM } from '../../constants';
|
|
2
2
|
import { ILocalTimeFields } from '../../helpers';
|
|
3
|
-
export interface
|
|
3
|
+
export interface ITenantInstoreShiftOpening {
|
|
4
4
|
staff_id: string;
|
|
5
5
|
staff_name: string;
|
|
6
6
|
note: string;
|
|
7
7
|
opened_at: Date;
|
|
8
8
|
cash_amount: number;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ITenantInstoreShiftClosing {
|
|
11
11
|
staff_id: string;
|
|
12
12
|
staff_name: string;
|
|
13
13
|
note: string;
|
|
14
14
|
closed_at: Date;
|
|
15
15
|
cash_amount: number;
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
17
|
+
export interface ITenantInstoreShiftSession extends ILocalTimeFields {
|
|
18
18
|
_id: string;
|
|
19
19
|
tenant_id: string;
|
|
20
20
|
day_id: string;
|
|
21
21
|
shift_id: string;
|
|
22
22
|
shift_number: number;
|
|
23
23
|
status: POS_SHIFT_STATUS_ENUM;
|
|
24
|
-
opening:
|
|
25
|
-
closing:
|
|
24
|
+
opening: ITenantInstoreShiftOpening | null;
|
|
25
|
+
closing: ITenantInstoreShiftClosing | null;
|
|
26
26
|
cash_in_total: number;
|
|
27
27
|
cash_out_total: number;
|
|
28
28
|
expected_drawer_total: number;
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ICashInHandTransaction } from '../../schemas';
|
|
2
|
-
export declare function getCashInHandTransactionWithInt<T extends Partial<ICashInHandTransaction> | ICashInHandTransaction>(transaction: T): T;
|
|
3
|
-
export declare function getCashInHandTransactionWithDecimal<T extends Partial<ICashInHandTransaction> | ICashInHandTransaction>(transaction: T): T;
|
|
File without changes
|
|
File without changes
|
/package/lib/schemas/types/{cash_in_hand_transactions.js → tenant_cash_in_hand_transactions.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|