@deliverart/sdk-js-integration 2.36.0-dev.0 → 2.37.0-dev.0
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 +18 -0
- package/dist/index.cjs +46 -34
- package/dist/index.d.cts +353 -18
- package/dist/index.d.ts +353 -18
- package/dist/index.js +47 -35
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -460,3 +460,21 @@ async function integrationManagement() {
|
|
|
460
460
|
## License
|
|
461
461
|
|
|
462
462
|
MIT
|
|
463
|
+
|
|
464
|
+
## CassaInCloud order lifecycle decisions
|
|
465
|
+
|
|
466
|
+
Webhook schemas expose optional nullable `orderLifecycleOutcome` and
|
|
467
|
+
`orderLifecycleRevision`. `amendment_review_required` means the callback was
|
|
468
|
+
recorded without changing the amended order; review its current state in Hub.
|
|
469
|
+
Receipt of READY is not proof of applied preparation. Historical null/absent
|
|
470
|
+
outcomes carry no application evidence. Deploy API migration
|
|
471
|
+
`Version20260918060000` before using the updated worker and client contract.
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
## Tilby amended-order remote deletion
|
|
475
|
+
|
|
476
|
+
`MappingSyncFailureCode.AMENDED_ORDER_REMOTE_DELETED` serializes as
|
|
477
|
+
`amended_order_remote_deleted`. It accompanies manual resolution after confirmed
|
|
478
|
+
remote deletion of an order protected by amendment history or a neighbor intent.
|
|
479
|
+
The canonical order and payment history are retained. Clients must describe
|
|
480
|
+
register review separately from correction completion or confirmed refund.
|
package/dist/index.cjs
CHANGED
|
@@ -348,6 +348,7 @@ __export(index_exports, {
|
|
|
348
348
|
cancelIntegrationCancellationRequestResponseSchema: () => cancelIntegrationCancellationRequestResponseSchema,
|
|
349
349
|
cancelIntegrationDeliverooSiteDayOffInputSchema: () => cancelIntegrationDeliverooSiteDayOffInputSchema,
|
|
350
350
|
cancelIntegrationDeliverooSiteDayOffResponseSchema: () => cancelIntegrationDeliverooSiteDayOffResponseSchema,
|
|
351
|
+
cassaInCloudOrderLifecycleOutcomeSchema: () => cassaInCloudOrderLifecycleOutcomeSchema,
|
|
351
352
|
clientLogRequestQuerySchema: () => clientLogRequestQuerySchema,
|
|
352
353
|
convertLeadIntegrationToIntegrationActivationRequestInputSchema: () => convertLeadIntegrationToIntegrationActivationRequestInputSchema,
|
|
353
354
|
convertLeadIntegrationToIntegrationActivationRequestResponseSchema: () => convertLeadIntegrationToIntegrationActivationRequestResponseSchema,
|
|
@@ -2030,11 +2031,21 @@ var integrationCassaInCloudSyncTimetablesErrorLogsQuerySchema = import_zod5.z.ob
|
|
|
2030
2031
|
"createdAt[strictly_after]": import_zod5.z.string().optional(),
|
|
2031
2032
|
page: import_zod5.z.coerce.number().optional()
|
|
2032
2033
|
});
|
|
2034
|
+
var cassaInCloudOrderLifecycleOutcomeSchema = import_zod5.z.enum([
|
|
2035
|
+
"applied",
|
|
2036
|
+
"no_change",
|
|
2037
|
+
"amendment_review_required",
|
|
2038
|
+
"disabled",
|
|
2039
|
+
"mapping_changed",
|
|
2040
|
+
"completed"
|
|
2041
|
+
]);
|
|
2033
2042
|
var integrationCassaInCloudWebHookEventSchema = import_zod5.z.object({
|
|
2034
2043
|
id: import_zod5.z.string(),
|
|
2035
2044
|
entity: types_exports.integrationCassaInCloudWebHookEventEntitySchema,
|
|
2036
2045
|
event: types_exports.integrationCassaInCloudWebHookEventEventSchema,
|
|
2037
2046
|
body: import_zod5.z.unknown(),
|
|
2047
|
+
orderLifecycleOutcome: cassaInCloudOrderLifecycleOutcomeSchema.nullish(),
|
|
2048
|
+
orderLifecycleRevision: import_zod5.z.number().int().positive().nullish(),
|
|
2038
2049
|
extOrderId: import_zod5.z.string().nullable(),
|
|
2039
2050
|
extCustomerId: import_zod5.z.string().nullable(),
|
|
2040
2051
|
extProductId: import_zod5.z.string().nullable(),
|
|
@@ -2511,8 +2522,8 @@ var integrationDeliverooSiteDaysOffResponseSchema = import_zod6.z.object({
|
|
|
2511
2522
|
|
|
2512
2523
|
// src/service-schemas/ecommerce.ts
|
|
2513
2524
|
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
2514
|
-
var import_sdk_js_menu2 = require("@deliverart/sdk-js-menu");
|
|
2515
2525
|
var import_sdk_js_image2 = require("@deliverart/sdk-js-image");
|
|
2526
|
+
var import_sdk_js_menu2 = require("@deliverart/sdk-js-menu");
|
|
2516
2527
|
var import_sdk_js_point_of_sale3 = require("@deliverart/sdk-js-point-of-sale");
|
|
2517
2528
|
var import_sdk_js_sales_mode3 = require("@deliverart/sdk-js-sales-mode");
|
|
2518
2529
|
var import_zod7 = require("zod");
|
|
@@ -3586,9 +3597,9 @@ var integrationKitchenAccessTokensQuerySchema = import_zod11.z.object({
|
|
|
3586
3597
|
// src/service-schemas/tilby.ts
|
|
3587
3598
|
var import_sdk_js_customer2 = require("@deliverart/sdk-js-customer");
|
|
3588
3599
|
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
3600
|
+
var import_sdk_js_integration_types2 = require("@deliverart/sdk-js-integration-types");
|
|
3589
3601
|
var import_sdk_js_menu4 = require("@deliverart/sdk-js-menu");
|
|
3590
3602
|
var import_sdk_js_order6 = require("@deliverart/sdk-js-order");
|
|
3591
|
-
var import_sdk_js_integration_types2 = require("@deliverart/sdk-js-integration-types");
|
|
3592
3603
|
var import_zod12 = require("zod");
|
|
3593
3604
|
var import_sdk_js_integration_types3 = require("@deliverart/sdk-js-integration-types");
|
|
3594
3605
|
var exactStringFilterSchema2 = import_zod12.z.union([import_zod12.z.string(), import_zod12.z.array(import_zod12.z.string())]).optional();
|
|
@@ -9237,35 +9248,12 @@ var GetIntegrationGlovoMenuItemDeltas = class extends import_sdk_js_core177.Abst
|
|
|
9237
9248
|
}
|
|
9238
9249
|
};
|
|
9239
9250
|
|
|
9240
|
-
// src/requests/services/glovo/
|
|
9251
|
+
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdateDetails.ts
|
|
9241
9252
|
var import_sdk_js_core178 = require("@deliverart/sdk-js-core");
|
|
9242
|
-
var import_sdk_js_global_types69 = require("@deliverart/sdk-js-global-types");
|
|
9243
9253
|
var import_zod179 = require("zod");
|
|
9244
|
-
var
|
|
9245
|
-
var getIntegrationGlovoMenuValidationResponseSchema = import_sdk_js_global_types69.emptyResponseSchema;
|
|
9246
|
-
var GetIntegrationGlovoMenuValidation = class extends import_sdk_js_core178.AbstractApiRequest {
|
|
9247
|
-
constructor(integrationGlovoId) {
|
|
9248
|
-
super(void 0);
|
|
9249
|
-
this.method = "GET";
|
|
9250
|
-
this.contentType = "application/json";
|
|
9251
|
-
this.accept = "application/json";
|
|
9252
|
-
this.inputSchema = getIntegrationGlovoMenuValidationInputSchema;
|
|
9253
|
-
this.outputSchema = getIntegrationGlovoMenuValidationResponseSchema;
|
|
9254
|
-
this.querySchema = void 0;
|
|
9255
|
-
this.headersSchema = void 0;
|
|
9256
|
-
this.integrationGlovoId = integrationGlovoId;
|
|
9257
|
-
}
|
|
9258
|
-
getPath() {
|
|
9259
|
-
return `/integrations/glovo/${this.integrationGlovoId}/menu/validation`;
|
|
9260
|
-
}
|
|
9261
|
-
};
|
|
9262
|
-
|
|
9263
|
-
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdateDetails.ts
|
|
9264
|
-
var import_sdk_js_core179 = require("@deliverart/sdk-js-core");
|
|
9265
|
-
var import_zod180 = require("zod");
|
|
9266
|
-
var getIntegrationGlovoMenuUpdateDetailsInputSchema = import_zod180.z.undefined();
|
|
9254
|
+
var getIntegrationGlovoMenuUpdateDetailsInputSchema = import_zod179.z.undefined();
|
|
9267
9255
|
var getIntegrationGlovoMenuUpdateDetailsResponseSchema = integrationGlovoMenuUpdateDetailsSchema;
|
|
9268
|
-
var GetIntegrationGlovoMenuUpdateDetails = class extends
|
|
9256
|
+
var GetIntegrationGlovoMenuUpdateDetails = class extends import_sdk_js_core178.AbstractApiRequest {
|
|
9269
9257
|
constructor(integrationGlovoId, processId) {
|
|
9270
9258
|
super(void 0);
|
|
9271
9259
|
this.method = "GET";
|
|
@@ -9284,15 +9272,15 @@ var GetIntegrationGlovoMenuUpdateDetails = class extends import_sdk_js_core179.A
|
|
|
9284
9272
|
};
|
|
9285
9273
|
|
|
9286
9274
|
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdates.ts
|
|
9287
|
-
var
|
|
9288
|
-
var
|
|
9289
|
-
var
|
|
9275
|
+
var import_sdk_js_core179 = require("@deliverart/sdk-js-core");
|
|
9276
|
+
var import_sdk_js_global_types69 = require("@deliverart/sdk-js-global-types");
|
|
9277
|
+
var import_zod180 = require("zod");
|
|
9290
9278
|
var getIntegrationGlovoMenuUpdatesQuerySchema = integrationGlovoMenuUpdatesQuerySchema;
|
|
9291
|
-
var getIntegrationGlovoMenuUpdatesInputSchema =
|
|
9292
|
-
var getIntegrationGlovoMenuUpdatesResponseSchema = (0,
|
|
9279
|
+
var getIntegrationGlovoMenuUpdatesInputSchema = import_zod180.z.undefined();
|
|
9280
|
+
var getIntegrationGlovoMenuUpdatesResponseSchema = (0, import_sdk_js_global_types69.createPaginatedSchema)(
|
|
9293
9281
|
integrationGlovoMenuUpdateSchema
|
|
9294
9282
|
);
|
|
9295
|
-
var GetIntegrationGlovoMenuUpdates = class extends
|
|
9283
|
+
var GetIntegrationGlovoMenuUpdates = class extends import_sdk_js_core179.AbstractApiRequest {
|
|
9296
9284
|
constructor(integrationId, options) {
|
|
9297
9285
|
super(void 0, options);
|
|
9298
9286
|
this.method = "GET";
|
|
@@ -9311,6 +9299,29 @@ var GetIntegrationGlovoMenuUpdates = class extends import_sdk_js_core180.Abstrac
|
|
|
9311
9299
|
}
|
|
9312
9300
|
};
|
|
9313
9301
|
|
|
9302
|
+
// src/requests/services/glovo/GetIntegrationGlovoMenuValidation.ts
|
|
9303
|
+
var import_sdk_js_core180 = require("@deliverart/sdk-js-core");
|
|
9304
|
+
var import_sdk_js_global_types70 = require("@deliverart/sdk-js-global-types");
|
|
9305
|
+
var import_zod181 = require("zod");
|
|
9306
|
+
var getIntegrationGlovoMenuValidationInputSchema = import_zod181.z.undefined();
|
|
9307
|
+
var getIntegrationGlovoMenuValidationResponseSchema = import_sdk_js_global_types70.emptyResponseSchema;
|
|
9308
|
+
var GetIntegrationGlovoMenuValidation = class extends import_sdk_js_core180.AbstractApiRequest {
|
|
9309
|
+
constructor(integrationGlovoId) {
|
|
9310
|
+
super(void 0);
|
|
9311
|
+
this.method = "GET";
|
|
9312
|
+
this.contentType = "application/json";
|
|
9313
|
+
this.accept = "application/json";
|
|
9314
|
+
this.inputSchema = getIntegrationGlovoMenuValidationInputSchema;
|
|
9315
|
+
this.outputSchema = getIntegrationGlovoMenuValidationResponseSchema;
|
|
9316
|
+
this.querySchema = void 0;
|
|
9317
|
+
this.headersSchema = void 0;
|
|
9318
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
9319
|
+
}
|
|
9320
|
+
getPath() {
|
|
9321
|
+
return `/integrations/glovo/${this.integrationGlovoId}/menu/validation`;
|
|
9322
|
+
}
|
|
9323
|
+
};
|
|
9324
|
+
|
|
9314
9325
|
// src/requests/services/glovo/GetIntegrationGlovoMenuVersionDetails.ts
|
|
9315
9326
|
var import_sdk_js_core181 = require("@deliverart/sdk-js-core");
|
|
9316
9327
|
var import_zod182 = require("zod");
|
|
@@ -12119,6 +12130,7 @@ __reExport(index_exports, types_exports, module.exports);
|
|
|
12119
12130
|
cancelIntegrationCancellationRequestResponseSchema,
|
|
12120
12131
|
cancelIntegrationDeliverooSiteDayOffInputSchema,
|
|
12121
12132
|
cancelIntegrationDeliverooSiteDayOffResponseSchema,
|
|
12133
|
+
cassaInCloudOrderLifecycleOutcomeSchema,
|
|
12122
12134
|
clientLogRequestQuerySchema,
|
|
12123
12135
|
convertLeadIntegrationToIntegrationActivationRequestInputSchema,
|
|
12124
12136
|
convertLeadIntegrationToIntegrationActivationRequestResponseSchema,
|