@deliverart/sdk-js-integration-types 0.0.0-dev-20260721002647
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 +38 -0
- package/dist/index.cjs +1371 -0
- package/dist/index.d.cts +1662 -0
- package/dist/index.d.ts +1662 -0
- package/dist/index.js +1127 -0
- package/package.json +36 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1127 @@
|
|
|
1
|
+
// src/activatable-integration.ts
|
|
2
|
+
import { datetimeSchema } from "@deliverart/sdk-js-global-types";
|
|
3
|
+
import { z as z5 } from "zod";
|
|
4
|
+
|
|
5
|
+
// src/activatable-integration-data-schemas.ts
|
|
6
|
+
import { menuChannelSchema as menuChannelSchema2, orderTypeSchema } from "@deliverart/sdk-js-global-types";
|
|
7
|
+
import { z as z3 } from "zod";
|
|
8
|
+
|
|
9
|
+
// src/tilby-sync-settings.ts
|
|
10
|
+
import { menuChannelSchema, menuChannels } from "@deliverart/sdk-js-global-types";
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
var integrationTilbySyncSettingsSchema = z.object({
|
|
13
|
+
newMenuItemChannels: z.array(menuChannelSchema).default([...menuChannels]),
|
|
14
|
+
externalCascadeDeleteOrder: z.boolean().default(true),
|
|
15
|
+
internalCascadeDeleteOrder: z.boolean().default(true),
|
|
16
|
+
internalCascadeUpdateOrderStatus: z.boolean().default(true),
|
|
17
|
+
externalCascadeDeleteCustomer: z.boolean().default(true),
|
|
18
|
+
internalCascadeDeleteCustomer: z.boolean().default(true),
|
|
19
|
+
internalCascadeUpdateCustomer: z.boolean().default(true),
|
|
20
|
+
skipSyncProductDescription: z.boolean().default(false),
|
|
21
|
+
skipSyncImages: z.boolean().default(false),
|
|
22
|
+
syncInboundMenu: z.boolean().default(true),
|
|
23
|
+
syncOutboundMenu: z.boolean().default(false),
|
|
24
|
+
syncInboundCustomers: z.boolean().default(false),
|
|
25
|
+
syncOutboundCustomers: z.boolean().default(true),
|
|
26
|
+
syncInboundOrders: z.boolean().default(false),
|
|
27
|
+
syncOutboundOrders: z.boolean().default(true),
|
|
28
|
+
syncInboundStock: z.boolean().default(false),
|
|
29
|
+
syncOutboundStock: z.boolean().default(false),
|
|
30
|
+
syncWebhooks: z.boolean().default(true),
|
|
31
|
+
syncClosedSalesOnly: z.boolean().default(false),
|
|
32
|
+
allowClosedSaleCreation: z.boolean().default(false)
|
|
33
|
+
});
|
|
34
|
+
var integrationTilbyEditableSyncSettingsSchema = integrationTilbySyncSettingsSchema.omit({
|
|
35
|
+
allowClosedSaleCreation: true
|
|
36
|
+
}).partial();
|
|
37
|
+
|
|
38
|
+
// src/types.ts
|
|
39
|
+
import {
|
|
40
|
+
iriNullableSchema,
|
|
41
|
+
IriObject,
|
|
42
|
+
iriSchema,
|
|
43
|
+
matchesIriPattern
|
|
44
|
+
} from "@deliverart/sdk-js-global-types";
|
|
45
|
+
import { z as z2 } from "zod";
|
|
46
|
+
var integrationStatuses = [
|
|
47
|
+
"pending",
|
|
48
|
+
"provisioning",
|
|
49
|
+
"paused",
|
|
50
|
+
"active",
|
|
51
|
+
"deleting"
|
|
52
|
+
];
|
|
53
|
+
var integrationStatusSchema = z2.enum(integrationStatuses);
|
|
54
|
+
var integrationHealthStatuses = ["unknown", "healthy", "degraded", "failed"];
|
|
55
|
+
var integrationHealthStatusSchema = z2.enum(integrationHealthStatuses);
|
|
56
|
+
var integrationProviders = ["deliverart", "cassa_in_cloud"];
|
|
57
|
+
var integrationProviderSchema = z2.enum(integrationProviders);
|
|
58
|
+
var integrationServices = [
|
|
59
|
+
"deliveroo",
|
|
60
|
+
"justeat",
|
|
61
|
+
"glovo",
|
|
62
|
+
"cassa_in_cloud",
|
|
63
|
+
"tilby",
|
|
64
|
+
"kitchen",
|
|
65
|
+
"ecommerce",
|
|
66
|
+
"elephant"
|
|
67
|
+
];
|
|
68
|
+
var integrationServiceSchema = z2.enum(integrationServices);
|
|
69
|
+
var exclusiveIntegrationServices = [
|
|
70
|
+
"kitchen",
|
|
71
|
+
"cassa_in_cloud",
|
|
72
|
+
"tilby",
|
|
73
|
+
"ecommerce",
|
|
74
|
+
"elephant"
|
|
75
|
+
];
|
|
76
|
+
var exclusiveIntegrationServiceSchema = z2.enum(exclusiveIntegrationServices);
|
|
77
|
+
var integrationElephantCredentialModes = ["managed", "provided"];
|
|
78
|
+
var integrationElephantCredentialModeSchema = z2.enum(
|
|
79
|
+
integrationElephantCredentialModes
|
|
80
|
+
);
|
|
81
|
+
var integrationElephantRestaurantStatuses = [
|
|
82
|
+
"pending",
|
|
83
|
+
"provisioning",
|
|
84
|
+
"active",
|
|
85
|
+
"paused",
|
|
86
|
+
"removing"
|
|
87
|
+
];
|
|
88
|
+
var integrationElephantRestaurantStatusSchema = z2.enum(
|
|
89
|
+
integrationElephantRestaurantStatuses
|
|
90
|
+
);
|
|
91
|
+
var integrationElephantCatalogStatuses = [
|
|
92
|
+
"unknown",
|
|
93
|
+
"refreshing",
|
|
94
|
+
"ready",
|
|
95
|
+
"stale",
|
|
96
|
+
"unsupported",
|
|
97
|
+
"failed"
|
|
98
|
+
];
|
|
99
|
+
var integrationElephantCatalogStatusSchema = z2.enum(
|
|
100
|
+
integrationElephantCatalogStatuses
|
|
101
|
+
);
|
|
102
|
+
var integrationElephantProvisioningSteps = [
|
|
103
|
+
"pending",
|
|
104
|
+
"credentials",
|
|
105
|
+
"tenant",
|
|
106
|
+
"app",
|
|
107
|
+
"api_token",
|
|
108
|
+
"app_configuration",
|
|
109
|
+
"app_connection_test",
|
|
110
|
+
"restaurants",
|
|
111
|
+
"catalog",
|
|
112
|
+
"complete",
|
|
113
|
+
"deprovisioning"
|
|
114
|
+
];
|
|
115
|
+
var integrationElephantProvisioningStepSchema = z2.enum(
|
|
116
|
+
integrationElephantProvisioningSteps
|
|
117
|
+
);
|
|
118
|
+
var integrationElephantCatalogRoles = ["product", "option", "variant"];
|
|
119
|
+
var integrationElephantCatalogRoleSchema = z2.enum(integrationElephantCatalogRoles);
|
|
120
|
+
var integrationElephantCatalogSides = ["platform", "app"];
|
|
121
|
+
var integrationElephantCatalogSideSchema = z2.enum(integrationElephantCatalogSides);
|
|
122
|
+
var integrationElephantOrderReleaseStatuses = [
|
|
123
|
+
"preparing",
|
|
124
|
+
"ready",
|
|
125
|
+
"released",
|
|
126
|
+
"failed"
|
|
127
|
+
];
|
|
128
|
+
var integrationElephantOrderReleaseStatusSchema = z2.enum(
|
|
129
|
+
integrationElephantOrderReleaseStatuses
|
|
130
|
+
);
|
|
131
|
+
var integrationRequestLogOutcomes = [
|
|
132
|
+
"success",
|
|
133
|
+
"client_error",
|
|
134
|
+
"server_error"
|
|
135
|
+
];
|
|
136
|
+
var integrationRequestLogOutcomeSchema = z2.enum(integrationRequestLogOutcomes);
|
|
137
|
+
var integrationClientLogRequestMethods = ["DELETE", "GET", "PATCH", "POST", "PUT"];
|
|
138
|
+
var integrationClientLogRequestMethodSchema = z2.enum(integrationClientLogRequestMethods);
|
|
139
|
+
var integrationKitchenViewModes = ["column"];
|
|
140
|
+
var integrationKitchenViewModeSchema = z2.enum(integrationKitchenViewModes);
|
|
141
|
+
var integrationJustEatSyncTypes = ["ALL", "DELIVERY", "TAKE_AWAY"];
|
|
142
|
+
var integrationJustEatSyncTypeSchema = z2.enum(integrationJustEatSyncTypes);
|
|
143
|
+
var integrationJustEatRestaurantStatuses = ["OPEN", "CLOSED"];
|
|
144
|
+
var integrationJustEatRestaurantStatusSchema = z2.enum(integrationJustEatRestaurantStatuses);
|
|
145
|
+
var integrationJustEatMenuTypes = ["DELIVERY", "COLLECTION"];
|
|
146
|
+
var integrationJustEatMenuTypeSchema = z2.enum(integrationJustEatMenuTypes);
|
|
147
|
+
var integrationJustEatOrderCancellationReasons = [
|
|
148
|
+
"custCancelledChangedMind",
|
|
149
|
+
"custCancelledDeliveryTooLong",
|
|
150
|
+
"custCancelledMadeMistake",
|
|
151
|
+
"custCancelledOther",
|
|
152
|
+
"restCancelledCustomerAbsent",
|
|
153
|
+
"restCancelledCustomerRequested",
|
|
154
|
+
"restCancelledDriversUnavailable",
|
|
155
|
+
"restCancelledFakeOrder",
|
|
156
|
+
"restCancelledOutOfStock",
|
|
157
|
+
"restCancelledTooBusy",
|
|
158
|
+
"restCancelledOther",
|
|
159
|
+
"deletedTooFar",
|
|
160
|
+
"deletedFakeDelivered",
|
|
161
|
+
"deletedFakeNotDelivered",
|
|
162
|
+
"deletedFaxNotReceived",
|
|
163
|
+
"deletedIncorrectOrder",
|
|
164
|
+
"deletedMissedByRestaurant",
|
|
165
|
+
"deletedFakeNotCollected",
|
|
166
|
+
"deletedRestaurantCannotDeliver",
|
|
167
|
+
"deletedNewTimeRejected",
|
|
168
|
+
"deletedTestOrder",
|
|
169
|
+
"deletedRejectedByRestaurant",
|
|
170
|
+
"deletedSystemError",
|
|
171
|
+
"deletedRestaurantOffline",
|
|
172
|
+
"deletedNoAnswerFromRestaurant",
|
|
173
|
+
"deletedRejectedByPartner",
|
|
174
|
+
"unknown"
|
|
175
|
+
];
|
|
176
|
+
var integrationJustEatOrderCancellationReasonSchema = z2.enum(
|
|
177
|
+
integrationJustEatOrderCancellationReasons
|
|
178
|
+
);
|
|
179
|
+
var integrationDeliverooSiteStatuses = ["OPEN", "CLOSED"];
|
|
180
|
+
var integrationDeliverooSiteStatusSchema = z2.enum(integrationDeliverooSiteStatuses);
|
|
181
|
+
var integrationDeliverooSyncMenuProcessModes = ["menu", "item_availabilities"];
|
|
182
|
+
var integrationDeliverooSyncMenuProcessModeSchema = z2.enum(
|
|
183
|
+
integrationDeliverooSyncMenuProcessModes
|
|
184
|
+
);
|
|
185
|
+
var integrationDeliveryErrors = [
|
|
186
|
+
"latest_menu_sync_error",
|
|
187
|
+
"latest_bulk_sync_error",
|
|
188
|
+
"latest_store_status_sync_error",
|
|
189
|
+
"invalid_menu"
|
|
190
|
+
];
|
|
191
|
+
var integrationDeliveryErrorSchema = z2.enum(integrationDeliveryErrors);
|
|
192
|
+
var integrationIssueScopes = ["menu_sync", "store_status"];
|
|
193
|
+
var integrationIssueScopeSchema = z2.enum(integrationIssueScopes);
|
|
194
|
+
var integrationIssueCodes = [
|
|
195
|
+
"unauthorized",
|
|
196
|
+
"forbidden",
|
|
197
|
+
"remote_not_found",
|
|
198
|
+
"invalid_menu",
|
|
199
|
+
"remote_validation_failed",
|
|
200
|
+
"daily_limit_reached",
|
|
201
|
+
"process_failed"
|
|
202
|
+
];
|
|
203
|
+
var integrationIssueCodeSchema = z2.enum(integrationIssueCodes);
|
|
204
|
+
var integrationDeliverooWebhookEventTypes = [
|
|
205
|
+
"order.new",
|
|
206
|
+
"order.status_update",
|
|
207
|
+
"rider.status_update",
|
|
208
|
+
"menu.upload_result"
|
|
209
|
+
];
|
|
210
|
+
var integrationDeliverooWebhookEventTypeSchema = z2.enum(
|
|
211
|
+
integrationDeliverooWebhookEventTypes
|
|
212
|
+
);
|
|
213
|
+
var integrationDeliverooDebugSiteTypes = [
|
|
214
|
+
"RESTAURANT",
|
|
215
|
+
"ON_DEMAND_CONVENIENCE",
|
|
216
|
+
"UNKNOWN"
|
|
217
|
+
];
|
|
218
|
+
var integrationDeliverooDebugSiteTypeSchema = z2.enum(integrationDeliverooDebugSiteTypes);
|
|
219
|
+
var integrationGlovoMenuUpdateStatuses = [
|
|
220
|
+
"SUCCESS",
|
|
221
|
+
"PROCESSING",
|
|
222
|
+
"FETCH_MENU_INVALID_PAYLOAD",
|
|
223
|
+
"FETCH_MENU_SERVER_ERROR",
|
|
224
|
+
"FETCH_MENU_UNAUTHORIZED",
|
|
225
|
+
"NOT_PROCESSED",
|
|
226
|
+
"LIMIT_EXCEEDED",
|
|
227
|
+
"GLOVO_ERROR",
|
|
228
|
+
"SCHEDULE_CATALOG_DISABLED"
|
|
229
|
+
];
|
|
230
|
+
var integrationGlovoMenuUpdateStatusSchema = z2.enum(integrationGlovoMenuUpdateStatuses);
|
|
231
|
+
var integrationGlovoBulkUpdateStatuses = [
|
|
232
|
+
"SUCCESS",
|
|
233
|
+
"PROCESSING",
|
|
234
|
+
"PARTIALLY_PROCESSED",
|
|
235
|
+
"NOT_PROCESSED",
|
|
236
|
+
"GLOVO_ERROR"
|
|
237
|
+
];
|
|
238
|
+
var integrationGlovoBulkUpdateStatusSchema = z2.enum(integrationGlovoBulkUpdateStatuses);
|
|
239
|
+
var integrationGlovoSyncStatuses = ["ok", "pending", "error"];
|
|
240
|
+
var integrationGlovoSyncStatusSchema = z2.enum(integrationGlovoSyncStatuses);
|
|
241
|
+
var integrationGlovoStoreStatuses = ["OPEN", "CLOSED"];
|
|
242
|
+
var integrationGlovoStoreStatusSchema = z2.enum(integrationGlovoStoreStatuses);
|
|
243
|
+
var integrationGlovoWebhookEventTypes = ["order.dispatched", "order.cancelled"];
|
|
244
|
+
var integrationGlovoWebhookEventTypeSchema = z2.enum(integrationGlovoWebhookEventTypes);
|
|
245
|
+
var integrationEcommerceOrderingModes = ["delivery", "collection"];
|
|
246
|
+
var integrationEcommerceOrderingModeSchema = z2.union([z2.enum(integrationEcommerceOrderingModes), z2.literal("take_away")]).transform((value) => value === "take_away" ? "collection" : value);
|
|
247
|
+
var integrationEcommerceMenuViewModes = ["editorial", "compact", "visual_grid"];
|
|
248
|
+
var integrationEcommerceMenuViewModeSchema = z2.enum(integrationEcommerceMenuViewModes);
|
|
249
|
+
var integrationEcommerceThemeSchema = z2.object({
|
|
250
|
+
primary: z2.string().optional(),
|
|
251
|
+
accent: z2.string().optional(),
|
|
252
|
+
background: z2.string().optional()
|
|
253
|
+
}).passthrough();
|
|
254
|
+
var integrationCassaInCloudDirections = [
|
|
255
|
+
"EXTERNAL_TO_INTERNAL",
|
|
256
|
+
"INTERNAL_TO_EXTERNAL"
|
|
257
|
+
];
|
|
258
|
+
var integrationCassaInCloudDirectionSchema = z2.enum(integrationCassaInCloudDirections);
|
|
259
|
+
var integrationCassaInCloudSyncDirections = ["inbound", "outbound"];
|
|
260
|
+
var integrationCassaInCloudSyncDirectionSchema = z2.enum(
|
|
261
|
+
integrationCassaInCloudSyncDirections
|
|
262
|
+
);
|
|
263
|
+
var integrationCassaInCloudSyncModes = ["full", "incremental"];
|
|
264
|
+
var integrationCassaInCloudSyncModeSchema = z2.enum(integrationCassaInCloudSyncModes);
|
|
265
|
+
var integrationCassaInCloudMissingComponentStrategies = [
|
|
266
|
+
"SKIP_ITEM",
|
|
267
|
+
"CANCEL_PRODUCT"
|
|
268
|
+
];
|
|
269
|
+
var integrationCassaInCloudMissingComponentStrategySchema = z2.enum(
|
|
270
|
+
integrationCassaInCloudMissingComponentStrategies
|
|
271
|
+
);
|
|
272
|
+
var integrationCassaInCloudSuspendedItemStockStrategies = [
|
|
273
|
+
"leave_remote_stock",
|
|
274
|
+
"deplete_remote_stock"
|
|
275
|
+
];
|
|
276
|
+
var integrationCassaInCloudSuspendedItemStockStrategySchema = z2.enum(
|
|
277
|
+
integrationCassaInCloudSuspendedItemStockStrategies
|
|
278
|
+
);
|
|
279
|
+
var integrationCassaInCloudProductChannels = [
|
|
280
|
+
"RISTO",
|
|
281
|
+
"SALE",
|
|
282
|
+
"ECOMMERCE",
|
|
283
|
+
"MOBILE_COMMERCE",
|
|
284
|
+
"SELF_ORDER",
|
|
285
|
+
"KIOSK"
|
|
286
|
+
];
|
|
287
|
+
var integrationCassaInCloudProductChannelSchema = z2.enum(
|
|
288
|
+
integrationCassaInCloudProductChannels
|
|
289
|
+
);
|
|
290
|
+
var integrationCassaInCloudWebHookEventEntities = [
|
|
291
|
+
"BILL",
|
|
292
|
+
"RECEIPT",
|
|
293
|
+
"CREDIT_NOTE",
|
|
294
|
+
"INVOICE",
|
|
295
|
+
"DDT",
|
|
296
|
+
"ORDER",
|
|
297
|
+
"QUOTATION",
|
|
298
|
+
"RECONCILIATION",
|
|
299
|
+
"STOCK_MOVEMENT",
|
|
300
|
+
"CUSTOMER",
|
|
301
|
+
"ORGANIZATION"
|
|
302
|
+
];
|
|
303
|
+
var integrationCassaInCloudWebHookEventEntitySchema = z2.enum(
|
|
304
|
+
integrationCassaInCloudWebHookEventEntities
|
|
305
|
+
);
|
|
306
|
+
var integrationCassaInCloudWebHookEventEvents = ["CREATE", "UPDATE", "DELETE"];
|
|
307
|
+
var integrationCassaInCloudWebHookEventEventSchema = z2.enum(
|
|
308
|
+
integrationCassaInCloudWebHookEventEvents
|
|
309
|
+
);
|
|
310
|
+
var integrationCassaInCloudMenuSyncSteps = [
|
|
311
|
+
"options",
|
|
312
|
+
"categories",
|
|
313
|
+
"departments",
|
|
314
|
+
"sales_modes",
|
|
315
|
+
"products",
|
|
316
|
+
"composite_products",
|
|
317
|
+
"clean_obsolete_sales_modes",
|
|
318
|
+
"clean_obsolete_products",
|
|
319
|
+
"clean_obsolete_options",
|
|
320
|
+
"clean_obsolete_categories"
|
|
321
|
+
];
|
|
322
|
+
var integrationCassaInCloudMenuSyncStepSchema = z2.enum(
|
|
323
|
+
integrationCassaInCloudMenuSyncSteps
|
|
324
|
+
);
|
|
325
|
+
var integrationCassaInCloudCustomersSyncSteps = ["customers"];
|
|
326
|
+
var integrationCassaInCloudCustomersSyncStepSchema = z2.enum(
|
|
327
|
+
integrationCassaInCloudCustomersSyncSteps
|
|
328
|
+
);
|
|
329
|
+
var integrationCassaInCloudSalesModesSyncSteps = ["sales_modes"];
|
|
330
|
+
var integrationCassaInCloudSalesModesSyncStepSchema = z2.enum(
|
|
331
|
+
integrationCassaInCloudSalesModesSyncSteps
|
|
332
|
+
);
|
|
333
|
+
var integrationCassaInCloudTimetablesSyncSteps = ["timetables"];
|
|
334
|
+
var integrationCassaInCloudTimetablesSyncStepSchema = z2.enum(
|
|
335
|
+
integrationCassaInCloudTimetablesSyncSteps
|
|
336
|
+
);
|
|
337
|
+
var integrationTilbySyncDirections = ["inbound", "outbound"];
|
|
338
|
+
var integrationTilbySyncDirectionSchema = z2.enum(integrationTilbySyncDirections);
|
|
339
|
+
var integrationTilbySyncModes = ["full", "incremental"];
|
|
340
|
+
var integrationTilbySyncModeSchema = z2.enum(integrationTilbySyncModes);
|
|
341
|
+
var integrationTilbyMappingSyncStatuses = [
|
|
342
|
+
"pending",
|
|
343
|
+
"synced",
|
|
344
|
+
"manual_resolution_required",
|
|
345
|
+
"skipped",
|
|
346
|
+
"failed",
|
|
347
|
+
"unsupported"
|
|
348
|
+
];
|
|
349
|
+
var integrationTilbyMappingSyncStatusSchema = z2.enum(integrationTilbyMappingSyncStatuses);
|
|
350
|
+
var integrationTilbyMappingSyncFailureCodes = [
|
|
351
|
+
"missing_remote_identifier",
|
|
352
|
+
"missing_remote_vat",
|
|
353
|
+
"missing_remote_category",
|
|
354
|
+
"missing_remote_department",
|
|
355
|
+
"unresolved_vat_mapping",
|
|
356
|
+
"unresolved_category_mapping",
|
|
357
|
+
"unresolved_department_mapping",
|
|
358
|
+
"customer_conflict",
|
|
359
|
+
"remote_deleted",
|
|
360
|
+
"local_entity_not_found",
|
|
361
|
+
"remote_entity_not_found",
|
|
362
|
+
"remote_api_error",
|
|
363
|
+
"validation_failed",
|
|
364
|
+
"ambiguous_mapping",
|
|
365
|
+
"disabled_by_settings",
|
|
366
|
+
"manual_resolution_required",
|
|
367
|
+
"unresolved_product_mapping",
|
|
368
|
+
"unresolved_variant_mapping",
|
|
369
|
+
"unsupported_order_item",
|
|
370
|
+
"unsupported_order_type",
|
|
371
|
+
"invalid_schedule",
|
|
372
|
+
"remote_sale_not_open",
|
|
373
|
+
"unsupported_remote_model",
|
|
374
|
+
"unsupported_bundle",
|
|
375
|
+
"unsupported_modifier",
|
|
376
|
+
"unsupported_sales_mode",
|
|
377
|
+
"unsupported_variant",
|
|
378
|
+
"unsupported_component",
|
|
379
|
+
"unknown"
|
|
380
|
+
];
|
|
381
|
+
var integrationTilbyMappingSyncFailureCodeSchema = z2.enum(
|
|
382
|
+
integrationTilbyMappingSyncFailureCodes
|
|
383
|
+
);
|
|
384
|
+
var integrationTilbyFiscalMappingsSyncSteps = ["vat", "departments"];
|
|
385
|
+
var integrationTilbyFiscalMappingsSyncStepSchema = z2.enum(
|
|
386
|
+
integrationTilbyFiscalMappingsSyncSteps
|
|
387
|
+
);
|
|
388
|
+
var integrationTilbyCustomersSyncSteps = ["customers"];
|
|
389
|
+
var integrationTilbyCustomersSyncStepSchema = z2.enum(integrationTilbyCustomersSyncSteps);
|
|
390
|
+
var integrationTilbyMenuSyncSteps = ["categories", "components", "products"];
|
|
391
|
+
var integrationTilbyMenuSyncStepSchema = z2.enum(integrationTilbyMenuSyncSteps);
|
|
392
|
+
var integrationTilbyOrdersSyncSteps = ["orders"];
|
|
393
|
+
var integrationTilbyOrdersSyncStepSchema = z2.enum(integrationTilbyOrdersSyncSteps);
|
|
394
|
+
var integrationTilbyStockSyncSteps = ["stock"];
|
|
395
|
+
var integrationTilbyStockSyncStepSchema = z2.enum(integrationTilbyStockSyncSteps);
|
|
396
|
+
function createIriSchemas(path) {
|
|
397
|
+
return {
|
|
398
|
+
iriSchema: iriSchema(path),
|
|
399
|
+
iriNullableSchema: iriNullableSchema(path)
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
function createMultiPatternIriSchemas(patterns) {
|
|
403
|
+
const rawIriSchema = z2.union([
|
|
404
|
+
z2.string(),
|
|
405
|
+
z2.object({
|
|
406
|
+
iri: z2.string(),
|
|
407
|
+
params: z2.record(z2.string(), z2.uuid({ message: "Invalid UUID format" }))
|
|
408
|
+
}),
|
|
409
|
+
z2.custom(
|
|
410
|
+
(val) => val instanceof IriObject
|
|
411
|
+
)
|
|
412
|
+
]);
|
|
413
|
+
return {
|
|
414
|
+
iriSchema: rawIriSchema.transform((val) => {
|
|
415
|
+
if (val instanceof IriObject) {
|
|
416
|
+
return val;
|
|
417
|
+
}
|
|
418
|
+
const iri = typeof val === "string" ? val : val.iri;
|
|
419
|
+
const pattern = patterns.find((candidate) => matchesIriPattern(iri, candidate));
|
|
420
|
+
if (!pattern) {
|
|
421
|
+
throw new Error(`IRI "${iri}" does not match any supported pattern`);
|
|
422
|
+
}
|
|
423
|
+
return new IriObject(iri, pattern);
|
|
424
|
+
}),
|
|
425
|
+
iriNullableSchema: z2.union([rawIriSchema, z2.null()]).transform((val) => {
|
|
426
|
+
if (val === null) {
|
|
427
|
+
return null;
|
|
428
|
+
}
|
|
429
|
+
if (val instanceof IriObject) {
|
|
430
|
+
return val;
|
|
431
|
+
}
|
|
432
|
+
const iri = typeof val === "string" ? val : val.iri;
|
|
433
|
+
const pattern = patterns.find((candidate) => matchesIriPattern(iri, candidate));
|
|
434
|
+
if (!pattern) {
|
|
435
|
+
throw new Error(`IRI "${iri}" does not match any supported pattern`);
|
|
436
|
+
}
|
|
437
|
+
return new IriObject(iri, pattern);
|
|
438
|
+
})
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
function createIntegrationIriSchemas(service) {
|
|
442
|
+
return createIriSchemas(`/integrations/${service}/:id`);
|
|
443
|
+
}
|
|
444
|
+
function createIntegrationMenuVersionIriSchemas(service) {
|
|
445
|
+
return createIriSchemas(`/integrations/${service}/:id/menu_versions/:menuVersionId`);
|
|
446
|
+
}
|
|
447
|
+
var integrationPathSchemas = Object.fromEntries(
|
|
448
|
+
integrationServices.map((service) => [service, createIntegrationIriSchemas(service)])
|
|
449
|
+
);
|
|
450
|
+
var integrationMenuVersionPathSchemas = Object.fromEntries(
|
|
451
|
+
integrationServices.map((service) => [service, createIntegrationMenuVersionIriSchemas(service)])
|
|
452
|
+
);
|
|
453
|
+
var integrationKitchenIriSchema = integrationPathSchemas.kitchen.iriSchema;
|
|
454
|
+
var integrationKitchenNullableIriSchema = integrationPathSchemas.kitchen.iriNullableSchema;
|
|
455
|
+
var integrationDeliverooIriSchema = integrationPathSchemas.deliveroo.iriSchema;
|
|
456
|
+
var integrationDeliverooNullableIriSchema = integrationPathSchemas.deliveroo.iriNullableSchema;
|
|
457
|
+
var integrationDeliverooMenuVersionIriSchema = integrationMenuVersionPathSchemas.deliveroo.iriSchema;
|
|
458
|
+
var integrationDeliverooMenuVersionNullableIriSchema = integrationMenuVersionPathSchemas.deliveroo.iriNullableSchema;
|
|
459
|
+
var integrationGlovoIriSchema = integrationPathSchemas.glovo.iriSchema;
|
|
460
|
+
var integrationGlovoNullableIriSchema = integrationPathSchemas.glovo.iriNullableSchema;
|
|
461
|
+
var integrationGlovoMenuVersionIriSchema = integrationMenuVersionPathSchemas.glovo.iriSchema;
|
|
462
|
+
var integrationGlovoMenuVersionNullableIriSchema = integrationMenuVersionPathSchemas.glovo.iriNullableSchema;
|
|
463
|
+
var integrationJustEatIriSchema = integrationPathSchemas.justeat.iriSchema;
|
|
464
|
+
var integrationJustEatNullableIriSchema = integrationPathSchemas.justeat.iriNullableSchema;
|
|
465
|
+
var integrationJustEatMenuVersionIriSchema = integrationMenuVersionPathSchemas.justeat.iriSchema;
|
|
466
|
+
var integrationJustEatMenuVersionNullableIriSchema = integrationMenuVersionPathSchemas.justeat.iriNullableSchema;
|
|
467
|
+
var integrationCassaInCloudIriSchema = integrationPathSchemas.cassa_in_cloud.iriSchema;
|
|
468
|
+
var integrationCassaInCloudNullableIriSchema = integrationPathSchemas.cassa_in_cloud.iriNullableSchema;
|
|
469
|
+
var integrationTilbyIriSchema = integrationPathSchemas.tilby.iriSchema;
|
|
470
|
+
var integrationTilbyNullableIriSchema = integrationPathSchemas.tilby.iriNullableSchema;
|
|
471
|
+
var integrationEcommerceIriSchema = integrationPathSchemas.ecommerce.iriSchema;
|
|
472
|
+
var integrationEcommerceNullableIriSchema = integrationPathSchemas.ecommerce.iriNullableSchema;
|
|
473
|
+
var integrationElephantIriSchema = integrationPathSchemas.elephant.iriSchema;
|
|
474
|
+
var integrationElephantNullableIriSchema = integrationPathSchemas.elephant.iriNullableSchema;
|
|
475
|
+
var integrationElephantRestaurantIriSchema = iriSchema(
|
|
476
|
+
"/integrations/elephant/:id/restaurants/:membershipId"
|
|
477
|
+
);
|
|
478
|
+
var integrationElephantRestaurantNullableIriSchema = iriNullableSchema(
|
|
479
|
+
"/integrations/elephant/:id/restaurants/:membershipId"
|
|
480
|
+
);
|
|
481
|
+
var integrationIriSchema = iriSchema("/integrations/:id");
|
|
482
|
+
var integrationNullableIriSchema = iriNullableSchema("/integrations/:id");
|
|
483
|
+
var integrationDetailsPathPatterns = [
|
|
484
|
+
"/integrations/:id",
|
|
485
|
+
...integrationServices.map((service) => `/integrations/${service}/:id`)
|
|
486
|
+
];
|
|
487
|
+
var integrationDetailsPathSchemas = createMultiPatternIriSchemas(
|
|
488
|
+
integrationDetailsPathPatterns
|
|
489
|
+
);
|
|
490
|
+
var integrationDetailsIriSchema = integrationDetailsPathSchemas.iriSchema;
|
|
491
|
+
var integrationDetailsNullableIriSchema = integrationDetailsPathSchemas.iriNullableSchema;
|
|
492
|
+
var integrationIssueIriSchema = iriSchema("/integrations/:id/issues/:issueId");
|
|
493
|
+
var integrationDeliverooOrderIriSchema = iriSchema(
|
|
494
|
+
"/integrations/deliveroo/:id/orders/:orderId"
|
|
495
|
+
);
|
|
496
|
+
var integrationGlovoOrderIriSchema = iriSchema("/integrations/glovo/:id/orders/:orderId");
|
|
497
|
+
var integrationGlovoBulkUpdateIriSchema = iriSchema(
|
|
498
|
+
"/integrations/glovo/:id/bulk_updates/:bulkUpdateId"
|
|
499
|
+
);
|
|
500
|
+
var integrationGlovoMenuItemDeltaIriSchema = iriSchema(
|
|
501
|
+
"/integrations/glovo/:id/bulk_menu_item_deltas/:deltaId"
|
|
502
|
+
);
|
|
503
|
+
var integrationJustEatOrderIriSchema = iriSchema(
|
|
504
|
+
"/integrations/justeat/:id/orders/:orderId"
|
|
505
|
+
);
|
|
506
|
+
var integrationCassaInCloudSyncMenuProcessIriSchema = iriSchema(
|
|
507
|
+
"/integrations/cassa_in_cloud/:id/sync_menu_processes/:processId"
|
|
508
|
+
);
|
|
509
|
+
var integrationCassaInCloudSyncCustomersProcessIriSchema = iriSchema(
|
|
510
|
+
"/integrations/cassa_in_cloud/:id/sync_customers_processes/:processId"
|
|
511
|
+
);
|
|
512
|
+
var integrationCassaInCloudSyncSalesModesProcessIriSchema = iriSchema(
|
|
513
|
+
"/integrations/cassa_in_cloud/:id/sync_sales_modes_processes/:processId"
|
|
514
|
+
);
|
|
515
|
+
var integrationCassaInCloudSyncTimetablesProcessIriSchema = iriSchema(
|
|
516
|
+
"/integrations/cassa_in_cloud/:id/sync_timetables_processes/:processId"
|
|
517
|
+
);
|
|
518
|
+
var integrationCassaInCloudSyncMenuErrorLogIriSchema = iriSchema(
|
|
519
|
+
"/integrations/cassa_in_cloud/:id/sync_menu_processes/:processId/error_logs/:errorLogId"
|
|
520
|
+
);
|
|
521
|
+
var integrationCassaInCloudSyncMenuErrorLogNullableIriSchema = iriNullableSchema(
|
|
522
|
+
"/integrations/cassa_in_cloud/:id/sync_menu_processes/:processId/error_logs/:errorLogId"
|
|
523
|
+
);
|
|
524
|
+
var integrationCassaInCloudSyncCustomersErrorLogIriSchema = iriSchema(
|
|
525
|
+
"/integrations/cassa_in_cloud/:id/sync_customers_processes/:processId/error_logs/:errorLogId"
|
|
526
|
+
);
|
|
527
|
+
var integrationCassaInCloudSyncSalesModesErrorLogIriSchema = iriSchema(
|
|
528
|
+
"/integrations/cassa_in_cloud/:id/sync_sales_modes_processes/:processId/error_logs/:errorLogId"
|
|
529
|
+
);
|
|
530
|
+
var integrationCassaInCloudSyncTimetablesErrorLogIriSchema = iriSchema(
|
|
531
|
+
"/integrations/cassa_in_cloud/:id/sync_timetables_processes/:processId/error_logs/:errorLogId"
|
|
532
|
+
);
|
|
533
|
+
var integrationTilbySyncFiscalMappingsProcessIriSchema = iriSchema(
|
|
534
|
+
"/integrations/tilby/:id/sync_fiscal_mappings_processes/:processId"
|
|
535
|
+
);
|
|
536
|
+
var integrationTilbySyncCustomersProcessIriSchema = iriSchema(
|
|
537
|
+
"/integrations/tilby/:id/sync_customers_processes/:processId"
|
|
538
|
+
);
|
|
539
|
+
var integrationTilbySyncMenuProcessIriSchema = iriSchema(
|
|
540
|
+
"/integrations/tilby/:id/sync_menu_processes/:processId"
|
|
541
|
+
);
|
|
542
|
+
var integrationTilbySyncOrdersProcessIriSchema = iriSchema(
|
|
543
|
+
"/integrations/tilby/:id/sync_orders_processes/:processId"
|
|
544
|
+
);
|
|
545
|
+
var integrationTilbySyncStockProcessIriSchema = iriSchema(
|
|
546
|
+
"/integrations/tilby/:id/sync_stock_processes/:processId"
|
|
547
|
+
);
|
|
548
|
+
var integrationTilbySyncFiscalMappingsErrorLogIriSchema = iriSchema(
|
|
549
|
+
"/integrations/tilby/:id/sync_fiscal_mappings_processes/:processId/error_logs/:errorLogId"
|
|
550
|
+
);
|
|
551
|
+
var integrationTilbySyncCustomersErrorLogIriSchema = iriSchema(
|
|
552
|
+
"/integrations/tilby/:id/sync_customers_processes/:processId/error_logs/:errorLogId"
|
|
553
|
+
);
|
|
554
|
+
var integrationTilbySyncMenuErrorLogIriSchema = iriSchema(
|
|
555
|
+
"/integrations/tilby/:id/sync_menu_processes/:processId/error_logs/:errorLogId"
|
|
556
|
+
);
|
|
557
|
+
var integrationTilbySyncOrdersErrorLogIriSchema = iriSchema(
|
|
558
|
+
"/integrations/tilby/:id/sync_orders_processes/:processId/error_logs/:errorLogId"
|
|
559
|
+
);
|
|
560
|
+
var integrationTilbySyncStockErrorLogIriSchema = iriSchema(
|
|
561
|
+
"/integrations/tilby/:id/sync_stock_processes/:processId/error_logs/:errorLogId"
|
|
562
|
+
);
|
|
563
|
+
var integrationCassaInCloudWebHookSettingIriSchema = iriSchema(
|
|
564
|
+
"/integrations/cassa_in_cloud/:id/webhook_settings/:webHookId"
|
|
565
|
+
);
|
|
566
|
+
var integrationTilbyWebHookSettingIriSchema = iriSchema(
|
|
567
|
+
"/integrations/tilby/:id/webhook_settings/:webHookId"
|
|
568
|
+
);
|
|
569
|
+
var integrationTilbyWebHookEventIriSchema = iriSchema(
|
|
570
|
+
"/integrations/tilby/:id/webhook_events/:eventId"
|
|
571
|
+
);
|
|
572
|
+
var integrationCassaInCloudDepartmentMappingIriSchema = iriSchema(
|
|
573
|
+
"/integrations/cassa_in_cloud/:id/department_mappings/:departmentId"
|
|
574
|
+
);
|
|
575
|
+
var integrationTilbyDepartmentMappingIriSchema = iriSchema(
|
|
576
|
+
"/integrations/tilby/:id/department_mappings/:mappingId"
|
|
577
|
+
);
|
|
578
|
+
var integrationTilbyDepartmentMappingNullableIriSchema = iriNullableSchema(
|
|
579
|
+
"/integrations/tilby/:id/department_mappings/:mappingId"
|
|
580
|
+
);
|
|
581
|
+
var integrationTilbyVatMappingIriSchema = iriSchema(
|
|
582
|
+
"/integrations/tilby/:id/vat_mappings/:mappingId"
|
|
583
|
+
);
|
|
584
|
+
var integrationTilbyVatMappingNullableIriSchema = iriNullableSchema(
|
|
585
|
+
"/integrations/tilby/:id/vat_mappings/:mappingId"
|
|
586
|
+
);
|
|
587
|
+
var integrationCassaInCloudCategoryMappingIriSchema = iriSchema(
|
|
588
|
+
"/integrations/cassa_in_cloud/:id/category_mappings/:categoryId"
|
|
589
|
+
);
|
|
590
|
+
var integrationCassaInCloudCategoryMappingNullableIriSchema = iriNullableSchema(
|
|
591
|
+
"/integrations/cassa_in_cloud/:id/category_mappings/:categoryId"
|
|
592
|
+
);
|
|
593
|
+
var integrationTilbyCategoryMappingIriSchema = iriSchema(
|
|
594
|
+
"/integrations/tilby/:id/category_mappings/:mappingId"
|
|
595
|
+
);
|
|
596
|
+
var integrationTilbyCategoryMappingNullableIriSchema = iriNullableSchema(
|
|
597
|
+
"/integrations/tilby/:id/category_mappings/:mappingId"
|
|
598
|
+
);
|
|
599
|
+
var integrationCassaInCloudOptionMappingIriSchema = iriSchema(
|
|
600
|
+
"/integrations/cassa_in_cloud/:id/option_mappings/:optionId"
|
|
601
|
+
);
|
|
602
|
+
var integrationCassaInCloudComponentMappingIriSchema = iriSchema(
|
|
603
|
+
"/integrations/cassa_in_cloud/:id/component_mappings/:componentId"
|
|
604
|
+
);
|
|
605
|
+
var integrationTilbyComponentMappingIriSchema = iriSchema(
|
|
606
|
+
"/integrations/tilby/:id/component_mappings/:mappingId"
|
|
607
|
+
);
|
|
608
|
+
var integrationTilbyComponentMappingNullableIriSchema = iriNullableSchema(
|
|
609
|
+
"/integrations/tilby/:id/component_mappings/:mappingId"
|
|
610
|
+
);
|
|
611
|
+
var integrationCassaInCloudOrganizationMappingIriSchema = iriSchema(
|
|
612
|
+
"/integrations/cassa_in_cloud/:id/organization_mappings/:mappingId"
|
|
613
|
+
);
|
|
614
|
+
var integrationCassaInCloudProductMappingIriSchema = iriSchema(
|
|
615
|
+
"/integrations/cassa_in_cloud/:id/product_mappings/:productId"
|
|
616
|
+
);
|
|
617
|
+
var integrationCassaInCloudProductMappingNullableIriSchema = iriNullableSchema(
|
|
618
|
+
"/integrations/cassa_in_cloud/:id/product_mappings/:productId"
|
|
619
|
+
);
|
|
620
|
+
var integrationTilbyProductMappingIriSchema = iriSchema(
|
|
621
|
+
"/integrations/tilby/:id/product_mappings/:mappingId"
|
|
622
|
+
);
|
|
623
|
+
var integrationTilbyProductMappingNullableIriSchema = iriNullableSchema(
|
|
624
|
+
"/integrations/tilby/:id/product_mappings/:mappingId"
|
|
625
|
+
);
|
|
626
|
+
var integrationCassaInCloudProductVariantMappingIriSchema = iriSchema(
|
|
627
|
+
"/integrations/cassa_in_cloud/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
628
|
+
);
|
|
629
|
+
var integrationCassaInCloudProductVariantMappingNullableIriSchema = iriNullableSchema(
|
|
630
|
+
"/integrations/cassa_in_cloud/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
631
|
+
);
|
|
632
|
+
var integrationTilbyProductVariantMappingIriSchema = iriSchema(
|
|
633
|
+
"/integrations/tilby/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
634
|
+
);
|
|
635
|
+
var integrationTilbyProductVariantMappingNullableIriSchema = iriNullableSchema(
|
|
636
|
+
"/integrations/tilby/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
637
|
+
);
|
|
638
|
+
var integrationCassaInCloudSalesModeMappingIriSchema = iriSchema(
|
|
639
|
+
"/integrations/cassa_in_cloud/:id/sales_mode_mappings/:mappingId"
|
|
640
|
+
);
|
|
641
|
+
var integrationCassaInCloudCustomerMappingIriSchema = iriSchema(
|
|
642
|
+
"/integrations/cassa_in_cloud/:id/customer_mappings/:mappingId"
|
|
643
|
+
);
|
|
644
|
+
var integrationCassaInCloudCustomerMappingNullableIriSchema = iriNullableSchema(
|
|
645
|
+
"/integrations/cassa_in_cloud/:id/customer_mappings/:mappingId"
|
|
646
|
+
);
|
|
647
|
+
var integrationTilbyCustomerMappingIriSchema = iriSchema(
|
|
648
|
+
"/integrations/tilby/:id/customer_mappings/:mappingId"
|
|
649
|
+
);
|
|
650
|
+
var integrationTilbyCustomerMappingNullableIriSchema = iriNullableSchema(
|
|
651
|
+
"/integrations/tilby/:id/customer_mappings/:mappingId"
|
|
652
|
+
);
|
|
653
|
+
var integrationCassaInCloudOrderMappingIriSchema = iriSchema(
|
|
654
|
+
"/integrations/cassa_in_cloud/:id/order_mappings/:orderId"
|
|
655
|
+
);
|
|
656
|
+
var integrationCassaInCloudOrderMappingNullableIriSchema = iriNullableSchema(
|
|
657
|
+
"/integrations/cassa_in_cloud/:id/order_mappings/:orderId"
|
|
658
|
+
);
|
|
659
|
+
var integrationTilbyOrderMappingIriSchema = iriSchema(
|
|
660
|
+
"/integrations/tilby/:id/order_mappings/:mappingId"
|
|
661
|
+
);
|
|
662
|
+
var integrationTilbyOrderMappingNullableIriSchema = iriNullableSchema(
|
|
663
|
+
"/integrations/tilby/:id/order_mappings/:mappingId"
|
|
664
|
+
);
|
|
665
|
+
var integrationCassaInCloudOptionValueMappingIriSchema = iriSchema(
|
|
666
|
+
"/integrations/cassa_in_cloud/:id/option_value_mappings/:optionValueId"
|
|
667
|
+
);
|
|
668
|
+
var integrationCassaInCloudCategoryModifierValueMappingIriSchema = iriSchema(
|
|
669
|
+
"/integrations/cassa_in_cloud/:id/category_mappings/:categoryId/modifier_value_mappings/:modifierValueId"
|
|
670
|
+
);
|
|
671
|
+
var integrationCassaInCloudProductModifierValueMappingIriSchema = iriSchema(
|
|
672
|
+
"/integrations/cassa_in_cloud/:id/product_mappings/:productId/modifier_value_mappings/:modifierValueId"
|
|
673
|
+
);
|
|
674
|
+
var integrationCassaInCloudOptionValueModifierValueMappingIriSchema = iriSchema(
|
|
675
|
+
"/integrations/cassa_in_cloud/:id/option_value_mappings/:optionValueId/modifier_value_mappings/:modifierValueId"
|
|
676
|
+
);
|
|
677
|
+
|
|
678
|
+
// src/activatable-integration-data-schemas.ts
|
|
679
|
+
function optionalCleanField(schema) {
|
|
680
|
+
return z3.preprocess((value) => {
|
|
681
|
+
if (value === null || value === "") {
|
|
682
|
+
return void 0;
|
|
683
|
+
}
|
|
684
|
+
return value;
|
|
685
|
+
}, schema.optional());
|
|
686
|
+
}
|
|
687
|
+
var integrationKitchenDataSchema = z3.object({
|
|
688
|
+
viewMode: z3.string().trim().min(1, "viewMode.required")
|
|
689
|
+
});
|
|
690
|
+
var integrationDeliverooDataSchema = z3.object({
|
|
691
|
+
brandId: z3.string().trim().min(1, "brandId.required"),
|
|
692
|
+
siteId: z3.string().trim().min(1, "siteId.required"),
|
|
693
|
+
salesModeId: z3.string().nullable()
|
|
694
|
+
});
|
|
695
|
+
var integrationGlovoDataSchema = z3.object({
|
|
696
|
+
storeId: z3.string().trim().min(1, "storeId.required"),
|
|
697
|
+
salesModeId: z3.string().nullable()
|
|
698
|
+
});
|
|
699
|
+
var integrationJustEatDataSchema = z3.object({
|
|
700
|
+
restaurantId: z3.string().trim().min(1, "restaurantId.required"),
|
|
701
|
+
salesModeId: z3.string().nullable()
|
|
702
|
+
});
|
|
703
|
+
var integrationCassaInCloudDataSchema = z3.object({
|
|
704
|
+
apiKey: z3.string().trim().min(1, "apiKey.required"),
|
|
705
|
+
idSalesPoint: z3.coerce.number().int("idSalesPoint.integer").positive("idSalesPoint.positive"),
|
|
706
|
+
direction: integrationCassaInCloudDirectionSchema,
|
|
707
|
+
locale: z3.string().trim().transform((v) => v.replace("-", "_")).refine((v) => /^[a-z]{2}_[A-Z]{2}$/.test(v), { message: "locale.invalid" })
|
|
708
|
+
});
|
|
709
|
+
var integrationTilbyDataSchema = z3.object({
|
|
710
|
+
apiToken: z3.string().trim().min(1, "apiToken.required"),
|
|
711
|
+
webhookEmail: optionalCleanField(z3.string().trim().email()),
|
|
712
|
+
xClient: optionalCleanField(z3.string().trim().min(1, "xClient.required")),
|
|
713
|
+
defaultSellerId: optionalCleanField(z3.coerce.number().int().positive()),
|
|
714
|
+
defaultSellerName: optionalCleanField(z3.string().trim().min(1, "defaultSellerName.required")),
|
|
715
|
+
autoPrintOrder: optionalCleanField(z3.boolean()),
|
|
716
|
+
deliverartChannelName: optionalCleanField(
|
|
717
|
+
z3.string().trim().min(1, "deliverartChannelName.required")
|
|
718
|
+
),
|
|
719
|
+
defaultPaymentMethodId: optionalCleanField(z3.coerce.number().int().positive()),
|
|
720
|
+
defaultPaymentMethodName: optionalCleanField(z3.string().trim().min(1)),
|
|
721
|
+
defaultPaymentMethodTypeId: optionalCleanField(z3.coerce.number().int().positive()),
|
|
722
|
+
defaultPaymentMethodTypeName: optionalCleanField(z3.string().trim().min(1)),
|
|
723
|
+
defaultStockLocationId: optionalCleanField(z3.coerce.number().int().positive()),
|
|
724
|
+
syncSettings: optionalCleanField(integrationTilbyEditableSyncSettingsSchema)
|
|
725
|
+
});
|
|
726
|
+
var integrationEcommerceDataSchema = z3.object({
|
|
727
|
+
path: z3.string().trim().min(1, "path.required").max(50, "path.max").regex(/^[a-z0-9-]+$/, "path.invalid"),
|
|
728
|
+
orderingModes: z3.array(integrationEcommerceOrderingModeSchema).min(1, "orderingModes.required"),
|
|
729
|
+
minOrderValue: z3.coerce.number().nonnegative("minOrderValue.nonnegative"),
|
|
730
|
+
displayName: optionalCleanField(z3.string().trim().min(1).max(120)),
|
|
731
|
+
tagline: optionalCleanField(z3.string().trim().min(1).max(255)),
|
|
732
|
+
menuViewMode: optionalCleanField(integrationEcommerceMenuViewModeSchema),
|
|
733
|
+
logo: optionalCleanField(z3.string().trim().min(1).max(80)),
|
|
734
|
+
heroImage: optionalCleanField(z3.string().trim().min(1).max(80)),
|
|
735
|
+
theme: optionalCleanField(integrationEcommerceThemeSchema)
|
|
736
|
+
});
|
|
737
|
+
var integrationElephantRestaurantAuthenticationSchema = z3.record(
|
|
738
|
+
z3.string(),
|
|
739
|
+
z3.unknown()
|
|
740
|
+
);
|
|
741
|
+
var integrationElephantRestaurantDataSchema = z3.object({
|
|
742
|
+
name: z3.string().trim().min(1, "name.required").max(255),
|
|
743
|
+
platform: z3.string().trim().min(1, "platform.required").max(50),
|
|
744
|
+
platformRestaurantId: z3.string().trim().min(1, "platformRestaurantId.required").max(255),
|
|
745
|
+
platformChainId: optionalCleanField(z3.string().trim().max(255)),
|
|
746
|
+
authentication: integrationElephantRestaurantAuthenticationSchema.nullish(),
|
|
747
|
+
salesModeId: z3.string().trim().min(1, "salesModeId.required"),
|
|
748
|
+
categoryId: z3.string().trim().min(1, "categoryId.required"),
|
|
749
|
+
defaultTaxRate: z3.coerce.number().min(0).max(100),
|
|
750
|
+
channels: z3.array(menuChannelSchema2).min(2),
|
|
751
|
+
orderType: orderTypeSchema.refine((value) => value !== "kitchen", "orderType.invalid"),
|
|
752
|
+
defaultPreparationTime: z3.coerce.number().int().min(0).max(240),
|
|
753
|
+
acceptanceTimeout: z3.coerce.number().int().min(0).max(120)
|
|
754
|
+
}).superRefine((value, context) => {
|
|
755
|
+
for (const requiredChannel of ["application", "elephant"]) {
|
|
756
|
+
if (!value.channels.includes(requiredChannel)) {
|
|
757
|
+
context.addIssue({
|
|
758
|
+
code: "custom",
|
|
759
|
+
message: `channels.${requiredChannel}.required`,
|
|
760
|
+
path: ["channels"],
|
|
761
|
+
input: value.channels
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
var integrationElephantDataCommonSchema = z3.object({
|
|
767
|
+
tenantId: optionalCleanField(z3.string().trim().max(36)),
|
|
768
|
+
appId: optionalCleanField(z3.string().trim().max(36)),
|
|
769
|
+
personalAccessToken: optionalCleanField(z3.string().trim().min(1)),
|
|
770
|
+
restaurants: z3.array(integrationElephantRestaurantDataSchema).min(1, "restaurants.required")
|
|
771
|
+
});
|
|
772
|
+
var integrationElephantDataSchema = z3.discriminatedUnion("credentialMode", [
|
|
773
|
+
integrationElephantDataCommonSchema.extend({
|
|
774
|
+
credentialMode: integrationElephantCredentialModeSchema.extract(["managed"])
|
|
775
|
+
}),
|
|
776
|
+
integrationElephantDataCommonSchema.extend({
|
|
777
|
+
credentialMode: integrationElephantCredentialModeSchema.extract(["provided"]),
|
|
778
|
+
tenantId: z3.string().trim().min(1, "tenantId.required").max(36),
|
|
779
|
+
appId: z3.string().trim().min(1, "appId.required").max(36),
|
|
780
|
+
personalAccessToken: z3.string().trim().min(1, "personalAccessToken.required")
|
|
781
|
+
})
|
|
782
|
+
]);
|
|
783
|
+
var integrationServiceDataSchema = z3.discriminatedUnion("service", [
|
|
784
|
+
z3.object({
|
|
785
|
+
service: z3.literal("kitchen"),
|
|
786
|
+
data: integrationKitchenDataSchema
|
|
787
|
+
}),
|
|
788
|
+
z3.object({
|
|
789
|
+
service: z3.literal("deliveroo"),
|
|
790
|
+
data: integrationDeliverooDataSchema
|
|
791
|
+
}),
|
|
792
|
+
z3.object({
|
|
793
|
+
service: z3.literal("glovo"),
|
|
794
|
+
data: integrationGlovoDataSchema
|
|
795
|
+
}),
|
|
796
|
+
z3.object({
|
|
797
|
+
service: z3.literal("justeat"),
|
|
798
|
+
data: integrationJustEatDataSchema
|
|
799
|
+
}),
|
|
800
|
+
z3.object({
|
|
801
|
+
service: z3.literal("cassa_in_cloud"),
|
|
802
|
+
data: integrationCassaInCloudDataSchema
|
|
803
|
+
}),
|
|
804
|
+
z3.object({
|
|
805
|
+
service: z3.literal("tilby"),
|
|
806
|
+
data: integrationTilbyDataSchema
|
|
807
|
+
}),
|
|
808
|
+
z3.object({
|
|
809
|
+
service: z3.literal("ecommerce"),
|
|
810
|
+
data: integrationEcommerceDataSchema
|
|
811
|
+
}),
|
|
812
|
+
z3.object({
|
|
813
|
+
service: z3.literal("elephant"),
|
|
814
|
+
data: integrationElephantDataSchema
|
|
815
|
+
})
|
|
816
|
+
]);
|
|
817
|
+
|
|
818
|
+
// src/activatable-integration-types.ts
|
|
819
|
+
import { z as z4 } from "zod";
|
|
820
|
+
var activatableIntegrationStatuses = [
|
|
821
|
+
"waiting_for_user",
|
|
822
|
+
"waiting_for_admin",
|
|
823
|
+
"request_sent_partner",
|
|
824
|
+
"provisioning",
|
|
825
|
+
"active",
|
|
826
|
+
"failed"
|
|
827
|
+
];
|
|
828
|
+
var activatableIntegrationStatusSchema = z4.enum(activatableIntegrationStatuses);
|
|
829
|
+
var activatableIntegrationHealthStatuses = ["success", "waiting", "error"];
|
|
830
|
+
var activatableIntegrationHealthStatusSchema = z4.enum(activatableIntegrationHealthStatuses);
|
|
831
|
+
|
|
832
|
+
// src/activatable-integration.ts
|
|
833
|
+
var activatableIntegrationBaseSchema = z5.object({
|
|
834
|
+
id: z5.string(),
|
|
835
|
+
connectionId: z5.string().nullable(),
|
|
836
|
+
integration: z5.union([
|
|
837
|
+
integrationKitchenIriSchema,
|
|
838
|
+
integrationDeliverooIriSchema,
|
|
839
|
+
integrationGlovoIriSchema,
|
|
840
|
+
integrationJustEatIriSchema,
|
|
841
|
+
integrationCassaInCloudIriSchema,
|
|
842
|
+
integrationTilbyIriSchema,
|
|
843
|
+
integrationEcommerceIriSchema,
|
|
844
|
+
integrationElephantIriSchema
|
|
845
|
+
]).nullable(),
|
|
846
|
+
status: activatableIntegrationStatusSchema,
|
|
847
|
+
healthStatus: activatableIntegrationHealthStatusSchema,
|
|
848
|
+
provider: integrationProviderSchema,
|
|
849
|
+
name: z5.string(),
|
|
850
|
+
message: z5.string().nullable(),
|
|
851
|
+
internalNotes: z5.string().nullish(),
|
|
852
|
+
createdAt: datetimeSchema,
|
|
853
|
+
updatedAt: datetimeSchema,
|
|
854
|
+
updates: z5.array(
|
|
855
|
+
z5.object({
|
|
856
|
+
status: activatableIntegrationStatusSchema,
|
|
857
|
+
message: z5.string().nullable(),
|
|
858
|
+
updatedAt: datetimeSchema
|
|
859
|
+
})
|
|
860
|
+
).optional().default([])
|
|
861
|
+
});
|
|
862
|
+
function createIntegrationSchema(service, dataSchema, integrationPathSchema) {
|
|
863
|
+
return z5.object({
|
|
864
|
+
service: z5.literal(service),
|
|
865
|
+
data: dataSchema.optional(),
|
|
866
|
+
integration: integrationPathSchema.nullable().default(null)
|
|
867
|
+
}).extend(activatableIntegrationBaseSchema.omit({ integration: true }).shape);
|
|
868
|
+
}
|
|
869
|
+
var activatableIntegrationSchema = z5.discriminatedUnion("service", [
|
|
870
|
+
createIntegrationSchema(
|
|
871
|
+
"kitchen",
|
|
872
|
+
integrationKitchenDataSchema,
|
|
873
|
+
integrationKitchenNullableIriSchema
|
|
874
|
+
),
|
|
875
|
+
createIntegrationSchema(
|
|
876
|
+
"deliveroo",
|
|
877
|
+
integrationDeliverooDataSchema,
|
|
878
|
+
integrationDeliverooNullableIriSchema
|
|
879
|
+
),
|
|
880
|
+
createIntegrationSchema("glovo", integrationGlovoDataSchema, integrationGlovoNullableIriSchema),
|
|
881
|
+
createIntegrationSchema(
|
|
882
|
+
"justeat",
|
|
883
|
+
integrationJustEatDataSchema,
|
|
884
|
+
integrationJustEatNullableIriSchema
|
|
885
|
+
),
|
|
886
|
+
createIntegrationSchema(
|
|
887
|
+
"cassa_in_cloud",
|
|
888
|
+
integrationCassaInCloudDataSchema,
|
|
889
|
+
integrationCassaInCloudNullableIriSchema
|
|
890
|
+
),
|
|
891
|
+
createIntegrationSchema("tilby", integrationTilbyDataSchema, integrationTilbyNullableIriSchema),
|
|
892
|
+
createIntegrationSchema(
|
|
893
|
+
"ecommerce",
|
|
894
|
+
integrationEcommerceDataSchema,
|
|
895
|
+
integrationEcommerceNullableIriSchema
|
|
896
|
+
),
|
|
897
|
+
createIntegrationSchema(
|
|
898
|
+
"elephant",
|
|
899
|
+
integrationElephantDataSchema,
|
|
900
|
+
integrationElephantNullableIriSchema
|
|
901
|
+
)
|
|
902
|
+
]);
|
|
903
|
+
export {
|
|
904
|
+
activatableIntegrationBaseSchema,
|
|
905
|
+
activatableIntegrationHealthStatusSchema,
|
|
906
|
+
activatableIntegrationHealthStatuses,
|
|
907
|
+
activatableIntegrationSchema,
|
|
908
|
+
activatableIntegrationStatusSchema,
|
|
909
|
+
activatableIntegrationStatuses,
|
|
910
|
+
exclusiveIntegrationServiceSchema,
|
|
911
|
+
exclusiveIntegrationServices,
|
|
912
|
+
integrationCassaInCloudCategoryMappingIriSchema,
|
|
913
|
+
integrationCassaInCloudCategoryMappingNullableIriSchema,
|
|
914
|
+
integrationCassaInCloudCategoryModifierValueMappingIriSchema,
|
|
915
|
+
integrationCassaInCloudComponentMappingIriSchema,
|
|
916
|
+
integrationCassaInCloudCustomerMappingIriSchema,
|
|
917
|
+
integrationCassaInCloudCustomerMappingNullableIriSchema,
|
|
918
|
+
integrationCassaInCloudCustomersSyncStepSchema,
|
|
919
|
+
integrationCassaInCloudCustomersSyncSteps,
|
|
920
|
+
integrationCassaInCloudDataSchema,
|
|
921
|
+
integrationCassaInCloudDepartmentMappingIriSchema,
|
|
922
|
+
integrationCassaInCloudDirectionSchema,
|
|
923
|
+
integrationCassaInCloudDirections,
|
|
924
|
+
integrationCassaInCloudIriSchema,
|
|
925
|
+
integrationCassaInCloudMenuSyncStepSchema,
|
|
926
|
+
integrationCassaInCloudMenuSyncSteps,
|
|
927
|
+
integrationCassaInCloudMissingComponentStrategies,
|
|
928
|
+
integrationCassaInCloudMissingComponentStrategySchema,
|
|
929
|
+
integrationCassaInCloudNullableIriSchema,
|
|
930
|
+
integrationCassaInCloudOptionMappingIriSchema,
|
|
931
|
+
integrationCassaInCloudOptionValueMappingIriSchema,
|
|
932
|
+
integrationCassaInCloudOptionValueModifierValueMappingIriSchema,
|
|
933
|
+
integrationCassaInCloudOrderMappingIriSchema,
|
|
934
|
+
integrationCassaInCloudOrderMappingNullableIriSchema,
|
|
935
|
+
integrationCassaInCloudOrganizationMappingIriSchema,
|
|
936
|
+
integrationCassaInCloudProductChannelSchema,
|
|
937
|
+
integrationCassaInCloudProductChannels,
|
|
938
|
+
integrationCassaInCloudProductMappingIriSchema,
|
|
939
|
+
integrationCassaInCloudProductMappingNullableIriSchema,
|
|
940
|
+
integrationCassaInCloudProductModifierValueMappingIriSchema,
|
|
941
|
+
integrationCassaInCloudProductVariantMappingIriSchema,
|
|
942
|
+
integrationCassaInCloudProductVariantMappingNullableIriSchema,
|
|
943
|
+
integrationCassaInCloudSalesModeMappingIriSchema,
|
|
944
|
+
integrationCassaInCloudSalesModesSyncStepSchema,
|
|
945
|
+
integrationCassaInCloudSalesModesSyncSteps,
|
|
946
|
+
integrationCassaInCloudSuspendedItemStockStrategies,
|
|
947
|
+
integrationCassaInCloudSuspendedItemStockStrategySchema,
|
|
948
|
+
integrationCassaInCloudSyncCustomersErrorLogIriSchema,
|
|
949
|
+
integrationCassaInCloudSyncCustomersProcessIriSchema,
|
|
950
|
+
integrationCassaInCloudSyncDirectionSchema,
|
|
951
|
+
integrationCassaInCloudSyncDirections,
|
|
952
|
+
integrationCassaInCloudSyncMenuErrorLogIriSchema,
|
|
953
|
+
integrationCassaInCloudSyncMenuErrorLogNullableIriSchema,
|
|
954
|
+
integrationCassaInCloudSyncMenuProcessIriSchema,
|
|
955
|
+
integrationCassaInCloudSyncModeSchema,
|
|
956
|
+
integrationCassaInCloudSyncModes,
|
|
957
|
+
integrationCassaInCloudSyncSalesModesErrorLogIriSchema,
|
|
958
|
+
integrationCassaInCloudSyncSalesModesProcessIriSchema,
|
|
959
|
+
integrationCassaInCloudSyncTimetablesErrorLogIriSchema,
|
|
960
|
+
integrationCassaInCloudSyncTimetablesProcessIriSchema,
|
|
961
|
+
integrationCassaInCloudTimetablesSyncStepSchema,
|
|
962
|
+
integrationCassaInCloudTimetablesSyncSteps,
|
|
963
|
+
integrationCassaInCloudWebHookEventEntities,
|
|
964
|
+
integrationCassaInCloudWebHookEventEntitySchema,
|
|
965
|
+
integrationCassaInCloudWebHookEventEventSchema,
|
|
966
|
+
integrationCassaInCloudWebHookEventEvents,
|
|
967
|
+
integrationCassaInCloudWebHookSettingIriSchema,
|
|
968
|
+
integrationClientLogRequestMethodSchema,
|
|
969
|
+
integrationClientLogRequestMethods,
|
|
970
|
+
integrationDeliverooDataSchema,
|
|
971
|
+
integrationDeliverooDebugSiteTypeSchema,
|
|
972
|
+
integrationDeliverooDebugSiteTypes,
|
|
973
|
+
integrationDeliverooIriSchema,
|
|
974
|
+
integrationDeliverooMenuVersionIriSchema,
|
|
975
|
+
integrationDeliverooMenuVersionNullableIriSchema,
|
|
976
|
+
integrationDeliverooNullableIriSchema,
|
|
977
|
+
integrationDeliverooOrderIriSchema,
|
|
978
|
+
integrationDeliverooSiteStatusSchema,
|
|
979
|
+
integrationDeliverooSiteStatuses,
|
|
980
|
+
integrationDeliverooSyncMenuProcessModeSchema,
|
|
981
|
+
integrationDeliverooSyncMenuProcessModes,
|
|
982
|
+
integrationDeliverooWebhookEventTypeSchema,
|
|
983
|
+
integrationDeliverooWebhookEventTypes,
|
|
984
|
+
integrationDeliveryErrorSchema,
|
|
985
|
+
integrationDeliveryErrors,
|
|
986
|
+
integrationDetailsIriSchema,
|
|
987
|
+
integrationDetailsNullableIriSchema,
|
|
988
|
+
integrationDetailsPathPatterns,
|
|
989
|
+
integrationDetailsPathSchemas,
|
|
990
|
+
integrationEcommerceDataSchema,
|
|
991
|
+
integrationEcommerceIriSchema,
|
|
992
|
+
integrationEcommerceMenuViewModeSchema,
|
|
993
|
+
integrationEcommerceMenuViewModes,
|
|
994
|
+
integrationEcommerceNullableIriSchema,
|
|
995
|
+
integrationEcommerceOrderingModeSchema,
|
|
996
|
+
integrationEcommerceOrderingModes,
|
|
997
|
+
integrationEcommerceThemeSchema,
|
|
998
|
+
integrationElephantCatalogRoleSchema,
|
|
999
|
+
integrationElephantCatalogRoles,
|
|
1000
|
+
integrationElephantCatalogSideSchema,
|
|
1001
|
+
integrationElephantCatalogSides,
|
|
1002
|
+
integrationElephantCatalogStatusSchema,
|
|
1003
|
+
integrationElephantCatalogStatuses,
|
|
1004
|
+
integrationElephantCredentialModeSchema,
|
|
1005
|
+
integrationElephantCredentialModes,
|
|
1006
|
+
integrationElephantDataSchema,
|
|
1007
|
+
integrationElephantIriSchema,
|
|
1008
|
+
integrationElephantNullableIriSchema,
|
|
1009
|
+
integrationElephantOrderReleaseStatusSchema,
|
|
1010
|
+
integrationElephantOrderReleaseStatuses,
|
|
1011
|
+
integrationElephantProvisioningStepSchema,
|
|
1012
|
+
integrationElephantProvisioningSteps,
|
|
1013
|
+
integrationElephantRestaurantAuthenticationSchema,
|
|
1014
|
+
integrationElephantRestaurantDataSchema,
|
|
1015
|
+
integrationElephantRestaurantIriSchema,
|
|
1016
|
+
integrationElephantRestaurantNullableIriSchema,
|
|
1017
|
+
integrationElephantRestaurantStatusSchema,
|
|
1018
|
+
integrationElephantRestaurantStatuses,
|
|
1019
|
+
integrationGlovoBulkUpdateIriSchema,
|
|
1020
|
+
integrationGlovoBulkUpdateStatusSchema,
|
|
1021
|
+
integrationGlovoBulkUpdateStatuses,
|
|
1022
|
+
integrationGlovoDataSchema,
|
|
1023
|
+
integrationGlovoIriSchema,
|
|
1024
|
+
integrationGlovoMenuItemDeltaIriSchema,
|
|
1025
|
+
integrationGlovoMenuUpdateStatusSchema,
|
|
1026
|
+
integrationGlovoMenuUpdateStatuses,
|
|
1027
|
+
integrationGlovoMenuVersionIriSchema,
|
|
1028
|
+
integrationGlovoMenuVersionNullableIriSchema,
|
|
1029
|
+
integrationGlovoNullableIriSchema,
|
|
1030
|
+
integrationGlovoOrderIriSchema,
|
|
1031
|
+
integrationGlovoStoreStatusSchema,
|
|
1032
|
+
integrationGlovoStoreStatuses,
|
|
1033
|
+
integrationGlovoSyncStatusSchema,
|
|
1034
|
+
integrationGlovoSyncStatuses,
|
|
1035
|
+
integrationGlovoWebhookEventTypeSchema,
|
|
1036
|
+
integrationGlovoWebhookEventTypes,
|
|
1037
|
+
integrationHealthStatusSchema,
|
|
1038
|
+
integrationHealthStatuses,
|
|
1039
|
+
integrationIriSchema,
|
|
1040
|
+
integrationIssueCodeSchema,
|
|
1041
|
+
integrationIssueCodes,
|
|
1042
|
+
integrationIssueIriSchema,
|
|
1043
|
+
integrationIssueScopeSchema,
|
|
1044
|
+
integrationIssueScopes,
|
|
1045
|
+
integrationJustEatDataSchema,
|
|
1046
|
+
integrationJustEatIriSchema,
|
|
1047
|
+
integrationJustEatMenuTypeSchema,
|
|
1048
|
+
integrationJustEatMenuTypes,
|
|
1049
|
+
integrationJustEatMenuVersionIriSchema,
|
|
1050
|
+
integrationJustEatMenuVersionNullableIriSchema,
|
|
1051
|
+
integrationJustEatNullableIriSchema,
|
|
1052
|
+
integrationJustEatOrderCancellationReasonSchema,
|
|
1053
|
+
integrationJustEatOrderCancellationReasons,
|
|
1054
|
+
integrationJustEatOrderIriSchema,
|
|
1055
|
+
integrationJustEatRestaurantStatusSchema,
|
|
1056
|
+
integrationJustEatRestaurantStatuses,
|
|
1057
|
+
integrationJustEatSyncTypeSchema,
|
|
1058
|
+
integrationJustEatSyncTypes,
|
|
1059
|
+
integrationKitchenDataSchema,
|
|
1060
|
+
integrationKitchenIriSchema,
|
|
1061
|
+
integrationKitchenNullableIriSchema,
|
|
1062
|
+
integrationKitchenViewModeSchema,
|
|
1063
|
+
integrationKitchenViewModes,
|
|
1064
|
+
integrationMenuVersionPathSchemas,
|
|
1065
|
+
integrationNullableIriSchema,
|
|
1066
|
+
integrationPathSchemas,
|
|
1067
|
+
integrationProviderSchema,
|
|
1068
|
+
integrationProviders,
|
|
1069
|
+
integrationRequestLogOutcomeSchema,
|
|
1070
|
+
integrationRequestLogOutcomes,
|
|
1071
|
+
integrationServiceDataSchema,
|
|
1072
|
+
integrationServiceSchema,
|
|
1073
|
+
integrationServices,
|
|
1074
|
+
integrationStatusSchema,
|
|
1075
|
+
integrationStatuses,
|
|
1076
|
+
integrationTilbyCategoryMappingIriSchema,
|
|
1077
|
+
integrationTilbyCategoryMappingNullableIriSchema,
|
|
1078
|
+
integrationTilbyComponentMappingIriSchema,
|
|
1079
|
+
integrationTilbyComponentMappingNullableIriSchema,
|
|
1080
|
+
integrationTilbyCustomerMappingIriSchema,
|
|
1081
|
+
integrationTilbyCustomerMappingNullableIriSchema,
|
|
1082
|
+
integrationTilbyCustomersSyncStepSchema,
|
|
1083
|
+
integrationTilbyCustomersSyncSteps,
|
|
1084
|
+
integrationTilbyDataSchema,
|
|
1085
|
+
integrationTilbyDepartmentMappingIriSchema,
|
|
1086
|
+
integrationTilbyDepartmentMappingNullableIriSchema,
|
|
1087
|
+
integrationTilbyEditableSyncSettingsSchema,
|
|
1088
|
+
integrationTilbyFiscalMappingsSyncStepSchema,
|
|
1089
|
+
integrationTilbyFiscalMappingsSyncSteps,
|
|
1090
|
+
integrationTilbyIriSchema,
|
|
1091
|
+
integrationTilbyMappingSyncFailureCodeSchema,
|
|
1092
|
+
integrationTilbyMappingSyncFailureCodes,
|
|
1093
|
+
integrationTilbyMappingSyncStatusSchema,
|
|
1094
|
+
integrationTilbyMappingSyncStatuses,
|
|
1095
|
+
integrationTilbyMenuSyncStepSchema,
|
|
1096
|
+
integrationTilbyMenuSyncSteps,
|
|
1097
|
+
integrationTilbyNullableIriSchema,
|
|
1098
|
+
integrationTilbyOrderMappingIriSchema,
|
|
1099
|
+
integrationTilbyOrderMappingNullableIriSchema,
|
|
1100
|
+
integrationTilbyOrdersSyncStepSchema,
|
|
1101
|
+
integrationTilbyOrdersSyncSteps,
|
|
1102
|
+
integrationTilbyProductMappingIriSchema,
|
|
1103
|
+
integrationTilbyProductMappingNullableIriSchema,
|
|
1104
|
+
integrationTilbyProductVariantMappingIriSchema,
|
|
1105
|
+
integrationTilbyProductVariantMappingNullableIriSchema,
|
|
1106
|
+
integrationTilbyStockSyncStepSchema,
|
|
1107
|
+
integrationTilbyStockSyncSteps,
|
|
1108
|
+
integrationTilbySyncCustomersErrorLogIriSchema,
|
|
1109
|
+
integrationTilbySyncCustomersProcessIriSchema,
|
|
1110
|
+
integrationTilbySyncDirectionSchema,
|
|
1111
|
+
integrationTilbySyncDirections,
|
|
1112
|
+
integrationTilbySyncFiscalMappingsErrorLogIriSchema,
|
|
1113
|
+
integrationTilbySyncFiscalMappingsProcessIriSchema,
|
|
1114
|
+
integrationTilbySyncMenuErrorLogIriSchema,
|
|
1115
|
+
integrationTilbySyncMenuProcessIriSchema,
|
|
1116
|
+
integrationTilbySyncModeSchema,
|
|
1117
|
+
integrationTilbySyncModes,
|
|
1118
|
+
integrationTilbySyncOrdersErrorLogIriSchema,
|
|
1119
|
+
integrationTilbySyncOrdersProcessIriSchema,
|
|
1120
|
+
integrationTilbySyncSettingsSchema,
|
|
1121
|
+
integrationTilbySyncStockErrorLogIriSchema,
|
|
1122
|
+
integrationTilbySyncStockProcessIriSchema,
|
|
1123
|
+
integrationTilbyVatMappingIriSchema,
|
|
1124
|
+
integrationTilbyVatMappingNullableIriSchema,
|
|
1125
|
+
integrationTilbyWebHookEventIriSchema,
|
|
1126
|
+
integrationTilbyWebHookSettingIriSchema
|
|
1127
|
+
};
|