@deliverart/sdk-js-point-of-sale 2.5.33 → 2.6.0

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.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
 
@@ -1147,9 +1146,9 @@ declare const getPointOfSaleUsersResponseSchema: z.ZodObject<{
1147
1146
  }, z.core.$strip>;
1148
1147
  type GetPointOfSaleUsersResponse = z.infer<typeof getPointOfSaleUsersResponseSchema>;
1149
1148
  declare class GetPointOfSaleUsers extends AbstractApiRequest<typeof getPointOfSaleUsersInputSchema, typeof getPointOfSaleUsersResponseSchema, GetPointOfSaleUsersQueryParams> {
1150
- readonly method = "GET";
1151
- readonly contentType = "application/json";
1152
- readonly accept = "application/json";
1149
+ readonly method: "GET";
1150
+ readonly contentType: "application/json";
1151
+ readonly accept: "application/json";
1153
1152
  readonly inputSchema: z.ZodUndefined;
1154
1153
  readonly outputSchema: z.ZodObject<{
1155
1154
  data: z.ZodArray<z.ZodObject<{
@@ -1278,11 +1277,107 @@ declare class GetPointOfSaleUsers extends AbstractApiRequest<typeof getPointOfSa
1278
1277
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1279
1278
  }, z.core.$strip>;
1280
1279
  readonly headersSchema: undefined;
1280
+ readonly listItemSchema: z.ZodObject<{
1281
+ id: z.ZodString;
1282
+ user: z.ZodObject<{
1283
+ id: z.ZodString;
1284
+ firstName: z.ZodString;
1285
+ lastName: z.ZodString;
1286
+ email: z.ZodEmail;
1287
+ roles: z.ZodArray<z.ZodEnum<{
1288
+ ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
1289
+ ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
1290
+ ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
1291
+ ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
1292
+ ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
1293
+ ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
1294
+ ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
1295
+ ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
1296
+ ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
1297
+ ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
1298
+ ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
1299
+ ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
1300
+ ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
1301
+ ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
1302
+ ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
1303
+ ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
1304
+ ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
1305
+ ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
1306
+ ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
1307
+ ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
1308
+ ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
1309
+ ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
1310
+ ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
1311
+ ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
1312
+ ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
1313
+ ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
1314
+ ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
1315
+ ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
1316
+ ROLE_COURIER: "ROLE_COURIER";
1317
+ ROLE_CUSTOMER: "ROLE_CUSTOMER";
1318
+ ROLE_MANAGER: "ROLE_MANAGER";
1319
+ ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
1320
+ ROLE_KITCHEN: "ROLE_KITCHEN";
1321
+ ROLE_USER: "ROLE_USER";
1322
+ }>>;
1323
+ completedSteps: z.ZodArray<z.ZodEnum<{
1324
+ registration: "registration";
1325
+ verify_email: "verify_email";
1326
+ create_company: "create_company";
1327
+ create_point_of_sale: "create_point_of_sale";
1328
+ }>>;
1329
+ emailVerified: z.ZodBoolean;
1330
+ suspended: z.ZodBoolean;
1331
+ createdAt: z.ZodString;
1332
+ updatedAt: z.ZodString;
1333
+ }, z.core.$strip>;
1334
+ pointOfSale: z.ZodObject<{
1335
+ id: z.ZodString;
1336
+ name: z.ZodString;
1337
+ address: z.ZodObject<{
1338
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1339
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1340
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1342
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1343
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1344
+ }, z.core.$strip>;
1345
+ timezone: z.ZodString;
1346
+ location: z.ZodObject<{
1347
+ latitude: z.ZodNumber;
1348
+ longitude: z.ZodNumber;
1349
+ }, z.core.$strip>;
1350
+ capabilities: z.ZodArray<z.ZodEnum<{
1351
+ DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
1352
+ }>>;
1353
+ openingStatus: z.ZodEnum<{
1354
+ OPEN: "OPEN";
1355
+ CLOSED: "CLOSED";
1356
+ }>;
1357
+ nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
1358
+ 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>>;
1359
+ integrationsStats: z.ZodObject<{
1360
+ integrationsCount: z.ZodCoercedNumber<unknown>;
1361
+ pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
1362
+ erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
1363
+ activationRequestsCount: z.ZodCoercedNumber<unknown>;
1364
+ cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
1365
+ }, z.core.$strip>;
1366
+ createdAt: z.ZodString;
1367
+ updatedAt: z.ZodString;
1368
+ }, z.core.$strip>;
1369
+ role: z.ZodEnum<{
1370
+ ROLE_ADMIN: "ROLE_ADMIN";
1371
+ ROLE_READER: "ROLE_READER";
1372
+ }>;
1373
+ createdAt: z.ZodString;
1374
+ updatedAt: z.ZodString;
1375
+ }, z.core.$strip>;
1376
+ readonly paginationDefaultEnabled = true;
1281
1377
  constructor(options?: {
1282
1378
  query?: GetPointOfSaleUsersQueryParams;
1283
1379
  });
1284
1380
  getPath(): string;
1285
- parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleUser>;
1286
1381
  }
1287
1382
 
1288
1383
  declare const getPointOfSaleUsersFromPointOfSaleQuerySchema: z.ZodObject<{
@@ -1371,9 +1466,9 @@ declare const getPointOfSaleUsersFromPointOfSaleResponseSchema: z.ZodArray<z.Zod
1371
1466
  }, z.core.$strip>>;
1372
1467
  type GetPointOfSaleUsersFromPointOfSaleResponse = z.infer<typeof getPointOfSaleUsersFromPointOfSaleResponseSchema>;
1373
1468
  declare class GetPointOfSaleUsersFromPointOfSale extends AbstractApiRequest<typeof getPointOfSaleUsersFromPointOfSaleInputSchema, typeof getPointOfSaleUsersFromPointOfSaleResponseSchema, GetPointOfSaleUsersFromPointOfSaleQueryParams> {
1374
- readonly method = "GET";
1375
- readonly contentType = "application/json";
1376
- readonly accept = "application/json";
1469
+ readonly method: "GET";
1470
+ readonly contentType: "application/json";
1471
+ readonly accept: "application/json";
1377
1472
  readonly inputSchema: z.ZodUndefined;
1378
1473
  readonly outputSchema: z.ZodArray<z.ZodObject<{
1379
1474
  id: z.ZodString;
@@ -1457,12 +1552,73 @@ declare class GetPointOfSaleUsersFromPointOfSale extends AbstractApiRequest<type
1457
1552
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1458
1553
  }, z.core.$strip>;
1459
1554
  readonly headersSchema: undefined;
1555
+ readonly listItemSchema: z.ZodObject<{
1556
+ id: z.ZodString;
1557
+ createdAt: z.ZodString;
1558
+ updatedAt: z.ZodString;
1559
+ role: z.ZodEnum<{
1560
+ ROLE_ADMIN: "ROLE_ADMIN";
1561
+ ROLE_READER: "ROLE_READER";
1562
+ }>;
1563
+ user: z.ZodObject<{
1564
+ id: z.ZodString;
1565
+ firstName: z.ZodString;
1566
+ lastName: z.ZodString;
1567
+ email: z.ZodEmail;
1568
+ roles: z.ZodArray<z.ZodEnum<{
1569
+ ROLE_CUSTOMER_ACCESS: "ROLE_CUSTOMER_ACCESS";
1570
+ ROLE_BUNDLE_ACCESS: "ROLE_BUNDLE_ACCESS";
1571
+ ROLE_DELIVERY_ACCESS: "ROLE_DELIVERY_ACCESS";
1572
+ ROLE_POINT_OF_SALE_ACCESS: "ROLE_POINT_OF_SALE_ACCESS";
1573
+ ROLE_MENU_ACCESS: "ROLE_MENU_ACCESS";
1574
+ ROLE_INTEGRATION_ACCESS: "ROLE_INTEGRATION_ACCESS";
1575
+ ROLE_ORDER_ACCESS: "ROLE_ORDER_ACCESS";
1576
+ ROLE_LEAD_ACCESS: "ROLE_LEAD_ACCESS";
1577
+ ROLE_COMPANY_ACCESS: "ROLE_COMPANY_ACCESS";
1578
+ ROLE_USER_ACCESS: "ROLE_USER_ACCESS";
1579
+ ROLE_SUBSCRIPTION_ACCESS: "ROLE_SUBSCRIPTION_ACCESS";
1580
+ ROLE_PAYMENT_ACCESS: "ROLE_PAYMENT_ACCESS";
1581
+ ROLE_PAYMENT_CONFIG_ACCESS: "ROLE_PAYMENT_CONFIG_ACCESS";
1582
+ ROLE_DEV_ACCESS: "ROLE_DEV_ACCESS";
1583
+ ROLE_CUSTOMER_ADMIN: "ROLE_CUSTOMER_ADMIN";
1584
+ ROLE_BUNDLE_ADMIN: "ROLE_BUNDLE_ADMIN";
1585
+ ROLE_DELIVERY_ADMIN: "ROLE_DELIVERY_ADMIN";
1586
+ ROLE_POINT_OF_SALE_ADMIN: "ROLE_POINT_OF_SALE_ADMIN";
1587
+ ROLE_MENU_ADMIN: "ROLE_MENU_ADMIN";
1588
+ ROLE_INTEGRATION_ADMIN: "ROLE_INTEGRATION_ADMIN";
1589
+ ROLE_ORDER_ADMIN: "ROLE_ORDER_ADMIN";
1590
+ ROLE_LEAD_ADMIN: "ROLE_LEAD_ADMIN";
1591
+ ROLE_COMPANY_ADMIN: "ROLE_COMPANY_ADMIN";
1592
+ ROLE_USER_ADMIN: "ROLE_USER_ADMIN";
1593
+ ROLE_SUBSCRIPTION_ADMIN: "ROLE_SUBSCRIPTION_ADMIN";
1594
+ ROLE_PAYMENT_ADMIN: "ROLE_PAYMENT_ADMIN";
1595
+ ROLE_PAYMENT_CONFIG_ADMIN: "ROLE_PAYMENT_CONFIG_ADMIN";
1596
+ ROLE_DEV_ADMIN: "ROLE_DEV_ADMIN";
1597
+ ROLE_COURIER: "ROLE_COURIER";
1598
+ ROLE_CUSTOMER: "ROLE_CUSTOMER";
1599
+ ROLE_MANAGER: "ROLE_MANAGER";
1600
+ ROLE_SUPER_ADMIN: "ROLE_SUPER_ADMIN";
1601
+ ROLE_KITCHEN: "ROLE_KITCHEN";
1602
+ ROLE_USER: "ROLE_USER";
1603
+ }>>;
1604
+ completedSteps: z.ZodArray<z.ZodEnum<{
1605
+ registration: "registration";
1606
+ verify_email: "verify_email";
1607
+ create_company: "create_company";
1608
+ create_point_of_sale: "create_point_of_sale";
1609
+ }>>;
1610
+ emailVerified: z.ZodBoolean;
1611
+ suspended: z.ZodBoolean;
1612
+ createdAt: z.ZodString;
1613
+ updatedAt: z.ZodString;
1614
+ }, z.core.$strip>;
1615
+ }, z.core.$strip>;
1616
+ readonly paginationDefaultEnabled = false;
1460
1617
  private readonly pointOfSaleId;
1461
1618
  constructor(pointOfSaleId: string, options?: {
1462
1619
  query?: GetPointOfSaleUsersFromPointOfSaleQueryParams;
1463
1620
  });
1464
1621
  getPath(): string;
1465
- parseResponse(data: unknown): Array<Omit<PointOfSaleUser, 'pointOfSale'>>;
1466
1622
  }
1467
1623
 
1468
1624
  declare const getPointOfSaleUsersFromUserQuerySchema: z.ZodObject<{
@@ -1534,9 +1690,9 @@ declare const getPointOfSaleUsersFromUserResponseSchema: z.ZodArray<z.ZodObject<
1534
1690
  }, z.core.$strip>>;
1535
1691
  type GetPointOfSaleUsersFromUserResponse = z.infer<typeof getPointOfSaleUsersFromUserResponseSchema>;
1536
1692
  declare class GetPointOfSaleUsersFromUser extends AbstractApiRequest<typeof getPointOfSaleUsersFromUserInputSchema, typeof getPointOfSaleUsersFromUserResponseSchema, GetPointOfSaleUsersFromUserQueryParams> {
1537
- readonly method = "GET";
1538
- readonly contentType = "application/json";
1539
- readonly accept = "application/json";
1693
+ readonly method: "GET";
1694
+ readonly contentType: "application/json";
1695
+ readonly accept: "application/json";
1540
1696
  readonly inputSchema: z.ZodUndefined;
1541
1697
  readonly outputSchema: z.ZodArray<z.ZodObject<{
1542
1698
  id: z.ZodString;
@@ -1603,12 +1759,56 @@ declare class GetPointOfSaleUsersFromUser extends AbstractApiRequest<typeof getP
1603
1759
  'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1604
1760
  }, z.core.$strip>;
1605
1761
  readonly headersSchema: undefined;
1762
+ readonly listItemSchema: z.ZodObject<{
1763
+ id: z.ZodString;
1764
+ createdAt: z.ZodString;
1765
+ updatedAt: z.ZodString;
1766
+ pointOfSale: z.ZodObject<{
1767
+ id: z.ZodString;
1768
+ name: z.ZodString;
1769
+ address: z.ZodObject<{
1770
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1771
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1772
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1774
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1775
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1776
+ }, z.core.$strip>;
1777
+ timezone: z.ZodString;
1778
+ location: z.ZodObject<{
1779
+ latitude: z.ZodNumber;
1780
+ longitude: z.ZodNumber;
1781
+ }, z.core.$strip>;
1782
+ capabilities: z.ZodArray<z.ZodEnum<{
1783
+ DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
1784
+ }>>;
1785
+ openingStatus: z.ZodEnum<{
1786
+ OPEN: "OPEN";
1787
+ CLOSED: "CLOSED";
1788
+ }>;
1789
+ nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
1790
+ 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>>;
1791
+ integrationsStats: z.ZodObject<{
1792
+ integrationsCount: z.ZodCoercedNumber<unknown>;
1793
+ pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
1794
+ erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
1795
+ activationRequestsCount: z.ZodCoercedNumber<unknown>;
1796
+ cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
1797
+ }, z.core.$strip>;
1798
+ createdAt: z.ZodString;
1799
+ updatedAt: z.ZodString;
1800
+ }, z.core.$strip>;
1801
+ role: z.ZodEnum<{
1802
+ ROLE_ADMIN: "ROLE_ADMIN";
1803
+ ROLE_READER: "ROLE_READER";
1804
+ }>;
1805
+ }, z.core.$strip>;
1806
+ readonly paginationDefaultEnabled = false;
1606
1807
  private readonly userId;
1607
1808
  constructor(userId: string, options?: {
1608
1809
  query?: GetPointOfSaleUsersFromUserQueryParams;
1609
1810
  });
1610
1811
  getPath(): string;
1611
- parseResponse(data: unknown): Array<Omit<PointOfSaleUser, 'user'>>;
1612
1812
  }
1613
1813
 
1614
1814
  declare const updatePointOfSaleUserInputSchema: z.ZodObject<{
@@ -2267,9 +2467,9 @@ declare const getAvailablePointOfSaleDeliveryTimesResponseSchema: z.ZodArray<z.Z
2267
2467
  }, z.core.$strip>>;
2268
2468
  type GetAvailablePointOfSaleDeliveryTimesResponse = z.infer<typeof getAvailablePointOfSaleDeliveryTimesResponseSchema>;
2269
2469
  declare class GetAvailablePointOfSaleDeliveryTimes extends AbstractApiRequest<typeof getAvailablePointOfSaleDeliveryTimesInputSchema, typeof getAvailablePointOfSaleDeliveryTimesResponseSchema, GetAvailablePointOfSaleDeliveryTimesQueryParams> {
2270
- readonly method = "GET";
2271
- readonly contentType = "application/json";
2272
- readonly accept = "application/json";
2470
+ readonly method: "GET";
2471
+ readonly contentType: "application/json";
2472
+ readonly accept: "application/json";
2273
2473
  readonly inputSchema: z.ZodUndefined;
2274
2474
  readonly outputSchema: z.ZodArray<z.ZodObject<{
2275
2475
  start: z.ZodString;
@@ -2310,7 +2510,6 @@ declare class GetAvailablePointOfSaleDeliveryTimes extends AbstractApiRequest<ty
2310
2510
  query: GetAvailablePointOfSaleDeliveryTimesQueryParams;
2311
2511
  });
2312
2512
  getPath(): string;
2313
- parseResponse(data: unknown): GetAvailablePointOfSaleDeliveryTimesResponse;
2314
2513
  }
