lazywait-calcs 1.1.2 → 1.1.4
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/cjs/index.js +1 -0
- package/lib/cjs/lwapp_types.js +2 -0
- package/lib/cjs/timezones.js +596 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/lwapp_types.d.ts +864 -0
- package/lib/cjs/types/lwapp_types.d.ts.map +1 -0
- package/lib/cjs/types/timezones.d.ts +4 -0
- package/lib/cjs/types/timezones.d.ts.map +1 -0
- package/lib/cjs/types/types.d.ts +1851 -664
- package/lib/cjs/types/types.d.ts.map +1 -1
- package/lib/cjs/types/utils.d.ts.map +1 -1
- package/lib/cjs/types.js +43 -0
- package/lib/cjs/utils.js +1 -3
- package/lib/esm/index.js +1 -0
- package/lib/esm/lwapp_types.js +1 -0
- package/lib/esm/timezones.js +594 -0
- package/lib/esm/types/index.d.ts +1 -0
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/lwapp_types.d.ts +864 -0
- package/lib/esm/types/lwapp_types.d.ts.map +1 -0
- package/lib/esm/types/timezones.d.ts +4 -0
- package/lib/esm/types/timezones.d.ts.map +1 -0
- package/lib/esm/types/types.d.ts +1851 -664
- package/lib/esm/types/types.d.ts.map +1 -1
- package/lib/esm/types/utils.d.ts.map +1 -1
- package/lib/esm/types.js +73 -1
- package/lib/esm/utils.js +1 -3
- package/package.json +1 -1
- package/lib/esm/index.mjs +0 -0
package/lib/cjs/types/types.d.ts
CHANGED
|
@@ -1,128 +1,146 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
name_lan_s?: string;
|
|
1
|
+
declare namespace FirebaseFirestore {
|
|
2
|
+
type Timestamp = {};
|
|
3
|
+
type FieldValue = {};
|
|
4
|
+
type GeoPoint = {};
|
|
5
|
+
}
|
|
6
|
+
declare type TimestampType = FirebaseFirestore.Timestamp;
|
|
7
|
+
declare type GeoPointType = FirebaseFirestore.GeoPoint;
|
|
8
|
+
export declare const Providers: ProvidersList[];
|
|
9
|
+
export declare type ProvidersList = {
|
|
10
|
+
name: PaymentProviders;
|
|
11
|
+
platforms: SupportedPlatforms[];
|
|
13
12
|
};
|
|
14
|
-
export declare type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
export declare type SupportedPlatforms = 'windows' | 'ios' | 'android';
|
|
14
|
+
export declare type PaymentProviders = 'SUREPAY' | 'ALHAMRANI' | 'LAZYWAITPAY';
|
|
15
|
+
export interface EGSUnitLocation {
|
|
16
|
+
city: string;
|
|
17
|
+
city_subdivision: string;
|
|
18
|
+
street: string;
|
|
19
|
+
plot_identification: string;
|
|
20
|
+
building: string;
|
|
21
|
+
postal_zone: string;
|
|
22
|
+
}
|
|
23
|
+
export interface EGSUnitInfo {
|
|
24
|
+
uuid: string;
|
|
25
|
+
custom_id: string;
|
|
26
|
+
model: string;
|
|
27
|
+
CRN_number: string;
|
|
28
|
+
VAT_name: string;
|
|
29
|
+
VAT_number: string;
|
|
30
|
+
branch_name: string;
|
|
31
|
+
branch_industry: string;
|
|
32
|
+
location: EGSUnitLocation;
|
|
33
|
+
private_key?: string;
|
|
34
|
+
private_key_buffer?: string;
|
|
35
|
+
csr?: string;
|
|
36
|
+
compliance_certificate?: string;
|
|
37
|
+
compliance_api_secret?: string;
|
|
38
|
+
production_certificate?: string;
|
|
39
|
+
production_api_secret?: string;
|
|
40
|
+
comp_certificate_info?: any;
|
|
41
|
+
}
|
|
42
|
+
export declare type IosPermissionStatus = 0 | 1 | 2 | 3 | 4;
|
|
43
|
+
export default class OSNotification {
|
|
44
|
+
body: string;
|
|
45
|
+
sound?: string;
|
|
46
|
+
title?: string;
|
|
47
|
+
launchURL?: string;
|
|
48
|
+
rawPayload: object | string;
|
|
49
|
+
actionButtons?: object[];
|
|
50
|
+
additionalData?: object;
|
|
51
|
+
notificationId: string;
|
|
52
|
+
groupKey?: string;
|
|
53
|
+
groupMessage?: string;
|
|
54
|
+
ledColor?: string;
|
|
55
|
+
priority?: number;
|
|
56
|
+
smallIcon?: string;
|
|
57
|
+
largeIcon?: string;
|
|
58
|
+
bigPicture?: string;
|
|
59
|
+
collapseId?: string;
|
|
60
|
+
fromProjectNumber?: string;
|
|
61
|
+
smallIconAccentColor?: string;
|
|
62
|
+
lockScreenVisibility?: string;
|
|
63
|
+
androidNotificationId?: number;
|
|
64
|
+
badge?: string;
|
|
65
|
+
badgeIncrement?: string;
|
|
66
|
+
category?: string;
|
|
67
|
+
threadId?: string;
|
|
68
|
+
subtitle?: string;
|
|
69
|
+
templateId?: string;
|
|
70
|
+
templateName?: string;
|
|
71
|
+
attachments?: object;
|
|
72
|
+
mutableContent?: boolean;
|
|
73
|
+
contentAvailable?: string;
|
|
74
|
+
relevanceScore?: number;
|
|
75
|
+
interruptionLevel?: string;
|
|
76
|
+
constructor(receivedEvent: OSNotification);
|
|
77
|
+
}
|
|
78
|
+
export interface DeviceState {
|
|
79
|
+
userId: string;
|
|
80
|
+
pushToken: string;
|
|
81
|
+
emailUserId: string;
|
|
82
|
+
emailAddress: string;
|
|
83
|
+
smsUserId: string;
|
|
84
|
+
smsNumber: string;
|
|
85
|
+
isSubscribed: boolean;
|
|
86
|
+
isPushDisabled: boolean;
|
|
87
|
+
isEmailSubscribed: boolean;
|
|
88
|
+
isSMSSubscribed: boolean;
|
|
89
|
+
hasNotificationPermission?: boolean;
|
|
90
|
+
notificationPermissionStatus?: IosPermissionStatus;
|
|
91
|
+
}
|
|
92
|
+
export declare type User = {
|
|
93
|
+
displayName?: string;
|
|
94
|
+
phoneNumber?: string;
|
|
95
|
+
emailVerified?: boolean;
|
|
96
|
+
email?: string;
|
|
97
|
+
uid?: string;
|
|
98
|
+
countryCode?: string;
|
|
29
99
|
};
|
|
30
|
-
export declare type
|
|
31
|
-
|
|
32
|
-
name_lan_s?: string;
|
|
33
|
-
client_id?: string;
|
|
100
|
+
export declare type POSUser = {
|
|
101
|
+
client_id: string;
|
|
34
102
|
branch_id?: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
waiting_default_ready_message_lan_s?: string;
|
|
60
|
-
waiting_default_cancel_message_lan_p?: string;
|
|
61
|
-
waiting_default_cancel_message_lan_s?: string;
|
|
62
|
-
waiting_custom_add_message_lan_p?: string;
|
|
63
|
-
waiting_custom_add_message_lan_s?: string;
|
|
64
|
-
waiting_custom_ready_message_lan_p?: string;
|
|
65
|
-
waiting_custom_ready_message_lan_s?: string;
|
|
66
|
-
waiting_custom_cancel_message_lan_p?: string;
|
|
67
|
-
waiting_custom_cancel_message_lan_s?: string;
|
|
68
|
-
waiting_before_workinghours_by?: number;
|
|
69
|
-
waiting_Workinghours_enabled?: boolean;
|
|
103
|
+
filename?: string;
|
|
104
|
+
id: string;
|
|
105
|
+
isLogged?: boolean;
|
|
106
|
+
job_title?: string;
|
|
107
|
+
name: string;
|
|
108
|
+
permissions?: string[];
|
|
109
|
+
photo?: string | null;
|
|
110
|
+
pinCode: string;
|
|
111
|
+
role_id?: string;
|
|
112
|
+
role_name?: string;
|
|
113
|
+
salary?: string;
|
|
114
|
+
sms_code?: string;
|
|
115
|
+
support_login_id?: string;
|
|
116
|
+
user_email?: string;
|
|
117
|
+
user_email_verified?: boolean;
|
|
118
|
+
user_id: string;
|
|
119
|
+
user_language?: string;
|
|
120
|
+
user_name?: string;
|
|
121
|
+
user_password?: string;
|
|
122
|
+
user_phone?: string;
|
|
123
|
+
user_type?: 'ADMIN' | 'USER';
|
|
124
|
+
branches_ids?: string[];
|
|
125
|
+
country_code?: string;
|
|
126
|
+
owner?: boolean;
|
|
70
127
|
};
|
|
71
|
-
export declare type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
128
|
+
export declare type Country = {
|
|
129
|
+
callingCodes: string[];
|
|
130
|
+
countryCode: string;
|
|
131
|
+
name: string;
|
|
132
|
+
numberExample: string;
|
|
133
|
+
show: boolean;
|
|
77
134
|
};
|
|
78
|
-
export declare type
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
payment_amount?: string;
|
|
82
|
-
payment_completed?: boolean;
|
|
83
|
-
allowed_terminals?: number;
|
|
84
|
-
allowed_admins?: number;
|
|
85
|
-
plan_name?: string;
|
|
86
|
-
plan_options?: PlanOption[];
|
|
87
|
-
plan_price?: string;
|
|
88
|
-
subscription_type?: string;
|
|
89
|
-
monthly_price?: string;
|
|
90
|
-
promotion?: string;
|
|
91
|
-
order?: string;
|
|
92
|
-
sku?: string;
|
|
93
|
-
savings?: string;
|
|
94
|
-
is_test?: boolean;
|
|
95
|
-
price?: string;
|
|
96
|
-
priceAmount?: string;
|
|
97
|
-
priceCurrency?: string;
|
|
98
|
-
loyalty_enabled?: boolean;
|
|
99
|
-
sources_enabled?: boolean;
|
|
135
|
+
export declare type WindowsPrinter = {
|
|
136
|
+
Id: string;
|
|
137
|
+
Name: string;
|
|
100
138
|
};
|
|
101
|
-
export declare type
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
allowed_admins?: number;
|
|
107
|
-
created_date?: Date;
|
|
108
|
-
expire_date?: Date;
|
|
109
|
-
start_date?: Date;
|
|
110
|
-
licence_active?: boolean;
|
|
111
|
-
payment_completed?: boolean;
|
|
112
|
-
plan_info?: PlanInfo;
|
|
113
|
-
is_iaphub?: boolean;
|
|
114
|
-
currency?: string;
|
|
115
|
-
converted_currency?: string;
|
|
116
|
-
branch_name?: string;
|
|
117
|
-
converted_price?: number;
|
|
118
|
-
is_subscription_active?: boolean;
|
|
119
|
-
latest_operation_type?: string;
|
|
120
|
-
order_id?: string;
|
|
121
|
-
platform?: string;
|
|
122
|
-
price?: number;
|
|
123
|
-
product_group_name?: string;
|
|
124
|
-
product_sku?: string;
|
|
125
|
-
subscription_state?: string;
|
|
139
|
+
export declare type Lang = {
|
|
140
|
+
key: string;
|
|
141
|
+
value: string;
|
|
142
|
+
type: 'LTR' | 'RTL';
|
|
143
|
+
primary: boolean;
|
|
126
144
|
};
|
|
127
145
|
export declare type Branch = {
|
|
128
146
|
client_id: string;
|
|
@@ -256,7 +274,7 @@ export declare type Branch = {
|
|
|
256
274
|
bill_show_address?: boolean;
|
|
257
275
|
bill_show_phone_number?: boolean;
|
|
258
276
|
sources_enabled?: boolean;
|
|
259
|
-
location?: object | null;
|
|
277
|
+
location?: GeoPointType | object | null;
|
|
260
278
|
location_info?: Location | null;
|
|
261
279
|
gazt_qr?: boolean;
|
|
262
280
|
do_not_show_update_branches_ids?: boolean | null;
|
|
@@ -270,268 +288,79 @@ export declare type Branch = {
|
|
|
270
288
|
auto_send_lazypay?: boolean;
|
|
271
289
|
print_price_with_custom_tax?: boolean;
|
|
272
290
|
};
|
|
273
|
-
export declare type
|
|
274
|
-
|
|
275
|
-
branch_id: string;
|
|
276
|
-
terminal_id: string | null;
|
|
277
|
-
date?: Date;
|
|
278
|
-
drawer_opening_id?: string;
|
|
279
|
-
payment?: number;
|
|
280
|
-
closing_id?: string | null;
|
|
281
|
-
user_id?: string;
|
|
282
|
-
name?: string;
|
|
283
|
-
};
|
|
284
|
-
export declare type OrderPayment = {
|
|
285
|
-
client_id: string;
|
|
286
|
-
branch_id: string;
|
|
287
|
-
order_paymnet_id?: string;
|
|
288
|
-
name_lan_p?: string;
|
|
291
|
+
export declare type PaymentMethod = {
|
|
292
|
+
name_lan_p: string | 'CASH' | 'DEBIT' | 'CREDIT';
|
|
289
293
|
name_lan_s?: string;
|
|
290
|
-
|
|
294
|
+
client_id?: string;
|
|
295
|
+
branch_id?: string;
|
|
296
|
+
is_cash: boolean;
|
|
297
|
+
is_default?: boolean;
|
|
298
|
+
disable?: boolean;
|
|
291
299
|
payment_amount?: number;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
is_cash?: boolean;
|
|
295
|
-
order_ref?: string;
|
|
296
|
-
closing_id?: string | null;
|
|
300
|
+
amount?: string;
|
|
301
|
+
payment_type_id?: string;
|
|
297
302
|
pos_payment?: POSPayment;
|
|
298
303
|
split_id?: string | null;
|
|
299
|
-
|
|
304
|
+
qoyod_payment_account?: string;
|
|
305
|
+
is_stc_pay?: boolean;
|
|
306
|
+
stc_pay_info?: StcPayInfo;
|
|
307
|
+
stc_pay_payment?: StcPayResponse;
|
|
300
308
|
};
|
|
301
|
-
export declare type
|
|
309
|
+
export declare type WaitingSettings = {
|
|
310
|
+
waiting_enabled?: boolean;
|
|
311
|
+
waiting_services_enabled?: boolean;
|
|
312
|
+
waiting_updated_by: 'Admin' | 'Customer';
|
|
313
|
+
Waiting_last_updated?: Date;
|
|
314
|
+
waiting_auto_piolt_enabled?: boolean;
|
|
315
|
+
waiting_auto_ready_enabled?: boolean;
|
|
316
|
+
waiting_auto_cancel_enabled?: boolean;
|
|
317
|
+
waiting_cancel_after?: number;
|
|
318
|
+
waiting_emergency_shutdown_enabled?: boolean;
|
|
319
|
+
waiting_emergency_shutdown_daily_customer_capacity?: number;
|
|
320
|
+
waiting_custom_messages_enabled?: boolean;
|
|
321
|
+
waiting_default_add_message_lan_p?: string;
|
|
322
|
+
waiting_default_add_message_lan_s?: string;
|
|
323
|
+
waiting_default_ready_message_lan_p?: string;
|
|
324
|
+
waiting_default_ready_message_lan_s?: string;
|
|
325
|
+
waiting_default_cancel_message_lan_p?: string;
|
|
326
|
+
waiting_default_cancel_message_lan_s?: string;
|
|
327
|
+
waiting_custom_add_message_lan_p?: string;
|
|
328
|
+
waiting_custom_add_message_lan_s?: string;
|
|
329
|
+
waiting_custom_ready_message_lan_p?: string;
|
|
330
|
+
waiting_custom_ready_message_lan_s?: string;
|
|
331
|
+
waiting_custom_cancel_message_lan_p?: string;
|
|
332
|
+
waiting_custom_cancel_message_lan_s?: string;
|
|
333
|
+
waiting_before_workinghours_by?: number;
|
|
334
|
+
waiting_Workinghours_enabled?: boolean;
|
|
335
|
+
};
|
|
336
|
+
export declare type Client = {
|
|
302
337
|
client_id: string;
|
|
303
|
-
branch_id: string;
|
|
304
|
-
terminal_id?: string;
|
|
305
|
-
closing_id?: string | null;
|
|
306
|
-
user_id?: string;
|
|
307
|
-
user_name?: string;
|
|
308
|
-
order_id?: string;
|
|
309
|
-
payment_id?: string;
|
|
310
|
-
payment_amount?: number;
|
|
311
|
-
date?: Date;
|
|
312
|
-
transfers?: {
|
|
313
|
-
user_id: string;
|
|
314
|
-
user_name: string;
|
|
315
|
-
date: Date;
|
|
316
|
-
}[];
|
|
317
|
-
is_cash?: boolean;
|
|
318
338
|
name_lan_p?: string;
|
|
319
339
|
name_lan_s?: string;
|
|
320
|
-
|
|
340
|
+
owner_email?: string;
|
|
341
|
+
owner_phone?: string;
|
|
342
|
+
owner_info?: OwnerInfo;
|
|
343
|
+
had_trial?: Boolean;
|
|
321
344
|
};
|
|
322
|
-
export declare type
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
nl?: string;
|
|
335
|
-
pa?: string;
|
|
336
|
-
pl?: string;
|
|
337
|
-
pt?: string;
|
|
338
|
-
ru?: string;
|
|
339
|
-
yl?: string;
|
|
340
|
-
tr?: string;
|
|
341
|
-
ur?: string;
|
|
342
|
-
['zh-CN']?: string;
|
|
343
|
-
['zh-TW']?: string;
|
|
345
|
+
export declare type OwnerInfo = {
|
|
346
|
+
name_lan_p?: string;
|
|
347
|
+
owner_email?: string;
|
|
348
|
+
owner_phone?: string;
|
|
349
|
+
billing_address?: billing_address;
|
|
350
|
+
first_name?: string;
|
|
351
|
+
last_name?: string;
|
|
352
|
+
owner_country_code?: string;
|
|
353
|
+
owner_gender?: string;
|
|
354
|
+
owner_phone_verified?: boolean;
|
|
355
|
+
owner_pin_code?: string;
|
|
356
|
+
owner_position?: string;
|
|
344
357
|
};
|
|
345
|
-
export declare type
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
name_lan_s?: string;
|
|
352
|
-
menu_category_id?: string;
|
|
353
|
-
menu_item_id?: string;
|
|
354
|
-
price_id?: string;
|
|
355
|
-
photo?: string | null;
|
|
356
|
-
price?: number;
|
|
357
|
-
cost?: number;
|
|
358
|
-
unit?: Unit;
|
|
359
|
-
consumption?: number;
|
|
360
|
-
alert_level?: number;
|
|
361
|
-
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
362
|
-
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
363
|
-
update_date?: Date | null;
|
|
364
|
-
allergens?: string[];
|
|
365
|
-
};
|
|
366
|
-
export declare type OrderItemAddon = {
|
|
367
|
-
client_id: string;
|
|
368
|
-
branch_id: string;
|
|
369
|
-
order_ref?: string;
|
|
370
|
-
order_addon_id?: string;
|
|
371
|
-
addon_id: string;
|
|
372
|
-
name_lan_p: string;
|
|
373
|
-
name_lan_s?: string;
|
|
374
|
-
price: number;
|
|
375
|
-
is_without?: boolean;
|
|
376
|
-
calories?: number;
|
|
377
|
-
menu_category_id?: string;
|
|
378
|
-
menu_item_id?: string;
|
|
379
|
-
quantity: number;
|
|
380
|
-
cost?: number;
|
|
381
|
-
amount?: number;
|
|
382
|
-
translated?: translated;
|
|
383
|
-
stock_enabled?: boolean;
|
|
384
|
-
order_item_qty?: number;
|
|
385
|
-
sources?: Source[];
|
|
386
|
-
sources_ids?: string[];
|
|
387
|
-
consumption?: {
|
|
388
|
-
[source_id: string]: number;
|
|
389
|
-
};
|
|
390
|
-
is_included_in_custom_addons?: boolean;
|
|
391
|
-
original_price?: number;
|
|
392
|
-
type?: 'CATEGORY_ADDON' | 'ITEM_ADDON';
|
|
393
|
-
};
|
|
394
|
-
export declare type OrderItemDiscount = {
|
|
395
|
-
client_id: string;
|
|
396
|
-
branch_id: string;
|
|
397
|
-
item_discount_id?: string;
|
|
398
|
-
discount_name?: string;
|
|
399
|
-
discount_id: string;
|
|
400
|
-
auto_apply?: boolean;
|
|
401
|
-
amount?: number;
|
|
402
|
-
menu_category_id?: string;
|
|
403
|
-
menu_item_id?: string;
|
|
404
|
-
value?: number;
|
|
405
|
-
is_percentage?: boolean;
|
|
406
|
-
active?: boolean;
|
|
407
|
-
};
|
|
408
|
-
export declare type POSUser = {
|
|
409
|
-
client_id: string;
|
|
410
|
-
branch_id?: string;
|
|
411
|
-
filename?: string;
|
|
412
|
-
id: string;
|
|
413
|
-
isLogged?: boolean;
|
|
414
|
-
job_title?: string;
|
|
415
|
-
name: string;
|
|
416
|
-
permissions?: string[];
|
|
417
|
-
photo?: string | null;
|
|
418
|
-
pinCode: string;
|
|
419
|
-
role_id?: string;
|
|
420
|
-
role_name?: string;
|
|
421
|
-
salary?: string;
|
|
422
|
-
sms_code?: string;
|
|
423
|
-
support_login_id?: string;
|
|
424
|
-
user_email?: string;
|
|
425
|
-
user_email_verified?: boolean;
|
|
426
|
-
user_id: string;
|
|
427
|
-
user_language?: string;
|
|
428
|
-
user_name?: string;
|
|
429
|
-
user_password?: string;
|
|
430
|
-
user_phone?: string;
|
|
431
|
-
user_type?: 'ADMIN' | 'USER';
|
|
432
|
-
branches_ids?: string[];
|
|
433
|
-
country_code?: string;
|
|
434
|
-
owner?: boolean;
|
|
435
|
-
};
|
|
436
|
-
export declare type OrderItem = {
|
|
437
|
-
client_id: string;
|
|
438
|
-
branch_id: string;
|
|
439
|
-
name_lan_p?: string;
|
|
440
|
-
name_lan_s?: string;
|
|
441
|
-
order_ref?: string;
|
|
442
|
-
order_item_id?: string;
|
|
443
|
-
menu_item_id?: string;
|
|
444
|
-
menu_category_id?: string;
|
|
445
|
-
cat_name_lan_p?: string;
|
|
446
|
-
cat_name_lan_s?: string;
|
|
447
|
-
quantity: number;
|
|
448
|
-
details?: string;
|
|
449
|
-
order_id?: string;
|
|
450
|
-
price: number;
|
|
451
|
-
price_id: string;
|
|
452
|
-
total_calories?: number;
|
|
453
|
-
printer_id?: string;
|
|
454
|
-
cost?: number;
|
|
455
|
-
order_discount?: number;
|
|
456
|
-
order_taxes?: number;
|
|
457
|
-
loyalty_points?: number;
|
|
458
|
-
subtotal?: number;
|
|
459
|
-
tax_percentage?: number;
|
|
460
|
-
addons?: OrderItemAddon[];
|
|
461
|
-
discounts?: OrderItemDiscount[];
|
|
462
|
-
taxes?: OrderTax[];
|
|
463
|
-
order_item_price?: ItemPrice;
|
|
464
|
-
translated?: translated;
|
|
465
|
-
stock_enabled?: boolean;
|
|
466
|
-
sources_ids?: string[];
|
|
467
|
-
sources?: Source[];
|
|
468
|
-
order_item_ready?: Date | null;
|
|
469
|
-
order_ready?: Date | null;
|
|
470
|
-
not_taxable?: boolean;
|
|
471
|
-
taxable?: boolean;
|
|
472
|
-
split_qty?: number;
|
|
473
|
-
split_id?: string | null;
|
|
474
|
-
employees?: POSUser[];
|
|
475
|
-
refund_time?: Date | null;
|
|
476
|
-
refund_by?: {
|
|
477
|
-
user_id?: string;
|
|
478
|
-
user_name?: string;
|
|
479
|
-
};
|
|
480
|
-
not_printed?: boolean;
|
|
481
|
-
order_item_updated?: boolean;
|
|
482
|
-
};
|
|
483
|
-
export declare type OrderStatusID = 'new-order' | 'confirmed' | 'ready' | 'delivered' | 'canceled' | 'delivery' | 'driver-pickup' | 'driver-at-door';
|
|
484
|
-
export declare type OrderTax = {
|
|
485
|
-
client_id: string;
|
|
486
|
-
branch_id: string;
|
|
487
|
-
name_lan_p?: string;
|
|
488
|
-
name_lan_s?: string;
|
|
489
|
-
amount?: number;
|
|
490
|
-
tax_value?: number;
|
|
491
|
-
tax_id?: string;
|
|
492
|
-
isPercent?: boolean;
|
|
493
|
-
spends_at_least?: boolean;
|
|
494
|
-
spends_at_least_amount?: number;
|
|
495
|
-
auto_apply?: boolean;
|
|
496
|
-
};
|
|
497
|
-
export declare type TimeBound = {
|
|
498
|
-
valid_from?: Date | null;
|
|
499
|
-
valid_to?: Date | null;
|
|
500
|
-
};
|
|
501
|
-
export declare type OrderDiscount = {
|
|
502
|
-
client_id: string;
|
|
503
|
-
branch_id: string;
|
|
504
|
-
discount_id?: string;
|
|
505
|
-
is_percentage?: boolean;
|
|
506
|
-
amount?: number;
|
|
507
|
-
note?: string;
|
|
508
|
-
valid_from?: Date | null;
|
|
509
|
-
valid_to?: Date | null;
|
|
510
|
-
isTimeBound?: boolean;
|
|
511
|
-
is_multi_time_range?: boolean;
|
|
512
|
-
time_range?: TimeBound[] | null;
|
|
513
|
-
spends_at_least?: boolean;
|
|
514
|
-
spends_at_least_amount?: number;
|
|
515
|
-
auto_apply?: boolean;
|
|
516
|
-
discount_name?: string;
|
|
517
|
-
};
|
|
518
|
-
export declare type PrintedTax = {
|
|
519
|
-
tax_id: string;
|
|
520
|
-
name_lan_p: string;
|
|
521
|
-
name_lan_s?: string;
|
|
522
|
-
isPercent?: boolean;
|
|
523
|
-
total: number;
|
|
524
|
-
amount: number;
|
|
525
|
-
};
|
|
526
|
-
export declare type OrderDelivery = {
|
|
527
|
-
client_id: string;
|
|
528
|
-
branch_id: string;
|
|
529
|
-
delivery_id: string;
|
|
530
|
-
active: boolean;
|
|
531
|
-
delivery_type?: 'FIXED' | 'CUSTOM' | 'RADIUS';
|
|
532
|
-
delivery_fee?: number;
|
|
533
|
-
delivery_radius?: number;
|
|
534
|
-
separate_invoice: boolean;
|
|
358
|
+
export declare type billing_address = {
|
|
359
|
+
address?: string;
|
|
360
|
+
city?: string;
|
|
361
|
+
country?: string;
|
|
362
|
+
state?: string;
|
|
363
|
+
zip_code?: string;
|
|
535
364
|
};
|
|
536
365
|
export declare type Order = {
|
|
537
366
|
client_id: string;
|
|
@@ -539,14 +368,17 @@ export declare type Order = {
|
|
|
539
368
|
order_ref?: string;
|
|
540
369
|
order_id?: string;
|
|
541
370
|
order_number?: string;
|
|
371
|
+
original_order_ref?: string;
|
|
372
|
+
original_order_id?: string;
|
|
373
|
+
original_order_number?: string;
|
|
542
374
|
customer_cell?: string;
|
|
543
375
|
customer_name?: string;
|
|
544
376
|
customer_email?: string;
|
|
545
377
|
customer_id?: string;
|
|
546
378
|
email?: string;
|
|
547
379
|
order_items: OrderItem[];
|
|
548
|
-
order_date?: Date;
|
|
549
|
-
update_time?: Date;
|
|
380
|
+
order_date?: TimestampType | Date;
|
|
381
|
+
update_time?: TimestampType | Date;
|
|
550
382
|
order_delivery_fee?: number;
|
|
551
383
|
order_details?: string;
|
|
552
384
|
cancelation_reason?: string;
|
|
@@ -574,7 +406,7 @@ export declare type Order = {
|
|
|
574
406
|
discount?: number;
|
|
575
407
|
loyalty_amount?: number;
|
|
576
408
|
total_loyalty_amount?: number;
|
|
577
|
-
promo_code?:
|
|
409
|
+
promo_code?: string;
|
|
578
410
|
vat_number?: string;
|
|
579
411
|
order_printed?: boolean;
|
|
580
412
|
driver_paid_lazywait_fee?: boolean;
|
|
@@ -593,7 +425,7 @@ export declare type Order = {
|
|
|
593
425
|
order_taxes: OrderTax[];
|
|
594
426
|
order_discounts: OrderDiscount[];
|
|
595
427
|
order_deliveries?: OrderDelivery[];
|
|
596
|
-
order_ready?: Date | null;
|
|
428
|
+
order_ready?: Date | TimestampType | null;
|
|
597
429
|
closing_id?: string | null;
|
|
598
430
|
country_code?: string;
|
|
599
431
|
unprinted_order_items?: OrderItem[];
|
|
@@ -608,18 +440,20 @@ export declare type Order = {
|
|
|
608
440
|
refund_by?: {
|
|
609
441
|
user_id?: string;
|
|
610
442
|
user_name?: string;
|
|
443
|
+
date?: Date | TimestampType | null;
|
|
611
444
|
}[];
|
|
612
445
|
canceled_by?: {
|
|
613
446
|
user_id?: string;
|
|
614
447
|
user_name?: string;
|
|
448
|
+
date?: Date | TimestampType | null;
|
|
615
449
|
};
|
|
616
|
-
void_time?: Date;
|
|
450
|
+
void_time?: TimestampType | Date;
|
|
617
451
|
group_id?: string;
|
|
618
452
|
group_name?: string;
|
|
619
453
|
customer_reference?: string;
|
|
620
454
|
approval_code?: string;
|
|
621
455
|
push_version?: string;
|
|
622
|
-
location?:
|
|
456
|
+
location?: GeoPointType | null;
|
|
623
457
|
remaining_items?: OrderItem[] | null;
|
|
624
458
|
canceled_items?: OrderItem[];
|
|
625
459
|
printed_taxes?: PrintedTax[];
|
|
@@ -633,290 +467,207 @@ export declare type Order = {
|
|
|
633
467
|
created_by?: string;
|
|
634
468
|
enable_sms_payment?: boolean;
|
|
635
469
|
auto_send_lazypay?: boolean;
|
|
470
|
+
developer_id?: string;
|
|
471
|
+
previous_invoice_hash?: string;
|
|
472
|
+
phase2?: boolean;
|
|
636
473
|
};
|
|
637
|
-
export declare type
|
|
638
|
-
customer_name?: string;
|
|
639
|
-
customer_cell?: string;
|
|
640
|
-
customer_email?: string;
|
|
641
|
-
customer_id?: string;
|
|
642
|
-
country_code?: string;
|
|
643
|
-
group_id?: string;
|
|
644
|
-
group_name?: string;
|
|
645
|
-
customer_reference?: string;
|
|
646
|
-
balance?: number;
|
|
647
|
-
last_four_digits?: string;
|
|
648
|
-
loyalty_amount?: number;
|
|
649
|
-
discount_ids?: string[];
|
|
650
|
-
};
|
|
651
|
-
export declare type CashierClosing = {
|
|
474
|
+
export declare type OrderItem = {
|
|
652
475
|
client_id: string;
|
|
653
476
|
branch_id: string;
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
DEBIT: number;
|
|
695
|
-
CREDIT: number;
|
|
696
|
-
};
|
|
697
|
-
closing_payments_total?: {
|
|
698
|
-
[key: string]: {
|
|
699
|
-
name_lan_p?: string;
|
|
700
|
-
name_lan_s?: string;
|
|
701
|
-
payment_amount?: number;
|
|
702
|
-
};
|
|
703
|
-
};
|
|
704
|
-
opening_drawer_cash_start?: number;
|
|
705
|
-
opening_user_id?: string;
|
|
706
|
-
opening_user_name?: string;
|
|
707
|
-
sales?: (OrderPayment | CashMovement)[];
|
|
708
|
-
closing_reason?: string;
|
|
709
|
-
closing_online_per_type?: {
|
|
710
|
-
[key: string]: {
|
|
711
|
-
amount?: number;
|
|
712
|
-
};
|
|
477
|
+
name_lan_p?: string;
|
|
478
|
+
name_lan_s?: string;
|
|
479
|
+
order_ref?: string;
|
|
480
|
+
order_item_id?: string;
|
|
481
|
+
menu_item_id?: string;
|
|
482
|
+
menu_category_id?: string;
|
|
483
|
+
cat_name_lan_p?: string;
|
|
484
|
+
cat_name_lan_s?: string;
|
|
485
|
+
quantity: number;
|
|
486
|
+
details?: string;
|
|
487
|
+
order_id?: string;
|
|
488
|
+
price: number;
|
|
489
|
+
price_id: string;
|
|
490
|
+
total_calories?: number;
|
|
491
|
+
printer_id?: string;
|
|
492
|
+
cost?: number;
|
|
493
|
+
order_discount?: number;
|
|
494
|
+
order_taxes?: number;
|
|
495
|
+
loyalty_points?: number;
|
|
496
|
+
subtotal?: number;
|
|
497
|
+
tax_percentage?: number;
|
|
498
|
+
addons?: OrderItemAddon[];
|
|
499
|
+
discounts?: OrderItemDiscount[];
|
|
500
|
+
taxes?: OrderTax[];
|
|
501
|
+
order_item_price?: ItemPrice;
|
|
502
|
+
translated?: translated;
|
|
503
|
+
stock_enabled?: boolean;
|
|
504
|
+
sources_ids?: string[];
|
|
505
|
+
sources?: Source[];
|
|
506
|
+
order_item_ready?: Date | TimestampType | null;
|
|
507
|
+
order_ready?: Date | TimestampType | null;
|
|
508
|
+
not_taxable?: boolean;
|
|
509
|
+
taxable?: boolean;
|
|
510
|
+
split_qty?: number;
|
|
511
|
+
split_id?: string | null;
|
|
512
|
+
employees?: POSUser[];
|
|
513
|
+
refund_time?: Date | TimestampType | null;
|
|
514
|
+
refund_by?: {
|
|
515
|
+
user_id?: string;
|
|
516
|
+
user_name?: string;
|
|
713
517
|
};
|
|
518
|
+
not_printed?: boolean;
|
|
519
|
+
order_item_updated?: boolean;
|
|
714
520
|
};
|
|
715
|
-
export declare type
|
|
521
|
+
export declare type OrderItemAddon = {
|
|
716
522
|
client_id: string;
|
|
717
523
|
branch_id: string;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
opening_diff_reason?: string;
|
|
723
|
-
user_id?: string;
|
|
724
|
-
user_name?: string;
|
|
725
|
-
closing_end_cash_user_name?: string;
|
|
726
|
-
opening_start_cash?: number;
|
|
727
|
-
opening_id?: string;
|
|
728
|
-
};
|
|
729
|
-
export declare type Client = {
|
|
730
|
-
client_id: string;
|
|
731
|
-
name_lan_p?: string;
|
|
732
|
-
name_lan_s?: string;
|
|
733
|
-
owner_email?: string;
|
|
734
|
-
owner_phone?: string;
|
|
735
|
-
had_trial?: Boolean;
|
|
736
|
-
};
|
|
737
|
-
export declare type Item = {
|
|
738
|
-
client_id: string;
|
|
739
|
-
branch_id?: string;
|
|
740
|
-
branches_ids: string[];
|
|
741
|
-
name_lan_p?: string;
|
|
524
|
+
order_ref?: string;
|
|
525
|
+
order_addon_id?: string;
|
|
526
|
+
addon_id: string;
|
|
527
|
+
name_lan_p: string;
|
|
742
528
|
name_lan_s?: string;
|
|
743
|
-
|
|
744
|
-
|
|
529
|
+
price: number;
|
|
530
|
+
is_without?: boolean;
|
|
531
|
+
calories?: number;
|
|
745
532
|
menu_category_id?: string;
|
|
746
533
|
menu_item_id?: string;
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
stock?: {
|
|
752
|
-
new_quantity?: number;
|
|
753
|
-
quantity?: number;
|
|
754
|
-
};
|
|
755
|
-
photo?: string;
|
|
756
|
-
filename?: string;
|
|
757
|
-
active?: boolean;
|
|
758
|
-
show_online?: boolean;
|
|
759
|
-
prices?: ItemPrice[];
|
|
760
|
-
discounts?: itemDiscount[];
|
|
761
|
-
addons?: ItemAddon[];
|
|
534
|
+
addon_price_id?: string;
|
|
535
|
+
quantity: number;
|
|
536
|
+
cost?: number;
|
|
537
|
+
amount?: number;
|
|
762
538
|
translated?: translated;
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
taxes?: ItemTax[];
|
|
766
|
-
printer_id?: string;
|
|
767
|
-
taxable?: boolean;
|
|
768
|
-
sources_ids?: string[];
|
|
769
|
-
loyalty_points?: number;
|
|
770
|
-
sort_id?: number;
|
|
771
|
-
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
772
|
-
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
773
|
-
update_date?: Date | null;
|
|
774
|
-
time_range?: boolean;
|
|
775
|
-
valid_from?: Date | null;
|
|
776
|
-
valid_to?: Date | null;
|
|
777
|
-
allergens?: string[];
|
|
539
|
+
stock_enabled?: boolean;
|
|
540
|
+
order_item_qty?: number;
|
|
778
541
|
sources?: Source[];
|
|
542
|
+
sources_ids?: string[];
|
|
543
|
+
consumption?: {
|
|
544
|
+
[source_id: string]: number;
|
|
545
|
+
};
|
|
546
|
+
is_included_in_custom_addons?: boolean;
|
|
547
|
+
original_price?: number;
|
|
548
|
+
type?: 'CATEGORY_ADDON' | 'ITEM_ADDON';
|
|
549
|
+
price_id?: string;
|
|
779
550
|
};
|
|
780
|
-
export declare type
|
|
551
|
+
export declare type OrderItemDiscount = {
|
|
781
552
|
client_id: string;
|
|
782
|
-
|
|
553
|
+
branch_id: string;
|
|
554
|
+
item_discount_id?: string;
|
|
783
555
|
discount_name?: string;
|
|
556
|
+
discount_id: string;
|
|
784
557
|
auto_apply?: boolean;
|
|
785
558
|
amount?: number;
|
|
786
559
|
menu_category_id?: string;
|
|
787
560
|
menu_item_id?: string;
|
|
788
561
|
value?: number;
|
|
789
|
-
show_online?: boolean;
|
|
790
562
|
is_percentage?: boolean;
|
|
791
563
|
active?: boolean;
|
|
792
|
-
|
|
793
|
-
|
|
564
|
+
qty_base?: boolean;
|
|
565
|
+
qty?: number;
|
|
566
|
+
};
|
|
567
|
+
export declare type order_item_price = {
|
|
568
|
+
client_id: string;
|
|
569
|
+
branch_id: string;
|
|
570
|
+
item_name_lan_p?: string;
|
|
571
|
+
item_name_lan_s?: string;
|
|
572
|
+
name_lan_p?: string;
|
|
573
|
+
name_lan_s?: string;
|
|
574
|
+
price?: number;
|
|
575
|
+
price_id?: string;
|
|
576
|
+
cost?: number;
|
|
577
|
+
barcode?: string;
|
|
578
|
+
calories?: number;
|
|
579
|
+
loyalty_points?: number;
|
|
580
|
+
menu_category_id?: string;
|
|
581
|
+
menu_item_id?: string;
|
|
582
|
+
};
|
|
583
|
+
export declare type OrderPayment = {
|
|
584
|
+
client_id: string;
|
|
585
|
+
branch_id: string;
|
|
586
|
+
order_paymnet_id?: string;
|
|
587
|
+
name_lan_p?: string;
|
|
588
|
+
name_lan_s?: string;
|
|
589
|
+
payment_date?: Date | TimestampType | null;
|
|
590
|
+
payment_amount?: number;
|
|
591
|
+
terminal_id?: string;
|
|
794
592
|
note?: string;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
user_id?: string;
|
|
802
|
-
user_name?: string;
|
|
803
|
-
branches_ids?: string[];
|
|
593
|
+
is_cash?: boolean;
|
|
594
|
+
order_ref?: string;
|
|
595
|
+
closing_id?: string | null;
|
|
596
|
+
pos_payment?: POSPayment;
|
|
597
|
+
split_id?: string | null;
|
|
598
|
+
online?: boolean;
|
|
804
599
|
};
|
|
805
|
-
export declare type
|
|
600
|
+
export declare type OrderTax = {
|
|
806
601
|
client_id: string;
|
|
602
|
+
branch_id: string;
|
|
807
603
|
name_lan_p?: string;
|
|
808
604
|
name_lan_s?: string;
|
|
809
|
-
tax_id?: string;
|
|
810
|
-
auto_apply?: boolean;
|
|
811
605
|
amount?: number;
|
|
606
|
+
tax_value?: number;
|
|
607
|
+
tax_id?: string;
|
|
812
608
|
isPercent?: boolean;
|
|
813
|
-
active?: boolean;
|
|
814
|
-
is_selective_tax?: boolean;
|
|
815
|
-
valid_from?: Date | null;
|
|
816
|
-
valid_to?: Date | null;
|
|
817
|
-
isTimeBound?: boolean;
|
|
818
609
|
spends_at_least?: boolean;
|
|
819
610
|
spends_at_least_amount?: number;
|
|
820
|
-
|
|
611
|
+
auto_apply?: boolean;
|
|
821
612
|
};
|
|
822
|
-
export declare type
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
name_lan_p?: string;
|
|
613
|
+
export declare type PrintedTax = {
|
|
614
|
+
tax_id: string;
|
|
615
|
+
name_lan_p: string;
|
|
826
616
|
name_lan_s?: string;
|
|
827
|
-
item_name_lan_p?: string;
|
|
828
|
-
item_name_lan_s?: string;
|
|
829
|
-
category_name_lan_p?: string;
|
|
830
|
-
category_name_lan_s?: string;
|
|
831
|
-
tax_id?: string;
|
|
832
|
-
auto_apply?: boolean;
|
|
833
|
-
amount?: number;
|
|
834
617
|
isPercent?: boolean;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
menu_category_id?: string;
|
|
838
|
-
valid_from?: Date | null;
|
|
839
|
-
valid_to?: Date | null;
|
|
840
|
-
isTimeBound?: boolean;
|
|
841
|
-
spends_at_least?: boolean;
|
|
618
|
+
total: number;
|
|
619
|
+
amount: number;
|
|
842
620
|
};
|
|
843
|
-
export declare type
|
|
621
|
+
export declare type OrderDiscount = {
|
|
844
622
|
client_id: string;
|
|
845
|
-
|
|
623
|
+
branch_id: string;
|
|
846
624
|
discount_id?: string;
|
|
847
|
-
item_discount_id?: string;
|
|
848
|
-
discount_name?: string;
|
|
849
|
-
item_name_lan_p?: string;
|
|
850
|
-
item_name_lan_s?: string;
|
|
851
|
-
category_name_lan_p?: string;
|
|
852
|
-
category_name_lan_s?: string;
|
|
853
|
-
auto_apply?: boolean;
|
|
854
|
-
amount?: number;
|
|
855
|
-
menu_category_id?: string;
|
|
856
|
-
menu_item_id?: string;
|
|
857
|
-
value?: number;
|
|
858
|
-
show_online?: boolean;
|
|
859
625
|
is_percentage?: boolean;
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
626
|
+
amount?: number;
|
|
627
|
+
note?: string;
|
|
628
|
+
valid_from?: Date | TimestampType | null;
|
|
629
|
+
valid_to?: Date | TimestampType | null;
|
|
863
630
|
isTimeBound?: boolean;
|
|
631
|
+
is_multi_time_range?: boolean;
|
|
632
|
+
time_range?: TimeBound[] | null;
|
|
864
633
|
spends_at_least?: boolean;
|
|
634
|
+
spends_at_least_amount?: number;
|
|
635
|
+
is_promo_code?: boolean;
|
|
636
|
+
promo_code?: string;
|
|
637
|
+
auto_apply?: boolean;
|
|
638
|
+
discount_name?: string;
|
|
865
639
|
};
|
|
866
|
-
export declare type
|
|
640
|
+
export declare type OrderDelivery = {
|
|
641
|
+
client_id: string;
|
|
642
|
+
branch_id: string;
|
|
643
|
+
delivery_id: string;
|
|
644
|
+
active: boolean;
|
|
645
|
+
delivery_type?: 'FIXED' | 'CUSTOM' | 'RADIUS';
|
|
646
|
+
delivery_fee?: number;
|
|
647
|
+
delivery_radius?: number;
|
|
648
|
+
separate_invoice: boolean;
|
|
649
|
+
};
|
|
650
|
+
export declare type Dictionary = {
|
|
651
|
+
ar?: string;
|
|
652
|
+
en?: string;
|
|
653
|
+
key?: string;
|
|
654
|
+
projects?: any[];
|
|
655
|
+
translated?: translated;
|
|
656
|
+
};
|
|
657
|
+
export declare type SelectedBranch = {
|
|
658
|
+
client_id: string;
|
|
659
|
+
branch_id: string;
|
|
660
|
+
name_lan_p: string;
|
|
661
|
+
name_lan_s?: string;
|
|
662
|
+
};
|
|
663
|
+
export declare type Category = {
|
|
867
664
|
client_id: string;
|
|
868
665
|
branches_ids: string[];
|
|
869
666
|
name_lan_p?: string;
|
|
870
667
|
name_lan_s?: string;
|
|
871
|
-
item_name_lan_p?: string;
|
|
872
|
-
item_name_lan_s?: string;
|
|
873
|
-
category_name_lan_p?: string;
|
|
874
|
-
category_name_lan_s?: string;
|
|
875
|
-
menu_item_id?: string;
|
|
876
|
-
price_with_vat?: number;
|
|
877
|
-
addon_id?: string;
|
|
878
|
-
price?: number;
|
|
879
|
-
price_id?: string;
|
|
880
|
-
cost?: number;
|
|
881
|
-
quantity?: number;
|
|
882
|
-
quantity_enabled?: boolean;
|
|
883
|
-
calories?: number;
|
|
884
668
|
menu_category_id?: string;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
photo?: string | null;
|
|
888
|
-
active?: boolean;
|
|
889
|
-
show_online: boolean;
|
|
890
|
-
filename?: string;
|
|
891
|
-
sources_ids?: string[];
|
|
892
|
-
consumption?: {
|
|
893
|
-
[source_id: string]: number;
|
|
894
|
-
};
|
|
895
|
-
alert_level?: number;
|
|
896
|
-
allergens?: string[];
|
|
897
|
-
};
|
|
898
|
-
export declare type ItemPriceStock = {
|
|
899
|
-
client_id: string;
|
|
900
|
-
branch_id: string;
|
|
901
|
-
name_lan_p?: string;
|
|
902
|
-
name_lan_s?: string;
|
|
903
|
-
price_name_lan_p?: string;
|
|
904
|
-
price_name_lan_s?: string;
|
|
905
|
-
cat_name_lan_p?: string;
|
|
906
|
-
cat_name_lan_s?: string;
|
|
907
|
-
menu_category_id?: string;
|
|
908
|
-
menu_item_id?: string;
|
|
909
|
-
price_id?: string;
|
|
910
|
-
photo?: string;
|
|
911
|
-
};
|
|
912
|
-
export declare type Category = {
|
|
913
|
-
client_id: string;
|
|
914
|
-
branches_ids: string[];
|
|
915
|
-
name_lan_p?: string;
|
|
916
|
-
name_lan_s?: string;
|
|
917
|
-
menu_category_id?: string;
|
|
918
|
-
printer_ids?: printer_id[];
|
|
919
|
-
printer_id?: string;
|
|
669
|
+
printer_ids?: printer_id[];
|
|
670
|
+
printer_id?: string;
|
|
920
671
|
active?: boolean;
|
|
921
672
|
show_online?: boolean;
|
|
922
673
|
photo?: string | null;
|
|
@@ -931,12 +682,10 @@ export declare type Category = {
|
|
|
931
682
|
included_custom_addons_ids?: string[];
|
|
932
683
|
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
933
684
|
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
934
|
-
update_date?: Date | null;
|
|
685
|
+
update_date?: Date | TimestampType | null;
|
|
935
686
|
multi_max?: number;
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
branch_id: string;
|
|
939
|
-
printer_id?: string;
|
|
687
|
+
auto_selected_addons?: string[];
|
|
688
|
+
addons_price_ids?: string[];
|
|
940
689
|
};
|
|
941
690
|
export declare type CategoryAddon = {
|
|
942
691
|
client_id: string;
|
|
@@ -951,6 +700,7 @@ export declare type CategoryAddon = {
|
|
|
951
700
|
quantity_enabled?: boolean;
|
|
952
701
|
calories?: number;
|
|
953
702
|
menu_category_id?: string;
|
|
703
|
+
addon_price_id?: string;
|
|
954
704
|
category_name_lan_p?: string;
|
|
955
705
|
category_name_lan_s?: string;
|
|
956
706
|
run_out?: number;
|
|
@@ -986,28 +736,153 @@ export declare type CategoryDiscount = {
|
|
|
986
736
|
show_online?: boolean;
|
|
987
737
|
is_percentage?: boolean;
|
|
988
738
|
active?: boolean;
|
|
989
|
-
valid_from?: Date | null;
|
|
990
|
-
valid_to?: Date | null;
|
|
739
|
+
valid_from?: Date | TimestampType | null;
|
|
740
|
+
valid_to?: Date | TimestampType | null;
|
|
991
741
|
isTimeBound?: boolean;
|
|
742
|
+
qty_base?: boolean;
|
|
743
|
+
qty?: number;
|
|
992
744
|
spends_at_least?: boolean;
|
|
993
745
|
};
|
|
994
|
-
export declare type
|
|
746
|
+
export declare type addons_movements = {
|
|
747
|
+
client_id: string;
|
|
748
|
+
branch_id: string;
|
|
749
|
+
name_lan_p?: string;
|
|
750
|
+
name_lan_s?: string;
|
|
751
|
+
menu_category_id?: string;
|
|
752
|
+
addon_id?: string;
|
|
753
|
+
movement_id?: string;
|
|
754
|
+
date?: Date;
|
|
755
|
+
name?: string;
|
|
756
|
+
note?: string;
|
|
757
|
+
quantity?: number;
|
|
758
|
+
type?: string;
|
|
759
|
+
user_id?: string;
|
|
760
|
+
};
|
|
761
|
+
export declare type Source = {
|
|
995
762
|
client_id: string;
|
|
996
763
|
branches_ids: string[];
|
|
764
|
+
source_id: string;
|
|
997
765
|
name_lan_p?: string;
|
|
998
766
|
name_lan_s?: string;
|
|
999
|
-
tax_id?: string;
|
|
1000
|
-
auto_apply?: boolean;
|
|
1001
|
-
amount?: number;
|
|
1002
|
-
category_name_lan_p?: string;
|
|
1003
|
-
category_name_lan_s?: string;
|
|
1004
|
-
isPercent?: boolean;
|
|
1005
|
-
active?: boolean;
|
|
1006
767
|
menu_category_id?: string;
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
768
|
+
menu_item_id?: string;
|
|
769
|
+
price_id?: string;
|
|
770
|
+
photo?: string | null;
|
|
771
|
+
price?: number;
|
|
772
|
+
cost?: number;
|
|
773
|
+
unit?: Unit;
|
|
774
|
+
consumption?: number;
|
|
775
|
+
alert_level?: number;
|
|
776
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
777
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
778
|
+
update_date?: Date | TimestampType | null;
|
|
779
|
+
allergens?: string[];
|
|
780
|
+
stock_qty?: number;
|
|
781
|
+
};
|
|
782
|
+
export declare type translated = {
|
|
783
|
+
ar?: string;
|
|
784
|
+
de?: string;
|
|
785
|
+
en?: string;
|
|
786
|
+
es?: string;
|
|
787
|
+
fr?: string;
|
|
788
|
+
hi?: string;
|
|
789
|
+
id?: string;
|
|
790
|
+
it?: string;
|
|
791
|
+
ja?: string;
|
|
792
|
+
ko?: string;
|
|
793
|
+
ne?: string;
|
|
794
|
+
nl?: string;
|
|
795
|
+
pa?: string;
|
|
796
|
+
pl?: string;
|
|
797
|
+
pt?: string;
|
|
798
|
+
ru?: string;
|
|
799
|
+
yl?: string;
|
|
800
|
+
tr?: string;
|
|
801
|
+
ur?: string;
|
|
802
|
+
['zh-CN']?: string;
|
|
803
|
+
['zh-TW']?: string;
|
|
804
|
+
};
|
|
805
|
+
export declare type Terminal = {
|
|
806
|
+
bill_printer_id?: string;
|
|
807
|
+
branch_id: string;
|
|
808
|
+
client_id: string;
|
|
809
|
+
drawer_terminal_id?: string;
|
|
810
|
+
has_drawer?: boolean;
|
|
811
|
+
is_main?: boolean;
|
|
812
|
+
last_login?: Date;
|
|
813
|
+
letter?: string;
|
|
814
|
+
receipt_printer_id?: string;
|
|
815
|
+
team_viewer_id?: string;
|
|
816
|
+
terminal_id: string | null;
|
|
817
|
+
terminal_name?: string;
|
|
818
|
+
terminal_type?: string;
|
|
819
|
+
terminal_uuid?: string;
|
|
820
|
+
version?: string;
|
|
821
|
+
push_version?: string;
|
|
822
|
+
current_order_id?: number;
|
|
823
|
+
current_order_number?: number;
|
|
824
|
+
current_order_date?: Date;
|
|
825
|
+
push_id?: string;
|
|
826
|
+
deviceState?: DeviceState | null;
|
|
827
|
+
has_pos?: boolean;
|
|
828
|
+
pos_provider?: PaymentProviders | null;
|
|
829
|
+
pos_modal?: string;
|
|
830
|
+
pos_usb_port?: string;
|
|
831
|
+
pos_ip_address?: string;
|
|
832
|
+
platform?: string;
|
|
833
|
+
kds_autosync?: boolean;
|
|
834
|
+
online_order_onSnapshot?: boolean;
|
|
835
|
+
read_barcode_only?: boolean;
|
|
836
|
+
inactive?: boolean;
|
|
837
|
+
waiter?: boolean;
|
|
838
|
+
egs?: EGSUnitInfo;
|
|
839
|
+
compliance_rid?: string;
|
|
840
|
+
previous_invoice_hash?: string;
|
|
841
|
+
};
|
|
842
|
+
export declare type Item = {
|
|
843
|
+
client_id: string;
|
|
844
|
+
branch_id?: string;
|
|
845
|
+
branches_ids: string[];
|
|
846
|
+
name_lan_p?: string;
|
|
847
|
+
name_lan_s?: string;
|
|
848
|
+
cat_name_lan_p?: string;
|
|
849
|
+
cat_name_lan_s?: string;
|
|
850
|
+
menu_category_id?: string;
|
|
851
|
+
menu_item_id?: string;
|
|
852
|
+
details_lan_p?: string;
|
|
853
|
+
details_lan_s?: string;
|
|
854
|
+
max_order_quantity?: number;
|
|
855
|
+
stock_enabled?: boolean;
|
|
856
|
+
stock?: {
|
|
857
|
+
new_quantity?: number;
|
|
858
|
+
quantity?: number;
|
|
859
|
+
};
|
|
860
|
+
photo?: string;
|
|
861
|
+
filename?: string;
|
|
862
|
+
active?: boolean;
|
|
863
|
+
show_online?: boolean;
|
|
864
|
+
prices?: ItemPrice[];
|
|
865
|
+
discounts?: itemDiscount[];
|
|
866
|
+
addons?: ItemAddon[];
|
|
867
|
+
translated?: translated;
|
|
868
|
+
printer_ids?: printer_id[];
|
|
869
|
+
quantity?: number;
|
|
870
|
+
addons_movements?: addons_movements[];
|
|
871
|
+
taxes?: ItemTax[];
|
|
872
|
+
printer_id?: string;
|
|
873
|
+
taxable?: boolean;
|
|
874
|
+
sources_ids?: string[];
|
|
875
|
+
sources?: Source[];
|
|
876
|
+
loyalty_points?: number;
|
|
877
|
+
sort_id?: number;
|
|
878
|
+
source?: 'POS' | 'DASHBOARD' | 'XLS' | 'LWAPI';
|
|
879
|
+
updated_from?: 'POS' | 'DASHBOARD' | 'XLS';
|
|
880
|
+
update_date?: Date | TimestampType | null;
|
|
881
|
+
time_range?: boolean;
|
|
882
|
+
valid_from?: Date | TimestampType | null;
|
|
883
|
+
valid_to?: Date | TimestampType | null;
|
|
884
|
+
allergens?: string[];
|
|
885
|
+
addons_price_ids?: string[];
|
|
1011
886
|
};
|
|
1012
887
|
export declare type ItemPrice = {
|
|
1013
888
|
client_id: string;
|
|
@@ -1047,38 +922,1350 @@ export declare type ItemPrice = {
|
|
|
1047
922
|
alert_level?: number;
|
|
1048
923
|
zoho_books_id?: string;
|
|
1049
924
|
multi_max?: number;
|
|
925
|
+
stock_qty?: number;
|
|
926
|
+
auto_selected_addons?: string[];
|
|
1050
927
|
};
|
|
1051
|
-
export declare type
|
|
1052
|
-
export declare type
|
|
1053
|
-
|
|
928
|
+
export declare type Unit = 'g' | 'mg' | 'kg' | 'oz' | 'lb' | 'oz' | 'c' | 'ea' | 'gal' | 'l' | 'ml' | string | null;
|
|
929
|
+
export declare type itemDiscount = {
|
|
930
|
+
client_id: string;
|
|
931
|
+
branches_ids: string[];
|
|
932
|
+
discount_id?: string;
|
|
933
|
+
item_discount_id?: string;
|
|
934
|
+
discount_name?: string;
|
|
935
|
+
item_name_lan_p?: string;
|
|
936
|
+
item_name_lan_s?: string;
|
|
937
|
+
category_name_lan_p?: string;
|
|
938
|
+
category_name_lan_s?: string;
|
|
939
|
+
auto_apply?: boolean;
|
|
940
|
+
amount?: number;
|
|
941
|
+
menu_category_id?: string;
|
|
942
|
+
menu_item_id?: string;
|
|
943
|
+
value?: number;
|
|
944
|
+
show_online?: boolean;
|
|
945
|
+
is_percentage?: boolean;
|
|
946
|
+
active?: boolean;
|
|
947
|
+
valid_from?: Date | TimestampType | null;
|
|
948
|
+
valid_to?: Date | TimestampType | null;
|
|
949
|
+
isTimeBound?: boolean;
|
|
950
|
+
qty_base?: boolean;
|
|
951
|
+
qty?: number;
|
|
952
|
+
spends_at_least?: boolean;
|
|
953
|
+
};
|
|
954
|
+
export declare type ItemAddon = {
|
|
955
|
+
client_id: string;
|
|
956
|
+
branches_ids: string[];
|
|
957
|
+
name_lan_p?: string;
|
|
958
|
+
name_lan_s?: string;
|
|
959
|
+
item_name_lan_p?: string;
|
|
960
|
+
item_name_lan_s?: string;
|
|
961
|
+
category_name_lan_p?: string;
|
|
962
|
+
category_name_lan_s?: string;
|
|
963
|
+
menu_item_id?: string;
|
|
964
|
+
addon_price_id?: string;
|
|
965
|
+
price_with_vat?: number;
|
|
966
|
+
addon_id?: string;
|
|
967
|
+
price?: number;
|
|
968
|
+
price_id?: string;
|
|
969
|
+
cost?: number;
|
|
970
|
+
quantity?: number;
|
|
971
|
+
quantity_enabled?: boolean;
|
|
972
|
+
calories?: number;
|
|
973
|
+
menu_category_id?: string;
|
|
974
|
+
run_out?: number;
|
|
975
|
+
stock_enabled?: boolean;
|
|
976
|
+
photo?: string | null;
|
|
977
|
+
active?: boolean;
|
|
978
|
+
show_online: boolean;
|
|
979
|
+
filename?: string;
|
|
980
|
+
sources?: Source[];
|
|
981
|
+
sources_ids?: string[];
|
|
982
|
+
consumption?: {
|
|
983
|
+
[source_id: string]: number;
|
|
984
|
+
};
|
|
985
|
+
alert_level?: number;
|
|
986
|
+
allergens?: string[];
|
|
987
|
+
};
|
|
988
|
+
export declare type ItemPriceStock = {
|
|
989
|
+
client_id: string;
|
|
1054
990
|
branch_id: string;
|
|
991
|
+
name_lan_p?: string;
|
|
992
|
+
name_lan_s?: string;
|
|
993
|
+
price_name_lan_p?: string;
|
|
994
|
+
price_name_lan_s?: string;
|
|
995
|
+
cat_name_lan_p?: string;
|
|
996
|
+
cat_name_lan_s?: string;
|
|
997
|
+
menu_category_id?: string;
|
|
998
|
+
menu_item_id?: string;
|
|
999
|
+
price_id?: string;
|
|
1000
|
+
photo?: string;
|
|
1001
|
+
};
|
|
1002
|
+
export declare type printer_id = {
|
|
1003
|
+
branch_id: string;
|
|
1004
|
+
printer_id?: string;
|
|
1005
|
+
};
|
|
1006
|
+
export declare type Tax = {
|
|
1055
1007
|
client_id: string;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1008
|
+
name_lan_p?: string;
|
|
1009
|
+
name_lan_s?: string;
|
|
1010
|
+
tax_id?: string;
|
|
1011
|
+
auto_apply?: boolean;
|
|
1012
|
+
amount?: number;
|
|
1013
|
+
isPercent?: boolean;
|
|
1014
|
+
active?: boolean;
|
|
1015
|
+
is_selective_tax?: boolean;
|
|
1016
|
+
valid_from?: Date | TimestampType | null;
|
|
1017
|
+
valid_to?: Date | TimestampType | null;
|
|
1018
|
+
isTimeBound?: boolean;
|
|
1019
|
+
spends_at_least?: boolean;
|
|
1020
|
+
spends_at_least_amount?: number;
|
|
1021
|
+
branches_ids?: string[];
|
|
1022
|
+
};
|
|
1023
|
+
export declare type Delivery = {
|
|
1024
|
+
client_id: string;
|
|
1025
|
+
branch_id: string;
|
|
1026
|
+
delivery_id?: string;
|
|
1027
|
+
active: boolean;
|
|
1028
|
+
show_online?: boolean;
|
|
1029
|
+
delivery_type?: 'FIXED' | 'CUSTOM' | 'RADIUS';
|
|
1030
|
+
delivery_fee?: number;
|
|
1031
|
+
delivery_radius?: number;
|
|
1032
|
+
separate_invoice: boolean;
|
|
1033
|
+
name_lan_p: string;
|
|
1034
|
+
name_lan_s?: string;
|
|
1035
|
+
};
|
|
1036
|
+
export declare type CategoryTax = {
|
|
1037
|
+
client_id: string;
|
|
1038
|
+
branches_ids: string[];
|
|
1039
|
+
name_lan_p?: string;
|
|
1040
|
+
name_lan_s?: string;
|
|
1041
|
+
tax_id?: string;
|
|
1042
|
+
auto_apply?: boolean;
|
|
1043
|
+
amount?: number;
|
|
1044
|
+
category_name_lan_p?: string;
|
|
1045
|
+
category_name_lan_s?: string;
|
|
1046
|
+
isPercent?: boolean;
|
|
1047
|
+
active?: boolean;
|
|
1048
|
+
menu_category_id?: string;
|
|
1049
|
+
valid_from?: Date | TimestampType | null;
|
|
1050
|
+
valid_to?: Date | TimestampType | null;
|
|
1051
|
+
isTimeBound?: boolean;
|
|
1052
|
+
spends_at_least?: boolean;
|
|
1053
|
+
};
|
|
1054
|
+
export declare type ItemTax = {
|
|
1055
|
+
client_id: string;
|
|
1056
|
+
branches_ids: string[];
|
|
1057
|
+
name_lan_p?: string;
|
|
1058
|
+
name_lan_s?: string;
|
|
1059
|
+
item_name_lan_p?: string;
|
|
1060
|
+
item_name_lan_s?: string;
|
|
1061
|
+
category_name_lan_p?: string;
|
|
1062
|
+
category_name_lan_s?: string;
|
|
1063
|
+
tax_id?: string;
|
|
1064
|
+
auto_apply?: boolean;
|
|
1065
|
+
amount?: number;
|
|
1066
|
+
isPercent?: boolean;
|
|
1067
|
+
active?: boolean;
|
|
1068
|
+
menu_item_id?: string;
|
|
1069
|
+
menu_category_id?: string;
|
|
1070
|
+
valid_from?: Date | TimestampType | null;
|
|
1071
|
+
valid_to?: Date | TimestampType | null;
|
|
1072
|
+
isTimeBound?: boolean;
|
|
1073
|
+
spends_at_least?: boolean;
|
|
1074
|
+
};
|
|
1075
|
+
export declare type Discount = {
|
|
1076
|
+
client_id: string;
|
|
1077
|
+
discount_id?: string;
|
|
1078
|
+
discount_name?: string;
|
|
1079
|
+
auto_apply?: boolean;
|
|
1080
|
+
amount?: number;
|
|
1081
|
+
menu_category_id?: string;
|
|
1082
|
+
menu_item_id?: string;
|
|
1083
|
+
value?: number;
|
|
1084
|
+
show_online?: boolean;
|
|
1085
|
+
is_percentage?: boolean;
|
|
1086
|
+
active?: boolean;
|
|
1087
|
+
valid_from?: Date | TimestampType | null;
|
|
1088
|
+
valid_to?: Date | TimestampType | null;
|
|
1089
|
+
note?: string;
|
|
1090
|
+
isTimeBound?: boolean;
|
|
1091
|
+
is_multi_time_range?: boolean;
|
|
1092
|
+
time_range?: TimeBound[] | null;
|
|
1093
|
+
spends_at_least?: boolean;
|
|
1094
|
+
spends_at_least_amount?: number;
|
|
1095
|
+
creation_date?: Date | TimestampType;
|
|
1096
|
+
user_id?: string;
|
|
1097
|
+
user_name?: string;
|
|
1098
|
+
branches_ids?: string[];
|
|
1099
|
+
is_promo_code?: boolean;
|
|
1100
|
+
promo_code?: string;
|
|
1101
|
+
qty_base?: boolean;
|
|
1102
|
+
qty?: number;
|
|
1103
|
+
};
|
|
1104
|
+
export declare type TimeBound = {
|
|
1105
|
+
valid_from?: Date | TimestampType | null;
|
|
1106
|
+
valid_to?: Date | TimestampType | null;
|
|
1107
|
+
};
|
|
1108
|
+
export declare type Printer = {
|
|
1109
|
+
client_id: string;
|
|
1110
|
+
branch_id: string;
|
|
1111
|
+
printer_id?: string;
|
|
1112
|
+
printer_name?: string;
|
|
1113
|
+
display_name?: string;
|
|
1114
|
+
printer_ip?: string;
|
|
1115
|
+
printer_port?: string | number;
|
|
1116
|
+
printer_brand?: 'EPSON' | 'epson' | 'star' | 'bixolon' | 'sunmi';
|
|
1117
|
+
printer_type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1118
|
+
mac_address?: string;
|
|
1119
|
+
usb_path?: string;
|
|
1120
|
+
paper_size?: '58mm' | '72mm' | '80mm';
|
|
1121
|
+
active?: string;
|
|
1122
|
+
has_drawer?: boolean;
|
|
1123
|
+
printer_delay?: number;
|
|
1124
|
+
purpose?: PrinterPurpose[];
|
|
1125
|
+
};
|
|
1126
|
+
export declare type StarDiscovery = {
|
|
1127
|
+
usb_serial_number: string;
|
|
1128
|
+
printer_name: string;
|
|
1129
|
+
port_name: string;
|
|
1130
|
+
mac_address: string;
|
|
1131
|
+
};
|
|
1132
|
+
export declare type PrinterPurpose = 'ITEMS_SLIPS' | 'INVOICES' | 'RECEIPTS' | 'CLOSING';
|
|
1133
|
+
export declare type Role = {
|
|
1134
|
+
client_id?: string;
|
|
1135
|
+
role_id?: string;
|
|
1136
|
+
name?: string;
|
|
1137
|
+
permissions?: string[];
|
|
1138
|
+
id?: string;
|
|
1139
|
+
};
|
|
1140
|
+
export declare type Customer = {
|
|
1141
|
+
client_id?: string;
|
|
1142
|
+
name?: string;
|
|
1143
|
+
cell?: string;
|
|
1144
|
+
country_code?: string;
|
|
1145
|
+
date_joined?: TimestampType | Date;
|
|
1146
|
+
customer_id?: string;
|
|
1147
|
+
spent?: number;
|
|
1148
|
+
invoices?: number;
|
|
1149
|
+
balance: number;
|
|
1150
|
+
email?: string;
|
|
1151
|
+
date_lat_visit?: TimestampType | Date;
|
|
1152
|
+
note?: string;
|
|
1153
|
+
birth_date?: TimestampType | Date;
|
|
1154
|
+
customer_group_name?: string;
|
|
1155
|
+
customer_group_id?: string;
|
|
1156
|
+
reference?: string;
|
|
1157
|
+
address?: Array<string>;
|
|
1158
|
+
last_four_digits?: string;
|
|
1159
|
+
discount_ids?: string[];
|
|
1160
|
+
};
|
|
1161
|
+
export declare type CustomerGroup = {
|
|
1162
|
+
client_id?: string;
|
|
1163
|
+
branch_id?: string;
|
|
1164
|
+
created_date?: TimestampType | Date;
|
|
1165
|
+
customer_group_id?: string;
|
|
1166
|
+
name?: string;
|
|
1167
|
+
updated_date?: TimestampType | Date;
|
|
1168
|
+
};
|
|
1169
|
+
export declare type InvoiceCustomer = {
|
|
1170
|
+
customer_name?: string;
|
|
1171
|
+
customer_cell?: string;
|
|
1172
|
+
customer_email?: string;
|
|
1173
|
+
customer_id?: string;
|
|
1174
|
+
country_code?: string;
|
|
1175
|
+
group_id?: string;
|
|
1176
|
+
group_name?: string;
|
|
1177
|
+
customer_reference?: string;
|
|
1178
|
+
balance?: number;
|
|
1179
|
+
last_four_digits?: string;
|
|
1180
|
+
loyalty_amount?: number;
|
|
1181
|
+
discount_ids?: string[];
|
|
1182
|
+
promo_code?: string;
|
|
1183
|
+
menu_item_ids?: string[];
|
|
1184
|
+
};
|
|
1185
|
+
export declare type LoyaltyPoint = {
|
|
1186
|
+
client_id: string;
|
|
1187
|
+
branch_id: string;
|
|
1188
|
+
loyalty_point_id?: string;
|
|
1189
|
+
cell?: string;
|
|
1190
|
+
order_ref?: string;
|
|
1191
|
+
amount?: number;
|
|
1192
|
+
type?: string;
|
|
1193
|
+
expiration?: Date;
|
|
1194
|
+
};
|
|
1195
|
+
export declare type Licence = {
|
|
1196
|
+
client_id?: string;
|
|
1197
|
+
branch_id?: string;
|
|
1198
|
+
licence_id?: string;
|
|
1199
|
+
allowed_terminals?: number;
|
|
1200
|
+
allowed_admins?: number;
|
|
1201
|
+
created_date?: Date;
|
|
1202
|
+
expire_date?: Date;
|
|
1203
|
+
start_date?: Date;
|
|
1204
|
+
licence_active?: boolean;
|
|
1205
|
+
payment_completed?: boolean;
|
|
1206
|
+
plan_info?: PlanInfo;
|
|
1207
|
+
is_iaphub?: boolean;
|
|
1208
|
+
currency?: string;
|
|
1209
|
+
converted_currency?: string;
|
|
1210
|
+
branch_name?: string;
|
|
1211
|
+
converted_price?: number;
|
|
1212
|
+
is_subscription_active?: boolean;
|
|
1213
|
+
latest_operation_type?: string;
|
|
1214
|
+
order_id?: string;
|
|
1215
|
+
platform?: string;
|
|
1216
|
+
price?: number;
|
|
1217
|
+
product_group_name?: string;
|
|
1218
|
+
product_sku?: string;
|
|
1219
|
+
subscription_state?: string;
|
|
1220
|
+
};
|
|
1221
|
+
export declare type PlanInfo = {
|
|
1222
|
+
payment_date?: Date;
|
|
1223
|
+
discounts?: string;
|
|
1224
|
+
payment_amount?: string;
|
|
1225
|
+
payment_completed?: boolean;
|
|
1226
|
+
allowed_terminals?: number;
|
|
1227
|
+
allowed_admins?: number;
|
|
1228
|
+
plan_name?: string;
|
|
1229
|
+
plan_options?: PlanOption[];
|
|
1230
|
+
plan_price?: string;
|
|
1231
|
+
subscription_type?: string;
|
|
1232
|
+
monthly_price?: string;
|
|
1233
|
+
promotion?: string;
|
|
1234
|
+
order?: string;
|
|
1235
|
+
sku?: string;
|
|
1236
|
+
savings?: string;
|
|
1237
|
+
is_test?: boolean;
|
|
1238
|
+
price?: string;
|
|
1239
|
+
priceAmount?: string;
|
|
1240
|
+
priceCurrency?: string;
|
|
1241
|
+
loyalty_enabled?: boolean;
|
|
1242
|
+
sources_enabled?: boolean;
|
|
1243
|
+
arDisplayName?: string;
|
|
1244
|
+
enDisplayName?: string;
|
|
1245
|
+
};
|
|
1246
|
+
export declare type PlanOption = {
|
|
1247
|
+
fid?: string;
|
|
1248
|
+
option_title_ar?: string;
|
|
1249
|
+
option_title_en?: string;
|
|
1250
|
+
optionID: number;
|
|
1251
|
+
numberOfLicense?: string;
|
|
1252
|
+
};
|
|
1253
|
+
export declare type Area = {
|
|
1254
|
+
area_id?: string;
|
|
1255
|
+
client_id: string;
|
|
1256
|
+
branch_id: string;
|
|
1257
|
+
area_name: string;
|
|
1258
|
+
employees?: {
|
|
1259
|
+
user_id: string;
|
|
1260
|
+
user_name: string;
|
|
1261
|
+
branch_id: string;
|
|
1262
|
+
}[];
|
|
1263
|
+
};
|
|
1264
|
+
export declare type Table = {
|
|
1265
|
+
client_id: string;
|
|
1266
|
+
branch_id: string;
|
|
1267
|
+
table_id?: string;
|
|
1268
|
+
table_name?: string;
|
|
1269
|
+
table_occupancy?: number;
|
|
1270
|
+
shape?: 'SQUARE' | 'CIRCLE';
|
|
1271
|
+
area_id?: string;
|
|
1272
|
+
area_name?: string;
|
|
1273
|
+
order_details?: Partial<Order> | null;
|
|
1274
|
+
employees?: {
|
|
1275
|
+
user_id: string;
|
|
1276
|
+
user_name: string;
|
|
1277
|
+
branch_id: string;
|
|
1278
|
+
}[];
|
|
1279
|
+
};
|
|
1280
|
+
export declare type UserLog = {
|
|
1281
|
+
client_id: string;
|
|
1282
|
+
branch_id: string;
|
|
1283
|
+
user_log_id?: string;
|
|
1284
|
+
user_id?: string;
|
|
1285
|
+
login_date?: Date;
|
|
1286
|
+
};
|
|
1287
|
+
export declare type CashierOpening = {
|
|
1288
|
+
client_id: string;
|
|
1289
|
+
branch_id: string;
|
|
1290
|
+
cashier_opening_date?: Date;
|
|
1291
|
+
closing_end_cash?: number;
|
|
1292
|
+
terminal_id?: string;
|
|
1293
|
+
balance?: number;
|
|
1294
|
+
opening_diff_reason?: string;
|
|
1295
|
+
user_id?: string;
|
|
1296
|
+
user_name?: string;
|
|
1297
|
+
closing_end_cash_user_name?: string;
|
|
1298
|
+
opening_start_cash?: number;
|
|
1299
|
+
opening_id?: string;
|
|
1300
|
+
};
|
|
1301
|
+
export declare type DrawerOpening = {
|
|
1302
|
+
client_id: string;
|
|
1303
|
+
branch_id: string;
|
|
1304
|
+
terminal_id: string | null;
|
|
1305
|
+
date?: TimestampType | Date;
|
|
1306
|
+
drawer_opening_id?: string;
|
|
1307
|
+
payment?: number;
|
|
1308
|
+
closing_id?: string | null;
|
|
1309
|
+
user_id?: string;
|
|
1310
|
+
from_closing?: boolean;
|
|
1311
|
+
name?: string;
|
|
1312
|
+
};
|
|
1313
|
+
export declare type CashierClosing = {
|
|
1314
|
+
client_id: string;
|
|
1315
|
+
branch_id: string;
|
|
1316
|
+
branch_name_lan_p?: string;
|
|
1317
|
+
branch_name_lan_s?: string;
|
|
1318
|
+
terminal_id: string;
|
|
1319
|
+
terminal_name: string;
|
|
1320
|
+
loss: number;
|
|
1321
|
+
user_id?: string;
|
|
1322
|
+
user_name?: string;
|
|
1323
|
+
closing_id?: string;
|
|
1324
|
+
closing_date?: TimestampType | Date;
|
|
1325
|
+
closing_drawer_cash_start: number;
|
|
1326
|
+
closing_drawer_cash_end: number;
|
|
1327
|
+
closing_drawer_cash_start_user_name: string;
|
|
1328
|
+
closing_bank_user_id: string;
|
|
1329
|
+
closing_bank_transfer: number;
|
|
1330
|
+
closing_cards_sales: number;
|
|
1331
|
+
closing_cards_sales_received: number;
|
|
1332
|
+
closing_cards_balanced: number;
|
|
1333
|
+
closing_cards_balanced_per_type?: {
|
|
1334
|
+
[key: string]: {
|
|
1335
|
+
amount?: number;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
closing_other_sales?: number;
|
|
1339
|
+
closing_other_sales_received?: number;
|
|
1340
|
+
closing_other_balanced?: number;
|
|
1341
|
+
closing_other_balanced_per_type?: {
|
|
1342
|
+
[key: string]: {
|
|
1343
|
+
amount?: number;
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1346
|
+
closing_cash_sales: number;
|
|
1347
|
+
closing_cash_sales_received: number;
|
|
1348
|
+
closing_cash_add: number;
|
|
1349
|
+
closing_cash_remove: number;
|
|
1350
|
+
closing_cash_balanced: number;
|
|
1351
|
+
closing_sales_total: number;
|
|
1352
|
+
closing_loyalty_sales: number;
|
|
1353
|
+
without_sales_openings: DrawerOpening[];
|
|
1354
|
+
cashier_opening_date?: TimestampType | Date;
|
|
1355
|
+
closing_cards_payments: {
|
|
1356
|
+
DEBIT: number;
|
|
1357
|
+
CREDIT: number;
|
|
1358
|
+
};
|
|
1359
|
+
closing_payments_total?: {
|
|
1360
|
+
[key: string]: {
|
|
1361
|
+
name_lan_p?: string;
|
|
1362
|
+
name_lan_s?: string;
|
|
1363
|
+
payment_amount?: number;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
opening_drawer_cash_start?: number;
|
|
1367
|
+
opening_user_id?: string;
|
|
1368
|
+
opening_user_name?: string;
|
|
1369
|
+
sales?: (OrderPayment | CashMovement)[];
|
|
1370
|
+
closing_reason?: string;
|
|
1371
|
+
closing_online_per_type?: {
|
|
1372
|
+
[key: string]: {
|
|
1373
|
+
amount?: number;
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
invoicesDiffrence?: {
|
|
1377
|
+
quantity: number;
|
|
1378
|
+
amount: number;
|
|
1379
|
+
};
|
|
1380
|
+
activeInvoices?: {
|
|
1381
|
+
quantity: number;
|
|
1382
|
+
amount: number;
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
export declare type CashMovement = {
|
|
1386
|
+
client_id: string;
|
|
1387
|
+
branch_id: string;
|
|
1388
|
+
terminal_id?: string;
|
|
1389
|
+
closing_id?: string | null;
|
|
1390
|
+
user_id?: string;
|
|
1391
|
+
user_name?: string;
|
|
1392
|
+
order_id?: string;
|
|
1393
|
+
payment_id?: string;
|
|
1394
|
+
payment_amount?: number;
|
|
1395
|
+
date?: Date;
|
|
1396
|
+
transfers?: {
|
|
1397
|
+
user_id: string;
|
|
1398
|
+
user_name: string;
|
|
1399
|
+
date: Date;
|
|
1400
|
+
}[];
|
|
1401
|
+
is_cash?: boolean;
|
|
1402
|
+
name_lan_p?: string;
|
|
1403
|
+
name_lan_s?: string;
|
|
1404
|
+
note?: string;
|
|
1405
|
+
};
|
|
1406
|
+
export declare type ItemsList = {
|
|
1407
|
+
title: string | undefined;
|
|
1408
|
+
data: Item[];
|
|
1409
|
+
};
|
|
1410
|
+
export declare type MoreType = {
|
|
1411
|
+
visible: boolean;
|
|
1412
|
+
layout: string;
|
|
1413
|
+
data?: any[];
|
|
1414
|
+
};
|
|
1415
|
+
export declare type Alert = {
|
|
1416
|
+
title: string;
|
|
1417
|
+
message: string;
|
|
1418
|
+
variant?: 'toast' | 'popup';
|
|
1419
|
+
type?: 'error' | 'success' | 'warning';
|
|
1420
|
+
onConfirmLabel?: string;
|
|
1421
|
+
onDeleteLabel?: string;
|
|
1422
|
+
onConfirm?: () => void;
|
|
1423
|
+
onDelete?: () => void;
|
|
1424
|
+
};
|
|
1425
|
+
export declare type TerminalChanges = {
|
|
1426
|
+
current_order_id?: number;
|
|
1427
|
+
current_order_number?: number;
|
|
1428
|
+
current_order_date?: TimestampType | Date;
|
|
1429
|
+
};
|
|
1430
|
+
export declare type job_type = 'invoice' | 'receipt' | 'ticket' | 'test' | 'closing' | 'delivery';
|
|
1431
|
+
export declare type PrintQueue = {
|
|
1432
|
+
id: string;
|
|
1433
|
+
type: job_type;
|
|
1434
|
+
order: PrintOrder;
|
|
1435
|
+
order_items?: PrintOrderItem[];
|
|
1436
|
+
closing?: CashierClosing;
|
|
1437
|
+
isCanceledItems?: boolean;
|
|
1438
|
+
printer: Printer;
|
|
1439
|
+
isReprint?: boolean;
|
|
1440
|
+
uri?: string;
|
|
1441
|
+
kick?: boolean;
|
|
1442
|
+
};
|
|
1443
|
+
export declare type PrintJob = {
|
|
1444
|
+
id: string;
|
|
1445
|
+
uri: string;
|
|
1446
|
+
date: string;
|
|
1447
|
+
job: PrintQueue;
|
|
1448
|
+
};
|
|
1449
|
+
export declare type moveErrorsType = {
|
|
1450
|
+
amount?: boolean;
|
|
1451
|
+
note?: boolean;
|
|
1452
|
+
};
|
|
1453
|
+
export declare type CategoryErrorsType = {
|
|
1454
|
+
name_lan_p?: boolean;
|
|
1455
|
+
name_lan_s?: boolean;
|
|
1456
|
+
printer_id?: boolean;
|
|
1457
|
+
};
|
|
1458
|
+
export declare type ItemDiscountErrorsType = {
|
|
1459
|
+
name_lan_p?: boolean;
|
|
1460
|
+
name_lan_s?: boolean;
|
|
1461
|
+
printer_id?: boolean;
|
|
1462
|
+
};
|
|
1463
|
+
export declare type ItemErrorsType = {
|
|
1464
|
+
name_lan_p?: boolean;
|
|
1465
|
+
name_lan_s?: boolean;
|
|
1466
|
+
printer_id?: boolean;
|
|
1467
|
+
prices?: boolean;
|
|
1468
|
+
menu_category_id?: boolean;
|
|
1469
|
+
};
|
|
1470
|
+
export declare type CatAddonsErrorsType = {
|
|
1471
|
+
name_lan_p?: boolean;
|
|
1472
|
+
name_lan_s?: boolean;
|
|
1473
|
+
price?: boolean;
|
|
1474
|
+
active?: boolean;
|
|
1475
|
+
};
|
|
1476
|
+
export declare type ItemAddonErrorsType = {
|
|
1477
|
+
name_lan_p?: boolean;
|
|
1478
|
+
name_lan_s?: boolean;
|
|
1479
|
+
price?: boolean;
|
|
1480
|
+
price_with_vat?: boolean;
|
|
1481
|
+
active?: boolean;
|
|
1482
|
+
};
|
|
1483
|
+
export declare type ItemPriceErrorsType = {
|
|
1484
|
+
name_lan_p?: boolean;
|
|
1485
|
+
name_lan_s?: boolean;
|
|
1486
|
+
price_with_vat?: boolean;
|
|
1487
|
+
price?: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
export declare type SourceErrorsType = {
|
|
1490
|
+
name_lan_p?: boolean;
|
|
1491
|
+
name_lan_s?: boolean;
|
|
1492
|
+
unit?: boolean;
|
|
1493
|
+
};
|
|
1494
|
+
export declare type PrinterErrorsType = {
|
|
1495
|
+
display_name?: boolean;
|
|
1496
|
+
printer_type?: boolean;
|
|
1497
|
+
printer_brand?: boolean;
|
|
1498
|
+
printer_ip?: boolean;
|
|
1499
|
+
printer_port?: boolean;
|
|
1500
|
+
mac_address?: boolean;
|
|
1501
|
+
usb_path?: boolean;
|
|
1502
|
+
purpose?: boolean;
|
|
1503
|
+
};
|
|
1504
|
+
export declare type StoreErrorsType = {
|
|
1505
|
+
name_lan_p?: boolean;
|
|
1506
|
+
name_lan_s?: boolean;
|
|
1507
|
+
address?: boolean;
|
|
1508
|
+
phone?: boolean;
|
|
1509
|
+
vatNumber?: boolean;
|
|
1510
|
+
};
|
|
1511
|
+
export declare type OrderTypesErrorsType = {
|
|
1512
|
+
name_lan_p?: boolean;
|
|
1513
|
+
name_lan_s?: boolean;
|
|
1514
|
+
};
|
|
1515
|
+
export declare type SupportTicketErrorsType = {
|
|
1516
|
+
subject?: boolean;
|
|
1517
|
+
body?: boolean;
|
|
1518
|
+
user_name?: boolean;
|
|
1519
|
+
user_phone?: boolean;
|
|
1520
|
+
};
|
|
1521
|
+
export declare type POSUserErrorsType = {
|
|
1522
|
+
user_name?: boolean;
|
|
1523
|
+
user_phone?: boolean;
|
|
1524
|
+
user_email?: boolean;
|
|
1525
|
+
user_language?: boolean;
|
|
1526
|
+
pinCode?: boolean;
|
|
1527
|
+
};
|
|
1528
|
+
export declare type RolesErrorsType = {
|
|
1529
|
+
name?: boolean;
|
|
1530
|
+
permissions?: boolean;
|
|
1531
|
+
};
|
|
1532
|
+
export declare type PermissionsList = {
|
|
1533
|
+
name: string;
|
|
1534
|
+
show?: string[];
|
|
1535
|
+
permissions: string[];
|
|
1536
|
+
};
|
|
1537
|
+
export declare type DiscountsErrorsType = {
|
|
1538
|
+
discount_name?: boolean;
|
|
1539
|
+
amount?: boolean;
|
|
1540
|
+
date?: boolean;
|
|
1541
|
+
promo_code?: boolean;
|
|
1542
|
+
qty?: boolean;
|
|
1543
|
+
};
|
|
1544
|
+
export declare type PaymentMethodErrorsType = {
|
|
1545
|
+
name_lan_p?: boolean;
|
|
1546
|
+
name_lan_s?: boolean;
|
|
1547
|
+
};
|
|
1548
|
+
export declare type TaxesErrorsType = {
|
|
1549
|
+
name_lan_p?: boolean;
|
|
1550
|
+
name_lan_s?: boolean;
|
|
1551
|
+
amount?: boolean;
|
|
1552
|
+
};
|
|
1553
|
+
export declare type DeliveriesErrorsType = {
|
|
1554
|
+
name_lan_p?: boolean;
|
|
1555
|
+
name_lan_s?: boolean;
|
|
1556
|
+
delivery_fee?: boolean;
|
|
1557
|
+
delivery_type?: boolean;
|
|
1558
|
+
delivery_radius?: boolean;
|
|
1559
|
+
};
|
|
1560
|
+
export declare type VatErrorsType = {
|
|
1561
|
+
vat?: boolean;
|
|
1562
|
+
vat_number?: boolean;
|
|
1563
|
+
};
|
|
1564
|
+
export declare type iOSPrinter = {
|
|
1565
|
+
target?: string;
|
|
1566
|
+
ip_address?: string;
|
|
1567
|
+
printer_name?: string;
|
|
1568
|
+
};
|
|
1569
|
+
export declare type PrinterDiscover = {
|
|
1570
|
+
target?: string;
|
|
1571
|
+
printer_name?: string;
|
|
1572
|
+
ip_address?: string;
|
|
1573
|
+
mac_address?: string;
|
|
1574
|
+
type?: 'system' | 'network' | 'bluetooth' | 'usb';
|
|
1575
|
+
};
|
|
1576
|
+
export declare type Currency = {
|
|
1577
|
+
country: string;
|
|
1578
|
+
ar: string;
|
|
1579
|
+
en: string;
|
|
1580
|
+
translated: translated;
|
|
1581
|
+
};
|
|
1582
|
+
export declare type OrderType = {
|
|
1583
|
+
Id?: string | number;
|
|
1584
|
+
branch_id: string;
|
|
1585
|
+
client_id: string;
|
|
1586
|
+
name_lan_p: string;
|
|
1587
|
+
name_lan_s?: string;
|
|
1588
|
+
};
|
|
1589
|
+
export declare type Preview = {
|
|
1590
|
+
item?: Item;
|
|
1591
|
+
order_item?: OrderItem;
|
|
1592
|
+
category?: Category;
|
|
1593
|
+
visible: boolean;
|
|
1594
|
+
};
|
|
1595
|
+
export declare type Post = {
|
|
1596
|
+
url: string;
|
|
1597
|
+
payload: any;
|
|
1598
|
+
};
|
|
1599
|
+
export declare type LWSupportTeam = {
|
|
1600
|
+
email?: string;
|
|
1601
|
+
cell?: string;
|
|
1602
|
+
name?: string;
|
|
1603
|
+
secret: string;
|
|
1604
|
+
support_user_id: string;
|
|
1605
|
+
role: string[];
|
|
1606
|
+
};
|
|
1607
|
+
export declare type LWSupportLogin = {
|
|
1608
|
+
branch_id?: string;
|
|
1609
|
+
client_id?: string;
|
|
1610
|
+
support_user_id?: string;
|
|
1611
|
+
support_login_id?: string;
|
|
1612
|
+
checkin?: TimestampType | Date;
|
|
1613
|
+
checkout?: TimestampType | Date;
|
|
1614
|
+
client_name_lan_p?: string;
|
|
1615
|
+
cell?: string;
|
|
1616
|
+
name?: string;
|
|
1617
|
+
email?: string;
|
|
1618
|
+
type?: string;
|
|
1619
|
+
};
|
|
1620
|
+
export declare type Connect = {
|
|
1621
|
+
client_id: string;
|
|
1622
|
+
branch_id: string;
|
|
1623
|
+
terminal_id: string;
|
|
1624
|
+
};
|
|
1625
|
+
export declare type Booking = {
|
|
1626
|
+
client_id: string;
|
|
1627
|
+
branch_id: string;
|
|
1628
|
+
date?: TimestampType | Date;
|
|
1629
|
+
customer_id?: string;
|
|
1630
|
+
customer_name?: string;
|
|
1631
|
+
customer_phone?: string;
|
|
1632
|
+
booking_active: boolean;
|
|
1633
|
+
checkin?: boolean;
|
|
1634
|
+
checkout?: boolean;
|
|
1635
|
+
sms_ready_sent_time?: TimestampType | Date | null;
|
|
1636
|
+
};
|
|
1637
|
+
export declare type gTranslate = {
|
|
1638
|
+
q: string;
|
|
1639
|
+
source: string;
|
|
1640
|
+
target: string;
|
|
1641
|
+
};
|
|
1642
|
+
export declare type PickerData = {
|
|
1643
|
+
value: any;
|
|
1644
|
+
label: string;
|
|
1645
|
+
};
|
|
1646
|
+
export declare type ImageSearchItem = {
|
|
1647
|
+
comments: number;
|
|
1648
|
+
downloads: number;
|
|
1649
|
+
favorites: number;
|
|
1650
|
+
id: string;
|
|
1651
|
+
imageHeight: number;
|
|
1652
|
+
imageSize: number;
|
|
1653
|
+
imageWidth: number;
|
|
1654
|
+
largeImageURL: string;
|
|
1655
|
+
likes: number;
|
|
1656
|
+
pageURL: string;
|
|
1657
|
+
previewHeight: number;
|
|
1658
|
+
previewURL: string;
|
|
1659
|
+
previewWidth: number;
|
|
1660
|
+
tags: number;
|
|
1661
|
+
type: string;
|
|
1662
|
+
user: string;
|
|
1663
|
+
userImageURL: string;
|
|
1664
|
+
user_id: number;
|
|
1665
|
+
views: number;
|
|
1666
|
+
webformatHeight: number;
|
|
1667
|
+
webformatURL: string;
|
|
1668
|
+
webformatWidth: number;
|
|
1669
|
+
};
|
|
1670
|
+
export declare type StockAction = 'ADD' | 'RECOUNT' | 'DAMAGE' | 'THEFT' | 'LOSS' | 'RESTOCK';
|
|
1671
|
+
export declare type CategoryScreenSideBar = 'DISCOUNT' | 'TAX' | 'ADDON' | 'PRINTER' | 'CUSTOM_ADDON' | null;
|
|
1672
|
+
export declare type AddonStockDoc = {
|
|
1673
|
+
addon_id: string;
|
|
1674
|
+
branch_id: string;
|
|
1675
|
+
client_id: string;
|
|
1676
|
+
menu_category_id: string;
|
|
1677
|
+
menu_item_id?: string;
|
|
1678
|
+
name_lan_p: string;
|
|
1679
|
+
name_lan_s: string;
|
|
1680
|
+
stock_quantity: number;
|
|
1681
|
+
category_name_lan_p?: string;
|
|
1682
|
+
category_name_lan_s?: string;
|
|
1683
|
+
item_name_lan_p?: string;
|
|
1684
|
+
item_name_lan_s?: string;
|
|
1685
|
+
};
|
|
1686
|
+
export declare type AddonStockMovement = {
|
|
1687
|
+
addon_id: string;
|
|
1688
|
+
branch_id: string;
|
|
1689
|
+
client_id: string;
|
|
1690
|
+
isNew: true;
|
|
1691
|
+
is_expiry?: boolean;
|
|
1692
|
+
date?: TimestampType | Date;
|
|
1693
|
+
menu_category_id: string;
|
|
1694
|
+
menu_item_id?: string;
|
|
1695
|
+
movement_id: string;
|
|
1696
|
+
name_lan_p: string;
|
|
1697
|
+
name_lan_s?: string;
|
|
1698
|
+
price: number;
|
|
1699
|
+
quantity: number;
|
|
1700
|
+
type: StockAction;
|
|
1701
|
+
user_id?: string;
|
|
1702
|
+
user_name?: string;
|
|
1703
|
+
stock_expire_date?: Date;
|
|
1704
|
+
};
|
|
1705
|
+
export declare type SourceStockDoc = {
|
|
1706
|
+
source_id: string;
|
|
1707
|
+
branch_id: string;
|
|
1708
|
+
client_id: string;
|
|
1709
|
+
name_lan_p: string;
|
|
1710
|
+
name_lan_s: string;
|
|
1711
|
+
stock_quantity: number;
|
|
1712
|
+
};
|
|
1713
|
+
export declare type SourceStockMovement = {
|
|
1714
|
+
source_id: string;
|
|
1715
|
+
branch_id: string;
|
|
1716
|
+
client_id: string;
|
|
1717
|
+
is_expiry?: boolean;
|
|
1718
|
+
date?: TimestampType | Date;
|
|
1719
|
+
movement_id: string;
|
|
1720
|
+
name_lan_p: string;
|
|
1721
|
+
name_lan_s?: string;
|
|
1722
|
+
quantity: number;
|
|
1723
|
+
type: StockAction;
|
|
1724
|
+
user_id?: string;
|
|
1725
|
+
user_name?: string;
|
|
1726
|
+
stock_expire_date?: Date;
|
|
1727
|
+
};
|
|
1728
|
+
export declare type PriceStockMovement = {
|
|
1729
|
+
price_id: string;
|
|
1730
|
+
branch_id: string;
|
|
1731
|
+
client_id: string;
|
|
1732
|
+
isNew: true;
|
|
1733
|
+
is_expiry?: boolean;
|
|
1734
|
+
date?: TimestampType | Date;
|
|
1735
|
+
menu_category_id: string;
|
|
1736
|
+
menu_item_id?: string;
|
|
1737
|
+
movement_id: string;
|
|
1738
|
+
name_lan_p: string;
|
|
1739
|
+
name_lan_s?: string;
|
|
1740
|
+
item_name_lan_p?: string;
|
|
1741
|
+
item_name_lan_s?: string;
|
|
1742
|
+
category_name_lan_p?: string;
|
|
1743
|
+
category_name_lan_s?: string;
|
|
1744
|
+
price: number;
|
|
1745
|
+
quantity: number;
|
|
1746
|
+
type: StockAction;
|
|
1747
|
+
user_id?: string;
|
|
1748
|
+
user_name?: string;
|
|
1749
|
+
stock_expire_date?: Date;
|
|
1750
|
+
};
|
|
1751
|
+
export declare type PriceStockDoc = {
|
|
1752
|
+
price_id: string;
|
|
1753
|
+
branch_id: string;
|
|
1754
|
+
client_id: string;
|
|
1755
|
+
menu_category_id: string;
|
|
1756
|
+
menu_item_id?: string;
|
|
1757
|
+
name_lan_p: string;
|
|
1758
|
+
name_lan_s: string;
|
|
1759
|
+
stock_quantity: number;
|
|
1760
|
+
category_name_lan_p?: string;
|
|
1761
|
+
category_name_lan_s?: string;
|
|
1762
|
+
item_name_lan_p?: string;
|
|
1763
|
+
item_name_lan_s?: string;
|
|
1764
|
+
};
|
|
1765
|
+
export declare type Move = {
|
|
1766
|
+
quantity: number;
|
|
1767
|
+
type: StockAction;
|
|
1768
|
+
stock_expire_date?: Date;
|
|
1769
|
+
note: string;
|
|
1770
|
+
is_expiry?: boolean;
|
|
1771
|
+
};
|
|
1772
|
+
export declare type SortInvoice = {
|
|
1773
|
+
source: 'ALL' | 'LAZYWAITPOS' | 'QR';
|
|
1774
|
+
period: 'TODAY' | 'WEEK' | 'MONTH' | 'YEAR' | '24_HOURS' | CustomPeriod;
|
|
1775
|
+
status: 'PAID' | 'CURRENT' | 'VOID' | 'REFUND' | 'ALL' | 'ALL_TRANSACTIONS';
|
|
1776
|
+
};
|
|
1777
|
+
export declare type InvoicesOrderBy = {
|
|
1778
|
+
sortBy: 'order_date' | 'order_id' | 'order_type' | 'discount' | 'tax' | 'received_amount' | 'subtotal' | 'total' | 'approval_code';
|
|
1779
|
+
orderBy: 'asc' | 'desc';
|
|
1780
|
+
};
|
|
1781
|
+
export declare type CustomPeriod = {
|
|
1782
|
+
from: Date;
|
|
1783
|
+
to: Date;
|
|
1784
|
+
};
|
|
1785
|
+
export declare type HoldStockKeys = {
|
|
1786
|
+
[key: string]: number;
|
|
1787
|
+
};
|
|
1788
|
+
export declare type Cash = {
|
|
1789
|
+
'5': number;
|
|
1790
|
+
'10': number;
|
|
1791
|
+
'20': number;
|
|
1792
|
+
'50': number;
|
|
1793
|
+
'100': number;
|
|
1794
|
+
'500': number;
|
|
1795
|
+
'0.01': number;
|
|
1796
|
+
'0.1': number;
|
|
1797
|
+
'0.25': number;
|
|
1798
|
+
'0.5': number;
|
|
1799
|
+
'1': number;
|
|
1800
|
+
'2': number;
|
|
1801
|
+
};
|
|
1802
|
+
export declare type CustomersSort = {
|
|
1803
|
+
field: string;
|
|
1804
|
+
type: string;
|
|
1805
|
+
};
|
|
1806
|
+
export declare type DecimalInputTotal = {
|
|
1807
|
+
amount: string;
|
|
1808
|
+
decimals: Array<string>;
|
|
1809
|
+
};
|
|
1810
|
+
export declare type DocPickerResult = {
|
|
1811
|
+
file?: string;
|
|
1812
|
+
uri: string;
|
|
1813
|
+
data?: string;
|
|
1814
|
+
type: string;
|
|
1815
|
+
size: number | string;
|
|
1816
|
+
};
|
|
1817
|
+
export declare type ListTables = {
|
|
1818
|
+
title?: string;
|
|
1819
|
+
id?: string;
|
|
1820
|
+
data: Table[];
|
|
1821
|
+
};
|
|
1822
|
+
export declare type SupportTicket = {
|
|
1823
|
+
ticket_id?: string;
|
|
1824
|
+
body?: string;
|
|
1825
|
+
is_test: boolean;
|
|
1826
|
+
terminal_id: string;
|
|
1827
|
+
branch_id: string;
|
|
1828
|
+
client_id: string;
|
|
1829
|
+
subject?: string;
|
|
1830
|
+
attachments?: AttachmentFile[];
|
|
1831
|
+
comments?: TicketComment[];
|
|
1832
|
+
assignments?: {
|
|
1833
|
+
cell?: string;
|
|
1834
|
+
date: Date | TimestampType;
|
|
1835
|
+
email: string;
|
|
1836
|
+
name: string;
|
|
1837
|
+
status: string;
|
|
1838
|
+
support_user_id: string;
|
|
1839
|
+
team: string;
|
|
1840
|
+
}[];
|
|
1841
|
+
client: {
|
|
1842
|
+
branch: {
|
|
1843
|
+
branch_id: string;
|
|
1844
|
+
branch_name: string;
|
|
1845
|
+
};
|
|
1846
|
+
client_id: string;
|
|
1847
|
+
logo_url?: string;
|
|
1848
|
+
name_lan_p?: string;
|
|
1849
|
+
};
|
|
1850
|
+
status: string;
|
|
1851
|
+
source: 'POS' | string;
|
|
1852
|
+
created_by: {
|
|
1853
|
+
status: 'new' | string;
|
|
1854
|
+
date: Date | TimestampType | null;
|
|
1855
|
+
user_id: string;
|
|
1856
|
+
user_name: string;
|
|
1857
|
+
user_phone: string;
|
|
1858
|
+
user_email: string;
|
|
1859
|
+
};
|
|
1860
|
+
terminal: {
|
|
1861
|
+
terminal_id: string;
|
|
1862
|
+
terminal_name: string;
|
|
1863
|
+
terminal_type: string;
|
|
1864
|
+
team_viewer_id: string;
|
|
1865
|
+
};
|
|
1866
|
+
ticket_date?: Date | TimestampType | null;
|
|
1867
|
+
software: {
|
|
1868
|
+
version: string;
|
|
1869
|
+
};
|
|
1870
|
+
network_details?: any & {
|
|
1871
|
+
frequency: '5 GHz' | '2.4 GHz' | '';
|
|
1872
|
+
};
|
|
1873
|
+
};
|
|
1874
|
+
export declare type TicketComment = {
|
|
1875
|
+
comment: string;
|
|
1876
|
+
user_id?: string;
|
|
1877
|
+
user_name?: string;
|
|
1878
|
+
user_phone?: string;
|
|
1879
|
+
user_email?: string;
|
|
1880
|
+
comment_date: Date | TimestampType | null;
|
|
1881
|
+
support?: boolean;
|
|
1882
|
+
support_user_id?: string;
|
|
1883
|
+
cell?: string;
|
|
1884
|
+
email?: string;
|
|
1885
|
+
name?: string;
|
|
1886
|
+
secret?: string;
|
|
1887
|
+
team?: string;
|
|
1888
|
+
};
|
|
1889
|
+
export declare type AttachmentFile = {
|
|
1890
|
+
url: string;
|
|
1891
|
+
file_name: string;
|
|
1892
|
+
};
|
|
1893
|
+
export declare type Ports = {
|
|
1894
|
+
PortName: string;
|
|
1895
|
+
BaudRate?: 1200 | 2400 | 4800 | 9600 | 19200 | 115200;
|
|
1896
|
+
};
|
|
1897
|
+
export declare type AndroidProps = {
|
|
1898
|
+
printer: Printer;
|
|
1899
|
+
branch: Branch | null;
|
|
1900
|
+
order: Order;
|
|
1901
|
+
order_items?: OrderItem[];
|
|
1902
|
+
closing?: CashierClosing;
|
|
1903
|
+
terminal: Terminal;
|
|
1904
|
+
type: job_type;
|
|
1905
|
+
isReprint?: boolean;
|
|
1906
|
+
isCanceledItems?: boolean;
|
|
1907
|
+
kick?: boolean;
|
|
1908
|
+
app_version: string;
|
|
1909
|
+
};
|
|
1910
|
+
export declare type TerminalVersionAndPushID = {
|
|
1072
1911
|
push_id?: string;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1912
|
+
version?: string;
|
|
1913
|
+
};
|
|
1914
|
+
export declare type PassMeOrderNotif = {
|
|
1915
|
+
client_id: string;
|
|
1916
|
+
branch_id: string;
|
|
1917
|
+
order_ref: string;
|
|
1918
|
+
source: 'QR_PHONE' | string;
|
|
1919
|
+
type: 'order' | string;
|
|
1920
|
+
};
|
|
1921
|
+
export declare type Notification = {
|
|
1922
|
+
terminal_ids: string[];
|
|
1923
|
+
client_id: string;
|
|
1924
|
+
branch_id: string;
|
|
1925
|
+
title: string;
|
|
1926
|
+
body: string;
|
|
1927
|
+
notification_id: string;
|
|
1928
|
+
subtitle?: string;
|
|
1929
|
+
type?: string;
|
|
1930
|
+
data: any;
|
|
1931
|
+
date: TimestampType | Date;
|
|
1932
|
+
archieved?: String[];
|
|
1933
|
+
order?: Order;
|
|
1934
|
+
};
|
|
1935
|
+
export declare type POSPayment = {
|
|
1936
|
+
Status?: string | number;
|
|
1937
|
+
Response_Code?: string;
|
|
1938
|
+
ECR_number?: string;
|
|
1939
|
+
ECR_Receipt_No?: string;
|
|
1940
|
+
Trans_Amount?: string | number;
|
|
1941
|
+
Card_Number?: string;
|
|
1942
|
+
Card_Expiry_Date?: string;
|
|
1943
|
+
Card_Type?: string;
|
|
1944
|
+
Approval_No?: string;
|
|
1945
|
+
Response_message?: string;
|
|
1946
|
+
Trans_Date?: string | Date;
|
|
1947
|
+
Trans_Time?: string | Date;
|
|
1948
|
+
RRN?: string;
|
|
1949
|
+
payment_date?: string | Date | TimestampType;
|
|
1950
|
+
pos_provider?: PaymentProviders;
|
|
1951
|
+
};
|
|
1952
|
+
export declare type NotifObj = OSNotification & {
|
|
1953
|
+
additionalData: PassMeOrderNotif;
|
|
1954
|
+
};
|
|
1955
|
+
export declare type Location = {
|
|
1956
|
+
accuracy?: number;
|
|
1957
|
+
altitude?: number;
|
|
1958
|
+
bearing?: number;
|
|
1959
|
+
bearingAccuracyDegrees?: number;
|
|
1960
|
+
city?: string;
|
|
1961
|
+
countryCode?: string;
|
|
1962
|
+
countryName?: string;
|
|
1963
|
+
county?: '';
|
|
1964
|
+
elapsedRealtimeNanos?: number | string;
|
|
1965
|
+
extraInfo?: {
|
|
1966
|
+
mockLocation?: boolean | string;
|
|
1967
|
+
};
|
|
1968
|
+
featureName?: string;
|
|
1969
|
+
latitude?: number;
|
|
1970
|
+
longitude?: number;
|
|
1971
|
+
phone?: string;
|
|
1972
|
+
postalCode?: number | string;
|
|
1973
|
+
provider?: string;
|
|
1974
|
+
speed?: number;
|
|
1975
|
+
speedAccuracyMetersPerSecond?: number;
|
|
1976
|
+
state?: string;
|
|
1977
|
+
street?: string;
|
|
1978
|
+
time?: number | string | Date;
|
|
1979
|
+
url?: string;
|
|
1980
|
+
verticalAccuracyMeters?: number;
|
|
1981
|
+
formatted_address?: string;
|
|
1982
|
+
};
|
|
1983
|
+
export declare type StoreSetupInfo = {
|
|
1984
|
+
client_id?: string;
|
|
1985
|
+
branch_id?: string;
|
|
1986
|
+
brand_name: string;
|
|
1987
|
+
branch_name: string;
|
|
1988
|
+
category: string;
|
|
1989
|
+
category_ar: string;
|
|
1990
|
+
category_id: string;
|
|
1991
|
+
subcategory: string;
|
|
1992
|
+
subcategory_id: string;
|
|
1993
|
+
address: string;
|
|
1994
|
+
address1?: string;
|
|
1995
|
+
calling_code: string;
|
|
1996
|
+
logo: string;
|
|
1997
|
+
first_name: string;
|
|
1998
|
+
owner_email: string;
|
|
1999
|
+
phone: string;
|
|
2000
|
+
sku: string;
|
|
2001
|
+
isIaphub?: boolean;
|
|
2002
|
+
isHmsIap?: boolean;
|
|
2003
|
+
isPaymentSuccess?: boolean;
|
|
2004
|
+
paymentMessage?: string;
|
|
2005
|
+
};
|
|
2006
|
+
export declare type StoreSetupInfoError = {
|
|
2007
|
+
brand_name: boolean;
|
|
2008
|
+
branch_name: boolean;
|
|
2009
|
+
category: boolean;
|
|
2010
|
+
category_ar: boolean;
|
|
2011
|
+
category_id: boolean;
|
|
2012
|
+
subcategory: boolean;
|
|
2013
|
+
subcategory_id: boolean;
|
|
2014
|
+
address: boolean;
|
|
2015
|
+
address1?: boolean;
|
|
2016
|
+
calling_code: boolean;
|
|
2017
|
+
logo: boolean;
|
|
2018
|
+
first_name: boolean;
|
|
2019
|
+
owner_email: boolean;
|
|
2020
|
+
phone: boolean;
|
|
2021
|
+
ccode: boolean;
|
|
2022
|
+
};
|
|
2023
|
+
export declare type SQLiteOrderRow = {
|
|
2024
|
+
key: number;
|
|
2025
|
+
branch_id: string;
|
|
2026
|
+
terminal_id: string;
|
|
2027
|
+
order_ref: string;
|
|
2028
|
+
timestamp: number;
|
|
2029
|
+
action: string;
|
|
2030
|
+
source: string;
|
|
2031
|
+
value: Order;
|
|
2032
|
+
order_items: OrderItem[];
|
|
2033
|
+
editedTable: boolean | null;
|
|
2034
|
+
};
|
|
2035
|
+
export declare type ManualDoc = {
|
|
2036
|
+
en: string;
|
|
2037
|
+
ar: string;
|
|
2038
|
+
url: string;
|
|
2039
|
+
};
|
|
2040
|
+
export declare type POSEmail = {
|
|
2041
|
+
email_type: 'cancellation' | 'trial' | 'success_payment' | 'failed_payment' | 'leads';
|
|
2042
|
+
email_target: 'customer' | 'lazywait';
|
|
2043
|
+
source: 'direct_payment' | 'pos';
|
|
2044
|
+
language?: 'en' | 'ar' | string;
|
|
2045
|
+
owner_name?: string;
|
|
2046
|
+
owner_email?: string;
|
|
2047
|
+
owner_phone?: string;
|
|
2048
|
+
plan?: 'free' | 'starter' | 'plus' | 'pro';
|
|
2049
|
+
client_id?: string;
|
|
2050
|
+
client_name?: string;
|
|
2051
|
+
branch_id?: string;
|
|
2052
|
+
branch_name?: string;
|
|
2053
|
+
platform?: 'ios' | 'android' | 'direct_payment';
|
|
2054
|
+
message?: string;
|
|
2055
|
+
payment_ref?: string;
|
|
2056
|
+
payment_amount?: number;
|
|
2057
|
+
create_date?: string | Date | TimestampType;
|
|
2058
|
+
expire_date?: string | Date | TimestampType;
|
|
2059
|
+
license_id?: string;
|
|
2060
|
+
};
|
|
2061
|
+
export declare type StocksQty = {
|
|
2062
|
+
price_id?: string;
|
|
2063
|
+
addon_id?: string;
|
|
2064
|
+
source_id?: string;
|
|
2065
|
+
stock_quantity?: number;
|
|
2066
|
+
};
|
|
2067
|
+
export declare type HoldStocks = {
|
|
2068
|
+
order_item_id?: string;
|
|
2069
|
+
price_id?: string;
|
|
2070
|
+
addon_id?: string;
|
|
2071
|
+
source_id?: string;
|
|
2072
|
+
terminal_id?: string;
|
|
2073
|
+
quantity?: number;
|
|
2074
|
+
};
|
|
2075
|
+
export declare type LWOrders = {
|
|
2076
|
+
order: Order;
|
|
2077
|
+
print_type?: string;
|
|
2078
|
+
type: 'error' | 'success';
|
|
2079
|
+
error_message?: string;
|
|
2080
|
+
};
|
|
2081
|
+
export declare type LWReport = {
|
|
2082
|
+
reports: LWOrders[];
|
|
2083
|
+
user_name?: string;
|
|
2084
|
+
user_email?: string;
|
|
2085
|
+
name_lan_p?: string;
|
|
2086
|
+
name_lan_s?: string;
|
|
2087
|
+
branch_id?: string;
|
|
2088
|
+
};
|
|
2089
|
+
export declare type ResizedImageLink = {
|
|
2090
|
+
client_id?: string;
|
|
2091
|
+
menu_category_id?: string;
|
|
2092
|
+
menu_item_id?: string;
|
|
2093
|
+
addon_id?: string;
|
|
2094
|
+
source_id?: string;
|
|
2095
|
+
width?: 100 | 200 | 600;
|
|
2096
|
+
height?: 100 | 200 | 600;
|
|
2097
|
+
format?: string;
|
|
2098
|
+
original_url: string;
|
|
2099
|
+
};
|
|
2100
|
+
export declare type OrderPrintJobsParams = {
|
|
2101
|
+
order: Order;
|
|
2102
|
+
receipt?: boolean;
|
|
2103
|
+
invoice?: boolean;
|
|
2104
|
+
item_slips?: boolean;
|
|
2105
|
+
reprint_slips?: boolean;
|
|
2106
|
+
printerIp?: string;
|
|
2107
|
+
};
|
|
2108
|
+
export declare type OrderStatusID = 'new-order' | 'confirmed' | 'ready' | 'delivered' | 'canceled' | 'refunded' | 'delivery' | 'driver-pickup' | 'driver-at-door';
|
|
2109
|
+
export declare type Allergen = Map<string, string>;
|
|
2110
|
+
export declare type LazyPaySMSPayload = {
|
|
2111
|
+
branch: {
|
|
2112
|
+
client_id: string;
|
|
2113
|
+
branch_id: string;
|
|
2114
|
+
name_lan_p?: string;
|
|
2115
|
+
name_lan_s?: string;
|
|
2116
|
+
print_order_id?: boolean;
|
|
2117
|
+
print_language?: 'both' | Lang;
|
|
2118
|
+
languages?: Lang[];
|
|
2119
|
+
print_price_with_vat?: boolean;
|
|
2120
|
+
address?: string;
|
|
2121
|
+
address1?: string;
|
|
2122
|
+
phone?: string;
|
|
2123
|
+
receipt_header?: string;
|
|
2124
|
+
receipt_footer?: string;
|
|
2125
|
+
decimal_places: number;
|
|
2126
|
+
currency?: string;
|
|
2127
|
+
currency_lan_p?: string;
|
|
2128
|
+
currency_lan_s?: string;
|
|
2129
|
+
};
|
|
2130
|
+
order_ref: string;
|
|
2131
|
+
};
|
|
2132
|
+
export declare type addItemToCartActionProps = {
|
|
2133
|
+
props: {
|
|
2134
|
+
qty: number;
|
|
2135
|
+
price: ItemPrice;
|
|
2136
|
+
addons: OrderItemAddon[];
|
|
2137
|
+
discounts: OrderItemDiscount[];
|
|
2138
|
+
taxes: OrderTax[];
|
|
2139
|
+
employees: POSUser[];
|
|
2140
|
+
details: string;
|
|
2141
|
+
item?: Item;
|
|
2142
|
+
category?: Category;
|
|
2143
|
+
order_item?: OrderItem;
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
export declare type PrintOrder = {
|
|
2147
|
+
isPaid: boolean;
|
|
2148
|
+
isVoid: boolean;
|
|
2149
|
+
isRefund?: boolean;
|
|
2150
|
+
order_items: PrintOrderItem[];
|
|
2151
|
+
qr?: string;
|
|
2152
|
+
order_id: string;
|
|
2153
|
+
order_number: string;
|
|
2154
|
+
vat_number: string;
|
|
2155
|
+
original_order_id?: string;
|
|
2156
|
+
original_order_number?: string;
|
|
2157
|
+
channelOrderId?: string;
|
|
2158
|
+
channelOrderDisplayId?: string;
|
|
2159
|
+
created_by?: string;
|
|
2160
|
+
table_name?: string;
|
|
2161
|
+
area_name?: string;
|
|
2162
|
+
order_date: TimestampType | Date;
|
|
2163
|
+
user_name: string;
|
|
2164
|
+
terminal_name: string;
|
|
2165
|
+
order_type: string;
|
|
2166
|
+
order_pickup_date?: Date;
|
|
2167
|
+
customer_name?: string;
|
|
2168
|
+
customer_cell?: string;
|
|
2169
|
+
customer_reference?: string;
|
|
2170
|
+
order_taxes: PrintOrderItemTax[];
|
|
2171
|
+
order_discounts: PrintOrderDiscount[];
|
|
2172
|
+
canceled_items: PrintOrderItem[];
|
|
2173
|
+
printed_taxes: PrintedTax[];
|
|
2174
|
+
cancelation_reason?: string;
|
|
2175
|
+
refund_reason?: string;
|
|
2176
|
+
order_payments: PrintOrderPayment[];
|
|
2177
|
+
order_deliveries?: OrderDelivery[];
|
|
2178
|
+
change?: number;
|
|
2179
|
+
tax?: number;
|
|
2180
|
+
total?: number;
|
|
2181
|
+
subtotal?: number;
|
|
2182
|
+
discount?: number;
|
|
2183
|
+
order_delivery_fee?: number;
|
|
2184
|
+
loyalty_amount?: number;
|
|
2185
|
+
tax_percentage?: number;
|
|
2186
|
+
order_details?: string;
|
|
2187
|
+
phase2?: boolean;
|
|
2188
|
+
};
|
|
2189
|
+
export declare type PrintOrderItem = {
|
|
2190
|
+
menu_item_id?: string;
|
|
2191
|
+
menu_category_id?: string;
|
|
2192
|
+
order_item_id?: string;
|
|
2193
|
+
name_lan_p: string;
|
|
2194
|
+
name_lan_s: string;
|
|
2195
|
+
taxable: boolean;
|
|
2196
|
+
not_taxable: boolean;
|
|
2197
|
+
order_item_price: PrintOrderItemPrice;
|
|
2198
|
+
price: number;
|
|
2199
|
+
price_id: string;
|
|
2200
|
+
quantity: number;
|
|
2201
|
+
details?: string;
|
|
2202
|
+
addons: PrintOrderItemAddon[];
|
|
2203
|
+
discounts: PrintOrderItemDiscount[];
|
|
2204
|
+
taxes: PrintOrderItemTax[];
|
|
2205
|
+
employees: Partial<POSUser>[];
|
|
2206
|
+
};
|
|
2207
|
+
export declare type PrintOrderItemTax = {
|
|
2208
|
+
tax_id?: string;
|
|
2209
|
+
amount: number;
|
|
2210
|
+
isPercent: boolean;
|
|
2211
|
+
name_lan_p: string;
|
|
2212
|
+
name_lan_s: string;
|
|
2213
|
+
};
|
|
2214
|
+
export declare type PrintOrderDiscount = {
|
|
2215
|
+
discount_id?: string;
|
|
2216
|
+
amount: number;
|
|
2217
|
+
is_percentage: boolean;
|
|
2218
|
+
discount_name: string;
|
|
2219
|
+
};
|
|
2220
|
+
export declare type PrintOrderItemDiscount = {
|
|
2221
|
+
discount_id?: string;
|
|
2222
|
+
item_discount_id?: string;
|
|
2223
|
+
amount: number;
|
|
2224
|
+
is_percentage: boolean;
|
|
2225
|
+
discount_name: string;
|
|
2226
|
+
};
|
|
2227
|
+
export declare type PrintOrderItemAddon = {
|
|
2228
|
+
addon_id?: string;
|
|
2229
|
+
order_addon_id?: string;
|
|
2230
|
+
quantity: number;
|
|
2231
|
+
price: number;
|
|
2232
|
+
name_lan_p: string;
|
|
2233
|
+
name_lan_s: string;
|
|
2234
|
+
};
|
|
2235
|
+
export declare type PrintOrderItemPrice = {
|
|
2236
|
+
name_lan_p: string;
|
|
2237
|
+
name_lan_s: string;
|
|
2238
|
+
barcode?: string;
|
|
2239
|
+
};
|
|
2240
|
+
export declare type PrintOrderPayment = {
|
|
2241
|
+
order_paymnet_id?: string;
|
|
2242
|
+
name_lan_p?: string;
|
|
2243
|
+
name_lan_s?: string;
|
|
2244
|
+
payment_amount?: number;
|
|
2245
|
+
pos_payment?: {
|
|
2246
|
+
Approval_No?: string;
|
|
2247
|
+
Card_Number?: string;
|
|
2248
|
+
Card_Type?: string;
|
|
2249
|
+
};
|
|
2250
|
+
};
|
|
2251
|
+
export declare type StcPayInfo = {
|
|
2252
|
+
branch_id?: string;
|
|
2253
|
+
merchant_id?: string;
|
|
2254
|
+
branch_name?: string;
|
|
2255
|
+
crc?: string;
|
|
2256
|
+
};
|
|
2257
|
+
export declare type StcPayResponse = {
|
|
2258
|
+
MerchantID: string;
|
|
2259
|
+
BranchID: string;
|
|
2260
|
+
TellerID: string;
|
|
2261
|
+
DeviceID: string;
|
|
2262
|
+
RefNum: string;
|
|
2263
|
+
STCPayRefNum: string;
|
|
2264
|
+
Amount: number;
|
|
2265
|
+
AmountReversed: 0;
|
|
2266
|
+
PaymentDate: Date;
|
|
2267
|
+
PaymentStatus: 0;
|
|
2268
|
+
PaymentStatusDesc: string;
|
|
1083
2269
|
};
|
|
2270
|
+
export {};
|
|
1084
2271
|
//# sourceMappingURL=types.d.ts.map
|