@managesome/eposmatic-toolkit 0.2.427 → 0.2.429

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.
Files changed (127) hide show
  1. package/lib/schemas/models/applied_order_discounts.d.ts +80 -0
  2. package/lib/schemas/models/applied_order_discounts.js +106 -0
  3. package/lib/schemas/models/brands.d.ts +45 -0
  4. package/lib/schemas/models/brands.js +45 -0
  5. package/lib/schemas/models/categories.d.ts +60 -0
  6. package/lib/schemas/models/categories.js +67 -0
  7. package/lib/schemas/models/close_dates.js +2 -2
  8. package/lib/schemas/models/dinein_tables.d.ts +6 -6
  9. package/lib/schemas/models/dinein_tables_fingerprints.d.ts +65 -0
  10. package/lib/schemas/models/dinein_tables_fingerprints.js +85 -0
  11. package/lib/schemas/models/discounts.js +3 -3
  12. package/lib/schemas/models/expense_categories.d.ts +83 -0
  13. package/lib/schemas/models/expense_categories.js +64 -0
  14. package/lib/schemas/models/halfhalf_setup.js +3 -3
  15. package/lib/schemas/models/index.d.ts +23 -23
  16. package/lib/schemas/models/index.js +23 -23
  17. package/lib/schemas/models/inventories.d.ts +99 -0
  18. package/lib/schemas/models/inventories.js +87 -0
  19. package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +15 -15
  20. package/lib/schemas/models/items.d.ts +11269 -0
  21. package/lib/schemas/models/items.js +333 -0
  22. package/lib/schemas/models/menus.d.ts +941 -0
  23. package/lib/schemas/models/menus.js +69 -0
  24. package/lib/schemas/models/offers.js +3 -3
  25. package/lib/schemas/models/orders.d.ts +15437 -0
  26. package/lib/schemas/models/orders.js +891 -0
  27. package/lib/schemas/models/public_holidays.js +2 -2
  28. package/lib/schemas/models/purchase_order_receipts.d.ts +3 -3
  29. package/lib/schemas/models/purchase_order_receipts.js +2 -2
  30. package/lib/schemas/models/purchase_order_rfqs.d.ts +1959 -0
  31. package/lib/schemas/models/purchase_order_rfqs.js +328 -0
  32. package/lib/schemas/models/purchase_order_vendor_returns.d.ts +15 -15
  33. package/lib/schemas/models/purchase_order_vendor_returns.js +2 -2
  34. package/lib/schemas/models/purchase_orders.js +4 -4
  35. package/lib/schemas/models/riders.d.ts +65 -0
  36. package/lib/schemas/models/riders.js +74 -0
  37. package/lib/schemas/models/specials.js +3 -3
  38. package/lib/schemas/models/tenant_staffs.d.ts +932 -0
  39. package/lib/schemas/models/tenant_staffs.js +96 -0
  40. package/lib/schemas/models/tenants.d.ts +528 -0
  41. package/lib/schemas/models/tenants.js +755 -0
  42. package/lib/schemas/models/track_order_numbers.d.ts +413 -0
  43. package/lib/schemas/models/track_order_numbers.js +45 -0
  44. package/lib/schemas/models/void_purchase_order_items.js +2 -2
  45. package/lib/schemas/models/void_warehouse_invoice_items.d.ts +6 -6
  46. package/lib/schemas/models/void_warehouse_invoice_items.js +2 -2
  47. package/lib/schemas/models/wallets.d.ts +38 -0
  48. package/lib/schemas/models/wallets.js +37 -0
  49. package/lib/schemas/models/warehouse-activity-logs.js +2 -2
  50. package/lib/schemas/models/warehouse_communications.d.ts +228 -0
  51. package/lib/schemas/models/warehouse_communications.js +216 -0
  52. package/lib/schemas/models/warehouse_internal_movements.d.ts +33 -34
  53. package/lib/schemas/models/warehouse_internal_movements.js +2 -34
  54. package/lib/schemas/models/warehouse_invoices.js +2 -2
  55. package/lib/schemas/models/warehouse_items.js +2 -2
  56. package/lib/schemas/models/warehouse_sale_deliveries.d.ts +167 -0
  57. package/lib/schemas/models/warehouse_sale_deliveries.js +155 -0
  58. package/lib/schemas/models/warehouse_sale_invoices.d.ts +227 -0
  59. package/lib/schemas/models/warehouse_sale_invoices.js +206 -0
  60. package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +1938 -0
  61. package/lib/schemas/models/warehouse_sale_order_rfqs.js +309 -0
  62. package/lib/schemas/models/warehouse_sale_orders.d.ts +1943 -0
  63. package/lib/schemas/models/warehouse_sale_orders.js +324 -0
  64. package/lib/schemas/models/warehouse_staffs.d.ts +65 -0
  65. package/lib/schemas/models/warehouse_staffs.js +78 -0
  66. package/lib/schemas/models/warehouse_track_order_numbers.d.ts +50 -0
  67. package/lib/schemas/models/warehouse_track_order_numbers.js +52 -0
  68. package/lib/schemas/models/warehouse_vendors.d.ts +3 -3
  69. package/lib/schemas/models/warehouses.d.ts +162 -0
  70. package/lib/schemas/models/warehouses.js +222 -0
  71. package/lib/schemas/types/applied_order_discounts.d.ts +22 -0
  72. package/lib/schemas/types/applied_order_discounts.js +2 -0
  73. package/lib/schemas/types/brands.d.ts +32 -0
  74. package/lib/schemas/types/brands.js +2 -0
  75. package/lib/schemas/types/categories.d.ts +15 -0
  76. package/lib/schemas/types/categories.js +2 -0
  77. package/lib/schemas/types/deliveries.d.ts +1 -1
  78. package/lib/schemas/types/expense_categories.d.ts +20 -0
  79. package/lib/schemas/types/expense_categories.js +2 -0
  80. package/lib/schemas/types/expense_details.d.ts +1 -1
  81. package/lib/schemas/types/index.d.ts +22 -22
  82. package/lib/schemas/types/index.js +22 -22
  83. package/lib/schemas/types/inventories.d.ts +48 -0
  84. package/lib/schemas/types/inventories.js +2 -0
  85. package/lib/schemas/types/items.d.ts +89 -0
  86. package/lib/schemas/types/items.js +2 -0
  87. package/lib/schemas/types/menus.d.ts +17 -0
  88. package/lib/schemas/types/menus.js +2 -0
  89. package/lib/schemas/types/multi_tenants.d.ts +2 -2
  90. package/lib/schemas/types/orders.d.ts +242 -0
  91. package/lib/schemas/types/orders.js +2 -0
  92. package/lib/schemas/types/purchase_order_common.d.ts +1 -1
  93. package/lib/schemas/types/purchase_order_rfqs.d.ts +33 -0
  94. package/lib/schemas/types/purchase_order_rfqs.js +2 -0
  95. package/lib/schemas/types/purchase_orders.d.ts +1 -1
  96. package/lib/schemas/types/reservations.d.ts +1 -1
  97. package/lib/schemas/types/riders.d.ts +16 -0
  98. package/lib/schemas/types/riders.js +2 -0
  99. package/lib/schemas/types/sale_order_common.d.ts +1 -1
  100. package/lib/schemas/types/specials.d.ts +1 -1
  101. package/lib/schemas/types/tenant_staffs.d.ts +22 -0
  102. package/lib/schemas/types/tenant_staffs.js +2 -0
  103. package/lib/schemas/types/tenants.d.ts +205 -0
  104. package/lib/schemas/types/tenants.js +2 -0
  105. package/lib/schemas/types/track_order_numbers.d.ts +10 -0
  106. package/lib/schemas/types/track_order_numbers.js +2 -0
  107. package/lib/schemas/types/wallets.d.ts +7 -0
  108. package/lib/schemas/types/wallets.js +2 -0
  109. package/lib/schemas/types/warehouse_communications.d.ts +54 -0
  110. package/lib/schemas/types/warehouse_communications.js +2 -0
  111. package/lib/schemas/types/warehouse_internal_movements.d.ts +2 -2
  112. package/lib/schemas/types/warehouse_invoices.d.ts +1 -1
  113. package/lib/schemas/types/warehouse_sale_deliveries.d.ts +67 -0
  114. package/lib/schemas/types/warehouse_sale_deliveries.js +2 -0
  115. package/lib/schemas/types/warehouse_sale_invoices.d.ts +49 -0
  116. package/lib/schemas/types/warehouse_sale_invoices.js +2 -0
  117. package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +25 -0
  118. package/lib/schemas/types/warehouse_sale_order_rfqs.js +2 -0
  119. package/lib/schemas/types/warehouse_sale_orders.d.ts +30 -0
  120. package/lib/schemas/types/warehouse_sale_orders.js +2 -0
  121. package/lib/schemas/types/warehouse_staffs.d.ts +17 -0
  122. package/lib/schemas/types/warehouse_staffs.js +2 -0
  123. package/lib/schemas/types/warehouse_track_order_numbers.d.ts +11 -0
  124. package/lib/schemas/types/warehouse_track_order_numbers.js +2 -0
  125. package/lib/schemas/types/warehouses.d.ts +49 -0
  126. package/lib/schemas/types/warehouses.js +2 -0
  127. package/package.json +1 -1
