@deliverart/sdk-js-point-of-sale 2.5.34 → 2.6.1
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/dist/index.cjs +23 -55
- package/dist/index.d.cts +717 -62
- package/dist/index.d.ts +717 -62
- package/dist/index.js +28 -75
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
2
|
import { z } from 'zod';
|
|
4
3
|
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
4
|
|
|
@@ -1039,7 +1038,7 @@ declare const getPointOfSaleUsersQuerySchema: z.ZodObject<{
|
|
|
1039
1038
|
type GetPointOfSaleUsersQueryParams = z.infer<typeof getPointOfSaleUsersQuerySchema>;
|
|
1040
1039
|
declare const getPointOfSaleUsersInputSchema: z.ZodUndefined;
|
|
1041
1040
|
type GetPointOfSaleUsersInput = z.input<typeof getPointOfSaleUsersInputSchema>;
|
|
1042
|
-
declare const getPointOfSaleUsersResponseSchema: z.ZodObject<{
|
|
1041
|
+
declare const getPointOfSaleUsersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1043
1042
|
data: z.ZodArray<z.ZodObject<{
|
|
1044
1043
|
id: z.ZodString;
|
|
1045
1044
|
user: z.ZodObject<{
|
|
@@ -1144,14 +1143,109 @@ declare const getPointOfSaleUsersResponseSchema: z.ZodObject<{
|
|
|
1144
1143
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1145
1144
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1146
1145
|
}, z.core.$strip>;
|
|
1147
|
-
}, z.core.$strip
|
|
1146
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1147
|
+
id: z.ZodString;
|
|
1148
|
+
user: z.ZodObject<{
|
|
1149
|
+
id: z.ZodString;
|
|
1150
|
+
firstName: z.ZodString;
|
|
1151
|
+
lastName: z.ZodString;
|
|
1152
|
+
email: z.ZodEmail;
|
|
1153
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1154
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1155
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1156
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1157
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1158
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1159
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1160
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1161
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1162
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1163
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1164
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1165
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1166
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1167
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1168
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1169
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1170
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1171
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1172
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1173
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1174
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1175
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1176
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1177
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1178
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1179
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1180
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1181
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1182
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1183
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1184
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1185
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1186
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1187
|
+
ROLE_USER: "ROLE_USER";
|
|
1188
|
+
}>>;
|
|
1189
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1190
|
+
registration: "registration";
|
|
1191
|
+
verify_email: "verify_email";
|
|
1192
|
+
create_company: "create_company";
|
|
1193
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1194
|
+
}>>;
|
|
1195
|
+
emailVerified: z.ZodBoolean;
|
|
1196
|
+
suspended: z.ZodBoolean;
|
|
1197
|
+
createdAt: z.ZodString;
|
|
1198
|
+
updatedAt: z.ZodString;
|
|
1199
|
+
}, z.core.$strip>;
|
|
1200
|
+
pointOfSale: z.ZodObject<{
|
|
1201
|
+
id: z.ZodString;
|
|
1202
|
+
name: z.ZodString;
|
|
1203
|
+
address: z.ZodObject<{
|
|
1204
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1205
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1206
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1207
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1208
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1209
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1210
|
+
}, z.core.$strip>;
|
|
1211
|
+
timezone: z.ZodString;
|
|
1212
|
+
location: z.ZodObject<{
|
|
1213
|
+
latitude: z.ZodNumber;
|
|
1214
|
+
longitude: z.ZodNumber;
|
|
1215
|
+
}, z.core.$strip>;
|
|
1216
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1217
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1218
|
+
}>>;
|
|
1219
|
+
openingStatus: z.ZodEnum<{
|
|
1220
|
+
OPEN: "OPEN";
|
|
1221
|
+
CLOSED: "CLOSED";
|
|
1222
|
+
}>;
|
|
1223
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1224
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1225
|
+
integrationsStats: z.ZodObject<{
|
|
1226
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1227
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1228
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1229
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1230
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1231
|
+
}, z.core.$strip>;
|
|
1232
|
+
createdAt: z.ZodString;
|
|
1233
|
+
updatedAt: z.ZodString;
|
|
1234
|
+
}, z.core.$strip>;
|
|
1235
|
+
role: z.ZodEnum<{
|
|
1236
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1237
|
+
ROLE_READER: "ROLE_READER";
|
|
1238
|
+
}>;
|
|
1239
|
+
createdAt: z.ZodString;
|
|
1240
|
+
updatedAt: z.ZodString;
|
|
1241
|
+
}, z.core.$strip>>]>;
|
|
1148
1242
|
type GetPointOfSaleUsersResponse = z.infer<typeof getPointOfSaleUsersResponseSchema>;
|
|
1149
1243
|
declare class GetPointOfSaleUsers extends AbstractApiRequest<typeof getPointOfSaleUsersInputSchema, typeof getPointOfSaleUsersResponseSchema, GetPointOfSaleUsersQueryParams> {
|
|
1150
|
-
readonly method
|
|
1151
|
-
readonly contentType
|
|
1152
|
-
readonly accept
|
|
1244
|
+
readonly method: "GET";
|
|
1245
|
+
readonly contentType: "application/json";
|
|
1246
|
+
readonly accept: "application/json";
|
|
1153
1247
|
readonly inputSchema: z.ZodUndefined;
|
|
1154
|
-
readonly outputSchema: z.ZodObject<{
|
|
1248
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1155
1249
|
data: z.ZodArray<z.ZodObject<{
|
|
1156
1250
|
id: z.ZodString;
|
|
1157
1251
|
user: z.ZodObject<{
|
|
@@ -1256,7 +1350,102 @@ declare class GetPointOfSaleUsers extends AbstractApiRequest<typeof getPointOfSa
|
|
|
1256
1350
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1257
1351
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1258
1352
|
}, z.core.$strip>;
|
|
1259
|
-
}, z.core.$strip
|
|
1353
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
1354
|
+
id: z.ZodString;
|
|
1355
|
+
user: z.ZodObject<{
|
|
1356
|
+
id: z.ZodString;
|
|
1357
|
+
firstName: z.ZodString;
|
|
1358
|
+
lastName: z.ZodString;
|
|
1359
|
+
email: z.ZodEmail;
|
|
1360
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1361
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1362
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1363
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1364
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1365
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1366
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1367
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1368
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1369
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1370
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1371
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1372
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1373
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1374
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1375
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1376
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1377
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1378
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1379
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1380
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1381
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1382
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1383
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1384
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1385
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1386
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1387
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1388
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1389
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1390
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1391
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1392
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1393
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1394
|
+
ROLE_USER: "ROLE_USER";
|
|
1395
|
+
}>>;
|
|
1396
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1397
|
+
registration: "registration";
|
|
1398
|
+
verify_email: "verify_email";
|
|
1399
|
+
create_company: "create_company";
|
|
1400
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1401
|
+
}>>;
|
|
1402
|
+
emailVerified: z.ZodBoolean;
|
|
1403
|
+
suspended: z.ZodBoolean;
|
|
1404
|
+
createdAt: z.ZodString;
|
|
1405
|
+
updatedAt: z.ZodString;
|
|
1406
|
+
}, z.core.$strip>;
|
|
1407
|
+
pointOfSale: z.ZodObject<{
|
|
1408
|
+
id: z.ZodString;
|
|
1409
|
+
name: z.ZodString;
|
|
1410
|
+
address: z.ZodObject<{
|
|
1411
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1412
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1413
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1414
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1415
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1416
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1417
|
+
}, z.core.$strip>;
|
|
1418
|
+
timezone: z.ZodString;
|
|
1419
|
+
location: z.ZodObject<{
|
|
1420
|
+
latitude: z.ZodNumber;
|
|
1421
|
+
longitude: z.ZodNumber;
|
|
1422
|
+
}, z.core.$strip>;
|
|
1423
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1424
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1425
|
+
}>>;
|
|
1426
|
+
openingStatus: z.ZodEnum<{
|
|
1427
|
+
OPEN: "OPEN";
|
|
1428
|
+
CLOSED: "CLOSED";
|
|
1429
|
+
}>;
|
|
1430
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1431
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1432
|
+
integrationsStats: z.ZodObject<{
|
|
1433
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1434
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1435
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1436
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1437
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1438
|
+
}, z.core.$strip>;
|
|
1439
|
+
createdAt: z.ZodString;
|
|
1440
|
+
updatedAt: z.ZodString;
|
|
1441
|
+
}, z.core.$strip>;
|
|
1442
|
+
role: z.ZodEnum<{
|
|
1443
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1444
|
+
ROLE_READER: "ROLE_READER";
|
|
1445
|
+
}>;
|
|
1446
|
+
createdAt: z.ZodString;
|
|
1447
|
+
updatedAt: z.ZodString;
|
|
1448
|
+
}, z.core.$strip>>]>;
|
|
1260
1449
|
readonly querySchema: z.ZodObject<{
|
|
1261
1450
|
availableForDelivery: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1262
1451
|
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
@@ -1278,11 +1467,107 @@ declare class GetPointOfSaleUsers extends AbstractApiRequest<typeof getPointOfSa
|
|
|
1278
1467
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1279
1468
|
}, z.core.$strip>;
|
|
1280
1469
|
readonly headersSchema: undefined;
|
|
1470
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1471
|
+
id: z.ZodString;
|
|
1472
|
+
user: z.ZodObject<{
|
|
1473
|
+
id: z.ZodString;
|
|
1474
|
+
firstName: z.ZodString;
|
|
1475
|
+
lastName: z.ZodString;
|
|
1476
|
+
email: z.ZodEmail;
|
|
1477
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1478
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1479
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1480
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1481
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1482
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1483
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1484
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1485
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1486
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1487
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1488
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1489
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1490
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1491
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1492
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1493
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1494
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1495
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1496
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1497
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1498
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1499
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1500
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1501
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1502
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1503
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1504
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1505
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1506
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1507
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1508
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1509
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1510
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1511
|
+
ROLE_USER: "ROLE_USER";
|
|
1512
|
+
}>>;
|
|
1513
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1514
|
+
registration: "registration";
|
|
1515
|
+
verify_email: "verify_email";
|
|
1516
|
+
create_company: "create_company";
|
|
1517
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1518
|
+
}>>;
|
|
1519
|
+
emailVerified: z.ZodBoolean;
|
|
1520
|
+
suspended: z.ZodBoolean;
|
|
1521
|
+
createdAt: z.ZodString;
|
|
1522
|
+
updatedAt: z.ZodString;
|
|
1523
|
+
}, z.core.$strip>;
|
|
1524
|
+
pointOfSale: z.ZodObject<{
|
|
1525
|
+
id: z.ZodString;
|
|
1526
|
+
name: z.ZodString;
|
|
1527
|
+
address: z.ZodObject<{
|
|
1528
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1529
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1530
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1531
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1532
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1533
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1534
|
+
}, z.core.$strip>;
|
|
1535
|
+
timezone: z.ZodString;
|
|
1536
|
+
location: z.ZodObject<{
|
|
1537
|
+
latitude: z.ZodNumber;
|
|
1538
|
+
longitude: z.ZodNumber;
|
|
1539
|
+
}, z.core.$strip>;
|
|
1540
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1541
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1542
|
+
}>>;
|
|
1543
|
+
openingStatus: z.ZodEnum<{
|
|
1544
|
+
OPEN: "OPEN";
|
|
1545
|
+
CLOSED: "CLOSED";
|
|
1546
|
+
}>;
|
|
1547
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1548
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1549
|
+
integrationsStats: z.ZodObject<{
|
|
1550
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1551
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1552
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1553
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1554
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1555
|
+
}, z.core.$strip>;
|
|
1556
|
+
createdAt: z.ZodString;
|
|
1557
|
+
updatedAt: z.ZodString;
|
|
1558
|
+
}, z.core.$strip>;
|
|
1559
|
+
role: z.ZodEnum<{
|
|
1560
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1561
|
+
ROLE_READER: "ROLE_READER";
|
|
1562
|
+
}>;
|
|
1563
|
+
createdAt: z.ZodString;
|
|
1564
|
+
updatedAt: z.ZodString;
|
|
1565
|
+
}, z.core.$strip>;
|
|
1566
|
+
readonly paginationDefaultEnabled = true;
|
|
1281
1567
|
constructor(options?: {
|
|
1282
1568
|
query?: GetPointOfSaleUsersQueryParams;
|
|
1283
1569
|
});
|
|
1284
1570
|
getPath(): string;
|
|
1285
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleUser>;
|
|
1286
1571
|
}
|
|
1287
1572
|
|
|
1288
1573
|
declare const getPointOfSaleUsersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -1371,9 +1656,9 @@ declare const getPointOfSaleUsersFromPointOfSaleResponseSchema: z.ZodArray<z.Zod
|
|
|
1371
1656
|
}, z.core.$strip>>;
|
|
1372
1657
|
type GetPointOfSaleUsersFromPointOfSaleResponse = z.infer<typeof getPointOfSaleUsersFromPointOfSaleResponseSchema>;
|
|
1373
1658
|
declare class GetPointOfSaleUsersFromPointOfSale extends AbstractApiRequest<typeof getPointOfSaleUsersFromPointOfSaleInputSchema, typeof getPointOfSaleUsersFromPointOfSaleResponseSchema, GetPointOfSaleUsersFromPointOfSaleQueryParams> {
|
|
1374
|
-
readonly method
|
|
1375
|
-
readonly contentType
|
|
1376
|
-
readonly accept
|
|
1659
|
+
readonly method: "GET";
|
|
1660
|
+
readonly contentType: "application/json";
|
|
1661
|
+
readonly accept: "application/json";
|
|
1377
1662
|
readonly inputSchema: z.ZodUndefined;
|
|
1378
1663
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
1379
1664
|
id: z.ZodString;
|
|
@@ -1457,12 +1742,73 @@ declare class GetPointOfSaleUsersFromPointOfSale extends AbstractApiRequest<type
|
|
|
1457
1742
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1458
1743
|
}, z.core.$strip>;
|
|
1459
1744
|
readonly headersSchema: undefined;
|
|
1745
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1746
|
+
id: z.ZodString;
|
|
1747
|
+
createdAt: z.ZodString;
|
|
1748
|
+
updatedAt: z.ZodString;
|
|
1749
|
+
role: z.ZodEnum<{
|
|
1750
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1751
|
+
ROLE_READER: "ROLE_READER";
|
|
1752
|
+
}>;
|
|
1753
|
+
user: z.ZodObject<{
|
|
1754
|
+
id: z.ZodString;
|
|
1755
|
+
firstName: z.ZodString;
|
|
1756
|
+
lastName: z.ZodString;
|
|
1757
|
+
email: z.ZodEmail;
|
|
1758
|
+
roles: z.ZodArray<z.ZodEnum<{
|
|
1759
|
+
ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
|
|
1760
|
+
ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
|
|
1761
|
+
ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
|
|
1762
|
+
ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
|
|
1763
|
+
ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
|
|
1764
|
+
ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
|
|
1765
|
+
ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
|
|
1766
|
+
ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
|
|
1767
|
+
ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
|
|
1768
|
+
ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
|
|
1769
|
+
ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
|
|
1770
|
+
ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
|
|
1771
|
+
ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
|
|
1772
|
+
ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
|
|
1773
|
+
ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
|
|
1774
|
+
ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
|
|
1775
|
+
ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
|
|
1776
|
+
ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
|
|
1777
|
+
ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
|
|
1778
|
+
ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
|
|
1779
|
+
ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
|
|
1780
|
+
ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
|
|
1781
|
+
ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
|
|
1782
|
+
ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
|
|
1783
|
+
ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
|
|
1784
|
+
ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
|
|
1785
|
+
ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
|
|
1786
|
+
ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
|
|
1787
|
+
ROLE_COURIER: "ROLE_COURIER";
|
|
1788
|
+
ROLE_CUSTOMER: "ROLE_CUSTOMER";
|
|
1789
|
+
ROLE_MANAGER: "ROLE_MANAGER";
|
|
1790
|
+
ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
|
|
1791
|
+
ROLE_KITCHEN: "ROLE_KITCHEN";
|
|
1792
|
+
ROLE_USER: "ROLE_USER";
|
|
1793
|
+
}>>;
|
|
1794
|
+
completedSteps: z.ZodArray<z.ZodEnum<{
|
|
1795
|
+
registration: "registration";
|
|
1796
|
+
verify_email: "verify_email";
|
|
1797
|
+
create_company: "create_company";
|
|
1798
|
+
create_point_of_sale: "create_point_of_sale";
|
|
1799
|
+
}>>;
|
|
1800
|
+
emailVerified: z.ZodBoolean;
|
|
1801
|
+
suspended: z.ZodBoolean;
|
|
1802
|
+
createdAt: z.ZodString;
|
|
1803
|
+
updatedAt: z.ZodString;
|
|
1804
|
+
}, z.core.$strip>;
|
|
1805
|
+
}, z.core.$strip>;
|
|
1806
|
+
readonly paginationDefaultEnabled = false;
|
|
1460
1807
|
private readonly pointOfSaleId;
|
|
1461
1808
|
constructor(pointOfSaleId: string, options?: {
|
|
1462
1809
|
query?: GetPointOfSaleUsersFromPointOfSaleQueryParams;
|
|
1463
1810
|
});
|
|
1464
1811
|
getPath(): string;
|
|
1465
|
-
parseResponse(data: unknown): Array<Omit<PointOfSaleUser, 'pointOfSale'>>;
|
|
1466
1812
|
}
|
|
1467
1813
|
|
|
1468
1814
|
declare const getPointOfSaleUsersFromUserQuerySchema: z.ZodObject<{
|
|
@@ -1534,9 +1880,9 @@ declare const getPointOfSaleUsersFromUserResponseSchema: z.ZodArray<z.ZodObject<
|
|
|
1534
1880
|
}, z.core.$strip>>;
|
|
1535
1881
|
type GetPointOfSaleUsersFromUserResponse = z.infer<typeof getPointOfSaleUsersFromUserResponseSchema>;
|
|
1536
1882
|
declare class GetPointOfSaleUsersFromUser extends AbstractApiRequest<typeof getPointOfSaleUsersFromUserInputSchema, typeof getPointOfSaleUsersFromUserResponseSchema, GetPointOfSaleUsersFromUserQueryParams> {
|
|
1537
|
-
readonly method
|
|
1538
|
-
readonly contentType
|
|
1539
|
-
readonly accept
|
|
1883
|
+
readonly method: "GET";
|
|
1884
|
+
readonly contentType: "application/json";
|
|
1885
|
+
readonly accept: "application/json";
|
|
1540
1886
|
readonly inputSchema: z.ZodUndefined;
|
|
1541
1887
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
1542
1888
|
id: z.ZodString;
|
|
@@ -1603,12 +1949,56 @@ declare class GetPointOfSaleUsersFromUser extends AbstractApiRequest<typeof getP
|
|
|
1603
1949
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1604
1950
|
}, z.core.$strip>;
|
|
1605
1951
|
readonly headersSchema: undefined;
|
|
1952
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1953
|
+
id: z.ZodString;
|
|
1954
|
+
createdAt: z.ZodString;
|
|
1955
|
+
updatedAt: z.ZodString;
|
|
1956
|
+
pointOfSale: z.ZodObject<{
|
|
1957
|
+
id: z.ZodString;
|
|
1958
|
+
name: z.ZodString;
|
|
1959
|
+
address: z.ZodObject<{
|
|
1960
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1961
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1962
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1963
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1964
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1965
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1966
|
+
}, z.core.$strip>;
|
|
1967
|
+
timezone: z.ZodString;
|
|
1968
|
+
location: z.ZodObject<{
|
|
1969
|
+
latitude: z.ZodNumber;
|
|
1970
|
+
longitude: z.ZodNumber;
|
|
1971
|
+
}, z.core.$strip>;
|
|
1972
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1973
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1974
|
+
}>>;
|
|
1975
|
+
openingStatus: z.ZodEnum<{
|
|
1976
|
+
OPEN: "OPEN";
|
|
1977
|
+
CLOSED: "CLOSED";
|
|
1978
|
+
}>;
|
|
1979
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1980
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
1981
|
+
integrationsStats: z.ZodObject<{
|
|
1982
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1983
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1984
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
1985
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1986
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
1987
|
+
}, z.core.$strip>;
|
|
1988
|
+
createdAt: z.ZodString;
|
|
1989
|
+
updatedAt: z.ZodString;
|
|
1990
|
+
}, z.core.$strip>;
|
|
1991
|
+
role: z.ZodEnum<{
|
|
1992
|
+
ROLE_ADMIN: "ROLE_ADMIN";
|
|
1993
|
+
ROLE_READER: "ROLE_READER";
|
|
1994
|
+
}>;
|
|
1995
|
+
}, z.core.$strip>;
|
|
1996
|
+
readonly paginationDefaultEnabled = false;
|
|
1606
1997
|
private readonly userId;
|
|
1607
1998
|
constructor(userId: string, options?: {
|
|
1608
1999
|
query?: GetPointOfSaleUsersFromUserQueryParams;
|
|
1609
2000
|
});
|
|
1610
2001
|
getPath(): string;
|
|
1611
|
-
parseResponse(data: unknown): Array<Omit<PointOfSaleUser, 'user'>>;
|
|
1612
2002
|
}
|
|
1613
2003
|
|
|
1614
2004
|
declare const updatePointOfSaleUserInputSchema: z.ZodObject<{
|
|
@@ -2267,9 +2657,9 @@ declare const getAvailablePointOfSaleDeliveryTimesResponseSchema: z.ZodArray<z.Z
|
|
|
2267
2657
|
}, z.core.$strip>>;
|
|
2268
2658
|
type GetAvailablePointOfSaleDeliveryTimesResponse = z.infer<typeof getAvailablePointOfSaleDeliveryTimesResponseSchema>;
|
|
2269
2659
|
declare class GetAvailablePointOfSaleDeliveryTimes extends AbstractApiRequest<typeof getAvailablePointOfSaleDeliveryTimesInputSchema, typeof getAvailablePointOfSaleDeliveryTimesResponseSchema, GetAvailablePointOfSaleDeliveryTimesQueryParams> {
|
|
2270
|
-
readonly method
|
|
2271
|
-
readonly contentType
|
|
2272
|
-
readonly accept
|
|
2660
|
+
readonly method: "GET";
|
|
2661
|
+
readonly contentType: "application/json";
|
|
2662
|
+
readonly accept: "application/json";
|
|
2273
2663
|
readonly inputSchema: z.ZodUndefined;
|
|
2274
2664
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
2275
2665
|
start: z.ZodString;
|
|
@@ -2310,7 +2700,6 @@ declare class GetAvailablePointOfSaleDeliveryTimes extends AbstractApiRequest<ty
|
|
|
2310
2700
|
query: GetAvailablePointOfSaleDeliveryTimesQueryParams;
|
|
2311
2701
|
});
|
|
2312
2702
|
getPath(): string;
|
|
2313
|
-
parseResponse(data: unknown): GetAvailablePointOfSaleDeliveryTimesResponse;
|
|
2314
2703
|
}
|
|
2315
2704
|
|
|
2316
2705
|
declare const getAvailablePointOfSaleTakeAwayTimesQuerySchema: z.ZodObject<{
|
|
@@ -2348,9 +2737,9 @@ declare const getAvailablePointOfSaleTakeAwayTimesResponseSchema: z.ZodArray<z.Z
|
|
|
2348
2737
|
}, z.core.$strip>>;
|
|
2349
2738
|
type GetAvailablePointOfSaleTakeAwayTimesResponse = z.infer<typeof getAvailablePointOfSaleTakeAwayTimesResponseSchema>;
|
|
2350
2739
|
declare class GetAvailablePointOfSaleTakeAwayTimes extends AbstractApiRequest<typeof getAvailablePointOfSaleTakeAwayTimesInputSchema, typeof getAvailablePointOfSaleTakeAwayTimesResponseSchema, GetAvailablePointOfSaleTakeAwayTimesQueryParams> {
|
|
2351
|
-
readonly method
|
|
2352
|
-
readonly contentType
|
|
2353
|
-
readonly accept
|
|
2740
|
+
readonly method: "GET";
|
|
2741
|
+
readonly contentType: "application/json";
|
|
2742
|
+
readonly accept: "application/json";
|
|
2354
2743
|
readonly inputSchema: z.ZodUndefined;
|
|
2355
2744
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
2356
2745
|
start: z.ZodString;
|
|
@@ -2388,7 +2777,6 @@ declare class GetAvailablePointOfSaleTakeAwayTimes extends AbstractApiRequest<ty
|
|
|
2388
2777
|
query: GetAvailablePointOfSaleTakeAwayTimesQueryParams;
|
|
2389
2778
|
});
|
|
2390
2779
|
getPath(): string;
|
|
2391
|
-
parseResponse(data: unknown): GetAvailablePointOfSaleTakeAwayTimesResponse;
|
|
2392
2780
|
}
|
|
2393
2781
|
|
|
2394
2782
|
declare const getCompanyPointOfSalesQuerySchema: z.ZodObject<{
|
|
@@ -2454,9 +2842,9 @@ declare const getCompanyPointOfSalesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
2454
2842
|
}, z.core.$strip>>;
|
|
2455
2843
|
type GetCompanyPointOfSalesResponse = z.infer<typeof getCompanyPointOfSalesResponseSchema>;
|
|
2456
2844
|
declare class GetCompanyPointOfSales extends AbstractApiRequest<typeof getCompanyPointOfSalesInputSchema, typeof getCompanyPointOfSalesResponseSchema, GetCompanyPointOfSalesQueryParams> {
|
|
2457
|
-
readonly method
|
|
2458
|
-
readonly contentType
|
|
2459
|
-
readonly accept
|
|
2845
|
+
readonly method: "GET";
|
|
2846
|
+
readonly contentType: "application/json";
|
|
2847
|
+
readonly accept: "application/json";
|
|
2460
2848
|
readonly inputSchema: z.ZodUndefined;
|
|
2461
2849
|
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
2462
2850
|
id: z.ZodString;
|
|
@@ -2516,13 +2904,48 @@ declare class GetCompanyPointOfSales extends AbstractApiRequest<typeof getCompan
|
|
|
2516
2904
|
}>>;
|
|
2517
2905
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2518
2906
|
}, z.core.$strip>;
|
|
2519
|
-
readonly headersSchema: undefined;
|
|
2907
|
+
readonly headersSchema: undefined;
|
|
2908
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2909
|
+
id: z.ZodString;
|
|
2910
|
+
name: z.ZodString;
|
|
2911
|
+
address: z.ZodObject<{
|
|
2912
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2913
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2914
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2915
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2916
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2917
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2918
|
+
}, z.core.$strip>;
|
|
2919
|
+
timezone: z.ZodString;
|
|
2920
|
+
location: z.ZodObject<{
|
|
2921
|
+
latitude: z.ZodNumber;
|
|
2922
|
+
longitude: z.ZodNumber;
|
|
2923
|
+
}, z.core.$strip>;
|
|
2924
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
2925
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
2926
|
+
}>>;
|
|
2927
|
+
openingStatus: z.ZodEnum<{
|
|
2928
|
+
OPEN: "OPEN";
|
|
2929
|
+
CLOSED: "CLOSED";
|
|
2930
|
+
}>;
|
|
2931
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
2932
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
2933
|
+
integrationsStats: z.ZodObject<{
|
|
2934
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
2935
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
2936
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
2937
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
2938
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
2939
|
+
}, z.core.$strip>;
|
|
2940
|
+
createdAt: z.ZodString;
|
|
2941
|
+
updatedAt: z.ZodString;
|
|
2942
|
+
}, z.core.$strip>;
|
|
2943
|
+
readonly paginationDefaultEnabled = false;
|
|
2520
2944
|
private readonly companyId;
|
|
2521
2945
|
constructor(companyId: string, options?: {
|
|
2522
2946
|
query?: GetCompanyPointOfSalesQueryParams;
|
|
2523
2947
|
});
|
|
2524
2948
|
getPath(): string;
|
|
2525
|
-
parseResponse(data: unknown): PointOfSale[];
|
|
2526
2949
|
}
|
|
2527
2950
|
|
|
2528
2951
|
declare const getPointOfSaleDetailsInputSchema: z.ZodUndefined;
|
|
@@ -2784,7 +3207,7 @@ declare const getPointOfSaleMenuVersionsQuerySchema: z.ZodObject<{
|
|
|
2784
3207
|
type GetPointOfSaleMenuVersionsQueryParams = z.infer<typeof getPointOfSaleMenuVersionsQuerySchema>;
|
|
2785
3208
|
declare const getPointOfSaleMenuVersionsInputSchema: z.ZodUndefined;
|
|
2786
3209
|
type GetPointOfSaleMenuVersionsInput = z.infer<typeof getPointOfSaleMenuVersionsInputSchema>;
|
|
2787
|
-
declare const getPointOfSaleMenuVersionsResponseSchema: z.ZodObject<{
|
|
3210
|
+
declare const getPointOfSaleMenuVersionsResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2788
3211
|
data: z.ZodArray<z.ZodObject<{
|
|
2789
3212
|
id: z.ZodString;
|
|
2790
3213
|
contentUrl: z.ZodString;
|
|
@@ -2800,14 +3223,20 @@ declare const getPointOfSaleMenuVersionsResponseSchema: z.ZodObject<{
|
|
|
2800
3223
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2801
3224
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2802
3225
|
}, z.core.$strip>;
|
|
2803
|
-
}, z.core.$strip
|
|
3226
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3227
|
+
id: z.ZodString;
|
|
3228
|
+
contentUrl: z.ZodString;
|
|
3229
|
+
filePath: z.ZodString;
|
|
3230
|
+
createdAt: z.ZodString;
|
|
3231
|
+
updatedAt: z.ZodString;
|
|
3232
|
+
}, z.core.$strip>>]>;
|
|
2804
3233
|
type GetPointOfSaleMenuVersionsResponse = z.infer<typeof getPointOfSaleMenuVersionsResponseSchema>;
|
|
2805
3234
|
declare class GetPointOfSaleMenuVersions extends AbstractApiRequest<typeof getPointOfSaleMenuVersionsInputSchema, typeof getPointOfSaleMenuVersionsResponseSchema, GetPointOfSaleMenuVersionsQueryParams> {
|
|
2806
|
-
readonly method
|
|
2807
|
-
readonly contentType
|
|
2808
|
-
readonly accept
|
|
3235
|
+
readonly method: "GET";
|
|
3236
|
+
readonly contentType: "application/json";
|
|
3237
|
+
readonly accept: "application/json";
|
|
2809
3238
|
readonly inputSchema: z.ZodUndefined;
|
|
2810
|
-
readonly outputSchema: z.ZodObject<{
|
|
3239
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2811
3240
|
data: z.ZodArray<z.ZodObject<{
|
|
2812
3241
|
id: z.ZodString;
|
|
2813
3242
|
contentUrl: z.ZodString;
|
|
@@ -2823,17 +3252,30 @@ declare class GetPointOfSaleMenuVersions extends AbstractApiRequest<typeof getPo
|
|
|
2823
3252
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2824
3253
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2825
3254
|
}, z.core.$strip>;
|
|
2826
|
-
}, z.core.$strip
|
|
3255
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3256
|
+
id: z.ZodString;
|
|
3257
|
+
contentUrl: z.ZodString;
|
|
3258
|
+
filePath: z.ZodString;
|
|
3259
|
+
createdAt: z.ZodString;
|
|
3260
|
+
updatedAt: z.ZodString;
|
|
3261
|
+
}, z.core.$strip>>]>;
|
|
2827
3262
|
readonly querySchema: z.ZodObject<{
|
|
2828
3263
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2829
3264
|
}, z.core.$strip>;
|
|
2830
3265
|
readonly headersSchema: undefined;
|
|
3266
|
+
readonly listItemSchema: z.ZodObject<{
|
|
3267
|
+
id: z.ZodString;
|
|
3268
|
+
contentUrl: z.ZodString;
|
|
3269
|
+
filePath: z.ZodString;
|
|
3270
|
+
createdAt: z.ZodString;
|
|
3271
|
+
updatedAt: z.ZodString;
|
|
3272
|
+
}, z.core.$strip>;
|
|
3273
|
+
readonly paginationDefaultEnabled = true;
|
|
2831
3274
|
private readonly pointOfSaleId;
|
|
2832
3275
|
constructor(pointOfSaleId: string, options?: {
|
|
2833
3276
|
query?: GetPointOfSaleMenuVersionsQueryParams;
|
|
2834
3277
|
});
|
|
2835
3278
|
getPath(): string;
|
|
2836
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
|
|
2837
3279
|
}
|
|
2838
3280
|
|
|
2839
3281
|
declare const getPointOfSalesQuerySchema: z.ZodObject<{
|
|
@@ -2862,7 +3304,7 @@ declare const getPointOfSalesQuerySchema: z.ZodObject<{
|
|
|
2862
3304
|
type GetPointOfSalesQueryParams = z.infer<typeof getPointOfSalesQuerySchema>;
|
|
2863
3305
|
declare const getPointOfSalesInputSchema: z.ZodUndefined;
|
|
2864
3306
|
type GetPointOfSalesInput = z.input<typeof getPointOfSalesInputSchema>;
|
|
2865
|
-
declare const getPointOfSalesResponseSchema: z.ZodObject<{
|
|
3307
|
+
declare const getPointOfSalesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2866
3308
|
data: z.ZodArray<z.ZodObject<{
|
|
2867
3309
|
id: z.ZodString;
|
|
2868
3310
|
name: z.ZodString;
|
|
@@ -2906,14 +3348,48 @@ declare const getPointOfSalesResponseSchema: z.ZodObject<{
|
|
|
2906
3348
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2907
3349
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2908
3350
|
}, z.core.$strip>;
|
|
2909
|
-
}, z.core.$strip
|
|
3351
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3352
|
+
id: z.ZodString;
|
|
3353
|
+
name: z.ZodString;
|
|
3354
|
+
address: z.ZodObject<{
|
|
3355
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3356
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3357
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3358
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3359
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3360
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3361
|
+
}, z.core.$strip>;
|
|
3362
|
+
timezone: z.ZodString;
|
|
3363
|
+
location: z.ZodObject<{
|
|
3364
|
+
latitude: z.ZodNumber;
|
|
3365
|
+
longitude: z.ZodNumber;
|
|
3366
|
+
}, z.core.$strip>;
|
|
3367
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
3368
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
3369
|
+
}>>;
|
|
3370
|
+
openingStatus: z.ZodEnum<{
|
|
3371
|
+
OPEN: "OPEN";
|
|
3372
|
+
CLOSED: "CLOSED";
|
|
3373
|
+
}>;
|
|
3374
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
3375
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
3376
|
+
integrationsStats: z.ZodObject<{
|
|
3377
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3378
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3379
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3380
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
3381
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
3382
|
+
}, z.core.$strip>;
|
|
3383
|
+
createdAt: z.ZodString;
|
|
3384
|
+
updatedAt: z.ZodString;
|
|
3385
|
+
}, z.core.$strip>>]>;
|
|
2910
3386
|
type GetPointOfSalesResponse = z.infer<typeof getPointOfSalesResponseSchema>;
|
|
2911
3387
|
declare class GetPointOfSales extends AbstractApiRequest<typeof getPointOfSalesInputSchema, typeof getPointOfSalesResponseSchema, GetPointOfSalesQueryParams> {
|
|
2912
|
-
readonly method
|
|
2913
|
-
readonly contentType
|
|
2914
|
-
readonly accept
|
|
3388
|
+
readonly method: "GET";
|
|
3389
|
+
readonly contentType: "application/json";
|
|
3390
|
+
readonly accept: "application/json";
|
|
2915
3391
|
readonly inputSchema: z.ZodUndefined;
|
|
2916
|
-
readonly outputSchema: z.ZodObject<{
|
|
3392
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
2917
3393
|
data: z.ZodArray<z.ZodObject<{
|
|
2918
3394
|
id: z.ZodString;
|
|
2919
3395
|
name: z.ZodString;
|
|
@@ -2957,7 +3433,41 @@ declare class GetPointOfSales extends AbstractApiRequest<typeof getPointOfSalesI
|
|
|
2957
3433
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2958
3434
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2959
3435
|
}, z.core.$strip>;
|
|
2960
|
-
}, z.core.$strip
|
|
3436
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3437
|
+
id: z.ZodString;
|
|
3438
|
+
name: z.ZodString;
|
|
3439
|
+
address: z.ZodObject<{
|
|
3440
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3441
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3442
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3443
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3444
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3445
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3446
|
+
}, z.core.$strip>;
|
|
3447
|
+
timezone: z.ZodString;
|
|
3448
|
+
location: z.ZodObject<{
|
|
3449
|
+
latitude: z.ZodNumber;
|
|
3450
|
+
longitude: z.ZodNumber;
|
|
3451
|
+
}, z.core.$strip>;
|
|
3452
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
3453
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
3454
|
+
}>>;
|
|
3455
|
+
openingStatus: z.ZodEnum<{
|
|
3456
|
+
OPEN: "OPEN";
|
|
3457
|
+
CLOSED: "CLOSED";
|
|
3458
|
+
}>;
|
|
3459
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
3460
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
3461
|
+
integrationsStats: z.ZodObject<{
|
|
3462
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3463
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3464
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3465
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
3466
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
3467
|
+
}, z.core.$strip>;
|
|
3468
|
+
createdAt: z.ZodString;
|
|
3469
|
+
updatedAt: z.ZodString;
|
|
3470
|
+
}, z.core.$strip>>]>;
|
|
2961
3471
|
readonly querySchema: z.ZodObject<{
|
|
2962
3472
|
name: z.ZodOptional<z.ZodString>;
|
|
2963
3473
|
openingStatus: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2982,11 +3492,46 @@ declare class GetPointOfSales extends AbstractApiRequest<typeof getPointOfSalesI
|
|
|
2982
3492
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2983
3493
|
}, z.core.$strip>;
|
|
2984
3494
|
readonly headersSchema: undefined;
|
|
3495
|
+
readonly listItemSchema: z.ZodObject<{
|
|
3496
|
+
id: z.ZodString;
|
|
3497
|
+
name: z.ZodString;
|
|
3498
|
+
address: z.ZodObject<{
|
|
3499
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3500
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3501
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3502
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3503
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3504
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3505
|
+
}, z.core.$strip>;
|
|
3506
|
+
timezone: z.ZodString;
|
|
3507
|
+
location: z.ZodObject<{
|
|
3508
|
+
latitude: z.ZodNumber;
|
|
3509
|
+
longitude: z.ZodNumber;
|
|
3510
|
+
}, z.core.$strip>;
|
|
3511
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
3512
|
+
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
3513
|
+
}>>;
|
|
3514
|
+
openingStatus: z.ZodEnum<{
|
|
3515
|
+
OPEN: "OPEN";
|
|
3516
|
+
CLOSED: "CLOSED";
|
|
3517
|
+
}>;
|
|
3518
|
+
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
3519
|
+
currentMenuVersion: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id/menu_versions/:menuVersionId"> | null, unknown>>;
|
|
3520
|
+
integrationsStats: z.ZodObject<{
|
|
3521
|
+
integrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3522
|
+
pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3523
|
+
erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
|
|
3524
|
+
activationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
3525
|
+
cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
|
|
3526
|
+
}, z.core.$strip>;
|
|
3527
|
+
createdAt: z.ZodString;
|
|
3528
|
+
updatedAt: z.ZodString;
|
|
3529
|
+
}, z.core.$strip>;
|
|
3530
|
+
readonly paginationDefaultEnabled = true;
|
|
2985
3531
|
constructor(options?: {
|
|
2986
3532
|
query?: GetPointOfSalesQueryParams;
|
|
2987
3533
|
});
|
|
2988
3534
|
getPath(): string;
|
|
2989
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSale>;
|
|
2990
3535
|
}
|
|
2991
3536
|
|
|
2992
3537
|
declare const updatePointOfSaleInputSchema: z.ZodObject<{
|
|
@@ -3560,7 +4105,7 @@ declare const getPointOfSaleTimeOverridesQuerySchema: z.ZodObject<{
|
|
|
3560
4105
|
type GetPointOfSaleTimeOverridesQueryParams = z.infer<typeof getPointOfSaleTimeOverridesQuerySchema>;
|
|
3561
4106
|
declare const getPointOfSaleTimeOverridesInputSchema: z.ZodUndefined;
|
|
3562
4107
|
type GetPointOfSaleTimeOverridesInput = z.input<typeof getPointOfSaleTimeOverridesInputSchema>;
|
|
3563
|
-
declare const getPointOfSaleTimeOverridesResponseSchema: z.ZodObject<{
|
|
4108
|
+
declare const getPointOfSaleTimeOverridesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3564
4109
|
data: z.ZodArray<z.ZodObject<{
|
|
3565
4110
|
id: z.ZodString;
|
|
3566
4111
|
date: z.ZodString;
|
|
@@ -3588,14 +4133,32 @@ declare const getPointOfSaleTimeOverridesResponseSchema: z.ZodObject<{
|
|
|
3588
4133
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3589
4134
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3590
4135
|
}, z.core.$strip>;
|
|
3591
|
-
}, z.core.$strip
|
|
4136
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4137
|
+
id: z.ZodString;
|
|
4138
|
+
date: z.ZodString;
|
|
4139
|
+
openingTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4140
|
+
startTime: z.ZodString;
|
|
4141
|
+
endTime: z.ZodString;
|
|
4142
|
+
}, z.core.$strip>>;
|
|
4143
|
+
deliveryTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4144
|
+
startTime: z.ZodString;
|
|
4145
|
+
endTime: z.ZodString;
|
|
4146
|
+
availableCouriers: z.ZodCoercedNumber<unknown>;
|
|
4147
|
+
}, z.core.$strip>>;
|
|
4148
|
+
takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4149
|
+
startTime: z.ZodString;
|
|
4150
|
+
endTime: z.ZodString;
|
|
4151
|
+
}, z.core.$strip>>;
|
|
4152
|
+
createdAt: z.ZodString;
|
|
4153
|
+
updatedAt: z.ZodString;
|
|
4154
|
+
}, z.core.$strip>>]>;
|
|
3592
4155
|
type GetPointOfSaleTimeOverridesResponse = z.infer<typeof getPointOfSaleTimeOverridesResponseSchema>;
|
|
3593
4156
|
declare class GetPointOfSaleTimeOverrides extends AbstractApiRequest<typeof getPointOfSaleTimeOverridesInputSchema, typeof getPointOfSaleTimeOverridesResponseSchema, GetPointOfSaleTimeOverridesQueryParams> {
|
|
3594
|
-
readonly method
|
|
3595
|
-
readonly contentType
|
|
3596
|
-
readonly accept
|
|
4157
|
+
readonly method: "GET";
|
|
4158
|
+
readonly contentType: "application/json";
|
|
4159
|
+
readonly accept: "application/json";
|
|
3597
4160
|
readonly inputSchema: z.ZodUndefined;
|
|
3598
|
-
readonly outputSchema: z.ZodObject<{
|
|
4161
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3599
4162
|
data: z.ZodArray<z.ZodObject<{
|
|
3600
4163
|
id: z.ZodString;
|
|
3601
4164
|
date: z.ZodString;
|
|
@@ -3623,7 +4186,25 @@ declare class GetPointOfSaleTimeOverrides extends AbstractApiRequest<typeof getP
|
|
|
3623
4186
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3624
4187
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3625
4188
|
}, z.core.$strip>;
|
|
3626
|
-
}, z.core.$strip
|
|
4189
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4190
|
+
id: z.ZodString;
|
|
4191
|
+
date: z.ZodString;
|
|
4192
|
+
openingTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4193
|
+
startTime: z.ZodString;
|
|
4194
|
+
endTime: z.ZodString;
|
|
4195
|
+
}, z.core.$strip>>;
|
|
4196
|
+
deliveryTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4197
|
+
startTime: z.ZodString;
|
|
4198
|
+
endTime: z.ZodString;
|
|
4199
|
+
availableCouriers: z.ZodCoercedNumber<unknown>;
|
|
4200
|
+
}, z.core.$strip>>;
|
|
4201
|
+
takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4202
|
+
startTime: z.ZodString;
|
|
4203
|
+
endTime: z.ZodString;
|
|
4204
|
+
}, z.core.$strip>>;
|
|
4205
|
+
createdAt: z.ZodString;
|
|
4206
|
+
updatedAt: z.ZodString;
|
|
4207
|
+
}, z.core.$strip>>]>;
|
|
3627
4208
|
readonly querySchema: z.ZodObject<{
|
|
3628
4209
|
'order[date]': z.ZodOptional<z.ZodEnum<{
|
|
3629
4210
|
asc: "asc";
|
|
@@ -3652,11 +4233,30 @@ declare class GetPointOfSaleTimeOverrides extends AbstractApiRequest<typeof getP
|
|
|
3652
4233
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3653
4234
|
}, z.core.$strip>;
|
|
3654
4235
|
readonly headersSchema: undefined;
|
|
4236
|
+
readonly listItemSchema: z.ZodObject<{
|
|
4237
|
+
id: z.ZodString;
|
|
4238
|
+
date: z.ZodString;
|
|
4239
|
+
openingTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4240
|
+
startTime: z.ZodString;
|
|
4241
|
+
endTime: z.ZodString;
|
|
4242
|
+
}, z.core.$strip>>;
|
|
4243
|
+
deliveryTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4244
|
+
startTime: z.ZodString;
|
|
4245
|
+
endTime: z.ZodString;
|
|
4246
|
+
availableCouriers: z.ZodCoercedNumber<unknown>;
|
|
4247
|
+
}, z.core.$strip>>;
|
|
4248
|
+
takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4249
|
+
startTime: z.ZodString;
|
|
4250
|
+
endTime: z.ZodString;
|
|
4251
|
+
}, z.core.$strip>>;
|
|
4252
|
+
createdAt: z.ZodString;
|
|
4253
|
+
updatedAt: z.ZodString;
|
|
4254
|
+
}, z.core.$strip>;
|
|
4255
|
+
readonly paginationDefaultEnabled = true;
|
|
3655
4256
|
constructor(options?: {
|
|
3656
4257
|
query?: GetPointOfSaleTimeOverridesQueryParams;
|
|
3657
4258
|
});
|
|
3658
4259
|
getPath(): string;
|
|
3659
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleTimeOverride>;
|
|
3660
4260
|
}
|
|
3661
4261
|
|
|
3662
4262
|
declare const getPointOfSaleTimeOverridesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -3689,7 +4289,7 @@ declare const getPointOfSaleTimeOverridesFromPointOfSaleQuerySchema: z.ZodObject
|
|
|
3689
4289
|
type GetPointOfSaleTimeOverridesFromPointOfSaleQueryParams = z.infer<typeof getPointOfSaleTimeOverridesFromPointOfSaleQuerySchema>;
|
|
3690
4290
|
declare const getPointOfSaleTimeOverridesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3691
4291
|
type GetPointOfSaleTimeOverridesFromPointOfSaleInput = z.input<typeof getPointOfSaleTimeOverridesFromPointOfSaleInputSchema>;
|
|
3692
|
-
declare const getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
4292
|
+
declare const getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3693
4293
|
data: z.ZodArray<z.ZodObject<{
|
|
3694
4294
|
id: z.ZodString;
|
|
3695
4295
|
date: z.ZodString;
|
|
@@ -3717,14 +4317,32 @@ declare const getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema: z.ZodObj
|
|
|
3717
4317
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3718
4318
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3719
4319
|
}, z.core.$strip>;
|
|
3720
|
-
}, z.core.$strip
|
|
4320
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4321
|
+
id: z.ZodString;
|
|
4322
|
+
date: z.ZodString;
|
|
4323
|
+
openingTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4324
|
+
startTime: z.ZodString;
|
|
4325
|
+
endTime: z.ZodString;
|
|
4326
|
+
}, z.core.$strip>>;
|
|
4327
|
+
deliveryTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4328
|
+
startTime: z.ZodString;
|
|
4329
|
+
endTime: z.ZodString;
|
|
4330
|
+
availableCouriers: z.ZodCoercedNumber<unknown>;
|
|
4331
|
+
}, z.core.$strip>>;
|
|
4332
|
+
takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4333
|
+
startTime: z.ZodString;
|
|
4334
|
+
endTime: z.ZodString;
|
|
4335
|
+
}, z.core.$strip>>;
|
|
4336
|
+
createdAt: z.ZodString;
|
|
4337
|
+
updatedAt: z.ZodString;
|
|
4338
|
+
}, z.core.$strip>>]>;
|
|
3721
4339
|
type GetPointOfSaleTimeOverridesFromPointOfSaleResponse = z.infer<typeof getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema>;
|
|
3722
4340
|
declare class GetPointOfSaleTimeOverridesFromPointOfSale extends AbstractApiRequest<typeof getPointOfSaleTimeOverridesFromPointOfSaleInputSchema, typeof getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema, GetPointOfSaleTimeOverridesFromPointOfSaleQueryParams> {
|
|
3723
|
-
readonly method
|
|
3724
|
-
readonly contentType
|
|
3725
|
-
readonly accept
|
|
4341
|
+
readonly method: "GET";
|
|
4342
|
+
readonly contentType: "application/json";
|
|
4343
|
+
readonly accept: "application/json";
|
|
3726
4344
|
readonly inputSchema: z.ZodUndefined;
|
|
3727
|
-
readonly outputSchema: z.ZodObject<{
|
|
4345
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3728
4346
|
data: z.ZodArray<z.ZodObject<{
|
|
3729
4347
|
id: z.ZodString;
|
|
3730
4348
|
date: z.ZodString;
|
|
@@ -3752,7 +4370,25 @@ declare class GetPointOfSaleTimeOverridesFromPointOfSale extends AbstractApiRequ
|
|
|
3752
4370
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3753
4371
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3754
4372
|
}, z.core.$strip>;
|
|
3755
|
-
}, z.core.$strip
|
|
4373
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4374
|
+
id: z.ZodString;
|
|
4375
|
+
date: z.ZodString;
|
|
4376
|
+
openingTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4377
|
+
startTime: z.ZodString;
|
|
4378
|
+
endTime: z.ZodString;
|
|
4379
|
+
}, z.core.$strip>>;
|
|
4380
|
+
deliveryTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4381
|
+
startTime: z.ZodString;
|
|
4382
|
+
endTime: z.ZodString;
|
|
4383
|
+
availableCouriers: z.ZodCoercedNumber<unknown>;
|
|
4384
|
+
}, z.core.$strip>>;
|
|
4385
|
+
takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4386
|
+
startTime: z.ZodString;
|
|
4387
|
+
endTime: z.ZodString;
|
|
4388
|
+
}, z.core.$strip>>;
|
|
4389
|
+
createdAt: z.ZodString;
|
|
4390
|
+
updatedAt: z.ZodString;
|
|
4391
|
+
}, z.core.$strip>>]>;
|
|
3756
4392
|
readonly querySchema: z.ZodObject<{
|
|
3757
4393
|
'order[date]': z.ZodOptional<z.ZodEnum<{
|
|
3758
4394
|
asc: "asc";
|
|
@@ -3781,12 +4417,31 @@ declare class GetPointOfSaleTimeOverridesFromPointOfSale extends AbstractApiRequ
|
|
|
3781
4417
|
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3782
4418
|
}, z.core.$strip>;
|
|
3783
4419
|
readonly headersSchema: undefined;
|
|
4420
|
+
readonly listItemSchema: z.ZodObject<{
|
|
4421
|
+
id: z.ZodString;
|
|
4422
|
+
date: z.ZodString;
|
|
4423
|
+
openingTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4424
|
+
startTime: z.ZodString;
|
|
4425
|
+
endTime: z.ZodString;
|
|
4426
|
+
}, z.core.$strip>>;
|
|
4427
|
+
deliveryTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4428
|
+
startTime: z.ZodString;
|
|
4429
|
+
endTime: z.ZodString;
|
|
4430
|
+
availableCouriers: z.ZodCoercedNumber<unknown>;
|
|
4431
|
+
}, z.core.$strip>>;
|
|
4432
|
+
takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
|
|
4433
|
+
startTime: z.ZodString;
|
|
4434
|
+
endTime: z.ZodString;
|
|
4435
|
+
}, z.core.$strip>>;
|
|
4436
|
+
createdAt: z.ZodString;
|
|
4437
|
+
updatedAt: z.ZodString;
|
|
4438
|
+
}, z.core.$strip>;
|
|
4439
|
+
readonly paginationDefaultEnabled = true;
|
|
3784
4440
|
private readonly pointOfSaleId;
|
|
3785
4441
|
constructor(pointOfSaleId: string, options?: {
|
|
3786
4442
|
query?: GetPointOfSaleTimeOverridesFromPointOfSaleQueryParams;
|
|
3787
4443
|
});
|
|
3788
4444
|
getPath(): string;
|
|
3789
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleTimeOverride>;
|
|
3790
4445
|
}
|
|
3791
4446
|
|
|
3792
4447
|
declare const updatePointOfSaleTimeOverrideInputSchema: z.ZodObject<{
|