@deliverart/sdk-js-integration 0.0.1 → 0.0.3
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/CHANGELOG.md +13 -0
- package/dist/index.cjs +21 -11
- package/dist/index.d.cts +912 -912
- package/dist/index.d.ts +912 -912
- package/dist/index.js +21 -11
- package/package.json +5 -5
- package/src/schemas.ts +2 -2
- package/src/service-schemas/justeat.ts +1 -1
- package/src/types.ts +21 -8
package/CHANGELOG.md
ADDED
package/dist/index.cjs
CHANGED
|
@@ -466,14 +466,24 @@ var integrationJustEatPathSchema = integrationPathSchemas.justeat.pathSchema;
|
|
|
466
466
|
var integrationJustEatNullablePathSchema = integrationPathSchemas.justeat.nullablePathSchema;
|
|
467
467
|
var integrationCassaInCloudPathSchema = integrationPathSchemas.cassa_in_cloud.pathSchema;
|
|
468
468
|
var integrationCassaInCloudNullablePathSchema = integrationPathSchemas.cassa_in_cloud.nullablePathSchema;
|
|
469
|
-
var integrationPathSchema = import_zod.z.string().refine(
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
469
|
+
var integrationPathSchema = import_zod.z.string().refine(
|
|
470
|
+
(val) => /^\/integrations\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
|
|
471
|
+
val
|
|
472
|
+
),
|
|
473
|
+
{
|
|
474
|
+
message: "Invalid integration path format"
|
|
475
|
+
}
|
|
476
|
+
);
|
|
477
|
+
var integrationNullablePathSchema = import_zod.z.string().nullable().refine(
|
|
478
|
+
(val) => val == null || /^\/integrations\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
|
|
479
|
+
val
|
|
480
|
+
),
|
|
481
|
+
{
|
|
482
|
+
message: "Invalid integration path format"
|
|
483
|
+
}
|
|
484
|
+
);
|
|
475
485
|
var integrationCassaInCloudSyncMenuErrorLogPathSchema = import_zod.z.string().refine(
|
|
476
|
-
(val) => /^\/integrations\/cassa_in_cloud\/[
|
|
486
|
+
(val) => /^\/integrations\/cassa_in_cloud\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/sync_menu_processes\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/error_logs\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
|
|
477
487
|
val
|
|
478
488
|
),
|
|
479
489
|
{
|
|
@@ -481,7 +491,7 @@ var integrationCassaInCloudSyncMenuErrorLogPathSchema = import_zod.z.string().re
|
|
|
481
491
|
}
|
|
482
492
|
);
|
|
483
493
|
var integrationCassaInCloudSyncMenuErrorLogNullablePathSchema = import_zod.z.string().nullable().refine(
|
|
484
|
-
(val) => val == null || /^\/integrations\/cassa_in_cloud\/[
|
|
494
|
+
(val) => val == null || /^\/integrations\/cassa_in_cloud\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/sync_menu_processes\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/error_logs\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(
|
|
485
495
|
val
|
|
486
496
|
),
|
|
487
497
|
{
|
|
@@ -1146,8 +1156,8 @@ var integrationDeliveryProviderCommonSchema = import_zod23.z.object({
|
|
|
1146
1156
|
importTaggedItems: import_zod23.z.boolean(),
|
|
1147
1157
|
tagsForImport: import_zod23.z.array(import_zod23.z.string()).optional(),
|
|
1148
1158
|
isValidMenu: import_zod23.z.boolean(),
|
|
1149
|
-
latestMenuSyncAt: import_sdk_js_global_types5.datetimeSchema,
|
|
1150
|
-
latestMenuCheckAt: import_sdk_js_global_types5.datetimeSchema,
|
|
1159
|
+
latestMenuSyncAt: import_sdk_js_global_types5.datetimeSchema.nullable(),
|
|
1160
|
+
latestMenuCheckAt: import_sdk_js_global_types5.datetimeSchema.nullable(),
|
|
1151
1161
|
currentMenuVersion: menuVersionSchema.nullable(),
|
|
1152
1162
|
salesMode: import_sdk_js_sales_mode.salesModeNullablePathSchema
|
|
1153
1163
|
});
|
|
@@ -1497,7 +1507,7 @@ var integrationJustEatSchema = integrationBaseSchema.omit({ service: true }).ext
|
|
|
1497
1507
|
syncType: integrationJustEatSyncTypeSchema,
|
|
1498
1508
|
defaultLanguage: import_zod27.z.string(),
|
|
1499
1509
|
restaurantId: import_zod27.z.string(),
|
|
1500
|
-
latestOpeningTimesSyncAt: import_sdk_js_global_types9.datetimeSchema,
|
|
1510
|
+
latestOpeningTimesSyncAt: import_sdk_js_global_types9.datetimeSchema.nullable(),
|
|
1501
1511
|
service: integrationServiceSchema.extract(["justeat"]),
|
|
1502
1512
|
autoAcceptOrders: import_zod27.z.boolean(),
|
|
1503
1513
|
nextSyncMenuScheduledAt: import_sdk_js_global_types9.datetimeSchema.nullable()
|