2315
2514
 
2316
2515
  declare const getAvailablePointOfSaleTakeAwayTimesQuerySchema: z.ZodObject<{
@@ -2348,9 +2547,9 @@ declare const getAvailablePointOfSaleTakeAwayTimesResponseSchema: z.ZodArray<z.Z
2348
2547
  }, z.core.$strip>>;
2349
2548
  type GetAvailablePointOfSaleTakeAwayTimesResponse = z.infer<typeof getAvailablePointOfSaleTakeAwayTimesResponseSchema>;
2350
2549
  declare class GetAvailablePointOfSaleTakeAwayTimes extends AbstractApiRequest<typeof getAvailablePointOfSaleTakeAwayTimesInputSchema, typeof getAvailablePointOfSaleTakeAwayTimesResponseSchema, GetAvailablePointOfSaleTakeAwayTimesQueryParams> {
2351
- readonly method = "GET";
2352
- readonly contentType = "application/json";
2353
- readonly accept = "application/json";
2550
+ readonly method: "GET";
2551
+ readonly contentType: "application/json";
2552
+ readonly accept: "application/json";
2354
2553
  readonly inputSchema: z.ZodUndefined;
2355
2554
  readonly outputSchema: z.ZodArray<z.ZodObject<{
2356
2555
  start: z.ZodString;
@@ -2388,7 +2587,6 @@ declare class GetAvailablePointOfSaleTakeAwayTimes extends AbstractApiRequest<ty
2388
2587
  query: GetAvailablePointOfSaleTakeAwayTimesQueryParams;
2389
2588
  });
