@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.
- package/lib/helpers/store/cart-actions.d.ts +14 -0
- package/lib/helpers/utils/offer-apply-helpers.d.ts +14 -0
- package/lib/helpers/utils/time-helpers.d.ts +16 -0
- package/lib/helpers/utils/time-helpers.js +57 -4
- 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_cash_drawer_sessions.d.ts +9 -9
- package/lib/schemas/models/tenant_cash_in_out.d.ts +9 -9
- package/lib/schemas/models/tenant_day_sessions.d.ts +38 -38
- 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
|
@@ -18,33 +18,23 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
18
18
|
city: string;
|
|
19
19
|
country_code: COUNTRY_CODE_ENUM;
|
|
20
20
|
delivery_free_over: number;
|
|
21
|
-
business_website: string;
|
|
22
|
-
staff_ordering_domain: string;
|
|
23
|
-
public_business_name: string;
|
|
24
|
-
restaurant_address: string;
|
|
25
|
-
store_description: string;
|
|
26
|
-
web_favicon: string;
|
|
27
|
-
brand_color: string;
|
|
28
|
-
business_type: string;
|
|
29
|
-
web_enable_takeaway: boolean;
|
|
30
|
-
web_enable_delivery: boolean;
|
|
31
|
-
web_enable_dine_in: boolean;
|
|
32
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
33
|
-
coordinates: number[];
|
|
34
|
-
web_cover_image: string;
|
|
35
21
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
36
22
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
37
23
|
packaging_charges: number;
|
|
38
24
|
delivery_min_cost: number;
|
|
25
|
+
restaurant_address: string;
|
|
39
26
|
support_email: string;
|
|
40
27
|
public_phone_numbers: string[];
|
|
41
28
|
tax_business_number: string;
|
|
29
|
+
business_website: string;
|
|
42
30
|
google_review_link: string;
|
|
43
31
|
provider_id: string;
|
|
44
32
|
currency_code: CURRENCY_CODE_ENUM;
|
|
45
33
|
currency_name: CURRENCY_NAME_ENUM;
|
|
46
34
|
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
35
|
+
country_name: COUNTRY_NAME_ENUM;
|
|
47
36
|
country_flag: COUNTRY_FLAG_ENUM;
|
|
37
|
+
coordinates: number[];
|
|
48
38
|
takeaway_time: number;
|
|
49
39
|
delivery_time: number;
|
|
50
40
|
enable_inventory: boolean;
|
|
@@ -69,6 +59,9 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
69
59
|
pos_end_seating_when_order_paid_off: boolean;
|
|
70
60
|
web_charge_customer_for_online_processing: boolean;
|
|
71
61
|
web_allow_ordering_till_closing_time: boolean;
|
|
62
|
+
web_enable_takeaway: boolean;
|
|
63
|
+
web_enable_delivery: boolean;
|
|
64
|
+
web_enable_dine_in: boolean;
|
|
72
65
|
default_prep_minutes: number;
|
|
73
66
|
web_opt_in_for_holiday_surcharge: boolean;
|
|
74
67
|
web_holiday_surcharge: number;
|
|
@@ -97,6 +90,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
97
90
|
packaging_charges_free_over: number;
|
|
98
91
|
min_packaging_charges_order_value: number;
|
|
99
92
|
cash_in_hand_limit: number;
|
|
93
|
+
brand_color: string;
|
|
94
|
+
public_business_name: string;
|
|
95
|
+
staff_ordering_domain: string;
|
|
96
|
+
business_type: string;
|
|
100
97
|
track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
101
98
|
order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
|
|
102
99
|
web_show_featured_items: boolean;
|
|
@@ -104,7 +101,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
104
101
|
card_gst: number;
|
|
105
102
|
cash_gst: number;
|
|
106
103
|
default_gst_type: GST_TYPE_ENUM;
|
|
104
|
+
web_cover_image: string;
|
|
105
|
+
web_favicon: string;
|
|
107
106
|
web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
|
|
107
|
+
store_description: string;
|
|
108
108
|
operational_time_zone_offset_gmt: number;
|
|
109
109
|
operational_start_time: number;
|
|
110
110
|
operational_end_time: number;
|
|
@@ -123,12 +123,6 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
123
123
|
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
124
124
|
enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
|
|
125
125
|
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
126
|
-
fb_link?: string | null | undefined;
|
|
127
|
-
instagram_link?: string | null | undefined;
|
|
128
|
-
twitter_link?: string | null | undefined;
|
|
129
|
-
tiktok_link?: string | null | undefined;
|
|
130
|
-
dark_mode?: boolean | null | undefined;
|
|
131
|
-
delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
|
|
132
126
|
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
133
127
|
is_gst_inclusive?: boolean | null | undefined;
|
|
134
128
|
is_surcharge_percentage?: boolean | null | undefined;
|
|
@@ -142,6 +136,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
142
136
|
receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
|
|
143
137
|
playstore_url?: string | null | undefined;
|
|
144
138
|
appstore_url?: string | null | undefined;
|
|
139
|
+
fb_link?: string | null | undefined;
|
|
140
|
+
instagram_link?: string | null | undefined;
|
|
141
|
+
twitter_link?: string | null | undefined;
|
|
142
|
+
tiktok_link?: string | null | undefined;
|
|
145
143
|
pos_pre_ordering_days?: number | null | undefined;
|
|
146
144
|
pos_accedental_touch_protection_enabled?: boolean | null | undefined;
|
|
147
145
|
web_enable_pre_ordering?: boolean | null | undefined;
|
|
@@ -176,8 +174,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
176
174
|
web_hide_order_total_for_staff?: boolean | null | undefined;
|
|
177
175
|
apply_tax_on_complimentary_payment?: boolean | null | undefined;
|
|
178
176
|
web_auth_type?: import("../../constants").WEB_AUTH_TYPE_ENUM | null | undefined;
|
|
177
|
+
delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
|
|
179
178
|
omit_offers_for_anonymous?: boolean | null | undefined;
|
|
180
179
|
edit_settled_order?: boolean | null | undefined;
|
|
180
|
+
dark_mode?: boolean | null | undefined;
|
|
181
181
|
subscription_expiry?: NativeDate | null | undefined;
|
|
182
182
|
digital_menu_images?: string[] | null | undefined;
|
|
183
183
|
web_slider_images?: string[] | null | undefined;
|
|
@@ -199,33 +199,23 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
199
199
|
city: string;
|
|
200
200
|
country_code: COUNTRY_CODE_ENUM;
|
|
201
201
|
delivery_free_over: number;
|
|
202
|
-
business_website: string;
|
|
203
|
-
staff_ordering_domain: string;
|
|
204
|
-
public_business_name: string;
|
|
205
|
-
restaurant_address: string;
|
|
206
|
-
store_description: string;
|
|
207
|
-
web_favicon: string;
|
|
208
|
-
brand_color: string;
|
|
209
|
-
business_type: string;
|
|
210
|
-
web_enable_takeaway: boolean;
|
|
211
|
-
web_enable_delivery: boolean;
|
|
212
|
-
web_enable_dine_in: boolean;
|
|
213
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
214
|
-
coordinates: number[];
|
|
215
|
-
web_cover_image: string;
|
|
216
202
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
217
203
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
218
204
|
packaging_charges: number;
|
|
219
205
|
delivery_min_cost: number;
|
|
206
|
+
restaurant_address: string;
|
|
220
207
|
support_email: string;
|
|
221
208
|
public_phone_numbers: string[];
|
|
222
209
|
tax_business_number: string;
|
|
210
|
+
business_website: string;
|
|
223
211
|
google_review_link: string;
|
|
224
212
|
provider_id: string;
|
|
225
213
|
currency_code: CURRENCY_CODE_ENUM;
|
|
226
214
|
currency_name: CURRENCY_NAME_ENUM;
|
|
227
215
|
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
216
|
+
country_name: COUNTRY_NAME_ENUM;
|
|
228
217
|
country_flag: COUNTRY_FLAG_ENUM;
|
|
218
|
+
coordinates: number[];
|
|
229
219
|
takeaway_time: number;
|
|
230
220
|
delivery_time: number;
|
|
231
221
|
enable_inventory: boolean;
|
|
@@ -250,6 +240,9 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
250
240
|
pos_end_seating_when_order_paid_off: boolean;
|
|
251
241
|
web_charge_customer_for_online_processing: boolean;
|
|
252
242
|
web_allow_ordering_till_closing_time: boolean;
|
|
243
|
+
web_enable_takeaway: boolean;
|
|
244
|
+
web_enable_delivery: boolean;
|
|
245
|
+
web_enable_dine_in: boolean;
|
|
253
246
|
default_prep_minutes: number;
|
|
254
247
|
web_opt_in_for_holiday_surcharge: boolean;
|
|
255
248
|
web_holiday_surcharge: number;
|
|
@@ -278,6 +271,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
278
271
|
packaging_charges_free_over: number;
|
|
279
272
|
min_packaging_charges_order_value: number;
|
|
280
273
|
cash_in_hand_limit: number;
|
|
274
|
+
brand_color: string;
|
|
275
|
+
public_business_name: string;
|
|
276
|
+
staff_ordering_domain: string;
|
|
277
|
+
business_type: string;
|
|
281
278
|
track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
282
279
|
order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
|
|
283
280
|
web_show_featured_items: boolean;
|
|
@@ -285,7 +282,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
285
282
|
card_gst: number;
|
|
286
283
|
cash_gst: number;
|
|
287
284
|
default_gst_type: GST_TYPE_ENUM;
|
|
285
|
+
web_cover_image: string;
|
|
286
|
+
web_favicon: string;
|
|
288
287
|
web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
|
|
288
|
+
store_description: string;
|
|
289
289
|
operational_time_zone_offset_gmt: number;
|
|
290
290
|
operational_start_time: number;
|
|
291
291
|
operational_end_time: number;
|
|
@@ -304,12 +304,6 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
304
304
|
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
305
305
|
enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
|
|
306
306
|
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
307
|
-
fb_link?: string | null | undefined;
|
|
308
|
-
instagram_link?: string | null | undefined;
|
|
309
|
-
twitter_link?: string | null | undefined;
|
|
310
|
-
tiktok_link?: string | null | undefined;
|
|
311
|
-
dark_mode?: boolean | null | undefined;
|
|
312
|
-
delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
|
|
313
307
|
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
314
308
|
is_gst_inclusive?: boolean | null | undefined;
|
|
315
309
|
is_surcharge_percentage?: boolean | null | undefined;
|
|
@@ -323,6 +317,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
323
317
|
receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
|
|
324
318
|
playstore_url?: string | null | undefined;
|
|
325
319
|
appstore_url?: string | null | undefined;
|
|
320
|
+
fb_link?: string | null | undefined;
|
|
321
|
+
instagram_link?: string | null | undefined;
|
|
322
|
+
twitter_link?: string | null | undefined;
|
|
323
|
+
tiktok_link?: string | null | undefined;
|
|
326
324
|
pos_pre_ordering_days?: number | null | undefined;
|
|
327
325
|
pos_accedental_touch_protection_enabled?: boolean | null | undefined;
|
|
328
326
|
web_enable_pre_ordering?: boolean | null | undefined;
|
|
@@ -357,8 +355,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
357
355
|
web_hide_order_total_for_staff?: boolean | null | undefined;
|
|
358
356
|
apply_tax_on_complimentary_payment?: boolean | null | undefined;
|
|
359
357
|
web_auth_type?: import("../../constants").WEB_AUTH_TYPE_ENUM | null | undefined;
|
|
358
|
+
delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
|
|
360
359
|
omit_offers_for_anonymous?: boolean | null | undefined;
|
|
361
360
|
edit_settled_order?: boolean | null | undefined;
|
|
361
|
+
dark_mode?: boolean | null | undefined;
|
|
362
362
|
subscription_expiry?: NativeDate | null | undefined;
|
|
363
363
|
digital_menu_images?: string[] | null | undefined;
|
|
364
364
|
web_slider_images?: string[] | null | undefined;
|
|
@@ -380,33 +380,23 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
380
380
|
city: string;
|
|
381
381
|
country_code: COUNTRY_CODE_ENUM;
|
|
382
382
|
delivery_free_over: number;
|
|
383
|
-
business_website: string;
|
|
384
|
-
staff_ordering_domain: string;
|
|
385
|
-
public_business_name: string;
|
|
386
|
-
restaurant_address: string;
|
|
387
|
-
store_description: string;
|
|
388
|
-
web_favicon: string;
|
|
389
|
-
brand_color: string;
|
|
390
|
-
business_type: string;
|
|
391
|
-
web_enable_takeaway: boolean;
|
|
392
|
-
web_enable_delivery: boolean;
|
|
393
|
-
web_enable_dine_in: boolean;
|
|
394
|
-
country_name: COUNTRY_NAME_ENUM;
|
|
395
|
-
coordinates: number[];
|
|
396
|
-
web_cover_image: string;
|
|
397
383
|
currency_symbol: CURRENCY_SYMBOL_ENUM;
|
|
398
384
|
country_alpha_2: COUNTRY_ALPHA_2_ENUM;
|
|
399
385
|
packaging_charges: number;
|
|
400
386
|
delivery_min_cost: number;
|
|
387
|
+
restaurant_address: string;
|
|
401
388
|
support_email: string;
|
|
402
389
|
public_phone_numbers: string[];
|
|
403
390
|
tax_business_number: string;
|
|
391
|
+
business_website: string;
|
|
404
392
|
google_review_link: string;
|
|
405
393
|
provider_id: string;
|
|
406
394
|
currency_code: CURRENCY_CODE_ENUM;
|
|
407
395
|
currency_name: CURRENCY_NAME_ENUM;
|
|
408
396
|
country_alpha_3: COUNTRY_ALPHA_3_ENUM;
|
|
397
|
+
country_name: COUNTRY_NAME_ENUM;
|
|
409
398
|
country_flag: COUNTRY_FLAG_ENUM;
|
|
399
|
+
coordinates: number[];
|
|
410
400
|
takeaway_time: number;
|
|
411
401
|
delivery_time: number;
|
|
412
402
|
enable_inventory: boolean;
|
|
@@ -431,6 +421,9 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
431
421
|
pos_end_seating_when_order_paid_off: boolean;
|
|
432
422
|
web_charge_customer_for_online_processing: boolean;
|
|
433
423
|
web_allow_ordering_till_closing_time: boolean;
|
|
424
|
+
web_enable_takeaway: boolean;
|
|
425
|
+
web_enable_delivery: boolean;
|
|
426
|
+
web_enable_dine_in: boolean;
|
|
434
427
|
default_prep_minutes: number;
|
|
435
428
|
web_opt_in_for_holiday_surcharge: boolean;
|
|
436
429
|
web_holiday_surcharge: number;
|
|
@@ -459,6 +452,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
459
452
|
packaging_charges_free_over: number;
|
|
460
453
|
min_packaging_charges_order_value: number;
|
|
461
454
|
cash_in_hand_limit: number;
|
|
455
|
+
brand_color: string;
|
|
456
|
+
public_business_name: string;
|
|
457
|
+
staff_ordering_domain: string;
|
|
458
|
+
business_type: string;
|
|
462
459
|
track_order_number_by: TRACK_ORDER_NUMBER_ENUM;
|
|
463
460
|
order_number_grouping_type: ORDER_NUMBER_GROUPING_TYPE_ENUM;
|
|
464
461
|
web_show_featured_items: boolean;
|
|
@@ -466,7 +463,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
466
463
|
card_gst: number;
|
|
467
464
|
cash_gst: number;
|
|
468
465
|
default_gst_type: GST_TYPE_ENUM;
|
|
466
|
+
web_cover_image: string;
|
|
467
|
+
web_favicon: string;
|
|
469
468
|
web_design_type: ONLINE_ORDERING_DESIGN_TYPE_ENUM;
|
|
469
|
+
store_description: string;
|
|
470
470
|
operational_time_zone_offset_gmt: number;
|
|
471
471
|
operational_start_time: number;
|
|
472
472
|
operational_end_time: number;
|
|
@@ -485,12 +485,6 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
485
485
|
exempt_gst_for_platforms: PLATFORMS_ENUM[];
|
|
486
486
|
enabled_rating_types: import("../../constants").RATING_TYPE_ENUM[];
|
|
487
487
|
order_completion_type: ORDER_COMPLETION_TYPE_ENUM;
|
|
488
|
-
fb_link?: string | null | undefined;
|
|
489
|
-
instagram_link?: string | null | undefined;
|
|
490
|
-
twitter_link?: string | null | undefined;
|
|
491
|
-
tiktok_link?: string | null | undefined;
|
|
492
|
-
dark_mode?: boolean | null | undefined;
|
|
493
|
-
delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
|
|
494
488
|
tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
|
|
495
489
|
is_gst_inclusive?: boolean | null | undefined;
|
|
496
490
|
is_surcharge_percentage?: boolean | null | undefined;
|
|
@@ -504,6 +498,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
504
498
|
receipt_qr_type?: import("../../constants").RECEIPT_QR_CODE_TYPE_ENUM | null | undefined;
|
|
505
499
|
playstore_url?: string | null | undefined;
|
|
506
500
|
appstore_url?: string | null | undefined;
|
|
501
|
+
fb_link?: string | null | undefined;
|
|
502
|
+
instagram_link?: string | null | undefined;
|
|
503
|
+
twitter_link?: string | null | undefined;
|
|
504
|
+
tiktok_link?: string | null | undefined;
|
|
507
505
|
pos_pre_ordering_days?: number | null | undefined;
|
|
508
506
|
pos_accedental_touch_protection_enabled?: boolean | null | undefined;
|
|
509
507
|
web_enable_pre_ordering?: boolean | null | undefined;
|
|
@@ -538,8 +536,10 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
|
|
|
538
536
|
web_hide_order_total_for_staff?: boolean | null | undefined;
|
|
539
537
|
apply_tax_on_complimentary_payment?: boolean | null | undefined;
|
|
540
538
|
web_auth_type?: import("../../constants").WEB_AUTH_TYPE_ENUM | null | undefined;
|
|
539
|
+
delivery_areas_search_type?: import("../../constants").DELIVERY_AREAS_SEARCH_TYPE_ENUM | null | undefined;
|
|
541
540
|
omit_offers_for_anonymous?: boolean | null | undefined;
|
|
542
541
|
edit_settled_order?: boolean | null | undefined;
|
|
542
|
+
dark_mode?: boolean | null | undefined;
|
|
543
543
|
subscription_expiry?: NativeDate | null | undefined;
|
|
544
544
|
digital_menu_images?: string[] | null | undefined;
|
|
545
545
|
web_slider_images?: string[] | null | undefined;
|
|
@@ -16,9 +16,9 @@ export declare const VouchersSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
16
16
|
brand_id: string;
|
|
17
17
|
active: boolean;
|
|
18
18
|
description: string;
|
|
19
|
+
is_public: boolean;
|
|
19
20
|
used_count: number;
|
|
20
21
|
assigned_count: number;
|
|
21
|
-
is_public: boolean;
|
|
22
22
|
max_assignments_per_customer?: number | null | undefined;
|
|
23
23
|
max_uses_per_customer?: number | null | undefined;
|
|
24
24
|
last_used_at?: NativeDate | null | undefined;
|
|
@@ -39,9 +39,9 @@ export declare const VouchersSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
39
39
|
brand_id: string;
|
|
40
40
|
active: boolean;
|
|
41
41
|
description: string;
|
|
42
|
+
is_public: boolean;
|
|
42
43
|
used_count: number;
|
|
43
44
|
assigned_count: number;
|
|
44
|
-
is_public: boolean;
|
|
45
45
|
max_assignments_per_customer?: number | null | undefined;
|
|
46
46
|
max_uses_per_customer?: number | null | undefined;
|
|
47
47
|
last_used_at?: NativeDate | null | undefined;
|
|
@@ -62,9 +62,9 @@ export declare const VouchersSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
62
62
|
brand_id: string;
|
|
63
63
|
active: boolean;
|
|
64
64
|
description: string;
|
|
65
|
+
is_public: boolean;
|
|
65
66
|
used_count: number;
|
|
66
67
|
assigned_count: number;
|
|
67
|
-
is_public: boolean;
|
|
68
68
|
max_assignments_per_customer?: number | null | undefined;
|
|
69
69
|
max_uses_per_customer?: number | null | undefined;
|
|
70
70
|
last_used_at?: NativeDate | null | undefined;
|
|
@@ -19,8 +19,8 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
19
19
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
20
20
|
subject: string;
|
|
21
21
|
metadata: {
|
|
22
|
-
grand_total: number;
|
|
23
22
|
currency_symbol: string;
|
|
23
|
+
grand_total: number;
|
|
24
24
|
subtotal: number;
|
|
25
25
|
support_email: string;
|
|
26
26
|
warehouse_name: string;
|
|
@@ -91,8 +91,8 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
91
91
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
92
92
|
subject: string;
|
|
93
93
|
metadata: {
|
|
94
|
-
grand_total: number;
|
|
95
94
|
currency_symbol: string;
|
|
95
|
+
grand_total: number;
|
|
96
96
|
subtotal: number;
|
|
97
97
|
support_email: string;
|
|
98
98
|
warehouse_name: string;
|
|
@@ -163,8 +163,8 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
163
163
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
164
164
|
subject: string;
|
|
165
165
|
metadata: {
|
|
166
|
-
grand_total: number;
|
|
167
166
|
currency_symbol: string;
|
|
167
|
+
grand_total: number;
|
|
168
168
|
subtotal: number;
|
|
169
169
|
support_email: string;
|
|
170
170
|
warehouse_name: string;
|
|
@@ -105,10 +105,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
105
105
|
refund_reason?: string | null | undefined;
|
|
106
106
|
note?: string | null | undefined;
|
|
107
107
|
}>;
|
|
108
|
-
amount_earned: number;
|
|
109
|
-
grand_total: number;
|
|
110
108
|
amount_collected: number;
|
|
111
109
|
is_deleted: boolean;
|
|
110
|
+
amount_earned: number;
|
|
111
|
+
grand_total: number;
|
|
112
112
|
created_by: {
|
|
113
113
|
name: string;
|
|
114
114
|
uid: string;
|
|
@@ -293,10 +293,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
293
293
|
refund_reason?: string | null | undefined;
|
|
294
294
|
note?: string | null | undefined;
|
|
295
295
|
}>;
|
|
296
|
-
amount_earned: number;
|
|
297
|
-
grand_total: number;
|
|
298
296
|
amount_collected: number;
|
|
299
297
|
is_deleted: boolean;
|
|
298
|
+
amount_earned: number;
|
|
299
|
+
grand_total: number;
|
|
300
300
|
created_by: {
|
|
301
301
|
name: string;
|
|
302
302
|
uid: string;
|
|
@@ -481,10 +481,10 @@ export declare const WarehouseInternalMovementsSchema: Schema<any, import("mongo
|
|
|
481
481
|
refund_reason?: string | null | undefined;
|
|
482
482
|
note?: string | null | undefined;
|
|
483
483
|
}>;
|
|
484
|
-
amount_earned: number;
|
|
485
|
-
grand_total: number;
|
|
486
484
|
amount_collected: number;
|
|
487
485
|
is_deleted: boolean;
|
|
486
|
+
amount_earned: number;
|
|
487
|
+
grand_total: number;
|
|
488
488
|
created_by: {
|
|
489
489
|
name: string;
|
|
490
490
|
uid: string;
|
|
@@ -10,6 +10,7 @@ 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;
|
|
13
14
|
roles: {
|
|
14
15
|
SUPER_ADMIN: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
15
16
|
MODERATOR: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
@@ -24,7 +25,6 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
24
25
|
STAFF: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
25
26
|
DRIVER: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
26
27
|
};
|
|
27
|
-
warehouse_id: string;
|
|
28
28
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
29
29
|
createdAt: NativeDate;
|
|
30
30
|
updatedAt: NativeDate;
|
|
@@ -32,6 +32,7 @@ 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;
|
|
35
36
|
roles: {
|
|
36
37
|
SUPER_ADMIN: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
37
38
|
MODERATOR: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
@@ -46,7 +47,6 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
46
47
|
STAFF: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
47
48
|
DRIVER: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
48
49
|
};
|
|
49
|
-
warehouse_id: string;
|
|
50
50
|
}>> & import("mongoose").FlatRecord<{
|
|
51
51
|
createdAt: NativeDate;
|
|
52
52
|
updatedAt: NativeDate;
|
|
@@ -54,6 +54,7 @@ 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;
|
|
57
58
|
roles: {
|
|
58
59
|
SUPER_ADMIN: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
59
60
|
MODERATOR: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
@@ -68,7 +69,6 @@ export declare const WarehouseOperationalRolesSchema: Schema<any, import("mongoo
|
|
|
68
69
|
STAFF: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
69
70
|
DRIVER: import("../../constants").WAREHOUSE_USER_PERMISSIONS_ENUM[];
|
|
70
71
|
};
|
|
71
|
-
warehouse_id: string;
|
|
72
72
|
}> & Required<{
|
|
73
73
|
_id: import("mongoose").Types.ObjectId;
|
|
74
74
|
}> & {
|