@managesome/eposmatic-toolkit 0.2.551 → 0.2.552
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/store/cart-actions.d.ts +14 -0
- package/lib/helpers/utils/offer-apply-helpers.d.ts +14 -0
- package/lib/schemas/models/internal_invoices.d.ts +3 -3
- package/lib/schemas/models/orders.d.ts +153 -111
- package/lib/schemas/models/orders.js +79 -0
- package/lib/schemas/models/tenant_day_sessions.d.ts +32 -32
- package/lib/schemas/models/tenant_instore_shift_sessions.d.ts +42 -42
- package/lib/schemas/models/tenant_purchase_orders.d.ts +36 -36
- package/lib/schemas/models/tenants.d.ts +60 -60
- package/lib/schemas/models/vouchers.d.ts +3 -3
- package/lib/schemas/models/warehouse_communications.d.ts +3 -3
- package/lib/schemas/models/warehouse_internal_movements.d.ts +6 -6
- package/lib/schemas/models/warehouse_operational_roles.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +63 -63
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +42 -42
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +69 -69
- package/lib/schemas/models/warehouse_sale_orders.d.ts +45 -45
- package/lib/schemas/models/warehouses.d.ts +12 -12
- package/lib/schemas/types/orders.d.ts +2 -1
- package/package.json +1 -1
|
@@ -168,6 +168,20 @@ export declare function getChangeCourseStatusData(data: Partial<IOrder>, course_
|
|
|
168
168
|
adjustment_amount?: number | null | undefined;
|
|
169
169
|
adjustment_reason?: string | null | undefined;
|
|
170
170
|
tax_invoice_provider_charges?: number | undefined;
|
|
171
|
+
day_index?: import("../../constants").DAY_INDEX_ENUM | undefined;
|
|
172
|
+
localSecond?: number | undefined;
|
|
173
|
+
localMinute?: number | undefined;
|
|
174
|
+
localHour?: number | undefined;
|
|
175
|
+
localDay?: number | undefined;
|
|
176
|
+
localWeek?: number | undefined;
|
|
177
|
+
localWeekOfYear?: number | undefined;
|
|
178
|
+
localMonth?: number | undefined;
|
|
179
|
+
localQuarter?: number | undefined;
|
|
180
|
+
localSemester?: number | undefined;
|
|
181
|
+
localYear?: number | undefined;
|
|
182
|
+
localDate?: string | undefined;
|
|
183
|
+
localTime?: string | undefined;
|
|
184
|
+
localDayOfYear?: number | undefined;
|
|
171
185
|
};
|
|
172
186
|
export interface IGetCartItemsObjPayload {
|
|
173
187
|
currentIterationCategories: IOrderCategory[] | undefined;
|
|
@@ -97,5 +97,19 @@ offers: IOffer[]): {
|
|
|
97
97
|
adjustment_amount?: number | null | undefined;
|
|
98
98
|
adjustment_reason?: string | null | undefined;
|
|
99
99
|
tax_invoice_provider_charges?: number | undefined;
|
|
100
|
+
day_index?: import("../../constants").DAY_INDEX_ENUM | undefined;
|
|
101
|
+
localSecond?: number | undefined;
|
|
102
|
+
localMinute?: number | undefined;
|
|
103
|
+
localHour?: number | undefined;
|
|
104
|
+
localDay?: number | undefined;
|
|
105
|
+
localWeek?: number | undefined;
|
|
106
|
+
localWeekOfYear?: number | undefined;
|
|
107
|
+
localMonth?: number | undefined;
|
|
108
|
+
localQuarter?: number | undefined;
|
|
109
|
+
localSemester?: number | undefined;
|
|
110
|
+
localYear?: number | undefined;
|
|
111
|
+
localDate?: string | undefined;
|
|
112
|
+
localTime?: string | undefined;
|
|
113
|
+
localDayOfYear?: number | undefined;
|
|
100
114
|
};
|
|
101
115
|
export {};
|
|
@@ -16,9 +16,9 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
|
|
|
16
16
|
customer_name: string;
|
|
17
17
|
status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
|
|
18
18
|
payment_method: string;
|
|
19
|
+
grand_total: number;
|
|
19
20
|
tax_number: string;
|
|
20
21
|
tax_amount: number;
|
|
21
|
-
grand_total: number;
|
|
22
22
|
subtotal: number;
|
|
23
23
|
payment_terms: string;
|
|
24
24
|
notes: string;
|
|
@@ -44,9 +44,9 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
|
|
|
44
44
|
customer_name: string;
|
|
45
45
|
status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
|
|
46
46
|
payment_method: string;
|
|
47
|
+
grand_total: number;
|
|
47
48
|
tax_number: string;
|
|
48
49
|
tax_amount: number;
|
|
49
|
-
grand_total: number;
|
|
50
50
|
subtotal: number;
|
|
51
51
|
payment_terms: string;
|
|
52
52
|
notes: string;
|
|
@@ -72,9 +72,9 @@ export declare const InternalInvoiceSchema: Schema<any, import("mongoose").Model
|
|
|
72
72
|
customer_name: string;
|
|
73
73
|
status: import("../../constants").INTERNAL_INVOICE_STATUS_ENUM;
|
|
74
74
|
payment_method: string;
|
|
75
|
+
grand_total: number;
|
|
75
76
|
tax_number: string;
|
|
76
77
|
tax_amount: number;
|
|
77
|
-
grand_total: number;
|
|
78
78
|
subtotal: number;
|
|
79
79
|
payment_terms: string;
|
|
80
80
|
notes: string;
|
|
@@ -1244,19 +1244,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
1244
1244
|
refund_reason?: string | null | undefined;
|
|
1245
1245
|
note?: string | null | undefined;
|
|
1246
1246
|
}>;
|
|
1247
|
-
consumer: {
|
|
1248
|
-
email: string;
|
|
1249
|
-
phone: string;
|
|
1250
|
-
first_name: string;
|
|
1251
|
-
last_name: string;
|
|
1252
|
-
};
|
|
1253
|
-
tip_amount: number;
|
|
1254
|
-
special_instructions: string;
|
|
1255
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
1256
|
-
tax_number: string;
|
|
1257
|
-
tax_amount: number;
|
|
1258
|
-
amount_earned: number;
|
|
1259
|
-
grand_total: number;
|
|
1260
1247
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
1261
1248
|
platform: import("../../constants").PLATFORMS_ENUM;
|
|
1262
1249
|
updatedAt: NativeDate;
|
|
@@ -2406,6 +2393,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
2406
2393
|
refund_reason?: string | null | undefined;
|
|
2407
2394
|
note?: string | null | undefined;
|
|
2408
2395
|
}>;
|
|
2396
|
+
special_instructions: string;
|
|
2397
|
+
amount_earned: number;
|
|
2398
|
+
grand_total: number;
|
|
2399
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
2400
|
+
tax_number: string;
|
|
2409
2401
|
consumer: {
|
|
2410
2402
|
email: string;
|
|
2411
2403
|
phone: string;
|
|
@@ -2413,12 +2405,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
2413
2405
|
last_name: string;
|
|
2414
2406
|
};
|
|
2415
2407
|
tip_amount: number;
|
|
2416
|
-
special_instructions: string;
|
|
2417
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
2418
|
-
tax_number: string;
|
|
2419
2408
|
tax_amount: number;
|
|
2420
|
-
amount_earned: number;
|
|
2421
|
-
grand_total: number;
|
|
2422
2409
|
staff_details?: {
|
|
2423
2410
|
staff_id: string;
|
|
2424
2411
|
staff_name: string;
|
|
@@ -3668,6 +3655,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
3668
3655
|
refund_reason?: string | null | undefined;
|
|
3669
3656
|
note?: string | null | undefined;
|
|
3670
3657
|
}>;
|
|
3658
|
+
special_instructions: string;
|
|
3659
|
+
amount_earned: number;
|
|
3660
|
+
grand_total: number;
|
|
3661
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
3662
|
+
tax_number: string;
|
|
3671
3663
|
consumer: {
|
|
3672
3664
|
email: string;
|
|
3673
3665
|
phone: string;
|
|
@@ -3675,12 +3667,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
3675
3667
|
last_name: string;
|
|
3676
3668
|
};
|
|
3677
3669
|
tip_amount: number;
|
|
3678
|
-
special_instructions: string;
|
|
3679
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
3680
|
-
tax_number: string;
|
|
3681
3670
|
tax_amount: number;
|
|
3682
|
-
amount_earned: number;
|
|
3683
|
-
grand_total: number;
|
|
3684
3671
|
staff_details?: {
|
|
3685
3672
|
staff_id: string;
|
|
3686
3673
|
staff_name: string;
|
|
@@ -4930,6 +4917,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4930
4917
|
refund_reason?: string | null | undefined;
|
|
4931
4918
|
note?: string | null | undefined;
|
|
4932
4919
|
}>;
|
|
4920
|
+
special_instructions: string;
|
|
4921
|
+
amount_earned: number;
|
|
4922
|
+
grand_total: number;
|
|
4923
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
4924
|
+
tax_number: string;
|
|
4933
4925
|
consumer: {
|
|
4934
4926
|
email: string;
|
|
4935
4927
|
phone: string;
|
|
@@ -4937,12 +4929,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
4937
4929
|
last_name: string;
|
|
4938
4930
|
};
|
|
4939
4931
|
tip_amount: number;
|
|
4940
|
-
special_instructions: string;
|
|
4941
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
4942
|
-
tax_number: string;
|
|
4943
4932
|
tax_amount: number;
|
|
4944
|
-
amount_earned: number;
|
|
4945
|
-
grand_total: number;
|
|
4946
4933
|
staff_details?: {
|
|
4947
4934
|
staff_id: string;
|
|
4948
4935
|
staff_name: string;
|
|
@@ -5049,18 +5036,22 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5049
5036
|
order_status_updated_at: NativeDate;
|
|
5050
5037
|
order_settled_at: NativeDate;
|
|
5051
5038
|
order_settled_at_mins: number;
|
|
5039
|
+
special_instructions: string;
|
|
5040
|
+
amount_earned: number;
|
|
5041
|
+
grand_total: number;
|
|
5042
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
5043
|
+
tax_number: string;
|
|
5044
|
+
consumer: {
|
|
5045
|
+
email: string;
|
|
5046
|
+
phone: string;
|
|
5047
|
+
first_name: string;
|
|
5048
|
+
last_name: string;
|
|
5049
|
+
};
|
|
5050
|
+
tip_amount: number;
|
|
5051
|
+
tax_amount: number;
|
|
5052
5052
|
cancel_reason?: string | null | undefined;
|
|
5053
|
-
source_tenant_id?: string | null | undefined;
|
|
5054
|
-
split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
5055
|
-
split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
5056
|
-
split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
|
|
5057
5053
|
delete_reason?: string | null | undefined;
|
|
5058
|
-
tax_invoice_id?: string | null | undefined;
|
|
5059
|
-
rating?: number | null | undefined;
|
|
5060
|
-
review?: string | null | undefined;
|
|
5061
5054
|
is_reopened?: boolean | null | undefined;
|
|
5062
|
-
deferred_settlement?: boolean | null | undefined;
|
|
5063
|
-
payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
|
|
5064
5055
|
staff_details?: {
|
|
5065
5056
|
staff_id: string;
|
|
5066
5057
|
staff_name: string;
|
|
@@ -5070,7 +5061,30 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
5070
5061
|
is_gst_inclusive?: boolean | null | undefined;
|
|
5071
5062
|
gst?: number | null | undefined;
|
|
5072
5063
|
gst_amount?: number | null | undefined;
|
|
5064
|
+
deferred_settlement?: boolean | null | undefined;
|
|
5073
5065
|
redeemed_offers?: Map<string, number> | null | undefined;
|
|
5066
|
+
day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
|
|
5067
|
+
localSecond?: number | null | undefined;
|
|
5068
|
+
localMinute?: number | null | undefined;
|
|
5069
|
+
localHour?: number | null | undefined;
|
|
5070
|
+
localDay?: number | null | undefined;
|
|
5071
|
+
localWeek?: number | null | undefined;
|
|
5072
|
+
localWeekOfYear?: number | null | undefined;
|
|
5073
|
+
localMonth?: number | null | undefined;
|
|
5074
|
+
localQuarter?: number | null | undefined;
|
|
5075
|
+
localSemester?: number | null | undefined;
|
|
5076
|
+
localYear?: number | null | undefined;
|
|
5077
|
+
localDate?: string | null | undefined;
|
|
5078
|
+
localTime?: string | null | undefined;
|
|
5079
|
+
localDayOfYear?: number | null | undefined;
|
|
5080
|
+
source_tenant_id?: string | null | undefined;
|
|
5081
|
+
split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
5082
|
+
split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
5083
|
+
split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
|
|
5084
|
+
tax_invoice_id?: string | null | undefined;
|
|
5085
|
+
rating?: number | null | undefined;
|
|
5086
|
+
review?: string | null | undefined;
|
|
5087
|
+
payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
|
|
5074
5088
|
order_taker_details?: {
|
|
5075
5089
|
staff_id: string;
|
|
5076
5090
|
staff_name: string;
|
|
@@ -6335,19 +6349,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
6335
6349
|
refund_reason?: string | null | undefined;
|
|
6336
6350
|
note?: string | null | undefined;
|
|
6337
6351
|
}>;
|
|
6338
|
-
consumer: {
|
|
6339
|
-
email: string;
|
|
6340
|
-
phone: string;
|
|
6341
|
-
first_name: string;
|
|
6342
|
-
last_name: string;
|
|
6343
|
-
};
|
|
6344
|
-
tip_amount: number;
|
|
6345
|
-
special_instructions: string;
|
|
6346
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
6347
|
-
tax_number: string;
|
|
6348
|
-
tax_amount: number;
|
|
6349
|
-
amount_earned: number;
|
|
6350
|
-
grand_total: number;
|
|
6351
6352
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
6352
6353
|
platform: import("../../constants").PLATFORMS_ENUM;
|
|
6353
6354
|
updatedAt: NativeDate;
|
|
@@ -7497,6 +7498,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
7497
7498
|
refund_reason?: string | null | undefined;
|
|
7498
7499
|
note?: string | null | undefined;
|
|
7499
7500
|
}>;
|
|
7501
|
+
special_instructions: string;
|
|
7502
|
+
amount_earned: number;
|
|
7503
|
+
grand_total: number;
|
|
7504
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
7505
|
+
tax_number: string;
|
|
7500
7506
|
consumer: {
|
|
7501
7507
|
email: string;
|
|
7502
7508
|
phone: string;
|
|
@@ -7504,12 +7510,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
7504
7510
|
last_name: string;
|
|
7505
7511
|
};
|
|
7506
7512
|
tip_amount: number;
|
|
7507
|
-
special_instructions: string;
|
|
7508
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
7509
|
-
tax_number: string;
|
|
7510
7513
|
tax_amount: number;
|
|
7511
|
-
amount_earned: number;
|
|
7512
|
-
grand_total: number;
|
|
7513
7514
|
staff_details?: {
|
|
7514
7515
|
staff_id: string;
|
|
7515
7516
|
staff_name: string;
|
|
@@ -8759,6 +8760,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
8759
8760
|
refund_reason?: string | null | undefined;
|
|
8760
8761
|
note?: string | null | undefined;
|
|
8761
8762
|
}>;
|
|
8763
|
+
special_instructions: string;
|
|
8764
|
+
amount_earned: number;
|
|
8765
|
+
grand_total: number;
|
|
8766
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
8767
|
+
tax_number: string;
|
|
8762
8768
|
consumer: {
|
|
8763
8769
|
email: string;
|
|
8764
8770
|
phone: string;
|
|
@@ -8766,12 +8772,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
8766
8772
|
last_name: string;
|
|
8767
8773
|
};
|
|
8768
8774
|
tip_amount: number;
|
|
8769
|
-
special_instructions: string;
|
|
8770
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
8771
|
-
tax_number: string;
|
|
8772
8775
|
tax_amount: number;
|
|
8773
|
-
amount_earned: number;
|
|
8774
|
-
grand_total: number;
|
|
8775
8776
|
staff_details?: {
|
|
8776
8777
|
staff_id: string;
|
|
8777
8778
|
staff_name: string;
|
|
@@ -10021,6 +10022,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10021
10022
|
refund_reason?: string | null | undefined;
|
|
10022
10023
|
note?: string | null | undefined;
|
|
10023
10024
|
}>;
|
|
10025
|
+
special_instructions: string;
|
|
10026
|
+
amount_earned: number;
|
|
10027
|
+
grand_total: number;
|
|
10028
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
10029
|
+
tax_number: string;
|
|
10024
10030
|
consumer: {
|
|
10025
10031
|
email: string;
|
|
10026
10032
|
phone: string;
|
|
@@ -10028,12 +10034,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10028
10034
|
last_name: string;
|
|
10029
10035
|
};
|
|
10030
10036
|
tip_amount: number;
|
|
10031
|
-
special_instructions: string;
|
|
10032
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
10033
|
-
tax_number: string;
|
|
10034
10037
|
tax_amount: number;
|
|
10035
|
-
amount_earned: number;
|
|
10036
|
-
grand_total: number;
|
|
10037
10038
|
staff_details?: {
|
|
10038
10039
|
staff_id: string;
|
|
10039
10040
|
staff_name: string;
|
|
@@ -10140,18 +10141,22 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10140
10141
|
order_status_updated_at: NativeDate;
|
|
10141
10142
|
order_settled_at: NativeDate;
|
|
10142
10143
|
order_settled_at_mins: number;
|
|
10144
|
+
special_instructions: string;
|
|
10145
|
+
amount_earned: number;
|
|
10146
|
+
grand_total: number;
|
|
10147
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
10148
|
+
tax_number: string;
|
|
10149
|
+
consumer: {
|
|
10150
|
+
email: string;
|
|
10151
|
+
phone: string;
|
|
10152
|
+
first_name: string;
|
|
10153
|
+
last_name: string;
|
|
10154
|
+
};
|
|
10155
|
+
tip_amount: number;
|
|
10156
|
+
tax_amount: number;
|
|
10143
10157
|
cancel_reason?: string | null | undefined;
|
|
10144
|
-
source_tenant_id?: string | null | undefined;
|
|
10145
|
-
split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
10146
|
-
split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
10147
|
-
split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
|
|
10148
10158
|
delete_reason?: string | null | undefined;
|
|
10149
|
-
tax_invoice_id?: string | null | undefined;
|
|
10150
|
-
rating?: number | null | undefined;
|
|
10151
|
-
review?: string | null | undefined;
|
|
10152
10159
|
is_reopened?: boolean | null | undefined;
|
|
10153
|
-
deferred_settlement?: boolean | null | undefined;
|
|
10154
|
-
payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
|
|
10155
10160
|
staff_details?: {
|
|
10156
10161
|
staff_id: string;
|
|
10157
10162
|
staff_name: string;
|
|
@@ -10161,7 +10166,30 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
10161
10166
|
is_gst_inclusive?: boolean | null | undefined;
|
|
10162
10167
|
gst?: number | null | undefined;
|
|
10163
10168
|
gst_amount?: number | null | undefined;
|
|
10169
|
+
deferred_settlement?: boolean | null | undefined;
|
|
10164
10170
|
redeemed_offers?: Map<string, number> | null | undefined;
|
|
10171
|
+
day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
|
|
10172
|
+
localSecond?: number | null | undefined;
|
|
10173
|
+
localMinute?: number | null | undefined;
|
|
10174
|
+
localHour?: number | null | undefined;
|
|
10175
|
+
localDay?: number | null | undefined;
|
|
10176
|
+
localWeek?: number | null | undefined;
|
|
10177
|
+
localWeekOfYear?: number | null | undefined;
|
|
10178
|
+
localMonth?: number | null | undefined;
|
|
10179
|
+
localQuarter?: number | null | undefined;
|
|
10180
|
+
localSemester?: number | null | undefined;
|
|
10181
|
+
localYear?: number | null | undefined;
|
|
10182
|
+
localDate?: string | null | undefined;
|
|
10183
|
+
localTime?: string | null | undefined;
|
|
10184
|
+
localDayOfYear?: number | null | undefined;
|
|
10185
|
+
source_tenant_id?: string | null | undefined;
|
|
10186
|
+
split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
10187
|
+
split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
10188
|
+
split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
|
|
10189
|
+
tax_invoice_id?: string | null | undefined;
|
|
10190
|
+
rating?: number | null | undefined;
|
|
10191
|
+
review?: string | null | undefined;
|
|
10192
|
+
payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
|
|
10165
10193
|
order_taker_details?: {
|
|
10166
10194
|
staff_id: string;
|
|
10167
10195
|
staff_name: string;
|
|
@@ -11426,19 +11454,6 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
11426
11454
|
refund_reason?: string | null | undefined;
|
|
11427
11455
|
note?: string | null | undefined;
|
|
11428
11456
|
}>;
|
|
11429
|
-
consumer: {
|
|
11430
|
-
email: string;
|
|
11431
|
-
phone: string;
|
|
11432
|
-
first_name: string;
|
|
11433
|
-
last_name: string;
|
|
11434
|
-
};
|
|
11435
|
-
tip_amount: number;
|
|
11436
|
-
special_instructions: string;
|
|
11437
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
11438
|
-
tax_number: string;
|
|
11439
|
-
tax_amount: number;
|
|
11440
|
-
amount_earned: number;
|
|
11441
|
-
grand_total: number;
|
|
11442
11457
|
iterations: import("mongoose").Types.DocumentArray<{
|
|
11443
11458
|
platform: import("../../constants").PLATFORMS_ENUM;
|
|
11444
11459
|
updatedAt: NativeDate;
|
|
@@ -12588,6 +12603,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
12588
12603
|
refund_reason?: string | null | undefined;
|
|
12589
12604
|
note?: string | null | undefined;
|
|
12590
12605
|
}>;
|
|
12606
|
+
special_instructions: string;
|
|
12607
|
+
amount_earned: number;
|
|
12608
|
+
grand_total: number;
|
|
12609
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
12610
|
+
tax_number: string;
|
|
12591
12611
|
consumer: {
|
|
12592
12612
|
email: string;
|
|
12593
12613
|
phone: string;
|
|
@@ -12595,12 +12615,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
12595
12615
|
last_name: string;
|
|
12596
12616
|
};
|
|
12597
12617
|
tip_amount: number;
|
|
12598
|
-
special_instructions: string;
|
|
12599
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
12600
|
-
tax_number: string;
|
|
12601
12618
|
tax_amount: number;
|
|
12602
|
-
amount_earned: number;
|
|
12603
|
-
grand_total: number;
|
|
12604
12619
|
staff_details?: {
|
|
12605
12620
|
staff_id: string;
|
|
12606
12621
|
staff_name: string;
|
|
@@ -13850,6 +13865,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
13850
13865
|
refund_reason?: string | null | undefined;
|
|
13851
13866
|
note?: string | null | undefined;
|
|
13852
13867
|
}>;
|
|
13868
|
+
special_instructions: string;
|
|
13869
|
+
amount_earned: number;
|
|
13870
|
+
grand_total: number;
|
|
13871
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
13872
|
+
tax_number: string;
|
|
13853
13873
|
consumer: {
|
|
13854
13874
|
email: string;
|
|
13855
13875
|
phone: string;
|
|
@@ -13857,12 +13877,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
13857
13877
|
last_name: string;
|
|
13858
13878
|
};
|
|
13859
13879
|
tip_amount: number;
|
|
13860
|
-
special_instructions: string;
|
|
13861
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
13862
|
-
tax_number: string;
|
|
13863
13880
|
tax_amount: number;
|
|
13864
|
-
amount_earned: number;
|
|
13865
|
-
grand_total: number;
|
|
13866
13881
|
staff_details?: {
|
|
13867
13882
|
staff_id: string;
|
|
13868
13883
|
staff_name: string;
|
|
@@ -15112,6 +15127,11 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
15112
15127
|
refund_reason?: string | null | undefined;
|
|
15113
15128
|
note?: string | null | undefined;
|
|
15114
15129
|
}>;
|
|
15130
|
+
special_instructions: string;
|
|
15131
|
+
amount_earned: number;
|
|
15132
|
+
grand_total: number;
|
|
15133
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
15134
|
+
tax_number: string;
|
|
15115
15135
|
consumer: {
|
|
15116
15136
|
email: string;
|
|
15117
15137
|
phone: string;
|
|
@@ -15119,12 +15139,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
15119
15139
|
last_name: string;
|
|
15120
15140
|
};
|
|
15121
15141
|
tip_amount: number;
|
|
15122
|
-
special_instructions: string;
|
|
15123
|
-
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
15124
|
-
tax_number: string;
|
|
15125
15142
|
tax_amount: number;
|
|
15126
|
-
amount_earned: number;
|
|
15127
|
-
grand_total: number;
|
|
15128
15143
|
staff_details?: {
|
|
15129
15144
|
staff_id: string;
|
|
15130
15145
|
staff_name: string;
|
|
@@ -15231,18 +15246,22 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
15231
15246
|
order_status_updated_at: NativeDate;
|
|
15232
15247
|
order_settled_at: NativeDate;
|
|
15233
15248
|
order_settled_at_mins: number;
|
|
15249
|
+
special_instructions: string;
|
|
15250
|
+
amount_earned: number;
|
|
15251
|
+
grand_total: number;
|
|
15252
|
+
order_status: import("../../constants").ORDER_STATUS_ENUM;
|
|
15253
|
+
tax_number: string;
|
|
15254
|
+
consumer: {
|
|
15255
|
+
email: string;
|
|
15256
|
+
phone: string;
|
|
15257
|
+
first_name: string;
|
|
15258
|
+
last_name: string;
|
|
15259
|
+
};
|
|
15260
|
+
tip_amount: number;
|
|
15261
|
+
tax_amount: number;
|
|
15234
15262
|
cancel_reason?: string | null | undefined;
|
|
15235
|
-
source_tenant_id?: string | null | undefined;
|
|
15236
|
-
split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
15237
|
-
split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
15238
|
-
split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
|
|
15239
15263
|
delete_reason?: string | null | undefined;
|
|
15240
|
-
tax_invoice_id?: string | null | undefined;
|
|
15241
|
-
rating?: number | null | undefined;
|
|
15242
|
-
review?: string | null | undefined;
|
|
15243
15264
|
is_reopened?: boolean | null | undefined;
|
|
15244
|
-
deferred_settlement?: boolean | null | undefined;
|
|
15245
|
-
payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
|
|
15246
15265
|
staff_details?: {
|
|
15247
15266
|
staff_id: string;
|
|
15248
15267
|
staff_name: string;
|
|
@@ -15252,7 +15271,30 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
|
|
|
15252
15271
|
is_gst_inclusive?: boolean | null | undefined;
|
|
15253
15272
|
gst?: number | null | undefined;
|
|
15254
15273
|
gst_amount?: number | null | undefined;
|
|
15274
|
+
deferred_settlement?: boolean | null | undefined;
|
|
15255
15275
|
redeemed_offers?: Map<string, number> | null | undefined;
|
|
15276
|
+
day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
|
|
15277
|
+
localSecond?: number | null | undefined;
|
|
15278
|
+
localMinute?: number | null | undefined;
|
|
15279
|
+
localHour?: number | null | undefined;
|
|
15280
|
+
localDay?: number | null | undefined;
|
|
15281
|
+
localWeek?: number | null | undefined;
|
|
15282
|
+
localWeekOfYear?: number | null | undefined;
|
|
15283
|
+
localMonth?: number | null | undefined;
|
|
15284
|
+
localQuarter?: number | null | undefined;
|
|
15285
|
+
localSemester?: number | null | undefined;
|
|
15286
|
+
localYear?: number | null | undefined;
|
|
15287
|
+
localDate?: string | null | undefined;
|
|
15288
|
+
localTime?: string | null | undefined;
|
|
15289
|
+
localDayOfYear?: number | null | undefined;
|
|
15290
|
+
source_tenant_id?: string | null | undefined;
|
|
15291
|
+
split_parent_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
15292
|
+
split_child_ids?: import("mongoose").Types.ObjectId[] | null | undefined;
|
|
15293
|
+
split_type?: import("../../constants").SPLIT_BILL_TYPE_ENUM | null | undefined;
|
|
15294
|
+
tax_invoice_id?: string | null | undefined;
|
|
15295
|
+
rating?: number | null | undefined;
|
|
15296
|
+
review?: string | null | undefined;
|
|
15297
|
+
payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
|
|
15256
15298
|
order_taker_details?: {
|
|
15257
15299
|
staff_id: string;
|
|
15258
15300
|
staff_name: string;
|
|
@@ -856,6 +856,85 @@ exports.OrderSchema = new mongoose_1.Schema({
|
|
|
856
856
|
return Math.floor(date.getHours() * 60 + date.getMinutes());
|
|
857
857
|
},
|
|
858
858
|
},
|
|
859
|
+
// local time fields (Partial<ILocalTimeFields>)
|
|
860
|
+
// copied from LocalTimeFieldsSchema
|
|
861
|
+
day_index: {
|
|
862
|
+
type: String,
|
|
863
|
+
enum: constants_1.ALL_DAY_INDEX,
|
|
864
|
+
required: false,
|
|
865
|
+
},
|
|
866
|
+
localSecond: {
|
|
867
|
+
type: Number,
|
|
868
|
+
required: false,
|
|
869
|
+
min: 0,
|
|
870
|
+
max: 59,
|
|
871
|
+
},
|
|
872
|
+
localMinute: {
|
|
873
|
+
type: Number,
|
|
874
|
+
required: false,
|
|
875
|
+
min: 0,
|
|
876
|
+
max: 59,
|
|
877
|
+
},
|
|
878
|
+
localHour: {
|
|
879
|
+
type: Number,
|
|
880
|
+
required: false,
|
|
881
|
+
min: 0,
|
|
882
|
+
max: 23,
|
|
883
|
+
},
|
|
884
|
+
localDay: {
|
|
885
|
+
type: Number,
|
|
886
|
+
required: false,
|
|
887
|
+
min: 0,
|
|
888
|
+
max: 6,
|
|
889
|
+
},
|
|
890
|
+
localWeek: {
|
|
891
|
+
type: Number,
|
|
892
|
+
required: false,
|
|
893
|
+
min: 1,
|
|
894
|
+
max: 5,
|
|
895
|
+
},
|
|
896
|
+
localWeekOfYear: {
|
|
897
|
+
type: Number,
|
|
898
|
+
required: false,
|
|
899
|
+
min: 1,
|
|
900
|
+
max: 53,
|
|
901
|
+
},
|
|
902
|
+
localMonth: {
|
|
903
|
+
type: Number,
|
|
904
|
+
required: false,
|
|
905
|
+
min: 1,
|
|
906
|
+
max: 12,
|
|
907
|
+
},
|
|
908
|
+
localQuarter: {
|
|
909
|
+
type: Number,
|
|
910
|
+
required: false,
|
|
911
|
+
min: 1,
|
|
912
|
+
max: 4,
|
|
913
|
+
},
|
|
914
|
+
localSemester: {
|
|
915
|
+
type: Number,
|
|
916
|
+
required: false,
|
|
917
|
+
min: 1,
|
|
918
|
+
max: 2,
|
|
919
|
+
},
|
|
920
|
+
localYear: {
|
|
921
|
+
type: Number,
|
|
922
|
+
required: false,
|
|
923
|
+
},
|
|
924
|
+
localDate: {
|
|
925
|
+
type: String,
|
|
926
|
+
required: false,
|
|
927
|
+
},
|
|
928
|
+
localTime: {
|
|
929
|
+
type: String,
|
|
930
|
+
required: false,
|
|
931
|
+
},
|
|
932
|
+
localDayOfYear: {
|
|
933
|
+
type: Number,
|
|
934
|
+
required: false,
|
|
935
|
+
min: 1,
|
|
936
|
+
max: 366,
|
|
937
|
+
},
|
|
859
938
|
createdAt_mins: {
|
|
860
939
|
type: Number,
|
|
861
940
|
required: true,
|