2390
2589
  getPath(): string;
2391
- parseResponse(data: unknown): GetAvailablePointOfSaleTakeAwayTimesResponse;
2392
2590
  }
2393
2591
 
2394
2592
  declare const getCompanyPointOfSalesQuerySchema: z.ZodObject<{
@@ -2454,9 +2652,9 @@ declare const getCompanyPointOfSalesResponseSchema: z.ZodArray<z.ZodObject<{
2454
2652
  }, z.core.$strip>>;
2455
2653
  type GetCompanyPointOfSalesResponse = z.infer<typeof getCompanyPointOfSalesResponseSchema>;
2456
2654
  declare class GetCompanyPointOfSales extends AbstractApiRequest<typeof getCompanyPointOfSalesInputSchema, typeof getCompanyPointOfSalesResponseSchema, GetCompanyPointOfSalesQueryParams> {
2457
- readonly method = "GET";
2458
- readonly contentType = "application/json";
2459
- readonly accept = "application/json";
2655
+ readonly method: "GET";
2656
+ readonly contentType: "application/json";
2657
+ readonly accept: "application/json";
2460
2658
  readonly inputSchema: z.ZodUndefined;
2461
2659
  readonly outputSchema: z.ZodArray<z.ZodObject<{
2462
2660
  id: z.ZodString;
@@ -2517,12 +2715,47 @@ declare class GetCompanyPointOfSales extends AbstractApiRequest<typeof getCompan
2517
2715
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2518
2716
  }, z.core.$strip>;
2519
2717
  readonly headersSchema: undefined;
2718
+ readonly listItemSchema: z.ZodObject<{
2719
+ id: z.ZodString;
2720
+ name: z.ZodString;
2721
+ address: z.ZodObject<{
2722
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2723
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2724
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2725
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2727
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2728
+ }, z.core.$strip>;
2729
+ timezone: z.ZodString;
2730
+ location: z.ZodObject<{
2731
+ latitude: z.ZodNumber;
2732
+ longitude: z.ZodNumber;
2733
+ }, z.core.$strip>;
2734
+ capabilities: z.ZodArray<z.ZodEnum<{
2735
+ DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
2736
+ }>>;
2737
+ openingStatus: z.ZodEnum<{
2738
+ OPEN: "OPEN";
2739
+ CLOSED: "CLOSED";
2740
+ }>;
2741
+ nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
2742
+ 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>>;
2743
+ integrationsStats: z.ZodObject<{
2744
+ integrationsCount: z.ZodCoercedNumber<unknown>;
2745
+ pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
2746
+ erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
2747
+ activationRequestsCount: z.ZodCoercedNumber<unknown>;
2748
+ cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
2749
+ }, z.core.$strip>;
2750
+ createdAt: z.ZodString;
2751
+ updatedAt: z.ZodString;
2752
+ }, z.core.$strip>;
2753
+ readonly paginationDefaultEnabled = false;
2520
2754
  private readonly companyId;
2521
2755
  constructor(companyId: string, options?: {
2522
2756
  query?: GetCompanyPointOfSalesQueryParams;
2523
2757
  });
2524
2758
  getPath(): string;
2525
- parseResponse(data: unknown): PointOfSale[];
2526
2759
  }
2527
2760
 
2528
2761
  declare const getPointOfSaleDetailsInputSchema: z.ZodUndefined;
@@ -2803,9 +3036,9 @@ declare const getPointOfSaleMenuVersionsResponseSchema: z.ZodObject<{
2803
3036
  }, z.core.$strip>;
2804
3037
  type GetPointOfSaleMenuVersionsResponse = z.infer<typeof getPointOfSaleMenuVersionsResponseSchema>;
2805
3038
  declare class GetPointOfSaleMenuVersions extends AbstractApiRequest<typeof getPointOfSaleMenuVersionsInputSchema, typeof getPointOfSaleMenuVersionsResponseSchema, GetPointOfSaleMenuVersionsQueryParams> {
2806
- readonly method = "GET";
2807
- readonly contentType = "application/json";
2808
- readonly accept = "application/json";
3039
+ readonly method: "GET";
3040
+ readonly contentType: "application/json";
3041
+ readonly accept: "application/json";
2809
3042
  readonly inputSchema: z.ZodUndefined;
2810
3043
  readonly outputSchema: z.ZodObject<{
2811
3044
  data: z.ZodArray<z.ZodObject<{
@@ -2828,12 +3061,19 @@ declare class GetPointOfSaleMenuVersions extends AbstractApiRequest<typeof getPo
2828
3061
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2829
3062
  }, z.core.$strip>;
2830
3063
  readonly headersSchema: undefined;
3064
+ readonly listItemSchema: z.ZodObject<{
3065
+ id: z.ZodString;
3066
+ contentUrl: z.ZodString;
3067
+ filePath: z.ZodString;
3068
+ createdAt: z.ZodString;
3069
+ updatedAt: z.ZodString;
3070
+ }, z.core.$strip>;
3071
+ readonly paginationDefaultEnabled = true;
2831
3072
  private readonly pointOfSaleId;
2832
3073
  constructor(pointOfSaleId: string, options?: {
2833
3074
  query?: GetPointOfSaleMenuVersionsQueryParams;
2834
3075
  });
2835
3076
  getPath(): string;
2836
- parseResponse(data: unknown, rawResponse: Response): Paginated<MenuVersion>;
2837
3077
  }
2838
3078
 
2839
3079
  declare const getPointOfSalesQuerySchema: z.ZodObject<{
@@ -2909,9 +3149,9 @@ declare const getPointOfSalesResponseSchema: z.ZodObject<{
2909
3149
  }, z.core.$strip>;
2910
3150
  type GetPointOfSalesResponse = z.infer<typeof getPointOfSalesResponseSchema>;
2911
3151
  declare class GetPointOfSales extends AbstractApiRequest<typeof getPointOfSalesInputSchema, typeof getPointOfSalesResponseSchema, GetPointOfSalesQueryParams> {
2912
- readonly method = "GET";
2913
- readonly contentType = "application/json";
2914
- readonly accept = "application/json";
3152
+ readonly method: "GET";
3153
+ readonly contentType: "application/json";
3154
+ readonly accept: "application/json";
2915
3155
  readonly inputSchema: z.ZodUndefined;
2916
3156
  readonly outputSchema: z.ZodObject<{
2917
3157
  data: z.ZodArray<z.ZodObject<{
@@ -2982,11 +3222,46 @@ declare class GetPointOfSales extends AbstractApiRequest<typeof getPointOfSalesI
2982
3222
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2983
3223
  }, z.core.$strip>;
2984
3224
  readonly headersSchema: undefined;
3225
+ readonly listItemSchema: z.ZodObject<{
3226
+ id: z.ZodString;
3227
+ name: z.ZodString;
3228
+ address: z.ZodObject<{
3229
+ line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3230
+ line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3231
+ city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3232
+ region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3233
+ postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3234
+ country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3235
+ }, z.core.$strip>;
3236
+ timezone: z.ZodString;
3237
+ location: z.ZodObject<{
3238
+ latitude: z.ZodNumber;
3239
+ longitude: z.ZodNumber;
3240
+ }, z.core.$strip>;
3241
+ capabilities: z.ZodArray<z.ZodEnum<{
3242
+ DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
3243
+ }>>;
3244
+ openingStatus: z.ZodEnum<{
3245
+ OPEN: "OPEN";
3246
+ CLOSED: "CLOSED";
3247
+ }>;
3248
+ nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
3249
+ 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>>;
3250
+ integrationsStats: z.ZodObject<{
3251
+ integrationsCount: z.ZodCoercedNumber<unknown>;
3252
+ pendingIntegrationsCount: z.ZodCoercedNumber<unknown>;
3253
+ erroringIntegrationsCount: z.ZodCoercedNumber<unknown>;
3254
+ activationRequestsCount: z.ZodCoercedNumber<unknown>;
3255
+ cancellationRequestsCount: z.ZodCoercedNumber<unknown>;
3256
+ }, z.core.$strip>;
3257
+ createdAt: z.ZodString;
3258
+ updatedAt: z.ZodString;
3259
+ }, z.core.$strip>;
3260
+ readonly paginationDefaultEnabled = true;
2985
3261
  constructor(options?: {
2986
3262
  query?: GetPointOfSalesQueryParams;
2987
3263
  });
2988
3264
  getPath(): string;
2989
- parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSale>;
2990
3265
  }
2991
3266
 
2992
3267
  declare const updatePointOfSaleInputSchema: z.ZodObject<{
@@ -3591,9 +3866,9 @@ declare const getPointOfSaleTimeOverridesResponseSchema: z.ZodObject<{
3591
3866
  }, z.core.$strip>;
3592
3867
  type GetPointOfSaleTimeOverridesResponse = z.infer<typeof getPointOfSaleTimeOverridesResponseSchema>;
3593
3868
  declare class GetPointOfSaleTimeOverrides extends AbstractApiRequest<typeof getPointOfSaleTimeOverridesInputSchema, typeof getPointOfSaleTimeOverridesResponseSchema, GetPointOfSaleTimeOverridesQueryParams> {
3594
- readonly method = "GET";
3595
- readonly contentType = "application/json";
3596
- readonly accept = "application/json";
3869
+ readonly method: "GET";
3870
+ readonly contentType: "application/json";
3871
+ readonly accept: "application/json";
3597
3872
  readonly inputSchema: z.ZodUndefined;
3598
3873
  readonly outputSchema: z.ZodObject<{
3599
3874
  data: z.ZodArray<z.ZodObject<{
@@ -3652,11 +3927,30 @@ declare class GetPointOfSaleTimeOverrides extends AbstractApiRequest<typeof getP
3652
3927
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3653
3928
  }, z.core.$strip>;
3654
3929
  readonly headersSchema: undefined;
3930
+ readonly listItemSchema: z.ZodObject<{
3931
+ id: z.ZodString;
3932
+ date: z.ZodString;
3933
+ openingTimeSettings: z.ZodArray<z.ZodObject<{
3934
+ startTime: z.ZodString;
3935
+ endTime: z.ZodString;
3936
+ }, z.core.$strip>>;
3937
+ deliveryTimeSettings: z.ZodArray<z.ZodObject<{
3938
+ startTime: z.ZodString;
3939
+ endTime: z.ZodString;
3940
+ availableCouriers: z.ZodCoercedNumber<unknown>;
3941
+ }, z.core.$strip>>;
3942
+ takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
3943
+ startTime: z.ZodString;
3944
+ endTime: z.ZodString;
3945
+ }, z.core.$strip>>;
3946
+ createdAt: z.ZodString;
3947
+ updatedAt: z.ZodString;
3948
+ }, z.core.$strip>;
3949
+ readonly paginationDefaultEnabled = true;
3655
3950
  constructor(options?: {
3656
3951
  query?: GetPointOfSaleTimeOverridesQueryParams;
3657
3952
  });
3658
3953
  getPath(): string;
3659
- parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleTimeOverride>;
3660
3954
  }
3661
3955
 
3662
3956
  declare const getPointOfSaleTimeOverridesFromPointOfSaleQuerySchema: z.ZodObject<{
@@ -3720,9 +4014,9 @@ declare const getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema: z.ZodObj
3720
4014
  }, z.core.$strip>;
3721
4015
  type GetPointOfSaleTimeOverridesFromPointOfSaleResponse = z.infer<typeof getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema>;
3722
4016
  declare class GetPointOfSaleTimeOverridesFromPointOfSale extends AbstractApiRequest<typeof getPointOfSaleTimeOverridesFromPointOfSaleInputSchema, typeof getPointOfSaleTimeOverridesFromPointOfSaleResponseSchema, GetPointOfSaleTimeOverridesFromPointOfSaleQueryParams> {
3723
- readonly method = "GET";
3724
- readonly contentType = "application/json";
3725
- readonly accept = "application/json";
4017
+ readonly method: "GET";
4018
+ readonly contentType: "application/json";
4019
+ readonly accept: "application/json";
3726
4020
  readonly inputSchema: z.ZodUndefined;
3727
4021
  readonly outputSchema: z.ZodObject<{
3728
4022
  data: z.ZodArray<z.ZodObject<{
@@ -3781,12 +4075,31 @@ declare class GetPointOfSaleTimeOverridesFromPointOfSale extends AbstractApiRequ
3781
4075
  page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
3782
4076
  }, z.core.$strip>;
3783
4077
  readonly headersSchema: undefined;
4078
+ readonly listItemSchema: z.ZodObject<{
4079
+ id: z.ZodString;
4080
+ date: z.ZodString;
4081
+ openingTimeSettings: z.ZodArray<z.ZodObject<{
4082
+ startTime: z.ZodString;
4083
+ endTime: z.ZodString;
4084
+ }, z.core.$strip>>;
4085
+ deliveryTimeSettings: z.ZodArray<z.ZodObject<{
4086
+ startTime: z.ZodString;
4087
+ endTime: z.ZodString;
4088
+ availableCouriers: z.ZodCoercedNumber<unknown>;
4089
+ }, z.core.$strip>>;
4090
+ takeAwayTimeSettings: z.ZodArray<z.ZodObject<{
4091
+ startTime: z.ZodString;
4092
+ endTime: z.ZodString;
4093
+ }, z.core.$strip>>;
4094
+ createdAt: z.ZodString;
4095
+ updatedAt: z.ZodString;
4096
+ }, z.core.$strip>;
4097
+ readonly paginationDefaultEnabled = true;
3784
4098
  private readonly pointOfSaleId;
3785
4099
  constructor(pointOfSaleId: string, options?: {
3786
4100
  query?: GetPointOfSaleTimeOverridesFromPointOfSaleQueryParams;
3787
4101
  });
3788
4102
  getPath(): string;
3789
- parseResponse(data: unknown, rawResponse: Response): Paginated<PointOfSaleTimeOverride>;
3790
4103
  }
3791
4104
 
3792
4105
  declare const updatePointOfSaleTimeOverrideInputSchema: z.ZodObject<{