@managesome/eposmatic-toolkit 0.2.551 → 0.2.553

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.
@@ -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 {};
@@ -1,3 +1,4 @@
1
+ import { ILocalTimeFields } from '../types/common';
1
2
  export declare function getTenantTime(desiredGMTOffset: number, date?: Date): Date;
2
3
  export declare function getDaysDifference(date1: Date, date2: Date, gmtOffset: number): number;
3
4
  export declare function getLocalDocumentFields(gmtOffset: number, date: Date): {
@@ -15,3 +16,18 @@ export declare function getLocalDocumentFields(gmtOffset: number, date: Date): {
15
16
  localTime: string;
16
17
  localDayOfYear: number;
17
18
  };
19
+ /**
20
+ * Builds the full ILocalTimeFields for an order.
21
+ *
22
+ * The date components (day_index, localDate, localDay, localWeek,
23
+ * localWeekOfYear, localMonth, localQuarter, localSemester, localYear,
24
+ * localDayOfYear) come from the tenant's running business day — the same
25
+ * "YYYY-MM-DD" value held by `track_order_numbers.runningLocalDate` /
26
+ * `order.localDate` — so the order belongs to that business day even across
27
+ * midnight.
28
+ *
29
+ * The time components (localSecond, localMinute, localHour, localTime) come
30
+ * from the actual `order_settled_at` timestamp expressed in the tenant's time
31
+ * zone (`operational_time_zone_offset_gmt`).
32
+ */
33
+ export declare function getLocalFieldsFromLocalDate(localDate: string, operational_time_zone_offset_gmt: number, order_settled_at: Date): ILocalTimeFields;
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getTenantTime = getTenantTime;
4
4
  exports.getDaysDifference = getDaysDifference;
5
5
  exports.getLocalDocumentFields = getLocalDocumentFields;
6
+ exports.getLocalFieldsFromLocalDate = getLocalFieldsFromLocalDate;
7
+ const constants_1 = require("../../constants");
6
8
  function getTenantTime(desiredGMTOffset, date = new Date()) {
7
9
  const localGMTOffsetMinutes = -date.getTimezoneOffset();
8
10
  const localGMTOffset = localGMTOffsetMinutes / 60;
@@ -28,13 +30,15 @@ function getLocalDocumentFields(gmtOffset, date) {
28
30
  const localDate = tenantDate.getDate(); // 1 - 31
29
31
  const localMonth = tenantDate.getMonth() + 1; // 1 - 12
30
32
  const localYear = tenantDate.getFullYear(); // YYYY
31
- // Calculate week of month (1-5)
33
+ // Calculate week of month (1-5). Clamped to 5 because a 30/31-day month whose
34
+ // 1st is a Friday/Saturday would otherwise compute to 6 (schema caps at 5).
32
35
  const firstDayOfMonth = new Date(tenantDate.getFullYear(), tenantDate.getMonth(), 1);
33
- const localWeek = Math.ceil((localDate + firstDayOfMonth.getDay()) / 7);
34
- // Calculate week of year (1-53)
36
+ const localWeek = Math.min(Math.ceil((localDate + firstDayOfMonth.getDay()) / 7), 5);
37
+ // Calculate week of year (1-53). Clamped to 53 because a leap year starting
38
+ // on a Saturday (e.g. 2028) would otherwise compute to 54 (schema caps at 53).
35
39
  const startOfYear = new Date(localYear, 0, 1);
36
40
  const dayOfYear = Math.floor((tenantDate.getTime() - startOfYear.getTime()) / (24 * 60 * 60 * 1000)) + 1;
37
- const localWeekOfYear = Math.ceil((dayOfYear + startOfYear.getDay()) / 7);
41
+ const localWeekOfYear = Math.min(Math.ceil((dayOfYear + startOfYear.getDay()) / 7), 53);
38
42
  // Calculate quarter (1-4)
39
43
  const localQuarter = Math.ceil(localMonth / 3);
40
44
  // Calculate semester (1-2)
@@ -58,3 +62,52 @@ function getLocalDocumentFields(gmtOffset, date) {
58
62
  localDayOfYear: dayOfYear,
59
63
  };
60
64
  }
65
+ /**
66
+ * Builds the full ILocalTimeFields for an order.
67
+ *
68
+ * The date components (day_index, localDate, localDay, localWeek,
69
+ * localWeekOfYear, localMonth, localQuarter, localSemester, localYear,
70
+ * localDayOfYear) come from the tenant's running business day — the same
71
+ * "YYYY-MM-DD" value held by `track_order_numbers.runningLocalDate` /
72
+ * `order.localDate` — so the order belongs to that business day even across
73
+ * midnight.
74
+ *
75
+ * The time components (localSecond, localMinute, localHour, localTime) come
76
+ * from the actual `order_settled_at` timestamp expressed in the tenant's time
77
+ * zone (`operational_time_zone_offset_gmt`).
78
+ */
79
+ function getLocalFieldsFromLocalDate(localDate, operational_time_zone_offset_gmt, order_settled_at) {
80
+ const [localYear, localMonth, localDay] = localDate.split('-').map(Number);
81
+ // localDate is already the tenant's local calendar date, so every date
82
+ // component is derived directly from the string using pure calendar math
83
+ // (no dependence on the server's timezone).
84
+ const weekday = new Date(Date.UTC(localYear, localMonth - 1, localDay)).getUTCDay();
85
+ // Week of month (1-5) — same formula as getLocalDocumentFields, clamped to 5.
86
+ const firstDayOfMonthDow = new Date(Date.UTC(localYear, localMonth - 1, 1)).getUTCDay();
87
+ const localWeek = Math.min(Math.ceil((localDay + firstDayOfMonthDow) / 7), 5);
88
+ // Day of year (1-366) and week of year (1-53). Clamped to 53 because a leap
89
+ // year starting on a Saturday (e.g. 2028) would otherwise compute to 54.
90
+ const dayOfYear = Math.floor((Date.UTC(localYear, localMonth - 1, localDay) - Date.UTC(localYear, 0, 1)) / (24 * 60 * 60 * 1000)) + 1;
91
+ const startOfYearDow = new Date(Date.UTC(localYear, 0, 1)).getUTCDay();
92
+ const localWeekOfYear = Math.min(Math.ceil((dayOfYear + startOfYearDow) / 7), 53);
93
+ // Time components come from the actual settle timestamp in the tenant's
94
+ // timezone. The timestamp is normalized with new Date() since callers pass
95
+ // the field straight from the order (which may be a Date or an ISO string).
96
+ const timeFields = getLocalDocumentFields(operational_time_zone_offset_gmt, new Date(order_settled_at));
97
+ return {
98
+ day_index: constants_1.ALL_DAY_INDEX[weekday],
99
+ localDate,
100
+ localTime: timeFields.localTime,
101
+ localSecond: timeFields.localSecond,
102
+ localMinute: timeFields.localMinute,
103
+ localHour: timeFields.localHour,
104
+ localDay: weekday,
105
+ localWeek,
106
+ localWeekOfYear,
107
+ localMonth,
108
+ localQuarter: Math.ceil(localMonth / 3),
109
+ localSemester: Math.ceil(localMonth / 6),
110
+ localYear,
111
+ localDayOfYear: dayOfYear,
112
+ };
113
+ }
@@ -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,25 @@ 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;
5053
+ localYear?: number | null | undefined;
5054
+ localMonth?: number | null | undefined;
5055
+ localDay?: number | null | undefined;
5057
5056
  delete_reason?: string | null | undefined;
5058
- tax_invoice_id?: string | null | undefined;
5059
- rating?: number | null | undefined;
5060
- review?: string | null | undefined;
5061
5057
  is_reopened?: boolean | null | undefined;
5062
- deferred_settlement?: boolean | null | undefined;
5063
- payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
5064
5058
  staff_details?: {
5065
5059
  staff_id: string;
5066
5060
  staff_name: string;
@@ -5070,7 +5064,27 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5070
5064
  is_gst_inclusive?: boolean | null | undefined;
5071
5065
  gst?: number | null | undefined;
5072
5066
  gst_amount?: number | null | undefined;
5067
+ deferred_settlement?: boolean | null | undefined;
5073
5068
  redeemed_offers?: Map<string, number> | null | undefined;
5069
+ day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
5070
+ localSecond?: number | null | undefined;
5071
+ localMinute?: number | null | undefined;
5072
+ localHour?: number | null | undefined;
5073
+ localWeek?: number | null | undefined;
5074
+ localWeekOfYear?: number | null | undefined;
5075
+ localQuarter?: number | null | undefined;
5076
+ localSemester?: 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,25 @@ 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;
10158
+ localYear?: number | null | undefined;
10159
+ localMonth?: number | null | undefined;
10160
+ localDay?: number | null | undefined;
10148
10161
  delete_reason?: string | null | undefined;
10149
- tax_invoice_id?: string | null | undefined;
10150
- rating?: number | null | undefined;
10151
- review?: string | null | undefined;
10152
10162
  is_reopened?: boolean | null | undefined;
10153
- deferred_settlement?: boolean | null | undefined;
10154
- payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
10155
10163
  staff_details?: {
10156
10164
  staff_id: string;
10157
10165
  staff_name: string;
@@ -10161,7 +10169,27 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
10161
10169
  is_gst_inclusive?: boolean | null | undefined;
10162
10170
  gst?: number | null | undefined;
10163
10171
  gst_amount?: number | null | undefined;
10172
+ deferred_settlement?: boolean | null | undefined;
10164
10173
  redeemed_offers?: Map<string, number> | null | undefined;
10174
+ day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
10175
+ localSecond?: number | null | undefined;
10176
+ localMinute?: number | null | undefined;
10177
+ localHour?: number | null | undefined;
10178
+ localWeek?: number | null | undefined;
10179
+ localWeekOfYear?: number | null | undefined;
10180
+ localQuarter?: number | null | undefined;
10181
+ localSemester?: 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,25 @@ 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;
15263
+ localYear?: number | null | undefined;
15264
+ localMonth?: number | null | undefined;
15265
+ localDay?: number | null | undefined;
15239
15266
  delete_reason?: string | null | undefined;
15240
- tax_invoice_id?: string | null | undefined;
15241
- rating?: number | null | undefined;
15242
- review?: string | null | undefined;
15243
15267
  is_reopened?: boolean | null | undefined;
15244
- deferred_settlement?: boolean | null | undefined;
15245
- payment_method_expected?: import("../../constants").PAYMENT_METHOD_EXPECTED_ENUM | null | undefined;
15246
15268
  staff_details?: {
15247
15269
  staff_id: string;
15248
15270
  staff_name: string;
@@ -15252,7 +15274,27 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
15252
15274
  is_gst_inclusive?: boolean | null | undefined;
15253
15275
  gst?: number | null | undefined;
15254
15276
  gst_amount?: number | null | undefined;
15277
+ deferred_settlement?: boolean | null | undefined;
15255
15278
  redeemed_offers?: Map<string, number> | null | undefined;
15279
+ day_index?: import("../../constants").DAY_INDEX_ENUM | null | undefined;
15280
+ localSecond?: number | null | undefined;
15281
+ localMinute?: number | null | undefined;
15282
+ localHour?: number | null | undefined;
15283
+ localWeek?: number | null | undefined;
15284
+ localWeekOfYear?: number | null | undefined;
15285
+ localQuarter?: number | null | undefined;
15286
+ localSemester?: 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;