@@ -0,0 +1,162 @@
1
+ import { Schema } from 'mongoose';
2
+ import { COUNTRY_ALPHA_2_ENUM, COUNTRY_ALPHA_3_ENUM, COUNTRY_CODE_ENUM, COUNTRY_FLAG_ENUM, COUNTRY_NAME_ENUM, CURRENCY_CODE_ENUM, CURRENCY_NAME_ENUM, CURRENCY_SYMBOL_ENUM, GST_TYPE_ENUM, REMOVAL_STRATEGY_ENUM, TRACK_ORDER_NUMBER_ENUM } from '../../constants';
3
+ export declare const WarehouseSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
4
+ timestamps: true;
5
+ versionKey: false;
6
+ minimize: false;
7
+ }, {
8
+ createdAt: NativeDate;
9
+ updatedAt: NativeDate;
10
+ } & {
11
+ _id: string;
12
+ name: string;
13
+ createdAt: NativeDate;
14
+ updatedAt: NativeDate;
15
+ image_url: string;
16
+ brand_id: string;
17
+ active: boolean;
18
+ country_code: COUNTRY_CODE_ENUM;
19
+ public_business_name: string;
20
+ brand_color: string;
21
+ country_name: COUNTRY_NAME_ENUM;
22
+ coordinates: number[];
23
+ tax_business_number: string;
24
+ warehouse_address: string;
25
+ support_email: string;
26
+ public_phone_numbers: string[];
27
+ currency_code: CURRENCY_CODE_ENUM;
28
+ currency_symbol: CURRENCY_SYMBOL_ENUM;
29
+ currency_name: CURRENCY_NAME_ENUM;
30
+ country_alpha_2: COUNTRY_ALPHA_2_ENUM;
31
+ country_alpha_3: COUNTRY_ALPHA_3_ENUM;
32
+ country_flag: COUNTRY_FLAG_ENUM;
33
+ po_card_gst: number;
34
+ po_cash_gst: number;
35
+ invoice_card_gst: number;
36
+ invoice_cash_gst: number;
37
+ default_po_gst_type: GST_TYPE_ENUM;
38
+ default_invoice_gst_type: GST_TYPE_ENUM;
39
+ track_purchase_order_number_by: TRACK_ORDER_NUMBER_ENUM;
40
+ track_invoice_number_by: TRACK_ORDER_NUMBER_ENUM;
41
+ operational_time_zone_offset_gmt: number;
42
+ operational_start_time: number;
43
+ operational_end_time: number;
44
+ alert_phone_numbers: string[];
45
+ alert_email_addresses: string[];
46
+ alert_when: string[];
47
+ enable_lot_serial_tracking: boolean;
48
+ default_removal_strategy: REMOVAL_STRATEGY_ENUM;
49
+ po_custom_payment_types: string[];
50
+ invoice_custom_payment_types: string[];
51
+ exclude_discount_from_gst?: boolean | null | undefined;
52
+ is_gst_inclusive?: boolean | null | undefined;
53
+ hide_gst_value?: boolean | null | undefined;
54
+ tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
55
+ tax_invoice_generation_id?: string | null | undefined;
56
+ _tax_invoice_generation_token?: string | null | undefined;
57
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
58
+ createdAt: NativeDate;
59
+ updatedAt: NativeDate;
60
+ } & {
61
+ _id: string;
62
+ name: string;
63
+ createdAt: NativeDate;
64
+ updatedAt: NativeDate;
65
+ image_url: string;
66
+ brand_id: string;
67
+ active: boolean;
68
+ country_code: COUNTRY_CODE_ENUM;
69
+ public_business_name: string;
70
+ brand_color: string;
71
+ country_name: COUNTRY_NAME_ENUM;
72
+ coordinates: number[];
73
+ tax_business_number: string;
74
+ warehouse_address: string;
75
+ support_email: string;
76
+ public_phone_numbers: string[];
77
+ currency_code: CURRENCY_CODE_ENUM;
78
+ currency_symbol: CURRENCY_SYMBOL_ENUM;
79
+ currency_name: CURRENCY_NAME_ENUM;
80
+ country_alpha_2: COUNTRY_ALPHA_2_ENUM;
81
+ country_alpha_3: COUNTRY_ALPHA_3_ENUM;
82
+ country_flag: COUNTRY_FLAG_ENUM;
83
+ po_card_gst: number;
84
+ po_cash_gst: number;
85
+ invoice_card_gst: number;
86
+ invoice_cash_gst: number;
87
+ default_po_gst_type: GST_TYPE_ENUM;
88
+ default_invoice_gst_type: GST_TYPE_ENUM;
89
+ track_purchase_order_number_by: TRACK_ORDER_NUMBER_ENUM;
90
+ track_invoice_number_by: TRACK_ORDER_NUMBER_ENUM;
91
+ operational_time_zone_offset_gmt: number;
92
+ operational_start_time: number;
93
+ operational_end_time: number;
94
+ alert_phone_numbers: string[];
95
+ alert_email_addresses: string[];
96
+ alert_when: string[];
97
+ enable_lot_serial_tracking: boolean;
98
+ default_removal_strategy: REMOVAL_STRATEGY_ENUM;
99
+ po_custom_payment_types: string[];
100
+ invoice_custom_payment_types: string[];
101
+ exclude_discount_from_gst?: boolean | null | undefined;
102
+ is_gst_inclusive?: boolean | null | undefined;
103
+ hide_gst_value?: boolean | null | undefined;
104
+ tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
105
+ tax_invoice_generation_id?: string | null | undefined;
106
+ _tax_invoice_generation_token?: string | null | undefined;
107
+ }>> & import("mongoose").FlatRecord<{
108
+ createdAt: NativeDate;
109
+ updatedAt: NativeDate;
110
+ } & {
111
+ _id: string;
112
+ name: string;
113
+ createdAt: NativeDate;
114
+ updatedAt: NativeDate;
115
+ image_url: string;
116
+ brand_id: string;
117
+ active: boolean;
118
+ country_code: COUNTRY_CODE_ENUM;
119
+ public_business_name: string;
120
+ brand_color: string;
121
+ country_name: COUNTRY_NAME_ENUM;
122
+ coordinates: number[];
123
+ tax_business_number: string;
124
+ warehouse_address: string;
125
+ support_email: string;
126
+ public_phone_numbers: string[];
127
+ currency_code: CURRENCY_CODE_ENUM;
128
+ currency_symbol: CURRENCY_SYMBOL_ENUM;
129
+ currency_name: CURRENCY_NAME_ENUM;
130
+ country_alpha_2: COUNTRY_ALPHA_2_ENUM;
131
+ country_alpha_3: COUNTRY_ALPHA_3_ENUM;
132
+ country_flag: COUNTRY_FLAG_ENUM;
133
+ po_card_gst: number;
134
+ po_cash_gst: number;
135
+ invoice_card_gst: number;
136
+ invoice_cash_gst: number;
137
+ default_po_gst_type: GST_TYPE_ENUM;
138
+ default_invoice_gst_type: GST_TYPE_ENUM;
139
+ track_purchase_order_number_by: TRACK_ORDER_NUMBER_ENUM;
140
+ track_invoice_number_by: TRACK_ORDER_NUMBER_ENUM;
141
+ operational_time_zone_offset_gmt: number;
142
+ operational_start_time: number;
143
+ operational_end_time: number;
144
+ alert_phone_numbers: string[];
145
+ alert_email_addresses: string[];
146
+ alert_when: string[];
147
+ enable_lot_serial_tracking: boolean;
148
+ default_removal_strategy: REMOVAL_STRATEGY_ENUM;
149
+ po_custom_payment_types: string[];
150
+ invoice_custom_payment_types: string[];
151
+ exclude_discount_from_gst?: boolean | null | undefined;
152
+ is_gst_inclusive?: boolean | null | undefined;
153
+ hide_gst_value?: boolean | null | undefined;
154
+ tax_invoice_provider?: import("../../constants").TAX_INVOICE_PROVIDER_ENUM | null | undefined;
155
+ tax_invoice_generation_id?: string | null | undefined;
156
+ _tax_invoice_generation_token?: string | null | undefined;
157
+ }> & Required<{
158
+ _id: string;
159
+ }> & {
160
+ __v: number;
161
+ }>;
162
+ export declare const WAREHOUSE_SETTINGS_COLLECTION_NAME = "warehouses";
@@ -0,0 +1,222 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WAREHOUSE_SETTINGS_COLLECTION_NAME = exports.WarehouseSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const constants_1 = require("../../constants");
6
+ exports.WarehouseSchema = new mongoose_1.Schema({
7
+ _id: {
8
+ type: String,
9
+ required: true,
10
+ immutable: true,
11
+ },
12
+ brand_id: {
13
+ type: String,
14
+ required: true,
15
+ immutable: true,
16
+ ref: 'brands',
17
+ },
18
+ name: {
19
+ type: String,
20
+ required: true,
21
+ },
22
+ warehouse_address: {
23
+ type: String,
24
+ default: '',
25
+ },
26
+ public_business_name: {
27
+ type: String,
28
+ default: '',
29
+ },
30
+ support_email: {
31
+ type: String,
32
+ default: '',
33
+ },
34
+ public_phone_numbers: {
35
+ type: [String],
36
+ default: [],
37
+ },
38
+ image_url: {
39
+ type: String,
40
+ required: true,
41
+ },
42
+ active: {
43
+ type: Boolean,
44
+ required: true,
45
+ },
46
+ currency_code: {
47
+ type: String,
48
+ enum: constants_1.ALL_CURRENCY_CODES,
49
+ default: constants_1.CURRENCY_CODE_ENUM.PKR,
50
+ },
51
+ currency_symbol: {
52
+ type: String,
53
+ enum: constants_1.ALL_CURRENCY_SYMBOLS,
54
+ default: constants_1.CURRENCY_SYMBOL_ENUM.Rs,
55
+ },
56
+ currency_name: {
57
+ type: String,
58
+ enum: constants_1.ALL_CURRENCY_NAMES,
59
+ default: constants_1.CURRENCY_NAME_ENUM.PAKISTANI_RUPEE,
60
+ },
61
+ country_code: {
62
+ type: String,
63
+ enum: constants_1.ALL_COUNTRY_CODES,
64
+ default: constants_1.COUNTRY_CODE_ENUM['+92'],
65
+ },
66
+ country_alpha_2: {
67
+ type: String,
68
+ enum: constants_1.ALL_COUNTRY_ALPHA_2_TYPES,
69
+ default: constants_1.COUNTRY_ALPHA_2_ENUM.PK,
70
+ },
71
+ country_alpha_3: {
72
+ type: String,
73
+ enum: constants_1.ALL_COUNTRY_ALPHA_3_TYPES,
74
+ default: constants_1.COUNTRY_ALPHA_3_ENUM.PAK,
75
+ },
76
+ country_name: {
77
+ type: String,
78
+ enum: constants_1.ALL_COUNTRY_NAME_TYPES,
79
+ default: constants_1.COUNTRY_NAME_ENUM.PAKISTAN,
80
+ },
81
+ country_flag: {
82
+ type: String,
83
+ enum: constants_1.ALL_COUNTRY_FLAG_TYPES,
84
+ default: constants_1.COUNTRY_FLAG_ENUM['🇵🇰'],
85
+ },
86
+ is_gst_inclusive: {
87
+ type: Boolean,
88
+ required: false,
89
+ },
90
+ hide_gst_value: {
91
+ type: Boolean,
92
+ required: false,
93
+ },
94
+ exclude_discount_from_gst: {
95
+ type: Boolean,
96
+ required: false,
97
+ },
98
+ po_card_gst: {
99
+ type: Number,
100
+ default: 0,
101
+ },
102
+ po_cash_gst: {
103
+ type: Number,
104
+ default: 0,
105
+ },
106
+ invoice_card_gst: {
107
+ type: Number,
108
+ default: 0,
109
+ },
110
+ invoice_cash_gst: {
111
+ type: Number,
112
+ default: 0,
113
+ },
114
+ default_po_gst_type: {
115
+ type: String,
116
+ enum: constants_1.ALL_GST_TYPES,
117
+ default: constants_1.GST_TYPE_ENUM.CARD,
118
+ },
119
+ default_invoice_gst_type: {
120
+ type: String,
121
+ enum: constants_1.ALL_GST_TYPES,
122
+ default: constants_1.GST_TYPE_ENUM.CARD,
123
+ },
124
+ tax_business_number: {
125
+ type: String,
126
+ default: '',
127
+ },
128
+ tax_invoice_provider: {
129
+ type: String,
130
+ enum: constants_1.ALL_TAX_INVOICE_PROVIDERS,
131
+ required: false,
132
+ },
133
+ tax_invoice_generation_id: {
134
+ type: String,
135
+ required: false,
136
+ },
137
+ _tax_invoice_generation_token: {
138
+ type: String,
139
+ required: false,
140
+ },
141
+ track_purchase_order_number_by: {
142
+ type: String,
143
+ enum: constants_1.ALL_TRACK_ORDER_NUMBER_TYPES,
144
+ default: constants_1.TRACK_ORDER_NUMBER_ENUM.DAY,
145
+ },
146
+ track_invoice_number_by: {
147
+ type: String,
148
+ enum: constants_1.ALL_TRACK_ORDER_NUMBER_TYPES,
149
+ default: constants_1.TRACK_ORDER_NUMBER_ENUM.DAY,
150
+ },
151
+ operational_time_zone_offset_gmt: {
152
+ type: Number,
153
+ min: -12,
154
+ max: 14,
155
+ default: 0,
156
+ },
157
+ operational_start_time: {
158
+ type: Number,
159
+ min: 0,
160
+ max: 1440,
161
+ default: 360,
162
+ },
163
+ operational_end_time: {
164
+ type: Number,
165
+ min: 0,
166
+ max: 1440,
167
+ default: 360,
168
+ },
169
+ coordinates: {
170
+ type: [Number, Number],
171
+ default: [0, 0],
172
+ },
173
+ brand_color: {
174
+ type: String,
175
+ default: '#5B0888FF',
176
+ },
177
+ alert_phone_numbers: {
178
+ type: [String],
179
+ default: [],
180
+ },
181
+ alert_email_addresses: {
182
+ type: [String],
183
+ default: [],
184
+ },
185
+ alert_when: {
186
+ type: [String],
187
+ default: [],
188
+ },
189
+ enable_lot_serial_tracking: {
190
+ type: Boolean,
191
+ default: false,
192
+ },
193
+ default_removal_strategy: {
194
+ type: String,
195
+ enum: constants_1.ALL_REMOVAL_STRATEGY_TYPES,
196
+ default: constants_1.REMOVAL_STRATEGY_ENUM.FIFO,
197
+ },
198
+ po_custom_payment_types: {
199
+ type: [String],
200
+ default: [],
201
+ },
202
+ invoice_custom_payment_types: {
203
+ type: [String],
204
+ default: [],
205
+ },
206
+ createdAt: {
207
+ type: mongoose_1.Schema.Types.Date,
208
+ required: true,
209
+ default: () => new Date(),
210
+ immutable: true,
211
+ },
212
+ updatedAt: {
213
+ type: mongoose_1.Schema.Types.Date,
214
+ required: true,
215
+ default: () => new Date(),
216
+ },
217
+ }, {
218
+ timestamps: true,
219
+ versionKey: false,
220
+ minimize: false,
221
+ });
222
+ exports.WAREHOUSE_SETTINGS_COLLECTION_NAME = 'warehouses';
@@ -0,0 +1,22 @@
1
+ import { DISCOUNT_APPLICABILITY_ENUM, DISCOUNT_TYPE_ENUM, PLATFORMS_ENUM } from '../../constants';
2
+ export interface IAppliedOrderDiscount {
3
+ _id: string;
4
+ tenant_id: string;
5
+ order_id: string;
6
+ discount_id: string;
7
+ type: DISCOUNT_TYPE_ENUM;
8
+ applicability: DISCOUNT_APPLICABILITY_ENUM;
9
+ platform: PLATFORMS_ENUM;
10
+ name: string;
11
+ order_amount: number;
12
+ discount_amount: number;
13
+ discount_rate: number | null;
14
+ reason: string;
15
+ reference_number: string | null;
16
+ staff_id: string;
17
+ staff_phone: string;
18
+ staff_name: string;
19
+ createdAt_mins: number;
20
+ createdAt: Date;
21
+ updatedAt: Date;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { MULTI_TENANT_WEBSITE_TYPE_ENUM } from '../../constants';
2
+ export interface IBrand {
3
+ _id: string;
4
+ name: string;
5
+ image_url: string;
6
+ multi_tenant_website: string | null;
7
+ website_display_type: MULTI_TENANT_WEBSITE_TYPE_ENUM;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ }
11
+ export interface IBrandTenants {
12
+ _id: string;
13
+ name: string;
14
+ image_url: string;
15
+ tenants: {
16
+ _id: string;
17
+ name: string;
18
+ image_url: string;
19
+ }[];
20
+ }
21
+ export declare type IBrandsWithTenants = IBrandTenants[];
22
+ export interface IBrandWarehouses {
23
+ _id: string;
24
+ name: string;
25
+ image_url: string;
26
+ warehouses: {
27
+ _id: string;
28
+ name: string;
29
+ image_url: string;
30
+ }[];
31
+ }
32
+ export declare type IBrandsWithWarehouses = IBrandWarehouses[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { CATEGORY_DISPLAY_TYPE_ENUM } from '../../constants';
2
+ export interface ICategory {
3
+ _id: string;
4
+ brand_id: string;
5
+ tenants: string[];
6
+ image_url: string;
7
+ banner_url?: string | null;
8
+ name: string;
9
+ subtitle: string;
10
+ active: boolean;
11
+ sort_id: number;
12
+ display_type: CATEGORY_DISPLAY_TYPE_ENUM;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import { CURRENCY_SYMBOL_ENUM, DELIVERY_STATUS_ENUM } from '../../constants';
2
- import { IOrder } from './order';
2
+ import { IOrder } from './orders';
3
3
  export interface IDelivery {
4
4
  _id: string;
5
5
  order_id: string;
@@ -0,0 +1,20 @@
1
+ import { IExpenseDetails } from './expense_details';
2
+ export interface IExpenseSubCategory {
3
+ _id: string;
4
+ name: string;
5
+ sort_id: number;
6
+ }
7
+ export interface IExpenseCategory {
8
+ _id: string;
9
+ tenant_id: string;
10
+ name: string;
11
+ description: string;
12
+ sort_id: number;
13
+ sub_categories: IExpenseSubCategory[];
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ }
17
+ export interface IExpenseCategoryDetails extends IExpenseCategory {
18
+ details: IExpenseDetails[];
19
+ }
20
+ export type IExpenseCategoriesWithDetails = IExpenseCategoryDetails[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import { EXPENSE_REACCURING_TYPE_ENUM } from '../../constants';
2
- import { IOrderPayment } from './order';
2
+ import { IOrderPayment } from './orders';
3
3
  export interface IExpenseReacurring {
4
4
  is_recurring: boolean;
5
5
  recurrence_interval: EXPENSE_REACCURING_TYPE_ENUM | null;
@@ -1,12 +1,12 @@
1
1
  export * from '../../helpers/types/customer_wallet_assignments';
2
2
  export * from './app_configs';
3
- export * from './applied-order-discounts';
4
- export * from './brand';
3
+ export * from './applied_order_discounts';
4
+ export * from './brands';
5
5
  export * from './cash_drawer_sessions';
6
6
  export * from './cash_drawers';
7
7
  export * from './cash_in_hand_transactions';
8
8
  export * from './cash_in_out';
9
- export * from './category';
9
+ export * from './categories';
10
10
  export * from './close_dates';
11
11
  export * from './common';
12
12
  export * from './courses';
@@ -18,7 +18,7 @@ export * from './dinein_floors';
18
18
  export * from './dinein_tables';
19
19
  export * from './dinein_tables_fingerprints';
20
20
  export * from './discounts';
21
- export * from './expense_category';
21
+ export * from './expense_categories';
22
22
  export * from './expense_details';
23
23
  export * from './gift_cards';
24
24
  export * from './halfhalf_setup';
@@ -27,64 +27,64 @@ export * from './instore_shifts';
27
27
  export * from './internal_customers';
28
28
  export * from './internal_invoices';
29
29
  export * from './internal_leads';
30
- export * from './inventory';
30
+ export * from './inventories';
31
31
  export * from './inventory_categories';
32
32
  export * from './inventory_lot_serial_numbers';
33
33
  export * from './inventory_transactions';
34
- export * from './item';
35
34
  export * from './item_transactions';
35
+ export * from './items';
36
36
  export * from './marketing_fingerprints';
37
- export * from './menu';
37
+ export * from './menus';
38
38
  export * from './messaging_devices';
39
39
  export * from './modifier_extras';
40
40
  export * from './multi_tenants';
41
41
  export * from './offers';
42
42
  export * from './offers_fingerprints';
43
43
  export * from './operational_roles';
44
- export * from './order';
44
+ export * from './orders';
45
45
  export * from './printer_settings';
46
46
  export * from './public_holidays';
47
47
  export * from './purchase_order_common';
48
48
  export * from './purchase_order_receipts';
49
- export * from './purchase_order_rfq';
49
+ export * from './purchase_order_rfqs';
50
50
  export * from './purchase_order_vendor_returns';
51
51
  export * from './purchase_orders';
52
52
  export * from './reservations';
53
53
  export * from './reviews';
54
54
  export * from './rewards_usage';
55
- export * from './rider';
55
+ export * from './riders';
56
56
  export * from './sale_order_common';
57
- export * from './sale_order_deliveries';
58
- export * from './sale_order_invoices';
59
- export * from './sale_order_rfq';
60
- export * from './sale_orders';
61
57
  export * from './specials';
62
58
  export * from './staff_shifts';
63
- export * from './tenant';
64
59
  export * from './tenant_days';
65
60
  export * from './tenant_metadata';
66
61
  export * from './tenant_shifts';
67
- export * from './tenant_staff';
62
+ export * from './tenant_staffs';
63
+ export * from './tenants';
68
64
  export * from './terminal_devices';
69
65
  export * from './tokens';
70
- export * from './track_order_number';
66
+ export * from './track_order_numbers';
71
67
  export * from './void_order_items';
72
68
  export * from './void_purchase_order_items';
73
69
  export * from './void_warehouse_invoice_items';
74
70
  export * from './vouchers';
75
- export * from './wallet';
76
71
  export * from './wallet_transactions';
77
- export * from './warehouse';
72
+ export * from './wallets';
78
73
  export * from './warehouse-activity-logs';
79
- export * from './warehouse-communications';
80
74
  export * from './warehouse_categories';
81
75
  export * from './warehouse_clients';
76
+ export * from './warehouse_communications';
82
77
  export * from './warehouse_internal_movements';
83
78
  export * from './warehouse_inventory_transactions';
84
79
  export * from './warehouse_invoices';
85
80
  export * from './warehouse_item_transactions';
86
81
  export * from './warehouse_items';
87
82
  export * from './warehouse_operational_roles';
88
- export * from './warehouse_staff';
89
- export * from './warehouse_track_order_number';
83
+ export * from './warehouse_sale_deliveries';
84
+ export * from './warehouse_sale_invoices';
85
+ export * from './warehouse_sale_order_rfqs';
86
+ export * from './warehouse_sale_orders';
87
+ export * from './warehouse_staffs';
88
+ export * from './warehouse_track_order_numbers';
90
89
  export * from './warehouse_vendors';
90
+ export * from './warehouses';