@deliverart/sdk-js-order 2.1.2 → 2.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/dist/index.cjs +1 -1
- package/dist/index.d.cts +10 -280
- package/dist/index.d.ts +10 -280
- package/dist/index.js +2 -2
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -11475,7 +11475,7 @@ var bundleSchema = external_exports.object({
|
|
|
11475
11475
|
updatedAt: import_sdk_js_global_types2.datetimeSchema
|
|
11476
11476
|
});
|
|
11477
11477
|
var bundleDetailsSchema = bundleSchema.extend({
|
|
11478
|
-
pointOfSale: import_sdk_js_point_of_sale.
|
|
11478
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema
|
|
11479
11479
|
});
|
|
11480
11480
|
var writableBundleSchema = bundleDetailsSchema.pick({
|
|
11481
11481
|
pointOfSale: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -738,65 +738,11 @@ declare const bundleDetailsSchema: z.ZodObject<{
|
|
|
738
738
|
}, z.core.$strip>>;
|
|
739
739
|
createdAt: z.ZodString;
|
|
740
740
|
updatedAt: z.ZodString;
|
|
741
|
-
pointOfSale: z.
|
|
742
|
-
id: z.ZodString;
|
|
743
|
-
name: z.ZodString;
|
|
744
|
-
address: z.ZodObject<{
|
|
745
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
748
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
749
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
750
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
|
-
}, z.core.$strip>;
|
|
752
|
-
timezone: z.ZodString;
|
|
753
|
-
location: z.ZodObject<{
|
|
754
|
-
latitude: z.ZodNumber;
|
|
755
|
-
longitude: z.ZodNumber;
|
|
756
|
-
}, z.core.$strip>;
|
|
757
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
758
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
759
|
-
}>>;
|
|
760
|
-
openingStatus: z.ZodEnum<{
|
|
761
|
-
OPEN: "OPEN";
|
|
762
|
-
CLOSED: "CLOSED";
|
|
763
|
-
}>;
|
|
764
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
765
|
-
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>>;
|
|
766
|
-
createdAt: z.ZodString;
|
|
767
|
-
updatedAt: z.ZodString;
|
|
768
|
-
}, z.core.$strip>;
|
|
741
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
769
742
|
}, z.core.$strip>;
|
|
770
743
|
type BundleDetails = z.infer<typeof bundleDetailsSchema>;
|
|
771
744
|
declare const writableBundleSchema: z.ZodObject<{
|
|
772
|
-
pointOfSale: z.
|
|
773
|
-
id: z.ZodString;
|
|
774
|
-
name: z.ZodString;
|
|
775
|
-
address: z.ZodObject<{
|
|
776
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
777
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
778
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
780
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
781
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
782
|
-
}, z.core.$strip>;
|
|
783
|
-
timezone: z.ZodString;
|
|
784
|
-
location: z.ZodObject<{
|
|
785
|
-
latitude: z.ZodNumber;
|
|
786
|
-
longitude: z.ZodNumber;
|
|
787
|
-
}, z.core.$strip>;
|
|
788
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
789
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
790
|
-
}>>;
|
|
791
|
-
openingStatus: z.ZodEnum<{
|
|
792
|
-
OPEN: "OPEN";
|
|
793
|
-
CLOSED: "CLOSED";
|
|
794
|
-
}>;
|
|
795
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
796
|
-
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>>;
|
|
797
|
-
createdAt: z.ZodString;
|
|
798
|
-
updatedAt: z.ZodString;
|
|
799
|
-
}, z.core.$strip>;
|
|
745
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
800
746
|
deliverable: z.ZodBoolean;
|
|
801
747
|
ready: z.ZodBoolean;
|
|
802
748
|
}, z.core.$strip>;
|
|
@@ -1191,34 +1137,7 @@ declare const orderMenuItemModifiersQuerySchema: z.ZodObject<{
|
|
|
1191
1137
|
type OrderMenuItemModifiersQueryParams = z.infer<typeof orderMenuItemModifiersQuerySchema>;
|
|
1192
1138
|
|
|
1193
1139
|
declare const createBundleInputSchema: z.ZodObject<{
|
|
1194
|
-
pointOfSale: z.ZodNonOptional<z.
|
|
1195
|
-
id: z.ZodString;
|
|
1196
|
-
name: z.ZodString;
|
|
1197
|
-
address: z.ZodObject<{
|
|
1198
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1199
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1200
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1201
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1204
|
-
}, z.core.$strip>;
|
|
1205
|
-
timezone: z.ZodString;
|
|
1206
|
-
location: z.ZodObject<{
|
|
1207
|
-
latitude: z.ZodNumber;
|
|
1208
|
-
longitude: z.ZodNumber;
|
|
1209
|
-
}, z.core.$strip>;
|
|
1210
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1211
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1212
|
-
}>>;
|
|
1213
|
-
openingStatus: z.ZodEnum<{
|
|
1214
|
-
OPEN: "OPEN";
|
|
1215
|
-
CLOSED: "CLOSED";
|
|
1216
|
-
}>;
|
|
1217
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1218
|
-
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>>;
|
|
1219
|
-
createdAt: z.ZodString;
|
|
1220
|
-
updatedAt: z.ZodString;
|
|
1221
|
-
}, z.core.$strip>>;
|
|
1140
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1222
1141
|
deliverable: z.ZodNonOptional<z.ZodBoolean>;
|
|
1223
1142
|
ready: z.ZodNonOptional<z.ZodBoolean>;
|
|
1224
1143
|
}, z.core.$strip>;
|
|
@@ -1345,34 +1264,7 @@ declare const createBundleResponseSchema: z.ZodObject<{
|
|
|
1345
1264
|
}, z.core.$strip>>;
|
|
1346
1265
|
createdAt: z.ZodString;
|
|
1347
1266
|
updatedAt: z.ZodString;
|
|
1348
|
-
pointOfSale: z.
|
|
1349
|
-
id: z.ZodString;
|
|
1350
|
-
name: z.ZodString;
|
|
1351
|
-
address: z.ZodObject<{
|
|
1352
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1353
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1354
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1355
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1356
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1357
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1358
|
-
}, z.core.$strip>;
|
|
1359
|
-
timezone: z.ZodString;
|
|
1360
|
-
location: z.ZodObject<{
|
|
1361
|
-
latitude: z.ZodNumber;
|
|
1362
|
-
longitude: z.ZodNumber;
|
|
1363
|
-
}, z.core.$strip>;
|
|
1364
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1365
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1366
|
-
}>>;
|
|
1367
|
-
openingStatus: z.ZodEnum<{
|
|
1368
|
-
OPEN: "OPEN";
|
|
1369
|
-
CLOSED: "CLOSED";
|
|
1370
|
-
}>;
|
|
1371
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1372
|
-
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>>;
|
|
1373
|
-
createdAt: z.ZodString;
|
|
1374
|
-
updatedAt: z.ZodString;
|
|
1375
|
-
}, z.core.$strip>;
|
|
1267
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1376
1268
|
}, z.core.$strip>;
|
|
1377
1269
|
type CreateBundleResponse = z.output<typeof createBundleResponseSchema>;
|
|
1378
1270
|
declare class CreateBundle extends AbstractApiRequest<typeof createBundleInputSchema, typeof createBundleResponseSchema> {
|
|
@@ -1380,34 +1272,7 @@ declare class CreateBundle extends AbstractApiRequest<typeof createBundleInputSc
|
|
|
1380
1272
|
readonly contentType = "application/json";
|
|
1381
1273
|
readonly accept = "application/json";
|
|
1382
1274
|
readonly inputSchema: z.ZodObject<{
|
|
1383
|
-
pointOfSale: z.ZodNonOptional<z.
|
|
1384
|
-
id: z.ZodString;
|
|
1385
|
-
name: z.ZodString;
|
|
1386
|
-
address: z.ZodObject<{
|
|
1387
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1388
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1389
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1390
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1392
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1393
|
-
}, z.core.$strip>;
|
|
1394
|
-
timezone: z.ZodString;
|
|
1395
|
-
location: z.ZodObject<{
|
|
1396
|
-
latitude: z.ZodNumber;
|
|
1397
|
-
longitude: z.ZodNumber;
|
|
1398
|
-
}, z.core.$strip>;
|
|
1399
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1400
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1401
|
-
}>>;
|
|
1402
|
-
openingStatus: z.ZodEnum<{
|
|
1403
|
-
OPEN: "OPEN";
|
|
1404
|
-
CLOSED: "CLOSED";
|
|
1405
|
-
}>;
|
|
1406
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1407
|
-
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>>;
|
|
1408
|
-
createdAt: z.ZodString;
|
|
1409
|
-
updatedAt: z.ZodString;
|
|
1410
|
-
}, z.core.$strip>>;
|
|
1275
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1411
1276
|
deliverable: z.ZodNonOptional<z.ZodBoolean>;
|
|
1412
1277
|
ready: z.ZodNonOptional<z.ZodBoolean>;
|
|
1413
1278
|
}, z.core.$strip>;
|
|
@@ -1533,34 +1398,7 @@ declare class CreateBundle extends AbstractApiRequest<typeof createBundleInputSc
|
|
|
1533
1398
|
}, z.core.$strip>>;
|
|
1534
1399
|
createdAt: z.ZodString;
|
|
1535
1400
|
updatedAt: z.ZodString;
|
|
1536
|
-
pointOfSale: z.
|
|
1537
|
-
id: z.ZodString;
|
|
1538
|
-
name: z.ZodString;
|
|
1539
|
-
address: z.ZodObject<{
|
|
1540
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1541
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1542
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1543
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1544
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1545
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1546
|
-
}, z.core.$strip>;
|
|
1547
|
-
timezone: z.ZodString;
|
|
1548
|
-
location: z.ZodObject<{
|
|
1549
|
-
latitude: z.ZodNumber;
|
|
1550
|
-
longitude: z.ZodNumber;
|
|
1551
|
-
}, z.core.$strip>;
|
|
1552
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1553
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1554
|
-
}>>;
|
|
1555
|
-
openingStatus: z.ZodEnum<{
|
|
1556
|
-
OPEN: "OPEN";
|
|
1557
|
-
CLOSED: "CLOSED";
|
|
1558
|
-
}>;
|
|
1559
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1560
|
-
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>>;
|
|
1561
|
-
createdAt: z.ZodString;
|
|
1562
|
-
updatedAt: z.ZodString;
|
|
1563
|
-
}, z.core.$strip>;
|
|
1401
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1564
1402
|
}, z.core.$strip>;
|
|
1565
1403
|
readonly querySchema: undefined;
|
|
1566
1404
|
readonly headersSchema: undefined;
|
|
@@ -1707,34 +1545,7 @@ declare const getBundleDetailsResponseSchema: z.ZodObject<{
|
|
|
1707
1545
|
}, z.core.$strip>>;
|
|
1708
1546
|
createdAt: z.ZodString;
|
|
1709
1547
|
updatedAt: z.ZodString;
|
|
1710
|
-
pointOfSale: z.
|
|
1711
|
-
id: z.ZodString;
|
|
1712
|
-
name: z.ZodString;
|
|
1713
|
-
address: z.ZodObject<{
|
|
1714
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1715
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1716
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1717
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1718
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1719
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1720
|
-
}, z.core.$strip>;
|
|
1721
|
-
timezone: z.ZodString;
|
|
1722
|
-
location: z.ZodObject<{
|
|
1723
|
-
latitude: z.ZodNumber;
|
|
1724
|
-
longitude: z.ZodNumber;
|
|
1725
|
-
}, z.core.$strip>;
|
|
1726
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1727
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1728
|
-
}>>;
|
|
1729
|
-
openingStatus: z.ZodEnum<{
|
|
1730
|
-
OPEN: "OPEN";
|
|
1731
|
-
CLOSED: "CLOSED";
|
|
1732
|
-
}>;
|
|
1733
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1734
|
-
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>>;
|
|
1735
|
-
createdAt: z.ZodString;
|
|
1736
|
-
updatedAt: z.ZodString;
|
|
1737
|
-
}, z.core.$strip>;
|
|
1548
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1738
1549
|
}, z.core.$strip>;
|
|
1739
1550
|
type GetBundleDetailsResponse = BundleDetails;
|
|
1740
1551
|
declare class GetBundleDetails extends AbstractApiRequest<typeof getBundleDetailsInputSchema, typeof getBundleDetailsResponseSchema> {
|
|
@@ -1864,34 +1675,7 @@ declare class GetBundleDetails extends AbstractApiRequest<typeof getBundleDetail
|
|
|
1864
1675
|
}, z.core.$strip>>;
|
|
1865
1676
|
createdAt: z.ZodString;
|
|
1866
1677
|
updatedAt: z.ZodString;
|
|
1867
|
-
pointOfSale: z.
|
|
1868
|
-
id: z.ZodString;
|
|
1869
|
-
name: z.ZodString;
|
|
1870
|
-
address: z.ZodObject<{
|
|
1871
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1872
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1873
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1874
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1875
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1876
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1877
|
-
}, z.core.$strip>;
|
|
1878
|
-
timezone: z.ZodString;
|
|
1879
|
-
location: z.ZodObject<{
|
|
1880
|
-
latitude: z.ZodNumber;
|
|
1881
|
-
longitude: z.ZodNumber;
|
|
1882
|
-
}, z.core.$strip>;
|
|
1883
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1884
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1885
|
-
}>>;
|
|
1886
|
-
openingStatus: z.ZodEnum<{
|
|
1887
|
-
OPEN: "OPEN";
|
|
1888
|
-
CLOSED: "CLOSED";
|
|
1889
|
-
}>;
|
|
1890
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1891
|
-
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>>;
|
|
1892
|
-
createdAt: z.ZodString;
|
|
1893
|
-
updatedAt: z.ZodString;
|
|
1894
|
-
}, z.core.$strip>;
|
|
1678
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1895
1679
|
}, z.core.$strip>;
|
|
1896
1680
|
readonly querySchema: undefined;
|
|
1897
1681
|
readonly headersSchema: undefined;
|
|
@@ -2464,34 +2248,7 @@ declare const updateBundleResponseSchema: z.ZodObject<{
|
|
|
2464
2248
|
}, z.core.$strip>>;
|
|
2465
2249
|
createdAt: z.ZodString;
|
|
2466
2250
|
updatedAt: z.ZodString;
|
|
2467
|
-
pointOfSale: z.
|
|
2468
|
-
id: z.ZodString;
|
|
2469
|
-
name: z.ZodString;
|
|
2470
|
-
address: z.ZodObject<{
|
|
2471
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2472
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2473
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2474
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2475
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2476
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2477
|
-
}, z.core.$strip>;
|
|
2478
|
-
timezone: z.ZodString;
|
|
2479
|
-
location: z.ZodObject<{
|
|
2480
|
-
latitude: z.ZodNumber;
|
|
2481
|
-
longitude: z.ZodNumber;
|
|
2482
|
-
}, z.core.$strip>;
|
|
2483
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
2484
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
2485
|
-
}>>;
|
|
2486
|
-
openingStatus: z.ZodEnum<{
|
|
2487
|
-
OPEN: "OPEN";
|
|
2488
|
-
CLOSED: "CLOSED";
|
|
2489
|
-
}>;
|
|
2490
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
2491
|
-
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>>;
|
|
2492
|
-
createdAt: z.ZodString;
|
|
2493
|
-
updatedAt: z.ZodString;
|
|
2494
|
-
}, z.core.$strip>;
|
|
2251
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2495
2252
|
}, z.core.$strip>;
|
|
2496
2253
|
type UpdateBundleResponse = BundleDetails;
|
|
2497
2254
|
declare class UpdateBundle extends AbstractApiRequest<typeof updateBundleInputSchema, typeof updateBundleResponseSchema> {
|
|
@@ -2624,34 +2381,7 @@ declare class UpdateBundle extends AbstractApiRequest<typeof updateBundleInputSc
|
|
|
2624
2381
|
}, z.core.$strip>>;
|
|
2625
2382
|
createdAt: z.ZodString;
|
|
2626
2383
|
updatedAt: z.ZodString;
|
|
2627
|
-
pointOfSale: z.
|
|
2628
|
-
id: z.ZodString;
|
|
2629
|
-
name: z.ZodString;
|
|
2630
|
-
address: z.ZodObject<{
|
|
2631
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2632
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2633
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2634
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2635
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2636
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2637
|
-
}, z.core.$strip>;
|
|
2638
|
-
timezone: z.ZodString;
|
|
2639
|
-
location: z.ZodObject<{
|
|
2640
|
-
latitude: z.ZodNumber;
|
|
2641
|
-
longitude: z.ZodNumber;
|
|
2642
|
-
}, z.core.$strip>;
|
|
2643
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
2644
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
2645
|
-
}>>;
|
|
2646
|
-
openingStatus: z.ZodEnum<{
|
|
2647
|
-
OPEN: "OPEN";
|
|
2648
|
-
CLOSED: "CLOSED";
|
|
2649
|
-
}>;
|
|
2650
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
2651
|
-
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>>;
|
|
2652
|
-
createdAt: z.ZodString;
|
|
2653
|
-
updatedAt: z.ZodString;
|
|
2654
|
-
}, z.core.$strip>;
|
|
2384
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2655
2385
|
}, z.core.$strip>;
|
|
2656
2386
|
readonly querySchema: undefined;
|
|
2657
2387
|
readonly headersSchema: undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -738,65 +738,11 @@ declare const bundleDetailsSchema: z.ZodObject<{
|
|
|
738
738
|
}, z.core.$strip>>;
|
|
739
739
|
createdAt: z.ZodString;
|
|
740
740
|
updatedAt: z.ZodString;
|
|
741
|
-
pointOfSale: z.
|
|
742
|
-
id: z.ZodString;
|
|
743
|
-
name: z.ZodString;
|
|
744
|
-
address: z.ZodObject<{
|
|
745
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
746
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
747
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
748
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
749
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
750
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
751
|
-
}, z.core.$strip>;
|
|
752
|
-
timezone: z.ZodString;
|
|
753
|
-
location: z.ZodObject<{
|
|
754
|
-
latitude: z.ZodNumber;
|
|
755
|
-
longitude: z.ZodNumber;
|
|
756
|
-
}, z.core.$strip>;
|
|
757
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
758
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
759
|
-
}>>;
|
|
760
|
-
openingStatus: z.ZodEnum<{
|
|
761
|
-
OPEN: "OPEN";
|
|
762
|
-
CLOSED: "CLOSED";
|
|
763
|
-
}>;
|
|
764
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
765
|
-
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>>;
|
|
766
|
-
createdAt: z.ZodString;
|
|
767
|
-
updatedAt: z.ZodString;
|
|
768
|
-
}, z.core.$strip>;
|
|
741
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
769
742
|
}, z.core.$strip>;
|
|
770
743
|
type BundleDetails = z.infer<typeof bundleDetailsSchema>;
|
|
771
744
|
declare const writableBundleSchema: z.ZodObject<{
|
|
772
|
-
pointOfSale: z.
|
|
773
|
-
id: z.ZodString;
|
|
774
|
-
name: z.ZodString;
|
|
775
|
-
address: z.ZodObject<{
|
|
776
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
777
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
778
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
779
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
780
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
781
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
782
|
-
}, z.core.$strip>;
|
|
783
|
-
timezone: z.ZodString;
|
|
784
|
-
location: z.ZodObject<{
|
|
785
|
-
latitude: z.ZodNumber;
|
|
786
|
-
longitude: z.ZodNumber;
|
|
787
|
-
}, z.core.$strip>;
|
|
788
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
789
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
790
|
-
}>>;
|
|
791
|
-
openingStatus: z.ZodEnum<{
|
|
792
|
-
OPEN: "OPEN";
|
|
793
|
-
CLOSED: "CLOSED";
|
|
794
|
-
}>;
|
|
795
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
796
|
-
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>>;
|
|
797
|
-
createdAt: z.ZodString;
|
|
798
|
-
updatedAt: z.ZodString;
|
|
799
|
-
}, z.core.$strip>;
|
|
745
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
800
746
|
deliverable: z.ZodBoolean;
|
|
801
747
|
ready: z.ZodBoolean;
|
|
802
748
|
}, z.core.$strip>;
|
|
@@ -1191,34 +1137,7 @@ declare const orderMenuItemModifiersQuerySchema: z.ZodObject<{
|
|
|
1191
1137
|
type OrderMenuItemModifiersQueryParams = z.infer<typeof orderMenuItemModifiersQuerySchema>;
|
|
1192
1138
|
|
|
1193
1139
|
declare const createBundleInputSchema: z.ZodObject<{
|
|
1194
|
-
pointOfSale: z.ZodNonOptional<z.
|
|
1195
|
-
id: z.ZodString;
|
|
1196
|
-
name: z.ZodString;
|
|
1197
|
-
address: z.ZodObject<{
|
|
1198
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1199
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1200
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1201
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1204
|
-
}, z.core.$strip>;
|
|
1205
|
-
timezone: z.ZodString;
|
|
1206
|
-
location: z.ZodObject<{
|
|
1207
|
-
latitude: z.ZodNumber;
|
|
1208
|
-
longitude: z.ZodNumber;
|
|
1209
|
-
}, z.core.$strip>;
|
|
1210
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1211
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1212
|
-
}>>;
|
|
1213
|
-
openingStatus: z.ZodEnum<{
|
|
1214
|
-
OPEN: "OPEN";
|
|
1215
|
-
CLOSED: "CLOSED";
|
|
1216
|
-
}>;
|
|
1217
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1218
|
-
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>>;
|
|
1219
|
-
createdAt: z.ZodString;
|
|
1220
|
-
updatedAt: z.ZodString;
|
|
1221
|
-
}, z.core.$strip>>;
|
|
1140
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1222
1141
|
deliverable: z.ZodNonOptional<z.ZodBoolean>;
|
|
1223
1142
|
ready: z.ZodNonOptional<z.ZodBoolean>;
|
|
1224
1143
|
}, z.core.$strip>;
|
|
@@ -1345,34 +1264,7 @@ declare const createBundleResponseSchema: z.ZodObject<{
|
|
|
1345
1264
|
}, z.core.$strip>>;
|
|
1346
1265
|
createdAt: z.ZodString;
|
|
1347
1266
|
updatedAt: z.ZodString;
|
|
1348
|
-
pointOfSale: z.
|
|
1349
|
-
id: z.ZodString;
|
|
1350
|
-
name: z.ZodString;
|
|
1351
|
-
address: z.ZodObject<{
|
|
1352
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1353
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1354
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1355
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1356
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1357
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1358
|
-
}, z.core.$strip>;
|
|
1359
|
-
timezone: z.ZodString;
|
|
1360
|
-
location: z.ZodObject<{
|
|
1361
|
-
latitude: z.ZodNumber;
|
|
1362
|
-
longitude: z.ZodNumber;
|
|
1363
|
-
}, z.core.$strip>;
|
|
1364
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1365
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1366
|
-
}>>;
|
|
1367
|
-
openingStatus: z.ZodEnum<{
|
|
1368
|
-
OPEN: "OPEN";
|
|
1369
|
-
CLOSED: "CLOSED";
|
|
1370
|
-
}>;
|
|
1371
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1372
|
-
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>>;
|
|
1373
|
-
createdAt: z.ZodString;
|
|
1374
|
-
updatedAt: z.ZodString;
|
|
1375
|
-
}, z.core.$strip>;
|
|
1267
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1376
1268
|
}, z.core.$strip>;
|
|
1377
1269
|
type CreateBundleResponse = z.output<typeof createBundleResponseSchema>;
|
|
1378
1270
|
declare class CreateBundle extends AbstractApiRequest<typeof createBundleInputSchema, typeof createBundleResponseSchema> {
|
|
@@ -1380,34 +1272,7 @@ declare class CreateBundle extends AbstractApiRequest<typeof createBundleInputSc
|
|
|
1380
1272
|
readonly contentType = "application/json";
|
|
1381
1273
|
readonly accept = "application/json";
|
|
1382
1274
|
readonly inputSchema: z.ZodObject<{
|
|
1383
|
-
pointOfSale: z.ZodNonOptional<z.
|
|
1384
|
-
id: z.ZodString;
|
|
1385
|
-
name: z.ZodString;
|
|
1386
|
-
address: z.ZodObject<{
|
|
1387
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1388
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1389
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1390
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1391
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1392
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1393
|
-
}, z.core.$strip>;
|
|
1394
|
-
timezone: z.ZodString;
|
|
1395
|
-
location: z.ZodObject<{
|
|
1396
|
-
latitude: z.ZodNumber;
|
|
1397
|
-
longitude: z.ZodNumber;
|
|
1398
|
-
}, z.core.$strip>;
|
|
1399
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1400
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1401
|
-
}>>;
|
|
1402
|
-
openingStatus: z.ZodEnum<{
|
|
1403
|
-
OPEN: "OPEN";
|
|
1404
|
-
CLOSED: "CLOSED";
|
|
1405
|
-
}>;
|
|
1406
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1407
|
-
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>>;
|
|
1408
|
-
createdAt: z.ZodString;
|
|
1409
|
-
updatedAt: z.ZodString;
|
|
1410
|
-
}, z.core.$strip>>;
|
|
1275
|
+
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
1411
1276
|
deliverable: z.ZodNonOptional<z.ZodBoolean>;
|
|
1412
1277
|
ready: z.ZodNonOptional<z.ZodBoolean>;
|
|
1413
1278
|
}, z.core.$strip>;
|
|
@@ -1533,34 +1398,7 @@ declare class CreateBundle extends AbstractApiRequest<typeof createBundleInputSc
|
|
|
1533
1398
|
}, z.core.$strip>>;
|
|
1534
1399
|
createdAt: z.ZodString;
|
|
1535
1400
|
updatedAt: z.ZodString;
|
|
1536
|
-
pointOfSale: z.
|
|
1537
|
-
id: z.ZodString;
|
|
1538
|
-
name: z.ZodString;
|
|
1539
|
-
address: z.ZodObject<{
|
|
1540
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1541
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1542
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1543
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1544
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1545
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1546
|
-
}, z.core.$strip>;
|
|
1547
|
-
timezone: z.ZodString;
|
|
1548
|
-
location: z.ZodObject<{
|
|
1549
|
-
latitude: z.ZodNumber;
|
|
1550
|
-
longitude: z.ZodNumber;
|
|
1551
|
-
}, z.core.$strip>;
|
|
1552
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1553
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1554
|
-
}>>;
|
|
1555
|
-
openingStatus: z.ZodEnum<{
|
|
1556
|
-
OPEN: "OPEN";
|
|
1557
|
-
CLOSED: "CLOSED";
|
|
1558
|
-
}>;
|
|
1559
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1560
|
-
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>>;
|
|
1561
|
-
createdAt: z.ZodString;
|
|
1562
|
-
updatedAt: z.ZodString;
|
|
1563
|
-
}, z.core.$strip>;
|
|
1401
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1564
1402
|
}, z.core.$strip>;
|
|
1565
1403
|
readonly querySchema: undefined;
|
|
1566
1404
|
readonly headersSchema: undefined;
|
|
@@ -1707,34 +1545,7 @@ declare const getBundleDetailsResponseSchema: z.ZodObject<{
|
|
|
1707
1545
|
}, z.core.$strip>>;
|
|
1708
1546
|
createdAt: z.ZodString;
|
|
1709
1547
|
updatedAt: z.ZodString;
|
|
1710
|
-
pointOfSale: z.
|
|
1711
|
-
id: z.ZodString;
|
|
1712
|
-
name: z.ZodString;
|
|
1713
|
-
address: z.ZodObject<{
|
|
1714
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1715
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1716
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1717
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1718
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1719
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1720
|
-
}, z.core.$strip>;
|
|
1721
|
-
timezone: z.ZodString;
|
|
1722
|
-
location: z.ZodObject<{
|
|
1723
|
-
latitude: z.ZodNumber;
|
|
1724
|
-
longitude: z.ZodNumber;
|
|
1725
|
-
}, z.core.$strip>;
|
|
1726
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1727
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1728
|
-
}>>;
|
|
1729
|
-
openingStatus: z.ZodEnum<{
|
|
1730
|
-
OPEN: "OPEN";
|
|
1731
|
-
CLOSED: "CLOSED";
|
|
1732
|
-
}>;
|
|
1733
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1734
|
-
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>>;
|
|
1735
|
-
createdAt: z.ZodString;
|
|
1736
|
-
updatedAt: z.ZodString;
|
|
1737
|
-
}, z.core.$strip>;
|
|
1548
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1738
1549
|
}, z.core.$strip>;
|
|
1739
1550
|
type GetBundleDetailsResponse = BundleDetails;
|
|
1740
1551
|
declare class GetBundleDetails extends AbstractApiRequest<typeof getBundleDetailsInputSchema, typeof getBundleDetailsResponseSchema> {
|
|
@@ -1864,34 +1675,7 @@ declare class GetBundleDetails extends AbstractApiRequest<typeof getBundleDetail
|
|
|
1864
1675
|
}, z.core.$strip>>;
|
|
1865
1676
|
createdAt: z.ZodString;
|
|
1866
1677
|
updatedAt: z.ZodString;
|
|
1867
|
-
pointOfSale: z.
|
|
1868
|
-
id: z.ZodString;
|
|
1869
|
-
name: z.ZodString;
|
|
1870
|
-
address: z.ZodObject<{
|
|
1871
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1872
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1873
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1874
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1875
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1876
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1877
|
-
}, z.core.$strip>;
|
|
1878
|
-
timezone: z.ZodString;
|
|
1879
|
-
location: z.ZodObject<{
|
|
1880
|
-
latitude: z.ZodNumber;
|
|
1881
|
-
longitude: z.ZodNumber;
|
|
1882
|
-
}, z.core.$strip>;
|
|
1883
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1884
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
1885
|
-
}>>;
|
|
1886
|
-
openingStatus: z.ZodEnum<{
|
|
1887
|
-
OPEN: "OPEN";
|
|
1888
|
-
CLOSED: "CLOSED";
|
|
1889
|
-
}>;
|
|
1890
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
1891
|
-
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>>;
|
|
1892
|
-
createdAt: z.ZodString;
|
|
1893
|
-
updatedAt: z.ZodString;
|
|
1894
|
-
}, z.core.$strip>;
|
|
1678
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1895
1679
|
}, z.core.$strip>;
|
|
1896
1680
|
readonly querySchema: undefined;
|
|
1897
1681
|
readonly headersSchema: undefined;
|
|
@@ -2464,34 +2248,7 @@ declare const updateBundleResponseSchema: z.ZodObject<{
|
|
|
2464
2248
|
}, z.core.$strip>>;
|
|
2465
2249
|
createdAt: z.ZodString;
|
|
2466
2250
|
updatedAt: z.ZodString;
|
|
2467
|
-
pointOfSale: z.
|
|
2468
|
-
id: z.ZodString;
|
|
2469
|
-
name: z.ZodString;
|
|
2470
|
-
address: z.ZodObject<{
|
|
2471
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2472
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2473
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2474
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2475
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2476
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2477
|
-
}, z.core.$strip>;
|
|
2478
|
-
timezone: z.ZodString;
|
|
2479
|
-
location: z.ZodObject<{
|
|
2480
|
-
latitude: z.ZodNumber;
|
|
2481
|
-
longitude: z.ZodNumber;
|
|
2482
|
-
}, z.core.$strip>;
|
|
2483
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
2484
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
2485
|
-
}>>;
|
|
2486
|
-
openingStatus: z.ZodEnum<{
|
|
2487
|
-
OPEN: "OPEN";
|
|
2488
|
-
CLOSED: "CLOSED";
|
|
2489
|
-
}>;
|
|
2490
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
2491
|
-
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>>;
|
|
2492
|
-
createdAt: z.ZodString;
|
|
2493
|
-
updatedAt: z.ZodString;
|
|
2494
|
-
}, z.core.$strip>;
|
|
2251
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2495
2252
|
}, z.core.$strip>;
|
|
2496
2253
|
type UpdateBundleResponse = BundleDetails;
|
|
2497
2254
|
declare class UpdateBundle extends AbstractApiRequest<typeof updateBundleInputSchema, typeof updateBundleResponseSchema> {
|
|
@@ -2624,34 +2381,7 @@ declare class UpdateBundle extends AbstractApiRequest<typeof updateBundleInputSc
|
|
|
2624
2381
|
}, z.core.$strip>>;
|
|
2625
2382
|
createdAt: z.ZodString;
|
|
2626
2383
|
updatedAt: z.ZodString;
|
|
2627
|
-
pointOfSale: z.
|
|
2628
|
-
id: z.ZodString;
|
|
2629
|
-
name: z.ZodString;
|
|
2630
|
-
address: z.ZodObject<{
|
|
2631
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2632
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2633
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2634
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2635
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2636
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2637
|
-
}, z.core.$strip>;
|
|
2638
|
-
timezone: z.ZodString;
|
|
2639
|
-
location: z.ZodObject<{
|
|
2640
|
-
latitude: z.ZodNumber;
|
|
2641
|
-
longitude: z.ZodNumber;
|
|
2642
|
-
}, z.core.$strip>;
|
|
2643
|
-
capabilities: z.ZodArray<z.ZodEnum<{
|
|
2644
|
-
DELIVERY_OPTIMIZATION: "DELIVERY_OPTIMIZATION";
|
|
2645
|
-
}>>;
|
|
2646
|
-
openingStatus: z.ZodEnum<{
|
|
2647
|
-
OPEN: "OPEN";
|
|
2648
|
-
CLOSED: "CLOSED";
|
|
2649
|
-
}>;
|
|
2650
|
-
nextSyncMenuScheduledAt: z.ZodNullable<z.ZodString>;
|
|
2651
|
-
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>>;
|
|
2652
|
-
createdAt: z.ZodString;
|
|
2653
|
-
updatedAt: z.ZodString;
|
|
2654
|
-
}, z.core.$strip>;
|
|
2384
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2655
2385
|
}, z.core.$strip>;
|
|
2656
2386
|
readonly querySchema: undefined;
|
|
2657
2387
|
readonly headersSchema: undefined;
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
paymentNullableIriSchema,
|
|
29
29
|
paymentStatusSchema
|
|
30
30
|
} from "@deliverart/sdk-js-payment";
|
|
31
|
-
import { pointOfSaleIriSchema
|
|
31
|
+
import { pointOfSaleIriSchema } from "@deliverart/sdk-js-point-of-sale";
|
|
32
32
|
import { salesModeNullableIriSchema } from "@deliverart/sdk-js-sales-mode";
|
|
33
33
|
import { userNullableIriSchema } from "@deliverart/sdk-js-user";
|
|
34
34
|
|
|
@@ -11378,7 +11378,7 @@ var bundleSchema = external_exports.object({
|
|
|
11378
11378
|
updatedAt: datetimeSchema
|
|
11379
11379
|
});
|
|
11380
11380
|
var bundleDetailsSchema = bundleSchema.extend({
|
|
11381
|
-
pointOfSale:
|
|
11381
|
+
pointOfSale: pointOfSaleIriSchema
|
|
11382
11382
|
});
|
|
11383
11383
|
var writableBundleSchema = bundleDetailsSchema.pick({
|
|
11384
11384
|
pointOfSale: true,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-order",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Order Management",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
26
|
-
"@deliverart/sdk-js-
|
|
27
|
-
"@deliverart/sdk-js-sales-mode": "2.1.
|
|
28
|
-
"@deliverart/sdk-js-user": "2.1.
|
|
21
|
+
"@deliverart/sdk-js-core": "2.1.4",
|
|
22
|
+
"@deliverart/sdk-js-customer": "2.1.4",
|
|
23
|
+
"@deliverart/sdk-js-global-types": "2.1.4",
|
|
24
|
+
"@deliverart/sdk-js-point-of-sale": "2.1.4",
|
|
25
|
+
"@deliverart/sdk-js-menu": "2.1.4",
|
|
26
|
+
"@deliverart/sdk-js-payment": "2.1.4",
|
|
27
|
+
"@deliverart/sdk-js-sales-mode": "2.1.4",
|
|
28
|
+
"@deliverart/sdk-js-user": "2.1.4"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|