@deliverart/sdk-js-integration-types 2.24.1 → 2.24.2
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 +81 -79
- package/dist/index.d.cts +72 -27
- package/dist/index.d.ts +72 -27
- package/dist/index.js +2 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -222,7 +222,7 @@ __export(index_exports, {
|
|
|
222
222
|
module.exports = __toCommonJS(index_exports);
|
|
223
223
|
|
|
224
224
|
// src/activatable-integration.ts
|
|
225
|
-
var
|
|
225
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
226
226
|
|
|
227
227
|
// ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/classic/external.js
|
|
228
228
|
var external_exports = {};
|
|
@@ -13993,7 +13993,9 @@ function date4(params) {
|
|
|
13993
13993
|
config(en_default());
|
|
13994
13994
|
|
|
13995
13995
|
// src/tilby-sync-settings.ts
|
|
13996
|
+
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
13996
13997
|
var integrationTilbySyncSettingsSchema = external_exports.object({
|
|
13998
|
+
newMenuItemChannels: external_exports.array(import_sdk_js_global_types.menuChannelSchema).default([...import_sdk_js_global_types.menuChannels]),
|
|
13997
13999
|
externalCascadeDeleteOrder: external_exports.boolean().default(true),
|
|
13998
14000
|
internalCascadeDeleteOrder: external_exports.boolean().default(true),
|
|
13999
14001
|
internalCascadeUpdateOrderStatus: external_exports.boolean().default(true),
|
|
@@ -14019,7 +14021,7 @@ var integrationTilbyEditableSyncSettingsSchema = integrationTilbySyncSettingsSch
|
|
|
14019
14021
|
}).partial();
|
|
14020
14022
|
|
|
14021
14023
|
// src/types.ts
|
|
14022
|
-
var
|
|
14024
|
+
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
14023
14025
|
var integrationStatuses = ["pending", "active", "deleting"];
|
|
14024
14026
|
var integrationStatusSchema = external_exports.enum(integrationStatuses);
|
|
14025
14027
|
var integrationProviders = ["deliverart", "cassa_in_cloud"];
|
|
@@ -14297,8 +14299,8 @@ var integrationTilbyStockSyncSteps = ["stock"];
|
|
|
14297
14299
|
var integrationTilbyStockSyncStepSchema = external_exports.enum(integrationTilbyStockSyncSteps);
|
|
14298
14300
|
function createIriSchemas(path) {
|
|
14299
14301
|
return {
|
|
14300
|
-
iriSchema: (0,
|
|
14301
|
-
iriNullableSchema: (0,
|
|
14302
|
+
iriSchema: (0, import_sdk_js_global_types2.iriSchema)(path),
|
|
14303
|
+
iriNullableSchema: (0, import_sdk_js_global_types2.iriNullableSchema)(path)
|
|
14302
14304
|
};
|
|
14303
14305
|
}
|
|
14304
14306
|
function createMultiPatternIriSchemas(patterns) {
|
|
@@ -14309,34 +14311,34 @@ function createMultiPatternIriSchemas(patterns) {
|
|
|
14309
14311
|
params: external_exports.record(external_exports.string(), external_exports.uuid({ message: "Invalid UUID format" }))
|
|
14310
14312
|
}),
|
|
14311
14313
|
external_exports.custom(
|
|
14312
|
-
(val) => val instanceof
|
|
14314
|
+
(val) => val instanceof import_sdk_js_global_types2.IriObject
|
|
14313
14315
|
)
|
|
14314
14316
|
]);
|
|
14315
14317
|
return {
|
|
14316
14318
|
iriSchema: rawIriSchema.transform((val) => {
|
|
14317
|
-
if (val instanceof
|
|
14319
|
+
if (val instanceof import_sdk_js_global_types2.IriObject) {
|
|
14318
14320
|
return val;
|
|
14319
14321
|
}
|
|
14320
14322
|
const iri = typeof val === "string" ? val : val.iri;
|
|
14321
|
-
const pattern = patterns.find((candidate) => (0,
|
|
14323
|
+
const pattern = patterns.find((candidate) => (0, import_sdk_js_global_types2.matchesIriPattern)(iri, candidate));
|
|
14322
14324
|
if (!pattern) {
|
|
14323
14325
|
throw new Error(`IRI "${iri}" does not match any supported pattern`);
|
|
14324
14326
|
}
|
|
14325
|
-
return new
|
|
14327
|
+
return new import_sdk_js_global_types2.IriObject(iri, pattern);
|
|
14326
14328
|
}),
|
|
14327
14329
|
iriNullableSchema: external_exports.union([rawIriSchema, external_exports.null()]).transform((val) => {
|
|
14328
14330
|
if (val === null) {
|
|
14329
14331
|
return null;
|
|
14330
14332
|
}
|
|
14331
|
-
if (val instanceof
|
|
14333
|
+
if (val instanceof import_sdk_js_global_types2.IriObject) {
|
|
14332
14334
|
return val;
|
|
14333
14335
|
}
|
|
14334
14336
|
const iri = typeof val === "string" ? val : val.iri;
|
|
14335
|
-
const pattern = patterns.find((candidate) => (0,
|
|
14337
|
+
const pattern = patterns.find((candidate) => (0, import_sdk_js_global_types2.matchesIriPattern)(iri, candidate));
|
|
14336
14338
|
if (!pattern) {
|
|
14337
14339
|
throw new Error(`IRI "${iri}" does not match any supported pattern`);
|
|
14338
14340
|
}
|
|
14339
|
-
return new
|
|
14341
|
+
return new import_sdk_js_global_types2.IriObject(iri, pattern);
|
|
14340
14342
|
})
|
|
14341
14343
|
};
|
|
14342
14344
|
}
|
|
@@ -14372,8 +14374,8 @@ var integrationTilbyIriSchema = integrationPathSchemas.tilby.iriSchema;
|
|
|
14372
14374
|
var integrationTilbyNullableIriSchema = integrationPathSchemas.tilby.iriNullableSchema;
|
|
14373
14375
|
var integrationEcommerceIriSchema = integrationPathSchemas.ecommerce.iriSchema;
|
|
14374
14376
|
var integrationEcommerceNullableIriSchema = integrationPathSchemas.ecommerce.iriNullableSchema;
|
|
14375
|
-
var integrationIriSchema = (0,
|
|
14376
|
-
var integrationNullableIriSchema = (0,
|
|
14377
|
+
var integrationIriSchema = (0, import_sdk_js_global_types2.iriSchema)("/integrations/:id");
|
|
14378
|
+
var integrationNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)("/integrations/:id");
|
|
14377
14379
|
var integrationDetailsPathPatterns = [
|
|
14378
14380
|
"/integrations/:id",
|
|
14379
14381
|
...integrationServices.map((service) => `/integrations/${service}/:id`)
|
|
@@ -14383,189 +14385,189 @@ var integrationDetailsPathSchemas = createMultiPatternIriSchemas(
|
|
|
14383
14385
|
);
|
|
14384
14386
|
var integrationDetailsIriSchema = integrationDetailsPathSchemas.iriSchema;
|
|
14385
14387
|
var integrationDetailsNullableIriSchema = integrationDetailsPathSchemas.iriNullableSchema;
|
|
14386
|
-
var integrationIssueIriSchema = (0,
|
|
14387
|
-
var integrationDeliverooOrderIriSchema = (0,
|
|
14388
|
+
var integrationIssueIriSchema = (0, import_sdk_js_global_types2.iriSchema)("/integrations/:id/issues/:issueId");
|
|
14389
|
+
var integrationDeliverooOrderIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14388
14390
|
"/integrations/deliveroo/:id/orders/:orderId"
|
|
14389
14391
|
);
|
|
14390
|
-
var integrationGlovoOrderIriSchema = (0,
|
|
14391
|
-
var integrationGlovoBulkUpdateIriSchema = (0,
|
|
14392
|
+
var integrationGlovoOrderIriSchema = (0, import_sdk_js_global_types2.iriSchema)("/integrations/glovo/:id/orders/:orderId");
|
|
14393
|
+
var integrationGlovoBulkUpdateIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14392
14394
|
"/integrations/glovo/:id/bulk_updates/:bulkUpdateId"
|
|
14393
14395
|
);
|
|
14394
|
-
var integrationGlovoMenuItemDeltaIriSchema = (0,
|
|
14396
|
+
var integrationGlovoMenuItemDeltaIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14395
14397
|
"/integrations/glovo/:id/bulk_menu_item_deltas/:deltaId"
|
|
14396
14398
|
);
|
|
14397
|
-
var integrationJustEatOrderIriSchema = (0,
|
|
14399
|
+
var integrationJustEatOrderIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14398
14400
|
"/integrations/justeat/:id/orders/:orderId"
|
|
14399
14401
|
);
|
|
14400
|
-
var integrationCassaInCloudSyncMenuProcessIriSchema = (0,
|
|
14402
|
+
var integrationCassaInCloudSyncMenuProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14401
14403
|
"/integrations/cassa_in_cloud/:id/sync_menu_processes/:processId"
|
|
14402
14404
|
);
|
|
14403
|
-
var integrationCassaInCloudSyncCustomersProcessIriSchema = (0,
|
|
14405
|
+
var integrationCassaInCloudSyncCustomersProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14404
14406
|
"/integrations/cassa_in_cloud/:id/sync_customers_processes/:processId"
|
|
14405
14407
|
);
|
|
14406
|
-
var integrationCassaInCloudSyncSalesModesProcessIriSchema = (0,
|
|
14408
|
+
var integrationCassaInCloudSyncSalesModesProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14407
14409
|
"/integrations/cassa_in_cloud/:id/sync_sales_modes_processes/:processId"
|
|
14408
14410
|
);
|
|
14409
|
-
var integrationCassaInCloudSyncTimetablesProcessIriSchema = (0,
|
|
14411
|
+
var integrationCassaInCloudSyncTimetablesProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14410
14412
|
"/integrations/cassa_in_cloud/:id/sync_timetables_processes/:processId"
|
|
14411
14413
|
);
|
|
14412
|
-
var integrationCassaInCloudSyncMenuErrorLogIriSchema = (0,
|
|
14414
|
+
var integrationCassaInCloudSyncMenuErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14413
14415
|
"/integrations/cassa_in_cloud/:id/sync_menu_processes/:processId/error_logs/:errorLogId"
|
|
14414
14416
|
);
|
|
14415
|
-
var integrationCassaInCloudSyncMenuErrorLogNullableIriSchema = (0,
|
|
14417
|
+
var integrationCassaInCloudSyncMenuErrorLogNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14416
14418
|
"/integrations/cassa_in_cloud/:id/sync_menu_processes/:processId/error_logs/:errorLogId"
|
|
14417
14419
|
);
|
|
14418
|
-
var integrationCassaInCloudSyncCustomersErrorLogIriSchema = (0,
|
|
14420
|
+
var integrationCassaInCloudSyncCustomersErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14419
14421
|
"/integrations/cassa_in_cloud/:id/sync_customers_processes/:processId/error_logs/:errorLogId"
|
|
14420
14422
|
);
|
|
14421
|
-
var integrationCassaInCloudSyncSalesModesErrorLogIriSchema = (0,
|
|
14423
|
+
var integrationCassaInCloudSyncSalesModesErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14422
14424
|
"/integrations/cassa_in_cloud/:id/sync_sales_modes_processes/:processId/error_logs/:errorLogId"
|
|
14423
14425
|
);
|
|
14424
|
-
var integrationCassaInCloudSyncTimetablesErrorLogIriSchema = (0,
|
|
14426
|
+
var integrationCassaInCloudSyncTimetablesErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14425
14427
|
"/integrations/cassa_in_cloud/:id/sync_timetables_processes/:processId/error_logs/:errorLogId"
|
|
14426
14428
|
);
|
|
14427
|
-
var integrationTilbySyncFiscalMappingsProcessIriSchema = (0,
|
|
14429
|
+
var integrationTilbySyncFiscalMappingsProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14428
14430
|
"/integrations/tilby/:id/sync_fiscal_mappings_processes/:processId"
|
|
14429
14431
|
);
|
|
14430
|
-
var integrationTilbySyncCustomersProcessIriSchema = (0,
|
|
14432
|
+
var integrationTilbySyncCustomersProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14431
14433
|
"/integrations/tilby/:id/sync_customers_processes/:processId"
|
|
14432
14434
|
);
|
|
14433
|
-
var integrationTilbySyncMenuProcessIriSchema = (0,
|
|
14435
|
+
var integrationTilbySyncMenuProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14434
14436
|
"/integrations/tilby/:id/sync_menu_processes/:processId"
|
|
14435
14437
|
);
|
|
14436
|
-
var integrationTilbySyncOrdersProcessIriSchema = (0,
|
|
14438
|
+
var integrationTilbySyncOrdersProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14437
14439
|
"/integrations/tilby/:id/sync_orders_processes/:processId"
|
|
14438
14440
|
);
|
|
14439
|
-
var integrationTilbySyncStockProcessIriSchema = (0,
|
|
14441
|
+
var integrationTilbySyncStockProcessIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14440
14442
|
"/integrations/tilby/:id/sync_stock_processes/:processId"
|
|
14441
14443
|
);
|
|
14442
|
-
var integrationTilbySyncFiscalMappingsErrorLogIriSchema = (0,
|
|
14444
|
+
var integrationTilbySyncFiscalMappingsErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14443
14445
|
"/integrations/tilby/:id/sync_fiscal_mappings_processes/:processId/error_logs/:errorLogId"
|
|
14444
14446
|
);
|
|
14445
|
-
var integrationTilbySyncCustomersErrorLogIriSchema = (0,
|
|
14447
|
+
var integrationTilbySyncCustomersErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14446
14448
|
"/integrations/tilby/:id/sync_customers_processes/:processId/error_logs/:errorLogId"
|
|
14447
14449
|
);
|
|
14448
|
-
var integrationTilbySyncMenuErrorLogIriSchema = (0,
|
|
14450
|
+
var integrationTilbySyncMenuErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14449
14451
|
"/integrations/tilby/:id/sync_menu_processes/:processId/error_logs/:errorLogId"
|
|
14450
14452
|
);
|
|
14451
|
-
var integrationTilbySyncOrdersErrorLogIriSchema = (0,
|
|
14453
|
+
var integrationTilbySyncOrdersErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14452
14454
|
"/integrations/tilby/:id/sync_orders_processes/:processId/error_logs/:errorLogId"
|
|
14453
14455
|
);
|
|
14454
|
-
var integrationTilbySyncStockErrorLogIriSchema = (0,
|
|
14456
|
+
var integrationTilbySyncStockErrorLogIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14455
14457
|
"/integrations/tilby/:id/sync_stock_processes/:processId/error_logs/:errorLogId"
|
|
14456
14458
|
);
|
|
14457
|
-
var integrationCassaInCloudWebHookSettingIriSchema = (0,
|
|
14459
|
+
var integrationCassaInCloudWebHookSettingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14458
14460
|
"/integrations/cassa_in_cloud/:id/webhook_settings/:webHookId"
|
|
14459
14461
|
);
|
|
14460
|
-
var integrationTilbyWebHookSettingIriSchema = (0,
|
|
14462
|
+
var integrationTilbyWebHookSettingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14461
14463
|
"/integrations/tilby/:id/webhook_settings/:webHookId"
|
|
14462
14464
|
);
|
|
14463
|
-
var integrationTilbyWebHookEventIriSchema = (0,
|
|
14465
|
+
var integrationTilbyWebHookEventIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14464
14466
|
"/integrations/tilby/:id/webhook_events/:eventId"
|
|
14465
14467
|
);
|
|
14466
|
-
var integrationCassaInCloudDepartmentMappingIriSchema = (0,
|
|
14468
|
+
var integrationCassaInCloudDepartmentMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14467
14469
|
"/integrations/cassa_in_cloud/:id/department_mappings/:departmentId"
|
|
14468
14470
|
);
|
|
14469
|
-
var integrationTilbyDepartmentMappingIriSchema = (0,
|
|
14471
|
+
var integrationTilbyDepartmentMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14470
14472
|
"/integrations/tilby/:id/department_mappings/:mappingId"
|
|
14471
14473
|
);
|
|
14472
|
-
var integrationTilbyDepartmentMappingNullableIriSchema = (0,
|
|
14474
|
+
var integrationTilbyDepartmentMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14473
14475
|
"/integrations/tilby/:id/department_mappings/:mappingId"
|
|
14474
14476
|
);
|
|
14475
|
-
var integrationTilbyVatMappingIriSchema = (0,
|
|
14477
|
+
var integrationTilbyVatMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14476
14478
|
"/integrations/tilby/:id/vat_mappings/:mappingId"
|
|
14477
14479
|
);
|
|
14478
|
-
var integrationTilbyVatMappingNullableIriSchema = (0,
|
|
14480
|
+
var integrationTilbyVatMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14479
14481
|
"/integrations/tilby/:id/vat_mappings/:mappingId"
|
|
14480
14482
|
);
|
|
14481
|
-
var integrationCassaInCloudCategoryMappingIriSchema = (0,
|
|
14483
|
+
var integrationCassaInCloudCategoryMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14482
14484
|
"/integrations/cassa_in_cloud/:id/category_mappings/:categoryId"
|
|
14483
14485
|
);
|
|
14484
|
-
var integrationCassaInCloudCategoryMappingNullableIriSchema = (0,
|
|
14486
|
+
var integrationCassaInCloudCategoryMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14485
14487
|
"/integrations/cassa_in_cloud/:id/category_mappings/:categoryId"
|
|
14486
14488
|
);
|
|
14487
|
-
var integrationTilbyCategoryMappingIriSchema = (0,
|
|
14489
|
+
var integrationTilbyCategoryMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14488
14490
|
"/integrations/tilby/:id/category_mappings/:mappingId"
|
|
14489
14491
|
);
|
|
14490
|
-
var integrationTilbyCategoryMappingNullableIriSchema = (0,
|
|
14492
|
+
var integrationTilbyCategoryMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14491
14493
|
"/integrations/tilby/:id/category_mappings/:mappingId"
|
|
14492
14494
|
);
|
|
14493
|
-
var integrationCassaInCloudOptionMappingIriSchema = (0,
|
|
14495
|
+
var integrationCassaInCloudOptionMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14494
14496
|
"/integrations/cassa_in_cloud/:id/option_mappings/:optionId"
|
|
14495
14497
|
);
|
|
14496
|
-
var integrationCassaInCloudComponentMappingIriSchema = (0,
|
|
14498
|
+
var integrationCassaInCloudComponentMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14497
14499
|
"/integrations/cassa_in_cloud/:id/component_mappings/:componentId"
|
|
14498
14500
|
);
|
|
14499
|
-
var integrationTilbyComponentMappingIriSchema = (0,
|
|
14501
|
+
var integrationTilbyComponentMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14500
14502
|
"/integrations/tilby/:id/component_mappings/:mappingId"
|
|
14501
14503
|
);
|
|
14502
|
-
var integrationTilbyComponentMappingNullableIriSchema = (0,
|
|
14504
|
+
var integrationTilbyComponentMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14503
14505
|
"/integrations/tilby/:id/component_mappings/:mappingId"
|
|
14504
14506
|
);
|
|
14505
|
-
var integrationCassaInCloudOrganizationMappingIriSchema = (0,
|
|
14507
|
+
var integrationCassaInCloudOrganizationMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14506
14508
|
"/integrations/cassa_in_cloud/:id/organization_mappings/:mappingId"
|
|
14507
14509
|
);
|
|
14508
|
-
var integrationCassaInCloudProductMappingIriSchema = (0,
|
|
14510
|
+
var integrationCassaInCloudProductMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14509
14511
|
"/integrations/cassa_in_cloud/:id/product_mappings/:productId"
|
|
14510
14512
|
);
|
|
14511
|
-
var integrationCassaInCloudProductMappingNullableIriSchema = (0,
|
|
14513
|
+
var integrationCassaInCloudProductMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14512
14514
|
"/integrations/cassa_in_cloud/:id/product_mappings/:productId"
|
|
14513
14515
|
);
|
|
14514
|
-
var integrationTilbyProductMappingIriSchema = (0,
|
|
14516
|
+
var integrationTilbyProductMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14515
14517
|
"/integrations/tilby/:id/product_mappings/:mappingId"
|
|
14516
14518
|
);
|
|
14517
|
-
var integrationTilbyProductMappingNullableIriSchema = (0,
|
|
14519
|
+
var integrationTilbyProductMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14518
14520
|
"/integrations/tilby/:id/product_mappings/:mappingId"
|
|
14519
14521
|
);
|
|
14520
|
-
var integrationCassaInCloudProductVariantMappingIriSchema = (0,
|
|
14522
|
+
var integrationCassaInCloudProductVariantMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14521
14523
|
"/integrations/cassa_in_cloud/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
14522
14524
|
);
|
|
14523
|
-
var integrationCassaInCloudProductVariantMappingNullableIriSchema = (0,
|
|
14525
|
+
var integrationCassaInCloudProductVariantMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14524
14526
|
"/integrations/cassa_in_cloud/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
14525
14527
|
);
|
|
14526
|
-
var integrationTilbyProductVariantMappingIriSchema = (0,
|
|
14528
|
+
var integrationTilbyProductVariantMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14527
14529
|
"/integrations/tilby/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
14528
14530
|
);
|
|
14529
|
-
var integrationTilbyProductVariantMappingNullableIriSchema = (0,
|
|
14531
|
+
var integrationTilbyProductVariantMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14530
14532
|
"/integrations/tilby/:id/product_mappings/:productId/variant_mappings/:variantId"
|
|
14531
14533
|
);
|
|
14532
|
-
var integrationCassaInCloudSalesModeMappingIriSchema = (0,
|
|
14534
|
+
var integrationCassaInCloudSalesModeMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14533
14535
|
"/integrations/cassa_in_cloud/:id/sales_mode_mappings/:mappingId"
|
|
14534
14536
|
);
|
|
14535
|
-
var integrationCassaInCloudCustomerMappingIriSchema = (0,
|
|
14537
|
+
var integrationCassaInCloudCustomerMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14536
14538
|
"/integrations/cassa_in_cloud/:id/customer_mappings/:mappingId"
|
|
14537
14539
|
);
|
|
14538
|
-
var integrationCassaInCloudCustomerMappingNullableIriSchema = (0,
|
|
14540
|
+
var integrationCassaInCloudCustomerMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14539
14541
|
"/integrations/cassa_in_cloud/:id/customer_mappings/:mappingId"
|
|
14540
14542
|
);
|
|
14541
|
-
var integrationTilbyCustomerMappingIriSchema = (0,
|
|
14543
|
+
var integrationTilbyCustomerMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14542
14544
|
"/integrations/tilby/:id/customer_mappings/:mappingId"
|
|
14543
14545
|
);
|
|
14544
|
-
var integrationTilbyCustomerMappingNullableIriSchema = (0,
|
|
14546
|
+
var integrationTilbyCustomerMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14545
14547
|
"/integrations/tilby/:id/customer_mappings/:mappingId"
|
|
14546
14548
|
);
|
|
14547
|
-
var integrationCassaInCloudOrderMappingIriSchema = (0,
|
|
14549
|
+
var integrationCassaInCloudOrderMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14548
14550
|
"/integrations/cassa_in_cloud/:id/order_mappings/:orderId"
|
|
14549
14551
|
);
|
|
14550
|
-
var integrationCassaInCloudOrderMappingNullableIriSchema = (0,
|
|
14552
|
+
var integrationCassaInCloudOrderMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14551
14553
|
"/integrations/cassa_in_cloud/:id/order_mappings/:orderId"
|
|
14552
14554
|
);
|
|
14553
|
-
var integrationTilbyOrderMappingIriSchema = (0,
|
|
14555
|
+
var integrationTilbyOrderMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14554
14556
|
"/integrations/tilby/:id/order_mappings/:mappingId"
|
|
14555
14557
|
);
|
|
14556
|
-
var integrationTilbyOrderMappingNullableIriSchema = (0,
|
|
14558
|
+
var integrationTilbyOrderMappingNullableIriSchema = (0, import_sdk_js_global_types2.iriNullableSchema)(
|
|
14557
14559
|
"/integrations/tilby/:id/order_mappings/:mappingId"
|
|
14558
14560
|
);
|
|
14559
|
-
var integrationCassaInCloudOptionValueMappingIriSchema = (0,
|
|
14561
|
+
var integrationCassaInCloudOptionValueMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14560
14562
|
"/integrations/cassa_in_cloud/:id/option_value_mappings/:optionValueId"
|
|
14561
14563
|
);
|
|
14562
|
-
var integrationCassaInCloudCategoryModifierValueMappingIriSchema = (0,
|
|
14564
|
+
var integrationCassaInCloudCategoryModifierValueMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14563
14565
|
"/integrations/cassa_in_cloud/:id/category_mappings/:categoryId/modifier_value_mappings/:modifierValueId"
|
|
14564
14566
|
);
|
|
14565
|
-
var integrationCassaInCloudProductModifierValueMappingIriSchema = (0,
|
|
14567
|
+
var integrationCassaInCloudProductModifierValueMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14566
14568
|
"/integrations/cassa_in_cloud/:id/product_mappings/:productId/modifier_value_mappings/:modifierValueId"
|
|
14567
14569
|
);
|
|
14568
|
-
var integrationCassaInCloudOptionValueModifierValueMappingIriSchema = (0,
|
|
14570
|
+
var integrationCassaInCloudOptionValueModifierValueMappingIriSchema = (0, import_sdk_js_global_types2.iriSchema)(
|
|
14569
14571
|
"/integrations/cassa_in_cloud/:id/option_value_mappings/:optionValueId/modifier_value_mappings/:modifierValueId"
|
|
14570
14572
|
);
|
|
14571
14573
|
|
|
@@ -14690,13 +14692,13 @@ var activatableIntegrationBaseSchema = external_exports.object({
|
|
|
14690
14692
|
name: external_exports.string(),
|
|
14691
14693
|
message: external_exports.string().nullable(),
|
|
14692
14694
|
internalNotes: external_exports.string().nullish(),
|
|
14693
|
-
createdAt:
|
|
14694
|
-
updatedAt:
|
|
14695
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
14696
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema,
|
|
14695
14697
|
updates: external_exports.array(
|
|
14696
14698
|
external_exports.object({
|
|
14697
14699
|
status: activatableIntegrationStatusSchema,
|
|
14698
14700
|
message: external_exports.string().nullable(),
|
|
14699
|
-
updatedAt:
|
|
14701
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
14700
14702
|
})
|
|
14701
14703
|
).optional().default([])
|
|
14702
14704
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -14,13 +14,13 @@ declare const activatableIntegrationBaseSchema: z.ZodObject<{
|
|
|
14
14
|
request_sent_partner: "request_sent_partner";
|
|
15
15
|
}>;
|
|
16
16
|
healthStatus: z.ZodEnum<{
|
|
17
|
-
error: "error";
|
|
18
17
|
success: "success";
|
|
18
|
+
error: "error";
|
|
19
19
|
waiting: "waiting";
|
|
20
20
|
}>;
|
|
21
21
|
provider: z.ZodEnum<{
|
|
22
|
-
deliverart: "deliverart";
|
|
23
22
|
cassa_in_cloud: "cassa_in_cloud";
|
|
23
|
+
deliverart: "deliverart";
|
|
24
24
|
}>;
|
|
25
25
|
name: z.ZodString;
|
|
26
26
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -55,13 +55,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
55
55
|
request_sent_partner: "request_sent_partner";
|
|
56
56
|
}>;
|
|
57
57
|
healthStatus: z.ZodEnum<{
|
|
58
|
-
error: "error";
|
|
59
58
|
success: "success";
|
|
59
|
+
error: "error";
|
|
60
60
|
waiting: "waiting";
|
|
61
61
|
}>;
|
|
62
62
|
provider: z.ZodEnum<{
|
|
63
|
-
deliverart: "deliverart";
|
|
64
63
|
cassa_in_cloud: "cassa_in_cloud";
|
|
64
|
+
deliverart: "deliverart";
|
|
65
65
|
}>;
|
|
66
66
|
createdAt: z.ZodString;
|
|
67
67
|
updatedAt: z.ZodString;
|
|
@@ -97,13 +97,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
97
97
|
request_sent_partner: "request_sent_partner";
|
|
98
98
|
}>;
|
|
99
99
|
healthStatus: z.ZodEnum<{
|
|
100
|
-
error: "error";
|
|
101
100
|
success: "success";
|
|
101
|
+
error: "error";
|
|
102
102
|
waiting: "waiting";
|
|
103
103
|
}>;
|
|
104
104
|
provider: z.ZodEnum<{
|
|
105
|
-
deliverart: "deliverart";
|
|
106
105
|
cassa_in_cloud: "cassa_in_cloud";
|
|
106
|
+
deliverart: "deliverart";
|
|
107
107
|
}>;
|
|
108
108
|
createdAt: z.ZodString;
|
|
109
109
|
updatedAt: z.ZodString;
|
|
@@ -138,13 +138,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
138
138
|
request_sent_partner: "request_sent_partner";
|
|
139
139
|
}>;
|
|
140
140
|
healthStatus: z.ZodEnum<{
|
|
141
|
-
error: "error";
|
|
142
141
|
success: "success";
|
|
142
|
+
error: "error";
|
|
143
143
|
waiting: "waiting";
|
|
144
144
|
}>;
|
|
145
145
|
provider: z.ZodEnum<{
|
|
146
|
-
deliverart: "deliverart";
|
|
147
146
|
cassa_in_cloud: "cassa_in_cloud";
|
|
147
|
+
deliverart: "deliverart";
|
|
148
148
|
}>;
|
|
149
149
|
createdAt: z.ZodString;
|
|
150
150
|
updatedAt: z.ZodString;
|
|
@@ -179,13 +179,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
179
179
|
request_sent_partner: "request_sent_partner";
|
|
180
180
|
}>;
|
|
181
181
|
healthStatus: z.ZodEnum<{
|
|
182
|
-
error: "error";
|
|
183
182
|
success: "success";
|
|
183
|
+
error: "error";
|
|
184
184
|
waiting: "waiting";
|
|
185
185
|
}>;
|
|
186
186
|
provider: z.ZodEnum<{
|
|
187
|
-
deliverart: "deliverart";
|
|
188
187
|
cassa_in_cloud: "cassa_in_cloud";
|
|
188
|
+
deliverart: "deliverart";
|
|
189
189
|
}>;
|
|
190
190
|
createdAt: z.ZodString;
|
|
191
191
|
updatedAt: z.ZodString;
|
|
@@ -225,13 +225,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
225
225
|
request_sent_partner: "request_sent_partner";
|
|
226
226
|
}>;
|
|
227
227
|
healthStatus: z.ZodEnum<{
|
|
228
|
-
error: "error";
|
|
229
228
|
success: "success";
|
|
229
|
+
error: "error";
|
|
230
230
|
waiting: "waiting";
|
|
231
231
|
}>;
|
|
232
232
|
provider: z.ZodEnum<{
|
|
233
|
-
deliverart: "deliverart";
|
|
234
233
|
cassa_in_cloud: "cassa_in_cloud";
|
|
234
|
+
deliverart: "deliverart";
|
|
235
235
|
}>;
|
|
236
236
|
createdAt: z.ZodString;
|
|
237
237
|
updatedAt: z.ZodString;
|
|
@@ -265,6 +265,15 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
265
265
|
defaultPaymentMethodTypeName: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
|
|
266
266
|
defaultStockLocationId: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
267
267
|
syncSettings: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodObject<{
|
|
268
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
269
|
+
application: "application";
|
|
270
|
+
ecommerce: "ecommerce";
|
|
271
|
+
deliveroo: "deliveroo";
|
|
272
|
+
justeat: "justeat";
|
|
273
|
+
glovo: "glovo";
|
|
274
|
+
tilby: "tilby";
|
|
275
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
276
|
+
}>>>>;
|
|
268
277
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
269
278
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
270
279
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -296,13 +305,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
296
305
|
request_sent_partner: "request_sent_partner";
|
|
297
306
|
}>;
|
|
298
307
|
healthStatus: z.ZodEnum<{
|
|
299
|
-
error: "error";
|
|
300
308
|
success: "success";
|
|
309
|
+
error: "error";
|
|
301
310
|
waiting: "waiting";
|
|
302
311
|
}>;
|
|
303
312
|
provider: z.ZodEnum<{
|
|
304
|
-
deliverart: "deliverart";
|
|
305
313
|
cassa_in_cloud: "cassa_in_cloud";
|
|
314
|
+
deliverart: "deliverart";
|
|
306
315
|
}>;
|
|
307
316
|
createdAt: z.ZodString;
|
|
308
317
|
updatedAt: z.ZodString;
|
|
@@ -355,13 +364,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
355
364
|
request_sent_partner: "request_sent_partner";
|
|
356
365
|
}>;
|
|
357
366
|
healthStatus: z.ZodEnum<{
|
|
358
|
-
error: "error";
|
|
359
367
|
success: "success";
|
|
368
|
+
error: "error";
|
|
360
369
|
waiting: "waiting";
|
|
361
370
|
}>;
|
|
362
371
|
provider: z.ZodEnum<{
|
|
363
|
-
deliverart: "deliverart";
|
|
364
372
|
cassa_in_cloud: "cassa_in_cloud";
|
|
373
|
+
deliverart: "deliverart";
|
|
365
374
|
}>;
|
|
366
375
|
createdAt: z.ZodString;
|
|
367
376
|
updatedAt: z.ZodString;
|
|
@@ -426,6 +435,15 @@ declare const integrationTilbyDataSchema: z.ZodObject<{
|
|
|
426
435
|
defaultPaymentMethodTypeName: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
|
|
427
436
|
defaultStockLocationId: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
428
437
|
syncSettings: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodObject<{
|
|
438
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
439
|
+
application: "application";
|
|
440
|
+
ecommerce: "ecommerce";
|
|
441
|
+
deliveroo: "deliveroo";
|
|
442
|
+
justeat: "justeat";
|
|
443
|
+
glovo: "glovo";
|
|
444
|
+
tilby: "tilby";
|
|
445
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
446
|
+
}>>>>;
|
|
429
447
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
430
448
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
431
449
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -521,6 +539,15 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
521
539
|
defaultPaymentMethodTypeName: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
|
|
522
540
|
defaultStockLocationId: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
523
541
|
syncSettings: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodObject<{
|
|
542
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
543
|
+
application: "application";
|
|
544
|
+
ecommerce: "ecommerce";
|
|
545
|
+
deliveroo: "deliveroo";
|
|
546
|
+
justeat: "justeat";
|
|
547
|
+
glovo: "glovo";
|
|
548
|
+
tilby: "tilby";
|
|
549
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
550
|
+
}>>>>;
|
|
524
551
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
525
552
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
526
553
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -579,13 +606,22 @@ declare const activatableIntegrationStatusSchema: z.ZodEnum<{
|
|
|
579
606
|
type ActivatableIntegrationStatus = z.infer<typeof activatableIntegrationStatusSchema>;
|
|
580
607
|
declare const activatableIntegrationHealthStatuses: readonly ["success", "waiting", "error"];
|
|
581
608
|
declare const activatableIntegrationHealthStatusSchema: z.ZodEnum<{
|
|
582
|
-
error: "error";
|
|
583
609
|
success: "success";
|
|
610
|
+
error: "error";
|
|
584
611
|
waiting: "waiting";
|
|
585
612
|
}>;
|
|
586
613
|
type ActivatableIntegrationHealthStatus = z.infer<typeof activatableIntegrationHealthStatusSchema>;
|
|
587
614
|
|
|
588
615
|
declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
616
|
+
newMenuItemChannels: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
617
|
+
application: "application";
|
|
618
|
+
ecommerce: "ecommerce";
|
|
619
|
+
deliveroo: "deliveroo";
|
|
620
|
+
justeat: "justeat";
|
|
621
|
+
glovo: "glovo";
|
|
622
|
+
tilby: "tilby";
|
|
623
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
624
|
+
}>>>;
|
|
589
625
|
externalCascadeDeleteOrder: z.ZodDefault<z.ZodBoolean>;
|
|
590
626
|
internalCascadeDeleteOrder: z.ZodDefault<z.ZodBoolean>;
|
|
591
627
|
internalCascadeUpdateOrderStatus: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -608,6 +644,15 @@ declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
|
608
644
|
}, z.core.$strip>;
|
|
609
645
|
type IntegrationTilbySyncSettings = z.infer<typeof integrationTilbySyncSettingsSchema>;
|
|
610
646
|
declare const integrationTilbyEditableSyncSettingsSchema: z.ZodObject<{
|
|
647
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
648
|
+
application: "application";
|
|
649
|
+
ecommerce: "ecommerce";
|
|
650
|
+
deliveroo: "deliveroo";
|
|
651
|
+
justeat: "justeat";
|
|
652
|
+
glovo: "glovo";
|
|
653
|
+
tilby: "tilby";
|
|
654
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
655
|
+
}>>>>;
|
|
611
656
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
612
657
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
613
658
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -638,25 +683,25 @@ declare const integrationStatusSchema: z.ZodEnum<{
|
|
|
638
683
|
type IntegrationStatus = z.infer<typeof integrationStatusSchema>;
|
|
639
684
|
declare const integrationProviders: readonly ["deliverart", "cassa_in_cloud"];
|
|
640
685
|
declare const integrationProviderSchema: z.ZodEnum<{
|
|
641
|
-
deliverart: "deliverart";
|
|
642
686
|
cassa_in_cloud: "cassa_in_cloud";
|
|
687
|
+
deliverart: "deliverart";
|
|
643
688
|
}>;
|
|
644
689
|
type IntegrationProvider = z.infer<typeof integrationProviderSchema>;
|
|
645
690
|
declare const integrationServices: readonly ["deliveroo", "justeat", "glovo", "cassa_in_cloud", "tilby", "kitchen", "ecommerce"];
|
|
646
691
|
declare const integrationServiceSchema: z.ZodEnum<{
|
|
647
|
-
|
|
692
|
+
ecommerce: "ecommerce";
|
|
648
693
|
deliveroo: "deliveroo";
|
|
649
694
|
justeat: "justeat";
|
|
650
695
|
glovo: "glovo";
|
|
651
696
|
tilby: "tilby";
|
|
697
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
652
698
|
kitchen: "kitchen";
|
|
653
|
-
ecommerce: "ecommerce";
|
|
654
699
|
}>;
|
|
655
700
|
type IntegrationService = z.infer<typeof integrationServiceSchema>;
|
|
656
701
|
declare const exclusiveIntegrationServices: readonly ["kitchen", "cassa_in_cloud", "tilby"];
|
|
657
702
|
declare const exclusiveIntegrationServiceSchema: z.ZodEnum<{
|
|
658
|
-
cassa_in_cloud: "cassa_in_cloud";
|
|
659
703
|
tilby: "tilby";
|
|
704
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
660
705
|
kitchen: "kitchen";
|
|
661
706
|
}>;
|
|
662
707
|
type ExclusiveIntegrationService = z.infer<typeof exclusiveIntegrationServiceSchema>;
|
|
@@ -695,6 +740,7 @@ declare const integrationJustEatMenuTypeSchema: z.ZodEnum<{
|
|
|
695
740
|
type IntegrationJustEatMenuType = z.infer<typeof integrationJustEatMenuTypeSchema>;
|
|
696
741
|
declare const integrationJustEatOrderCancellationReasons: readonly ["custCancelledChangedMind", "custCancelledDeliveryTooLong", "custCancelledMadeMistake", "custCancelledOther", "restCancelledCustomerAbsent", "restCancelledCustomerRequested", "restCancelledDriversUnavailable", "restCancelledFakeOrder", "restCancelledOutOfStock", "restCancelledTooBusy", "restCancelledOther", "deletedTooFar", "deletedFakeDelivered", "deletedFakeNotDelivered", "deletedFaxNotReceived", "deletedIncorrectOrder", "deletedMissedByRestaurant", "deletedFakeNotCollected", "deletedRestaurantCannotDeliver", "deletedNewTimeRejected", "deletedTestOrder", "deletedRejectedByRestaurant", "deletedSystemError", "deletedRestaurantOffline", "deletedNoAnswerFromRestaurant", "deletedRejectedByPartner", "unknown"];
|
|
697
742
|
declare const integrationJustEatOrderCancellationReasonSchema: z.ZodEnum<{
|
|
743
|
+
unknown: "unknown";
|
|
698
744
|
custCancelledChangedMind: "custCancelledChangedMind";
|
|
699
745
|
custCancelledDeliveryTooLong: "custCancelledDeliveryTooLong";
|
|
700
746
|
custCancelledMadeMistake: "custCancelledMadeMistake";
|
|
@@ -721,7 +767,6 @@ declare const integrationJustEatOrderCancellationReasonSchema: z.ZodEnum<{
|
|
|
721
767
|
deletedRestaurantOffline: "deletedRestaurantOffline";
|
|
722
768
|
deletedNoAnswerFromRestaurant: "deletedNoAnswerFromRestaurant";
|
|
723
769
|
deletedRejectedByPartner: "deletedRejectedByPartner";
|
|
724
|
-
unknown: "unknown";
|
|
725
770
|
}>;
|
|
726
771
|
type IntegrationJustEatOrderCancellationReason = z.infer<typeof integrationJustEatOrderCancellationReasonSchema>;
|
|
727
772
|
declare const integrationDeliverooSiteStatuses: readonly ["OPEN", "CLOSED"];
|
|
@@ -1064,19 +1109,19 @@ declare const integrationIriSchema: z.ZodType<IriObject<"/integrations/:id">, un
|
|
|
1064
1109
|
type IntegrationPath = z.infer<typeof integrationIriSchema>;
|
|
1065
1110
|
declare const integrationNullableIriSchema: z.ZodType<IriObject<"/integrations/:id"> | null, unknown, z.core.$ZodTypeInternals<IriObject<"/integrations/:id"> | null, unknown>>;
|
|
1066
1111
|
type IntegrationNullablePath = z.infer<typeof integrationNullableIriSchema>;
|
|
1067
|
-
declare const integrationDetailsPathPatterns: readonly ["/integrations/:id", ...("/integrations/
|
|
1112
|
+
declare const integrationDetailsPathPatterns: readonly ["/integrations/:id", ...("/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id")[]];
|
|
1068
1113
|
declare const integrationDetailsPathSchemas: {
|
|
1069
1114
|
iriSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1070
1115
|
iri: z.ZodString;
|
|
1071
1116
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1072
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1117
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodTransform<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1073
1118
|
iri: string;
|
|
1074
1119
|
params: Record<string, string>;
|
|
1075
1120
|
}>>;
|
|
1076
1121
|
iriNullableSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1077
1122
|
iri: z.ZodString;
|
|
1078
1123
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1079
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1124
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodNull]>, z.ZodTransform<IriObject<string> | null, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1080
1125
|
iri: string;
|
|
1081
1126
|
params: Record<string, string>;
|
|
1082
1127
|
} | null>>;
|
|
@@ -1084,14 +1129,14 @@ declare const integrationDetailsPathSchemas: {
|
|
|
1084
1129
|
declare const integrationDetailsIriSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1085
1130
|
iri: z.ZodString;
|
|
1086
1131
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1087
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1132
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodTransform<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1088
1133
|
iri: string;
|
|
1089
1134
|
params: Record<string, string>;
|
|
1090
1135
|
}>>;
|
|
1091
1136
|
declare const integrationDetailsNullableIriSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1092
1137
|
iri: z.ZodString;
|
|
1093
1138
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1094
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1139
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodNull]>, z.ZodTransform<IriObject<string> | null, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1095
1140
|
iri: string;
|
|
1096
1141
|
params: Record<string, string>;
|
|
1097
1142
|
} | null>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,13 +14,13 @@ declare const activatableIntegrationBaseSchema: z.ZodObject<{
|
|
|
14
14
|
request_sent_partner: "request_sent_partner";
|
|
15
15
|
}>;
|
|
16
16
|
healthStatus: z.ZodEnum<{
|
|
17
|
-
error: "error";
|
|
18
17
|
success: "success";
|
|
18
|
+
error: "error";
|
|
19
19
|
waiting: "waiting";
|
|
20
20
|
}>;
|
|
21
21
|
provider: z.ZodEnum<{
|
|
22
|
-
deliverart: "deliverart";
|
|
23
22
|
cassa_in_cloud: "cassa_in_cloud";
|
|
23
|
+
deliverart: "deliverart";
|
|
24
24
|
}>;
|
|
25
25
|
name: z.ZodString;
|
|
26
26
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -55,13 +55,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
55
55
|
request_sent_partner: "request_sent_partner";
|
|
56
56
|
}>;
|
|
57
57
|
healthStatus: z.ZodEnum<{
|
|
58
|
-
error: "error";
|
|
59
58
|
success: "success";
|
|
59
|
+
error: "error";
|
|
60
60
|
waiting: "waiting";
|
|
61
61
|
}>;
|
|
62
62
|
provider: z.ZodEnum<{
|
|
63
|
-
deliverart: "deliverart";
|
|
64
63
|
cassa_in_cloud: "cassa_in_cloud";
|
|
64
|
+
deliverart: "deliverart";
|
|
65
65
|
}>;
|
|
66
66
|
createdAt: z.ZodString;
|
|
67
67
|
updatedAt: z.ZodString;
|
|
@@ -97,13 +97,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
97
97
|
request_sent_partner: "request_sent_partner";
|
|
98
98
|
}>;
|
|
99
99
|
healthStatus: z.ZodEnum<{
|
|
100
|
-
error: "error";
|
|
101
100
|
success: "success";
|
|
101
|
+
error: "error";
|
|
102
102
|
waiting: "waiting";
|
|
103
103
|
}>;
|
|
104
104
|
provider: z.ZodEnum<{
|
|
105
|
-
deliverart: "deliverart";
|
|
106
105
|
cassa_in_cloud: "cassa_in_cloud";
|
|
106
|
+
deliverart: "deliverart";
|
|
107
107
|
}>;
|
|
108
108
|
createdAt: z.ZodString;
|
|
109
109
|
updatedAt: z.ZodString;
|
|
@@ -138,13 +138,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
138
138
|
request_sent_partner: "request_sent_partner";
|
|
139
139
|
}>;
|
|
140
140
|
healthStatus: z.ZodEnum<{
|
|
141
|
-
error: "error";
|
|
142
141
|
success: "success";
|
|
142
|
+
error: "error";
|
|
143
143
|
waiting: "waiting";
|
|
144
144
|
}>;
|
|
145
145
|
provider: z.ZodEnum<{
|
|
146
|
-
deliverart: "deliverart";
|
|
147
146
|
cassa_in_cloud: "cassa_in_cloud";
|
|
147
|
+
deliverart: "deliverart";
|
|
148
148
|
}>;
|
|
149
149
|
createdAt: z.ZodString;
|
|
150
150
|
updatedAt: z.ZodString;
|
|
@@ -179,13 +179,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
179
179
|
request_sent_partner: "request_sent_partner";
|
|
180
180
|
}>;
|
|
181
181
|
healthStatus: z.ZodEnum<{
|
|
182
|
-
error: "error";
|
|
183
182
|
success: "success";
|
|
183
|
+
error: "error";
|
|
184
184
|
waiting: "waiting";
|
|
185
185
|
}>;
|
|
186
186
|
provider: z.ZodEnum<{
|
|
187
|
-
deliverart: "deliverart";
|
|
188
187
|
cassa_in_cloud: "cassa_in_cloud";
|
|
188
|
+
deliverart: "deliverart";
|
|
189
189
|
}>;
|
|
190
190
|
createdAt: z.ZodString;
|
|
191
191
|
updatedAt: z.ZodString;
|
|
@@ -225,13 +225,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
225
225
|
request_sent_partner: "request_sent_partner";
|
|
226
226
|
}>;
|
|
227
227
|
healthStatus: z.ZodEnum<{
|
|
228
|
-
error: "error";
|
|
229
228
|
success: "success";
|
|
229
|
+
error: "error";
|
|
230
230
|
waiting: "waiting";
|
|
231
231
|
}>;
|
|
232
232
|
provider: z.ZodEnum<{
|
|
233
|
-
deliverart: "deliverart";
|
|
234
233
|
cassa_in_cloud: "cassa_in_cloud";
|
|
234
|
+
deliverart: "deliverart";
|
|
235
235
|
}>;
|
|
236
236
|
createdAt: z.ZodString;
|
|
237
237
|
updatedAt: z.ZodString;
|
|
@@ -265,6 +265,15 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
265
265
|
defaultPaymentMethodTypeName: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
|
|
266
266
|
defaultStockLocationId: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
267
267
|
syncSettings: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodObject<{
|
|
268
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
269
|
+
application: "application";
|
|
270
|
+
ecommerce: "ecommerce";
|
|
271
|
+
deliveroo: "deliveroo";
|
|
272
|
+
justeat: "justeat";
|
|
273
|
+
glovo: "glovo";
|
|
274
|
+
tilby: "tilby";
|
|
275
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
276
|
+
}>>>>;
|
|
268
277
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
269
278
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
270
279
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -296,13 +305,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
296
305
|
request_sent_partner: "request_sent_partner";
|
|
297
306
|
}>;
|
|
298
307
|
healthStatus: z.ZodEnum<{
|
|
299
|
-
error: "error";
|
|
300
308
|
success: "success";
|
|
309
|
+
error: "error";
|
|
301
310
|
waiting: "waiting";
|
|
302
311
|
}>;
|
|
303
312
|
provider: z.ZodEnum<{
|
|
304
|
-
deliverart: "deliverart";
|
|
305
313
|
cassa_in_cloud: "cassa_in_cloud";
|
|
314
|
+
deliverart: "deliverart";
|
|
306
315
|
}>;
|
|
307
316
|
createdAt: z.ZodString;
|
|
308
317
|
updatedAt: z.ZodString;
|
|
@@ -355,13 +364,13 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
355
364
|
request_sent_partner: "request_sent_partner";
|
|
356
365
|
}>;
|
|
357
366
|
healthStatus: z.ZodEnum<{
|
|
358
|
-
error: "error";
|
|
359
367
|
success: "success";
|
|
368
|
+
error: "error";
|
|
360
369
|
waiting: "waiting";
|
|
361
370
|
}>;
|
|
362
371
|
provider: z.ZodEnum<{
|
|
363
|
-
deliverart: "deliverart";
|
|
364
372
|
cassa_in_cloud: "cassa_in_cloud";
|
|
373
|
+
deliverart: "deliverart";
|
|
365
374
|
}>;
|
|
366
375
|
createdAt: z.ZodString;
|
|
367
376
|
updatedAt: z.ZodString;
|
|
@@ -426,6 +435,15 @@ declare const integrationTilbyDataSchema: z.ZodObject<{
|
|
|
426
435
|
defaultPaymentMethodTypeName: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
|
|
427
436
|
defaultStockLocationId: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
428
437
|
syncSettings: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodObject<{
|
|
438
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
439
|
+
application: "application";
|
|
440
|
+
ecommerce: "ecommerce";
|
|
441
|
+
deliveroo: "deliveroo";
|
|
442
|
+
justeat: "justeat";
|
|
443
|
+
glovo: "glovo";
|
|
444
|
+
tilby: "tilby";
|
|
445
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
446
|
+
}>>>>;
|
|
429
447
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
430
448
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
431
449
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -521,6 +539,15 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
521
539
|
defaultPaymentMethodTypeName: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodString>>;
|
|
522
540
|
defaultStockLocationId: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
523
541
|
syncSettings: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodObject<{
|
|
542
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
543
|
+
application: "application";
|
|
544
|
+
ecommerce: "ecommerce";
|
|
545
|
+
deliveroo: "deliveroo";
|
|
546
|
+
justeat: "justeat";
|
|
547
|
+
glovo: "glovo";
|
|
548
|
+
tilby: "tilby";
|
|
549
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
550
|
+
}>>>>;
|
|
524
551
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
525
552
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
526
553
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -579,13 +606,22 @@ declare const activatableIntegrationStatusSchema: z.ZodEnum<{
|
|
|
579
606
|
type ActivatableIntegrationStatus = z.infer<typeof activatableIntegrationStatusSchema>;
|
|
580
607
|
declare const activatableIntegrationHealthStatuses: readonly ["success", "waiting", "error"];
|
|
581
608
|
declare const activatableIntegrationHealthStatusSchema: z.ZodEnum<{
|
|
582
|
-
error: "error";
|
|
583
609
|
success: "success";
|
|
610
|
+
error: "error";
|
|
584
611
|
waiting: "waiting";
|
|
585
612
|
}>;
|
|
586
613
|
type ActivatableIntegrationHealthStatus = z.infer<typeof activatableIntegrationHealthStatusSchema>;
|
|
587
614
|
|
|
588
615
|
declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
616
|
+
newMenuItemChannels: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
617
|
+
application: "application";
|
|
618
|
+
ecommerce: "ecommerce";
|
|
619
|
+
deliveroo: "deliveroo";
|
|
620
|
+
justeat: "justeat";
|
|
621
|
+
glovo: "glovo";
|
|
622
|
+
tilby: "tilby";
|
|
623
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
624
|
+
}>>>;
|
|
589
625
|
externalCascadeDeleteOrder: z.ZodDefault<z.ZodBoolean>;
|
|
590
626
|
internalCascadeDeleteOrder: z.ZodDefault<z.ZodBoolean>;
|
|
591
627
|
internalCascadeUpdateOrderStatus: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -608,6 +644,15 @@ declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
|
608
644
|
}, z.core.$strip>;
|
|
609
645
|
type IntegrationTilbySyncSettings = z.infer<typeof integrationTilbySyncSettingsSchema>;
|
|
610
646
|
declare const integrationTilbyEditableSyncSettingsSchema: z.ZodObject<{
|
|
647
|
+
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
648
|
+
application: "application";
|
|
649
|
+
ecommerce: "ecommerce";
|
|
650
|
+
deliveroo: "deliveroo";
|
|
651
|
+
justeat: "justeat";
|
|
652
|
+
glovo: "glovo";
|
|
653
|
+
tilby: "tilby";
|
|
654
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
655
|
+
}>>>>;
|
|
611
656
|
externalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
612
657
|
internalCascadeDeleteOrder: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
613
658
|
internalCascadeUpdateOrderStatus: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -638,25 +683,25 @@ declare const integrationStatusSchema: z.ZodEnum<{
|
|
|
638
683
|
type IntegrationStatus = z.infer<typeof integrationStatusSchema>;
|
|
639
684
|
declare const integrationProviders: readonly ["deliverart", "cassa_in_cloud"];
|
|
640
685
|
declare const integrationProviderSchema: z.ZodEnum<{
|
|
641
|
-
deliverart: "deliverart";
|
|
642
686
|
cassa_in_cloud: "cassa_in_cloud";
|
|
687
|
+
deliverart: "deliverart";
|
|
643
688
|
}>;
|
|
644
689
|
type IntegrationProvider = z.infer<typeof integrationProviderSchema>;
|
|
645
690
|
declare const integrationServices: readonly ["deliveroo", "justeat", "glovo", "cassa_in_cloud", "tilby", "kitchen", "ecommerce"];
|
|
646
691
|
declare const integrationServiceSchema: z.ZodEnum<{
|
|
647
|
-
|
|
692
|
+
ecommerce: "ecommerce";
|
|
648
693
|
deliveroo: "deliveroo";
|
|
649
694
|
justeat: "justeat";
|
|
650
695
|
glovo: "glovo";
|
|
651
696
|
tilby: "tilby";
|
|
697
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
652
698
|
kitchen: "kitchen";
|
|
653
|
-
ecommerce: "ecommerce";
|
|
654
699
|
}>;
|
|
655
700
|
type IntegrationService = z.infer<typeof integrationServiceSchema>;
|
|
656
701
|
declare const exclusiveIntegrationServices: readonly ["kitchen", "cassa_in_cloud", "tilby"];
|
|
657
702
|
declare const exclusiveIntegrationServiceSchema: z.ZodEnum<{
|
|
658
|
-
cassa_in_cloud: "cassa_in_cloud";
|
|
659
703
|
tilby: "tilby";
|
|
704
|
+
cassa_in_cloud: "cassa_in_cloud";
|
|
660
705
|
kitchen: "kitchen";
|
|
661
706
|
}>;
|
|
662
707
|
type ExclusiveIntegrationService = z.infer<typeof exclusiveIntegrationServiceSchema>;
|
|
@@ -695,6 +740,7 @@ declare const integrationJustEatMenuTypeSchema: z.ZodEnum<{
|
|
|
695
740
|
type IntegrationJustEatMenuType = z.infer<typeof integrationJustEatMenuTypeSchema>;
|
|
696
741
|
declare const integrationJustEatOrderCancellationReasons: readonly ["custCancelledChangedMind", "custCancelledDeliveryTooLong", "custCancelledMadeMistake", "custCancelledOther", "restCancelledCustomerAbsent", "restCancelledCustomerRequested", "restCancelledDriversUnavailable", "restCancelledFakeOrder", "restCancelledOutOfStock", "restCancelledTooBusy", "restCancelledOther", "deletedTooFar", "deletedFakeDelivered", "deletedFakeNotDelivered", "deletedFaxNotReceived", "deletedIncorrectOrder", "deletedMissedByRestaurant", "deletedFakeNotCollected", "deletedRestaurantCannotDeliver", "deletedNewTimeRejected", "deletedTestOrder", "deletedRejectedByRestaurant", "deletedSystemError", "deletedRestaurantOffline", "deletedNoAnswerFromRestaurant", "deletedRejectedByPartner", "unknown"];
|
|
697
742
|
declare const integrationJustEatOrderCancellationReasonSchema: z.ZodEnum<{
|
|
743
|
+
unknown: "unknown";
|
|
698
744
|
custCancelledChangedMind: "custCancelledChangedMind";
|
|
699
745
|
custCancelledDeliveryTooLong: "custCancelledDeliveryTooLong";
|
|
700
746
|
custCancelledMadeMistake: "custCancelledMadeMistake";
|
|
@@ -721,7 +767,6 @@ declare const integrationJustEatOrderCancellationReasonSchema: z.ZodEnum<{
|
|
|
721
767
|
deletedRestaurantOffline: "deletedRestaurantOffline";
|
|
722
768
|
deletedNoAnswerFromRestaurant: "deletedNoAnswerFromRestaurant";
|
|
723
769
|
deletedRejectedByPartner: "deletedRejectedByPartner";
|
|
724
|
-
unknown: "unknown";
|
|
725
770
|
}>;
|
|
726
771
|
type IntegrationJustEatOrderCancellationReason = z.infer<typeof integrationJustEatOrderCancellationReasonSchema>;
|
|
727
772
|
declare const integrationDeliverooSiteStatuses: readonly ["OPEN", "CLOSED"];
|
|
@@ -1064,19 +1109,19 @@ declare const integrationIriSchema: z.ZodType<IriObject<"/integrations/:id">, un
|
|
|
1064
1109
|
type IntegrationPath = z.infer<typeof integrationIriSchema>;
|
|
1065
1110
|
declare const integrationNullableIriSchema: z.ZodType<IriObject<"/integrations/:id"> | null, unknown, z.core.$ZodTypeInternals<IriObject<"/integrations/:id"> | null, unknown>>;
|
|
1066
1111
|
type IntegrationNullablePath = z.infer<typeof integrationNullableIriSchema>;
|
|
1067
|
-
declare const integrationDetailsPathPatterns: readonly ["/integrations/:id", ...("/integrations/
|
|
1112
|
+
declare const integrationDetailsPathPatterns: readonly ["/integrations/:id", ...("/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id")[]];
|
|
1068
1113
|
declare const integrationDetailsPathSchemas: {
|
|
1069
1114
|
iriSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1070
1115
|
iri: z.ZodString;
|
|
1071
1116
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1072
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1117
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodTransform<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1073
1118
|
iri: string;
|
|
1074
1119
|
params: Record<string, string>;
|
|
1075
1120
|
}>>;
|
|
1076
1121
|
iriNullableSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1077
1122
|
iri: z.ZodString;
|
|
1078
1123
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1079
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1124
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodNull]>, z.ZodTransform<IriObject<string> | null, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1080
1125
|
iri: string;
|
|
1081
1126
|
params: Record<string, string>;
|
|
1082
1127
|
} | null>>;
|
|
@@ -1084,14 +1129,14 @@ declare const integrationDetailsPathSchemas: {
|
|
|
1084
1129
|
declare const integrationDetailsIriSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1085
1130
|
iri: z.ZodString;
|
|
1086
1131
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1087
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1132
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodTransform<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1088
1133
|
iri: string;
|
|
1089
1134
|
params: Record<string, string>;
|
|
1090
1135
|
}>>;
|
|
1091
1136
|
declare const integrationDetailsNullableIriSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1092
1137
|
iri: z.ZodString;
|
|
1093
1138
|
params: z.ZodRecord<z.ZodString, z.ZodUUID>;
|
|
1094
|
-
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/
|
|
1139
|
+
}, z.core.$strip>, z.ZodCustom<IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">, IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id">>]>, z.ZodNull]>, z.ZodTransform<IriObject<string> | null, string | IriObject<"/integrations/:id" | "/integrations/ecommerce/:id" | "/integrations/deliveroo/:id" | "/integrations/justeat/:id" | "/integrations/glovo/:id" | "/integrations/tilby/:id" | "/integrations/cassa_in_cloud/:id" | "/integrations/kitchen/:id"> | {
|
|
1095
1140
|
iri: string;
|
|
1096
1141
|
params: Record<string, string>;
|
|
1097
1142
|
} | null>>;
|
package/dist/index.js
CHANGED
|
@@ -13776,7 +13776,9 @@ function date4(params) {
|
|
|
13776
13776
|
config(en_default());
|
|
13777
13777
|
|
|
13778
13778
|
// src/tilby-sync-settings.ts
|
|
13779
|
+
import { menuChannelSchema, menuChannels } from "@deliverart/sdk-js-global-types";
|
|
13779
13780
|
var integrationTilbySyncSettingsSchema = external_exports.object({
|
|
13781
|
+
newMenuItemChannels: external_exports.array(menuChannelSchema).default([...menuChannels]),
|
|
13780
13782
|
externalCascadeDeleteOrder: external_exports.boolean().default(true),
|
|
13781
13783
|
internalCascadeDeleteOrder: external_exports.boolean().default(true),
|
|
13782
13784
|
internalCascadeUpdateOrderStatus: external_exports.boolean().default(true),
|
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.24.
|
|
4
|
+
"version": "2.24.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-global-types": "2.24.
|
|
21
|
+
"@deliverart/sdk-js-global-types": "2.24.2"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|