@deliverart/sdk-js-integration-types 2.30.0 → 2.31.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/README.md +4 -2
- package/dist/index.cjs +28 -3
- package/dist/index.d.cts +128 -108
- package/dist/index.d.ts +128 -108
- package/dist/index.js +29 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,11 @@ import { datetimeSchema } from "@deliverart/sdk-js-global-types";
|
|
|
3
3
|
import { z as z5 } from "zod";
|
|
4
4
|
|
|
5
5
|
// src/activatable-integration-data-schemas.ts
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
menuChannelSchema as menuChannelSchema2,
|
|
8
|
+
menuChannels as menuChannels2,
|
|
9
|
+
orderTypeSchema
|
|
10
|
+
} from "@deliverart/sdk-js-global-types";
|
|
7
11
|
import { z as z3 } from "zod";
|
|
8
12
|
|
|
9
13
|
// src/tilby-sync-settings.ts
|
|
@@ -211,8 +215,25 @@ var integrationDeliveryErrors = [
|
|
|
211
215
|
"invalid_menu"
|
|
212
216
|
];
|
|
213
217
|
var integrationDeliveryErrorSchema = z2.enum(integrationDeliveryErrors);
|
|
214
|
-
var integrationIssueScopes = [
|
|
218
|
+
var integrationIssueScopes = [
|
|
219
|
+
"menu_sync",
|
|
220
|
+
"store_status",
|
|
221
|
+
"opening_hours_sync",
|
|
222
|
+
"availability_sync",
|
|
223
|
+
"order_ingress",
|
|
224
|
+
"order_export"
|
|
225
|
+
];
|
|
215
226
|
var integrationIssueScopeSchema = z2.enum(integrationIssueScopes);
|
|
227
|
+
var integrationIssueStatuses = [
|
|
228
|
+
"observing",
|
|
229
|
+
"attention_required",
|
|
230
|
+
"investigating",
|
|
231
|
+
"resolved",
|
|
232
|
+
"suppressed"
|
|
233
|
+
];
|
|
234
|
+
var integrationIssueStatusSchema = z2.enum(integrationIssueStatuses);
|
|
235
|
+
var integrationIssueSeverities = ["warning", "error", "critical"];
|
|
236
|
+
var integrationIssueSeveritySchema = z2.enum(integrationIssueSeverities);
|
|
216
237
|
var integrationIssueCodes = [
|
|
217
238
|
"unauthorized",
|
|
218
239
|
"forbidden",
|
|
@@ -843,10 +864,10 @@ var integrationElephantRestaurantCommonSchema = z3.object({
|
|
|
843
864
|
name: z3.string().trim().min(1, "name.required").max(255),
|
|
844
865
|
platformRestaurantId: z3.string().trim().min(1, "platformRestaurantId.required").max(255),
|
|
845
866
|
platformChainId: optionalCleanField(z3.string().trim().max(255)),
|
|
846
|
-
salesModeId:
|
|
867
|
+
salesModeId: z3.string().trim().min(1, "salesModeId.required"),
|
|
847
868
|
categoryId: z3.string().trim().min(1, "categoryId.required"),
|
|
848
869
|
defaultTaxRate: z3.coerce.number().min(0).max(100),
|
|
849
|
-
channels: z3.array(menuChannelSchema2).min(2),
|
|
870
|
+
channels: z3.array(menuChannelSchema2).min(2).default([...menuChannels2]),
|
|
850
871
|
orderType: orderTypeSchema.refine((value) => value !== "kitchen", "orderType.invalid"),
|
|
851
872
|
defaultPreparationTime: z3.coerce.number().int().min(0).max(240),
|
|
852
873
|
acceptanceTimeout: z3.coerce.number().int().min(0).max(120)
|
|
@@ -1201,6 +1222,10 @@ export {
|
|
|
1201
1222
|
integrationIssueIriSchema,
|
|
1202
1223
|
integrationIssueScopeSchema,
|
|
1203
1224
|
integrationIssueScopes,
|
|
1225
|
+
integrationIssueSeverities,
|
|
1226
|
+
integrationIssueSeveritySchema,
|
|
1227
|
+
integrationIssueStatusSchema,
|
|
1228
|
+
integrationIssueStatuses,
|
|
1204
1229
|
integrationJustEatDataSchema,
|
|
1205
1230
|
integrationJustEatIriSchema,
|
|
1206
1231
|
integrationJustEatMenuTypeSchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-integration-types",
|
|
3
3
|
"description": "Deliverart JavaScript SDK shared integration types and schemas",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.31.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"zod": "4.3.5",
|
|
22
|
-
"@deliverart/sdk-js-global-types": "2.
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.31.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"vitest": "3.2.4"
|