@deliverart/sdk-js-integration 2.1.19 → 2.1.21
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 +967 -919
- package/dist/index.d.cts +1359 -903
- package/dist/index.d.ts +1359 -903
- package/dist/index.js +841 -799
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -78,6 +78,7 @@ __export(index_exports, {
|
|
|
78
78
|
GetIntegrationJustEatSyncMenuProcessDetails: () => GetIntegrationJustEatSyncMenuProcessDetails,
|
|
79
79
|
GetIntegrationJustEatSyncMenuProcesses: () => GetIntegrationJustEatSyncMenuProcesses,
|
|
80
80
|
GetIntegrations: () => GetIntegrations,
|
|
81
|
+
GetIntegrationsFromPointOfSale: () => GetIntegrationsFromPointOfSale,
|
|
81
82
|
IntegrationCassaInCloudSyncCustomers: () => IntegrationCassaInCloudSyncCustomers,
|
|
82
83
|
IntegrationCassaInCloudSyncOrganizations: () => IntegrationCassaInCloudSyncOrganizations,
|
|
83
84
|
IntegrationCassaInCloudSyncProducts: () => IntegrationCassaInCloudSyncProducts,
|
|
@@ -241,6 +242,9 @@ __export(index_exports, {
|
|
|
241
242
|
getIntegrationJustEatSyncMenuProcessesInputSchema: () => getIntegrationJustEatSyncMenuProcessesInputSchema,
|
|
242
243
|
getIntegrationJustEatSyncMenuProcessesQuerySchema: () => getIntegrationJustEatSyncMenuProcessesQuerySchema,
|
|
243
244
|
getIntegrationJustEatSyncMenuProcessesResponseSchema: () => getIntegrationJustEatSyncMenuProcessesResponseSchema,
|
|
245
|
+
getIntegrationsFromPointOfSaleInputSchema: () => getIntegrationsFromPointOfSaleInputSchema,
|
|
246
|
+
getIntegrationsFromPointOfSaleQuerySchema: () => getIntegrationsFromPointOfSaleQuerySchema,
|
|
247
|
+
getIntegrationsFromPointOfSaleResponseSchema: () => getIntegrationsFromPointOfSaleResponseSchema,
|
|
244
248
|
getIntegrationsInputSchema: () => getIntegrationsInputSchema,
|
|
245
249
|
getIntegrationsQuerySchema: () => getIntegrationsQuerySchema,
|
|
246
250
|
getIntegrationsResponseSchema: () => getIntegrationsResponseSchema,
|
|
@@ -299,6 +303,7 @@ __export(index_exports, {
|
|
|
299
303
|
integrationDeliverooWebhookEventTypes: () => integrationDeliverooWebhookEventTypes,
|
|
300
304
|
integrationDeliveryProviderCommonSchema: () => integrationDeliveryProviderCommonSchema,
|
|
301
305
|
integrationDetailsFieldsSchema: () => integrationDetailsFieldsSchema,
|
|
306
|
+
integrationDetailsSchema: () => integrationDetailsSchema,
|
|
302
307
|
integrationGlovoDataSchema: () => integrationGlovoDataSchema,
|
|
303
308
|
integrationGlovoIriSchema: () => integrationGlovoIriSchema,
|
|
304
309
|
integrationGlovoMenuUpdateStatusSchema: () => integrationGlovoMenuUpdateStatusSchema,
|
|
@@ -331,6 +336,7 @@ __export(index_exports, {
|
|
|
331
336
|
integrationPathSchemas: () => integrationPathSchemas,
|
|
332
337
|
integrationProviderSchema: () => integrationProviderSchema,
|
|
333
338
|
integrationProviders: () => integrationProviders,
|
|
339
|
+
integrationSchema: () => integrationSchema,
|
|
334
340
|
integrationServiceDataSchema: () => integrationServiceDataSchema,
|
|
335
341
|
integrationServiceSchema: () => integrationServiceSchema,
|
|
336
342
|
integrationServices: () => integrationServices,
|
|
@@ -11790,571 +11796,154 @@ var integrationCancellationRequestDetailsSchema = integrationCancellationRequest
|
|
|
11790
11796
|
integration: integrationNullableIriSchema
|
|
11791
11797
|
});
|
|
11792
11798
|
|
|
11793
|
-
// src/
|
|
11794
|
-
var
|
|
11795
|
-
var activateIntegrationActivationRequestInputSchema = external_exports.undefined();
|
|
11796
|
-
var activateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
11797
|
-
var ActivateIntegrationActivationRequest = class extends import_sdk_js_core.AbstractApiRequest {
|
|
11798
|
-
constructor(integrationActivationRequestId) {
|
|
11799
|
-
super(void 0);
|
|
11800
|
-
this.method = "POST";
|
|
11801
|
-
this.contentType = "application/json";
|
|
11802
|
-
this.accept = "application/json";
|
|
11803
|
-
this.inputSchema = activateIntegrationActivationRequestInputSchema;
|
|
11804
|
-
this.outputSchema = activateIntegrationActivationRequestResponseSchema;
|
|
11805
|
-
this.querySchema = void 0;
|
|
11806
|
-
this.headersSchema = void 0;
|
|
11807
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
11808
|
-
}
|
|
11809
|
-
getPath() {
|
|
11810
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}/send-partner`;
|
|
11811
|
-
}
|
|
11812
|
-
};
|
|
11813
|
-
|
|
11814
|
-
// src/requests/activation-requests/AnnotateIntegrationActivationRequest.ts
|
|
11815
|
-
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
11816
|
-
var annotateIntegrationActivationRequestInputSchema = external_exports.object({
|
|
11817
|
-
message: external_exports.string().min(1, "Message is required")
|
|
11818
|
-
});
|
|
11819
|
-
var annotateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
11820
|
-
var AnnotateIntegrationActivationRequest = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
11821
|
-
constructor(integrationActivationRequestId, input) {
|
|
11822
|
-
super(input);
|
|
11823
|
-
this.method = "POST";
|
|
11824
|
-
this.contentType = "application/json";
|
|
11825
|
-
this.accept = "application/json";
|
|
11826
|
-
this.inputSchema = annotateIntegrationActivationRequestInputSchema;
|
|
11827
|
-
this.outputSchema = annotateIntegrationActivationRequestResponseSchema;
|
|
11828
|
-
this.querySchema = void 0;
|
|
11829
|
-
this.headersSchema = void 0;
|
|
11830
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
11831
|
-
}
|
|
11832
|
-
getPath() {
|
|
11833
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}/annotate`;
|
|
11834
|
-
}
|
|
11835
|
-
};
|
|
11799
|
+
// src/service-schemas/cassa_in_cloud.ts
|
|
11800
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
11836
11801
|
|
|
11837
|
-
// src/
|
|
11838
|
-
var
|
|
11802
|
+
// src/schemas.ts
|
|
11803
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11839
11804
|
var import_sdk_js_point_of_sale2 = require("@deliverart/sdk-js-point-of-sale");
|
|
11840
|
-
var
|
|
11841
|
-
|
|
11805
|
+
var import_sdk_js_sales_mode = require("@deliverart/sdk-js-sales-mode");
|
|
11806
|
+
var menuVersionSchema = external_exports.object({
|
|
11807
|
+
id: external_exports.string(),
|
|
11808
|
+
contentUrl: external_exports.string(),
|
|
11809
|
+
filePath: external_exports.string(),
|
|
11810
|
+
createdAt: import_sdk_js_global_types5.datetimeSchema,
|
|
11811
|
+
updatedAt: import_sdk_js_global_types5.datetimeSchema
|
|
11812
|
+
});
|
|
11813
|
+
var menuVersionDetailsSchema = menuVersionSchema.extend({
|
|
11814
|
+
integration: integrationIriSchema
|
|
11815
|
+
});
|
|
11816
|
+
var integrationBaseSchema = external_exports.object({
|
|
11817
|
+
id: external_exports.string(),
|
|
11818
|
+
cancellationRequest: integrationCancellationRequestNullableIriSchema,
|
|
11819
|
+
connectionId: external_exports.string().nullable(),
|
|
11820
|
+
service: integrationServiceSchema,
|
|
11821
|
+
status: integrationStatusSchema,
|
|
11842
11822
|
provider: integrationProviderSchema,
|
|
11823
|
+
createdAt: import_sdk_js_global_types5.datetimeSchema,
|
|
11824
|
+
updatedAt: import_sdk_js_global_types5.datetimeSchema
|
|
11825
|
+
});
|
|
11826
|
+
var writableIntegrationSchema = integrationBaseSchema.pick({
|
|
11827
|
+
status: true,
|
|
11828
|
+
// Only for ADMIN users
|
|
11829
|
+
provider: true
|
|
11830
|
+
});
|
|
11831
|
+
var integrationDetailsFieldsSchema = external_exports.object({
|
|
11843
11832
|
pointOfSale: import_sdk_js_point_of_sale2.pointOfSaleIriSchema
|
|
11844
11833
|
});
|
|
11845
|
-
var
|
|
11846
|
-
external_exports.
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
external_exports.
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
}
|
|
11878
|
-
};
|
|
11879
|
-
|
|
11880
|
-
// src/requests/activation-requests/DeleteIntegrationActivationRequest.ts
|
|
11881
|
-
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
11882
|
-
var deleteIntegrationActivationRequestInputSchema = external_exports.undefined();
|
|
11883
|
-
var deleteIntegrationActivationRequestResponseSchema = external_exports.undefined();
|
|
11884
|
-
var DeleteIntegrationActivationRequest = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
11885
|
-
constructor(integrationActivationRequestId) {
|
|
11886
|
-
super(void 0);
|
|
11887
|
-
this.method = "DELETE";
|
|
11888
|
-
this.contentType = "application/json";
|
|
11889
|
-
this.accept = "application/json";
|
|
11890
|
-
this.inputSchema = deleteIntegrationActivationRequestInputSchema;
|
|
11891
|
-
this.outputSchema = deleteIntegrationActivationRequestResponseSchema;
|
|
11892
|
-
this.querySchema = void 0;
|
|
11893
|
-
this.headersSchema = void 0;
|
|
11894
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
11895
|
-
}
|
|
11896
|
-
getPath() {
|
|
11897
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
11898
|
-
}
|
|
11899
|
-
};
|
|
11900
|
-
|
|
11901
|
-
// src/requests/activation-requests/GetIntegrationActivationRequestDetails.ts
|
|
11902
|
-
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
11903
|
-
var getIntegrationActivationRequestDetailsInputSchema = external_exports.undefined();
|
|
11904
|
-
var getIntegrationActivationRequestDetailsResponseSchema = integrationActivationRequestDetailsSchema;
|
|
11905
|
-
var GetIntegrationActivationRequestDetails = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
11906
|
-
constructor(integrationActivationRequestId) {
|
|
11907
|
-
super(void 0);
|
|
11908
|
-
this.method = "GET";
|
|
11909
|
-
this.contentType = "application/json";
|
|
11910
|
-
this.accept = "application/json";
|
|
11911
|
-
this.inputSchema = getIntegrationActivationRequestDetailsInputSchema;
|
|
11912
|
-
this.outputSchema = getIntegrationActivationRequestDetailsResponseSchema;
|
|
11913
|
-
this.querySchema = void 0;
|
|
11914
|
-
this.headersSchema = void 0;
|
|
11915
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
11916
|
-
}
|
|
11917
|
-
getPath() {
|
|
11918
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
11919
|
-
}
|
|
11920
|
-
};
|
|
11921
|
-
|
|
11922
|
-
// src/requests/activation-requests/GetIntegrationActivationRequests.ts
|
|
11923
|
-
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
11924
|
-
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
11925
|
-
var getIntegrationActivationRequestsQuerySchema = external_exports.object({
|
|
11926
|
-
"order[service]": import_sdk_js_global_types5.sortDirSchema.optional(),
|
|
11927
|
-
"order[status]": import_sdk_js_global_types5.sortDirSchema.optional(),
|
|
11834
|
+
var integrationDeliveryProviderCommonSchema = external_exports.object({
|
|
11835
|
+
name: external_exports.string(),
|
|
11836
|
+
skipInvalidItem: external_exports.boolean(),
|
|
11837
|
+
skipNegativePrices: external_exports.boolean(),
|
|
11838
|
+
importTaggedItems: external_exports.boolean(),
|
|
11839
|
+
tagsForImport: external_exports.array(external_exports.string()).optional(),
|
|
11840
|
+
isValidMenu: external_exports.boolean(),
|
|
11841
|
+
storeUrl: external_exports.url().nullable(),
|
|
11842
|
+
latestMenuSyncAt: import_sdk_js_global_types5.datetimeSchema.nullable(),
|
|
11843
|
+
latestMenuCheckAt: import_sdk_js_global_types5.datetimeSchema.nullable(),
|
|
11844
|
+
currentMenuVersion: external_exports.union([
|
|
11845
|
+
integrationDeliverooMenuVersionNullableIriSchema,
|
|
11846
|
+
integrationGlovoMenuVersionNullableIriSchema,
|
|
11847
|
+
integrationJustEatMenuVersionNullableIriSchema
|
|
11848
|
+
]),
|
|
11849
|
+
salesMode: import_sdk_js_sales_mode.salesModeNullableIriSchema
|
|
11850
|
+
});
|
|
11851
|
+
var integrationClientLogRequestSchema = external_exports.object({
|
|
11852
|
+
id: external_exports.string(),
|
|
11853
|
+
url: external_exports.string(),
|
|
11854
|
+
method: integrationClientLogRequestMethodSchema,
|
|
11855
|
+
statusCode: external_exports.number(),
|
|
11856
|
+
createdAt: import_sdk_js_global_types5.datetimeSchema
|
|
11857
|
+
});
|
|
11858
|
+
var integrationClientLogRequestDetailsSchema = integrationClientLogRequestSchema.extend({
|
|
11859
|
+
integration: integrationIriSchema,
|
|
11860
|
+
requestHeaders: external_exports.record(external_exports.string(), external_exports.string()),
|
|
11861
|
+
responseHeaders: external_exports.record(external_exports.string(), external_exports.string()),
|
|
11862
|
+
requestBody: external_exports.string(),
|
|
11863
|
+
responseBody: external_exports.string()
|
|
11864
|
+
});
|
|
11865
|
+
var clientLogRequestQuerySchema = external_exports.object({
|
|
11928
11866
|
"order[createdAt]": import_sdk_js_global_types5.sortDirSchema.optional(),
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
status: external_exports.union([activatableIntegrationStatusSchema, external_exports.array(activatableIntegrationStatusSchema)]).optional(),
|
|
11933
|
-
healthStatus: external_exports.union([
|
|
11934
|
-
activatableIntegrationHealthStatusSchema,
|
|
11935
|
-
external_exports.array(activatableIntegrationHealthStatusSchema)
|
|
11867
|
+
method: external_exports.union([
|
|
11868
|
+
integrationClientLogRequestMethodSchema,
|
|
11869
|
+
external_exports.array(integrationClientLogRequestMethodSchema)
|
|
11936
11870
|
]).optional(),
|
|
11937
|
-
|
|
11871
|
+
"statusCode[between]": external_exports.number().optional(),
|
|
11872
|
+
"statusCode[gt]": external_exports.number().optional(),
|
|
11873
|
+
"statusCode[gte]": external_exports.number().optional(),
|
|
11874
|
+
"statusCode[lt]": external_exports.number().optional(),
|
|
11875
|
+
"statusCode[lte]": external_exports.number().optional(),
|
|
11876
|
+
"createdAt[before]": external_exports.string().optional(),
|
|
11877
|
+
"createdAt[strictly_before]": external_exports.string().optional(),
|
|
11878
|
+
"createdAt[after]": external_exports.string().optional(),
|
|
11879
|
+
"createdAt[strictly_after]": external_exports.string().optional(),
|
|
11938
11880
|
page: external_exports.coerce.number().optional()
|
|
11939
|
-
}).extend(import_sdk_js_global_types5.timestampsFilterSchema.shape);
|
|
11940
|
-
var getIntegrationActivationRequestsInputSchema = external_exports.undefined();
|
|
11941
|
-
var getIntegrationActivationRequestsResponseSchema = (0, import_sdk_js_global_types5.createPaginatedSchema)(
|
|
11942
|
-
integrationActivationRequestSchema
|
|
11943
|
-
);
|
|
11944
|
-
var GetIntegrationActivationRequests = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
11945
|
-
constructor(options) {
|
|
11946
|
-
super(void 0, options);
|
|
11947
|
-
this.method = "GET";
|
|
11948
|
-
this.contentType = "application/json";
|
|
11949
|
-
this.accept = "application/json";
|
|
11950
|
-
this.inputSchema = getIntegrationActivationRequestsInputSchema;
|
|
11951
|
-
this.outputSchema = getIntegrationActivationRequestsResponseSchema;
|
|
11952
|
-
this.querySchema = getIntegrationActivationRequestsQuerySchema;
|
|
11953
|
-
this.headersSchema = void 0;
|
|
11954
|
-
}
|
|
11955
|
-
getPath() {
|
|
11956
|
-
return "/integrations/activation_requests";
|
|
11957
|
-
}
|
|
11958
|
-
parseResponse(data, rawResponse) {
|
|
11959
|
-
const integrations = external_exports.array(integrationActivationRequestSchema).parse(data);
|
|
11960
|
-
return this.validateOutput({
|
|
11961
|
-
data: integrations,
|
|
11962
|
-
pagination: (0, import_sdk_js_global_types5.responseToPagination)(rawResponse)
|
|
11963
|
-
});
|
|
11964
|
-
}
|
|
11965
|
-
};
|
|
11966
|
-
|
|
11967
|
-
// src/requests/activation-requests/RespondIntegrationActivationRequest.ts
|
|
11968
|
-
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
11969
|
-
var respondIntegrationActivationRequestInputSchema = external_exports.object({
|
|
11970
|
-
message: external_exports.string().min(1, "Message is required"),
|
|
11971
|
-
data: external_exports.union([
|
|
11972
|
-
integrationDeliverooDataSchema,
|
|
11973
|
-
integrationGlovoDataSchema,
|
|
11974
|
-
integrationJustEatDataSchema,
|
|
11975
|
-
integrationCassaInCloudDataSchema
|
|
11976
|
-
])
|
|
11977
11881
|
});
|
|
11978
|
-
var respondIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
11979
|
-
var RespondIntegrationActivationRequest = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
11980
|
-
constructor(integrationActivationRequestId, input) {
|
|
11981
|
-
super(input);
|
|
11982
|
-
this.method = "POST";
|
|
11983
|
-
this.contentType = "application/json";
|
|
11984
|
-
this.accept = "application/json";
|
|
11985
|
-
this.inputSchema = respondIntegrationActivationRequestInputSchema;
|
|
11986
|
-
this.outputSchema = respondIntegrationActivationRequestResponseSchema;
|
|
11987
|
-
this.querySchema = void 0;
|
|
11988
|
-
this.headersSchema = void 0;
|
|
11989
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
11990
|
-
}
|
|
11991
|
-
getPath() {
|
|
11992
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}/respond`;
|
|
11993
|
-
}
|
|
11994
|
-
};
|
|
11995
11882
|
|
|
11996
|
-
// src/
|
|
11997
|
-
var
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
this.querySchema = void 0;
|
|
12009
|
-
this.headersSchema = void 0;
|
|
12010
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12011
|
-
}
|
|
12012
|
-
getPath() {
|
|
12013
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}/send-partner`;
|
|
12014
|
-
}
|
|
12015
|
-
};
|
|
12016
|
-
|
|
12017
|
-
// src/requests/activation-requests/UpdateIntegrationActivationRequest.ts
|
|
12018
|
-
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
12019
|
-
var import_sdk_js_point_of_sale3 = require("@deliverart/sdk-js-point-of-sale");
|
|
12020
|
-
var writableIntegrationActivationRequestBaseSchema2 = external_exports.object({
|
|
12021
|
-
healthStatus: activatableIntegrationHealthStatusSchema,
|
|
12022
|
-
provider: integrationProviderSchema,
|
|
12023
|
-
pointOfSale: import_sdk_js_point_of_sale3.pointOfSaleIriSchema,
|
|
12024
|
-
name: external_exports.string(),
|
|
12025
|
-
internalNotes: external_exports.string().nullable()
|
|
12026
|
-
}).partial();
|
|
12027
|
-
var updateIntegrationActivationRequestInputSchema = external_exports.discriminatedUnion("service", [
|
|
12028
|
-
external_exports.object({
|
|
12029
|
-
service: external_exports.literal("deliveroo"),
|
|
12030
|
-
data: integrationDeliverooDataSchema.optional()
|
|
12031
|
-
}).extend(writableIntegrationActivationRequestBaseSchema2.shape),
|
|
12032
|
-
external_exports.object({
|
|
12033
|
-
service: external_exports.literal("glovo"),
|
|
12034
|
-
data: integrationGlovoDataSchema.optional()
|
|
12035
|
-
}).extend(writableIntegrationActivationRequestBaseSchema2.shape),
|
|
12036
|
-
external_exports.object({
|
|
12037
|
-
service: external_exports.literal("justeat"),
|
|
12038
|
-
data: integrationJustEatDataSchema.optional()
|
|
12039
|
-
}).extend(writableIntegrationActivationRequestBaseSchema2.shape),
|
|
12040
|
-
external_exports.object({
|
|
12041
|
-
service: external_exports.literal("cassa_in_cloud"),
|
|
12042
|
-
data: integrationCassaInCloudDataSchema.optional()
|
|
12043
|
-
}).extend(writableIntegrationActivationRequestBaseSchema2.shape)
|
|
12044
|
-
]);
|
|
12045
|
-
var updateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12046
|
-
var UpdateIntegrationActivationRequest = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
12047
|
-
constructor(integrationActivationRequestId, input) {
|
|
12048
|
-
super(input);
|
|
12049
|
-
this.method = "PATCH";
|
|
12050
|
-
this.contentType = "application/merge-patch+json";
|
|
12051
|
-
this.accept = "application/json";
|
|
12052
|
-
this.inputSchema = updateIntegrationActivationRequestInputSchema;
|
|
12053
|
-
this.outputSchema = updateIntegrationActivationRequestResponseSchema;
|
|
12054
|
-
this.querySchema = void 0;
|
|
12055
|
-
this.headersSchema = void 0;
|
|
12056
|
-
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12057
|
-
}
|
|
12058
|
-
getPath() {
|
|
12059
|
-
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
12060
|
-
}
|
|
12061
|
-
};
|
|
12062
|
-
|
|
12063
|
-
// src/requests/cancellation-requests/CancelIntegrationCancellationRequest.ts
|
|
12064
|
-
var import_sdk_js_core10 = require("@deliverart/sdk-js-core");
|
|
12065
|
-
var cancelIntegrationCancellationRequestInputSchema = external_exports.undefined();
|
|
12066
|
-
var cancelIntegrationCancellationRequestResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
12067
|
-
var CancelIntegrationCancellationRequest = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
12068
|
-
constructor(integrationCancellationRequestId) {
|
|
12069
|
-
super(void 0);
|
|
12070
|
-
this.method = "POST";
|
|
12071
|
-
this.contentType = "application/json";
|
|
12072
|
-
this.accept = "application/json";
|
|
12073
|
-
this.inputSchema = cancelIntegrationCancellationRequestInputSchema;
|
|
12074
|
-
this.outputSchema = cancelIntegrationCancellationRequestResponseSchema;
|
|
12075
|
-
this.querySchema = void 0;
|
|
12076
|
-
this.headersSchema = void 0;
|
|
12077
|
-
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
12078
|
-
}
|
|
12079
|
-
getPath() {
|
|
12080
|
-
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}/cancel`;
|
|
12081
|
-
}
|
|
12082
|
-
};
|
|
12083
|
-
|
|
12084
|
-
// src/requests/cancellation-requests/CreateIntegrationCancellationRequest.ts
|
|
12085
|
-
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
12086
|
-
var createIntegrationCancellationRequestInputSchema = external_exports.object({
|
|
12087
|
-
integration: integrationIriSchema
|
|
11883
|
+
// src/service-schemas/cassa_in_cloud.ts
|
|
11884
|
+
var integrationCassaInCloudSchema = integrationBaseSchema.omit({ service: true }).extend({
|
|
11885
|
+
finalized: external_exports.boolean(),
|
|
11886
|
+
apiKey: external_exports.string(),
|
|
11887
|
+
service: integrationServiceSchema.extract(["cassa_in_cloud"]),
|
|
11888
|
+
idSalesPoint: external_exports.number().nonnegative(),
|
|
11889
|
+
direction: integrationCassaInCloudDirectionSchema,
|
|
11890
|
+
locale: external_exports.string(),
|
|
11891
|
+
latestMenuSyncAt: import_sdk_js_global_types6.datetimeSchema.nullable(),
|
|
11892
|
+
defaultCustomerId: external_exports.string().nullable(),
|
|
11893
|
+
skipSyncProductDescription: external_exports.boolean(),
|
|
11894
|
+
productChannels: integrationCassaInCloudProductChannelSchema.array()
|
|
12088
11895
|
});
|
|
12089
|
-
var
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
this.method = "POST";
|
|
12094
|
-
this.contentType = "application/json";
|
|
12095
|
-
this.accept = "application/json";
|
|
12096
|
-
this.inputSchema = createIntegrationCancellationRequestInputSchema;
|
|
12097
|
-
this.outputSchema = createIntegrationCancellationRequestResponseSchema;
|
|
12098
|
-
this.querySchema = void 0;
|
|
12099
|
-
this.headersSchema = void 0;
|
|
12100
|
-
}
|
|
12101
|
-
getPath() {
|
|
12102
|
-
return "/integrations/cancellation_requests";
|
|
12103
|
-
}
|
|
12104
|
-
};
|
|
12105
|
-
|
|
12106
|
-
// src/requests/cancellation-requests/DeleteIntegrationCancellationRequest.ts
|
|
12107
|
-
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
12108
|
-
var deleteIntegrationCancellationRequestInputSchema = external_exports.undefined();
|
|
12109
|
-
var deleteIntegrationCancellationRequestResponseSchema = external_exports.undefined();
|
|
12110
|
-
var DeleteIntegrationCancellationRequest = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
12111
|
-
constructor(integrationCancellationRequestId) {
|
|
12112
|
-
super(void 0);
|
|
12113
|
-
this.method = "DELETE";
|
|
12114
|
-
this.contentType = "application/json";
|
|
12115
|
-
this.accept = "application/json";
|
|
12116
|
-
this.inputSchema = deleteIntegrationCancellationRequestInputSchema;
|
|
12117
|
-
this.outputSchema = deleteIntegrationCancellationRequestResponseSchema;
|
|
12118
|
-
this.querySchema = void 0;
|
|
12119
|
-
this.headersSchema = void 0;
|
|
12120
|
-
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
12121
|
-
}
|
|
12122
|
-
getPath() {
|
|
12123
|
-
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}`;
|
|
12124
|
-
}
|
|
12125
|
-
};
|
|
12126
|
-
|
|
12127
|
-
// src/requests/cancellation-requests/GetIntegrationCancellationRequestDetails.ts
|
|
12128
|
-
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
12129
|
-
var getIntegrationCancellationRequestDetailsInputSchema = external_exports.undefined();
|
|
12130
|
-
var getIntegrationCancellationRequestDetailsResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
12131
|
-
var GetIntegrationCancellationRequestDetails = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
12132
|
-
constructor(integrationCancellationRequestId) {
|
|
12133
|
-
super(void 0);
|
|
12134
|
-
this.method = "GET";
|
|
12135
|
-
this.contentType = "application/json";
|
|
12136
|
-
this.accept = "application/json";
|
|
12137
|
-
this.inputSchema = getIntegrationCancellationRequestDetailsInputSchema;
|
|
12138
|
-
this.outputSchema = getIntegrationCancellationRequestDetailsResponseSchema;
|
|
12139
|
-
this.querySchema = void 0;
|
|
12140
|
-
this.headersSchema = void 0;
|
|
12141
|
-
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
12142
|
-
}
|
|
12143
|
-
getPath() {
|
|
12144
|
-
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}`;
|
|
12145
|
-
}
|
|
12146
|
-
};
|
|
12147
|
-
|
|
12148
|
-
// src/requests/cancellation-requests/GetIntegrationCancellationRequests.ts
|
|
12149
|
-
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
12150
|
-
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
12151
|
-
var getIntegrationCancellationRequestsQuerySchema = external_exports.object({
|
|
11896
|
+
var integrationCassaInCloudDetailsSchema = integrationCassaInCloudSchema.extend(
|
|
11897
|
+
integrationDetailsFieldsSchema.shape
|
|
11898
|
+
);
|
|
11899
|
+
var integrationsCassaInCloudQuerySchema = external_exports.object({
|
|
12152
11900
|
"order[createdAt]": import_sdk_js_global_types6.sortDirSchema.optional(),
|
|
12153
11901
|
"order[updatedAt]": import_sdk_js_global_types6.sortDirSchema.optional(),
|
|
12154
|
-
|
|
12155
|
-
|
|
12156
|
-
|
|
11902
|
+
"order[latestMenuSyncAt]": import_sdk_js_global_types6.sortDirSchema.optional(),
|
|
11903
|
+
apiKey: external_exports.union([external_exports.string().optional(), external_exports.array(external_exports.string())]).optional(),
|
|
11904
|
+
idSalesPoint: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11905
|
+
direction: external_exports.union([
|
|
11906
|
+
integrationCassaInCloudDirectionSchema,
|
|
11907
|
+
external_exports.array(integrationCassaInCloudDirectionSchema)
|
|
12157
11908
|
]).optional(),
|
|
11909
|
+
status: external_exports.union([integrationStatusSchema, external_exports.array(integrationStatusSchema)]).optional(),
|
|
11910
|
+
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11911
|
+
finalized: external_exports.coerce.boolean().optional(),
|
|
11912
|
+
skipInvalidItem: external_exports.coerce.boolean().optional(),
|
|
11913
|
+
isValidMenu: external_exports.coerce.boolean().optional(),
|
|
11914
|
+
"latestMenuSyncAt[before]": external_exports.string().optional(),
|
|
11915
|
+
"latestMenuSyncAt[strictly_before]": external_exports.string().optional(),
|
|
11916
|
+
"latestMenuSyncAt[after]": external_exports.string().optional(),
|
|
11917
|
+
"latestMenuSyncAt[strictly_after]": external_exports.string().optional(),
|
|
11918
|
+
service: integrationServiceSchema.extract(["cassa_in_cloud"]).optional(),
|
|
12158
11919
|
page: external_exports.coerce.number().optional()
|
|
12159
11920
|
}).extend(import_sdk_js_global_types6.timestampsFilterSchema.shape);
|
|
12160
|
-
var
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
this.outputSchema = getIntegrationCancellationRequestsResponseSchema;
|
|
12172
|
-
this.querySchema = getIntegrationCancellationRequestsQuerySchema;
|
|
12173
|
-
this.headersSchema = void 0;
|
|
12174
|
-
}
|
|
12175
|
-
getPath() {
|
|
12176
|
-
return "/integrations/cancellation_requests";
|
|
12177
|
-
}
|
|
12178
|
-
parseResponse(data, rawResponse) {
|
|
12179
|
-
const integrations = external_exports.array(integrationCancellationRequestSchema).parse(data);
|
|
12180
|
-
return this.validateOutput({
|
|
12181
|
-
data: integrations,
|
|
12182
|
-
pagination: (0, import_sdk_js_global_types6.responseToPagination)(rawResponse)
|
|
12183
|
-
});
|
|
12184
|
-
}
|
|
12185
|
-
};
|
|
12186
|
-
|
|
12187
|
-
// src/requests/DeleteIntegration.ts
|
|
12188
|
-
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
12189
|
-
var deleteIntegrationInputSchema = external_exports.undefined();
|
|
12190
|
-
var deleteIntegrationResponseSchema = external_exports.undefined();
|
|
12191
|
-
var DeleteIntegration = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
12192
|
-
constructor(integrationId) {
|
|
12193
|
-
super(void 0);
|
|
12194
|
-
this.method = "DELETE";
|
|
12195
|
-
this.contentType = "application/json";
|
|
12196
|
-
this.accept = "application/json";
|
|
12197
|
-
this.inputSchema = deleteIntegrationInputSchema;
|
|
12198
|
-
this.outputSchema = deleteIntegrationResponseSchema;
|
|
12199
|
-
this.querySchema = void 0;
|
|
12200
|
-
this.headersSchema = void 0;
|
|
12201
|
-
this.integrationId = integrationId;
|
|
12202
|
-
}
|
|
12203
|
-
getPath() {
|
|
12204
|
-
return `/integrations/${this.integrationId}`;
|
|
12205
|
-
}
|
|
12206
|
-
};
|
|
12207
|
-
|
|
12208
|
-
// src/requests/GetIntegrationDetails.ts
|
|
12209
|
-
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
12210
|
-
|
|
12211
|
-
// src/service-schemas/cassa_in_cloud.ts
|
|
12212
|
-
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
12213
|
-
|
|
12214
|
-
// src/schemas.ts
|
|
12215
|
-
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
12216
|
-
var import_sdk_js_point_of_sale4 = require("@deliverart/sdk-js-point-of-sale");
|
|
12217
|
-
var import_sdk_js_sales_mode = require("@deliverart/sdk-js-sales-mode");
|
|
12218
|
-
var menuVersionSchema = external_exports.object({
|
|
12219
|
-
id: external_exports.string(),
|
|
12220
|
-
contentUrl: external_exports.string(),
|
|
12221
|
-
filePath: external_exports.string(),
|
|
12222
|
-
createdAt: import_sdk_js_global_types7.datetimeSchema,
|
|
12223
|
-
updatedAt: import_sdk_js_global_types7.datetimeSchema
|
|
12224
|
-
});
|
|
12225
|
-
var menuVersionDetailsSchema = menuVersionSchema.extend({
|
|
12226
|
-
integration: integrationIriSchema
|
|
12227
|
-
});
|
|
12228
|
-
var integrationBaseSchema = external_exports.object({
|
|
12229
|
-
id: external_exports.string(),
|
|
12230
|
-
cancellationRequest: integrationCancellationRequestNullableIriSchema,
|
|
12231
|
-
connectionId: external_exports.string().nullable(),
|
|
12232
|
-
service: integrationServiceSchema,
|
|
12233
|
-
status: integrationStatusSchema,
|
|
12234
|
-
provider: integrationProviderSchema,
|
|
12235
|
-
createdAt: import_sdk_js_global_types7.datetimeSchema,
|
|
12236
|
-
updatedAt: import_sdk_js_global_types7.datetimeSchema
|
|
12237
|
-
});
|
|
12238
|
-
var writableIntegrationSchema = integrationBaseSchema.pick({
|
|
12239
|
-
status: true,
|
|
12240
|
-
// Only for ADMIN users
|
|
12241
|
-
provider: true
|
|
12242
|
-
});
|
|
12243
|
-
var integrationDetailsFieldsSchema = external_exports.object({
|
|
12244
|
-
pointOfSale: import_sdk_js_point_of_sale4.pointOfSaleIriSchema
|
|
12245
|
-
});
|
|
12246
|
-
var integrationDeliveryProviderCommonSchema = external_exports.object({
|
|
12247
|
-
name: external_exports.string(),
|
|
12248
|
-
skipInvalidItem: external_exports.boolean(),
|
|
12249
|
-
skipNegativePrices: external_exports.boolean(),
|
|
12250
|
-
importTaggedItems: external_exports.boolean(),
|
|
12251
|
-
tagsForImport: external_exports.array(external_exports.string()).optional(),
|
|
12252
|
-
isValidMenu: external_exports.boolean(),
|
|
12253
|
-
latestMenuSyncAt: import_sdk_js_global_types7.datetimeSchema.nullable(),
|
|
12254
|
-
latestMenuCheckAt: import_sdk_js_global_types7.datetimeSchema.nullable(),
|
|
12255
|
-
currentMenuVersion: external_exports.union([
|
|
12256
|
-
integrationDeliverooMenuVersionNullableIriSchema,
|
|
12257
|
-
integrationGlovoMenuVersionNullableIriSchema,
|
|
12258
|
-
integrationJustEatMenuVersionNullableIriSchema
|
|
12259
|
-
]),
|
|
12260
|
-
salesMode: import_sdk_js_sales_mode.salesModeNullableIriSchema
|
|
12261
|
-
});
|
|
12262
|
-
var integrationClientLogRequestSchema = external_exports.object({
|
|
12263
|
-
id: external_exports.string(),
|
|
12264
|
-
url: external_exports.string(),
|
|
12265
|
-
method: integrationClientLogRequestMethodSchema,
|
|
12266
|
-
statusCode: external_exports.number(),
|
|
12267
|
-
createdAt: import_sdk_js_global_types7.datetimeSchema
|
|
12268
|
-
});
|
|
12269
|
-
var integrationClientLogRequestDetailsSchema = integrationClientLogRequestSchema.extend({
|
|
12270
|
-
integration: integrationIriSchema,
|
|
12271
|
-
requestHeaders: external_exports.record(external_exports.string(), external_exports.string()),
|
|
12272
|
-
responseHeaders: external_exports.record(external_exports.string(), external_exports.string()),
|
|
12273
|
-
requestBody: external_exports.string(),
|
|
12274
|
-
responseBody: external_exports.string()
|
|
12275
|
-
});
|
|
12276
|
-
var clientLogRequestQuerySchema = external_exports.object({
|
|
12277
|
-
"order[createdAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12278
|
-
method: external_exports.union([
|
|
12279
|
-
integrationClientLogRequestMethodSchema,
|
|
12280
|
-
external_exports.array(integrationClientLogRequestMethodSchema)
|
|
12281
|
-
]).optional(),
|
|
12282
|
-
"statusCode[between]": external_exports.number().optional(),
|
|
12283
|
-
"statusCode[gt]": external_exports.number().optional(),
|
|
12284
|
-
"statusCode[gte]": external_exports.number().optional(),
|
|
12285
|
-
"statusCode[lt]": external_exports.number().optional(),
|
|
12286
|
-
"statusCode[lte]": external_exports.number().optional(),
|
|
12287
|
-
"createdAt[before]": external_exports.string().optional(),
|
|
12288
|
-
"createdAt[strictly_before]": external_exports.string().optional(),
|
|
12289
|
-
"createdAt[after]": external_exports.string().optional(),
|
|
12290
|
-
"createdAt[strictly_after]": external_exports.string().optional(),
|
|
12291
|
-
page: external_exports.coerce.number().optional()
|
|
12292
|
-
});
|
|
12293
|
-
|
|
12294
|
-
// src/service-schemas/cassa_in_cloud.ts
|
|
12295
|
-
var integrationCassaInCloudSchema = integrationBaseSchema.omit({ service: true }).extend({
|
|
12296
|
-
finalized: external_exports.boolean(),
|
|
12297
|
-
apiKey: external_exports.string(),
|
|
12298
|
-
service: integrationServiceSchema.extract(["cassa_in_cloud"]),
|
|
12299
|
-
idSalesPoint: external_exports.number().nonnegative(),
|
|
12300
|
-
direction: integrationCassaInCloudDirectionSchema,
|
|
12301
|
-
locale: external_exports.string(),
|
|
12302
|
-
latestMenuSyncAt: import_sdk_js_global_types8.datetimeSchema.nullable(),
|
|
12303
|
-
defaultCustomerId: external_exports.string().nullable(),
|
|
12304
|
-
skipSyncProductDescription: external_exports.boolean(),
|
|
12305
|
-
productChannels: integrationCassaInCloudProductChannelSchema.array()
|
|
12306
|
-
});
|
|
12307
|
-
var integrationCassaInCloudDetailsSchema = integrationCassaInCloudSchema.extend(
|
|
12308
|
-
integrationDetailsFieldsSchema.shape
|
|
12309
|
-
);
|
|
12310
|
-
var integrationsCassaInCloudQuerySchema = external_exports.object({
|
|
12311
|
-
"order[createdAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12312
|
-
"order[updatedAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12313
|
-
"order[latestMenuSyncAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12314
|
-
apiKey: external_exports.union([external_exports.string().optional(), external_exports.array(external_exports.string())]).optional(),
|
|
12315
|
-
idSalesPoint: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12316
|
-
direction: external_exports.union([
|
|
12317
|
-
integrationCassaInCloudDirectionSchema,
|
|
12318
|
-
external_exports.array(integrationCassaInCloudDirectionSchema)
|
|
12319
|
-
]).optional(),
|
|
12320
|
-
status: external_exports.union([integrationStatusSchema, external_exports.array(integrationStatusSchema)]).optional(),
|
|
12321
|
-
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12322
|
-
finalized: external_exports.coerce.boolean().optional(),
|
|
12323
|
-
skipInvalidItem: external_exports.coerce.boolean().optional(),
|
|
12324
|
-
isValidMenu: external_exports.coerce.boolean().optional(),
|
|
12325
|
-
"latestMenuSyncAt[before]": external_exports.string().optional(),
|
|
12326
|
-
"latestMenuSyncAt[strictly_before]": external_exports.string().optional(),
|
|
12327
|
-
"latestMenuSyncAt[after]": external_exports.string().optional(),
|
|
12328
|
-
"latestMenuSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12329
|
-
service: integrationServiceSchema.extract(["cassa_in_cloud"]).optional(),
|
|
12330
|
-
page: external_exports.coerce.number().optional()
|
|
12331
|
-
}).extend(import_sdk_js_global_types8.timestampsFilterSchema.shape);
|
|
12332
|
-
var integrationCassaInCloudEditableFieldsSchema = integrationCassaInCloudSchema.pick({
|
|
12333
|
-
apiKey: true,
|
|
12334
|
-
idSalesPoint: true,
|
|
12335
|
-
direction: true,
|
|
12336
|
-
skipSyncProductDescription: true,
|
|
12337
|
-
productChannels: true,
|
|
12338
|
-
locale: true,
|
|
12339
|
-
provider: true
|
|
12340
|
-
// Available for only ADMIN users
|
|
12341
|
-
}).partial();
|
|
12342
|
-
var integrationCassaInCloudSyncMenuProcessSchema = external_exports.object({
|
|
11921
|
+
var integrationCassaInCloudEditableFieldsSchema = integrationCassaInCloudSchema.pick({
|
|
11922
|
+
apiKey: true,
|
|
11923
|
+
idSalesPoint: true,
|
|
11924
|
+
direction: true,
|
|
11925
|
+
skipSyncProductDescription: true,
|
|
11926
|
+
productChannels: true,
|
|
11927
|
+
locale: true,
|
|
11928
|
+
provider: true
|
|
11929
|
+
// Available for only ADMIN users
|
|
11930
|
+
}).partial();
|
|
11931
|
+
var integrationCassaInCloudSyncMenuProcessSchema = external_exports.object({
|
|
12343
11932
|
id: external_exports.string(),
|
|
12344
11933
|
currentPlaces: external_exports.any(),
|
|
12345
11934
|
availableSalesModesIds: external_exports.array(external_exports.string()),
|
|
12346
11935
|
availableProductIds: external_exports.array(external_exports.string()),
|
|
12347
11936
|
availableCategoryIds: external_exports.array(external_exports.string()),
|
|
12348
|
-
createdAt:
|
|
12349
|
-
endAt:
|
|
11937
|
+
createdAt: import_sdk_js_global_types6.datetimeSchema,
|
|
11938
|
+
endAt: import_sdk_js_global_types6.datetimeSchema.nullable()
|
|
12350
11939
|
});
|
|
12351
11940
|
var integrationCassaInCloudSyncMenuProcessDetailsSchema = integrationCassaInCloudSyncMenuProcessSchema.extend({
|
|
12352
11941
|
integration: integrationCassaInCloudIriSchema,
|
|
12353
11942
|
errors: external_exports.array(integrationCassaInCloudSyncMenuErrorLogIriSchema).optional()
|
|
12354
11943
|
});
|
|
12355
11944
|
var integrationCassaInCloudSyncMenuProcessesQuerySchema = external_exports.object({
|
|
12356
|
-
"order[createdAt]":
|
|
12357
|
-
"order[endAt]":
|
|
11945
|
+
"order[createdAt]": import_sdk_js_global_types6.sortDirSchema.optional(),
|
|
11946
|
+
"order[endAt]": import_sdk_js_global_types6.sortDirSchema.optional(),
|
|
12358
11947
|
"createdAt[before]": external_exports.string().optional(),
|
|
12359
11948
|
"createdAt[strictly_before]": external_exports.string().optional(),
|
|
12360
11949
|
"createdAt[after]": external_exports.string().optional(),
|
|
@@ -12370,13 +11959,13 @@ var integrationCassaInCloudWebHookEventSchema = external_exports.object({
|
|
|
12370
11959
|
entity: integrationCassaInCloudWebHookEventEntitySchema,
|
|
12371
11960
|
event: integrationCassaInCloudWebHookEventEventSchema,
|
|
12372
11961
|
body: external_exports.any(),
|
|
12373
|
-
createdAt:
|
|
11962
|
+
createdAt: import_sdk_js_global_types6.datetimeSchema
|
|
12374
11963
|
});
|
|
12375
11964
|
var integrationCassaInCloudWebHookEventDetailsSchema = integrationCassaInCloudWebHookEventSchema.extend({
|
|
12376
11965
|
integration: integrationCassaInCloudIriSchema
|
|
12377
11966
|
});
|
|
12378
11967
|
var integrationCassaInCloudWebHookEventsQuerySchema = external_exports.object({
|
|
12379
|
-
"order[createdAt]":
|
|
11968
|
+
"order[createdAt]": import_sdk_js_global_types6.sortDirSchema.optional(),
|
|
12380
11969
|
entity: external_exports.union([
|
|
12381
11970
|
integrationCassaInCloudWebHookEventEntitySchema,
|
|
12382
11971
|
external_exports.array(integrationCassaInCloudWebHookEventEntitySchema)
|
|
@@ -12393,15 +11982,16 @@ var integrationCassaInCloudWebHookEventsQuerySchema = external_exports.object({
|
|
|
12393
11982
|
});
|
|
12394
11983
|
|
|
12395
11984
|
// src/service-schemas/deliveroo.ts
|
|
12396
|
-
var
|
|
11985
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
11986
|
+
var import_sdk_js_image = require("@deliverart/sdk-js-image");
|
|
12397
11987
|
var integrationDeliverooSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
12398
11988
|
brandId: external_exports.string(),
|
|
12399
11989
|
siteId: external_exports.string(),
|
|
12400
|
-
|
|
12401
|
-
latestOpeningHoursSyncAt:
|
|
11990
|
+
cover: import_sdk_js_image.imageNullableIriSchema,
|
|
11991
|
+
latestOpeningHoursSyncAt: import_sdk_js_global_types7.datetimeSchema.nullable(),
|
|
12402
11992
|
service: integrationServiceSchema.extract(["deliveroo"]),
|
|
12403
11993
|
acceptanceTimeout: external_exports.number().min(0).max(8),
|
|
12404
|
-
nextSyncMenuScheduledAt:
|
|
11994
|
+
nextSyncMenuScheduledAt: import_sdk_js_global_types7.datetimeSchema.nullable(),
|
|
12405
11995
|
currentMenuVersionSyncAttempts: external_exports.number().min(0)
|
|
12406
11996
|
});
|
|
12407
11997
|
var integrationDeliverooDetailsSchema = integrationDeliverooSchema.extend(
|
|
@@ -12411,22 +12001,23 @@ var integrationDeliverooEditableFieldsSchema = integrationDeliverooSchema.pick({
|
|
|
12411
12001
|
name: true,
|
|
12412
12002
|
brandId: true,
|
|
12413
12003
|
siteId: true,
|
|
12414
|
-
|
|
12004
|
+
cover: true,
|
|
12415
12005
|
acceptanceTimeout: true,
|
|
12416
12006
|
skipNegativePrices: true,
|
|
12417
12007
|
skipInvalidItem: true,
|
|
12418
12008
|
salesMode: true,
|
|
12419
12009
|
importTaggedItems: true,
|
|
12420
12010
|
tagsForImport: true,
|
|
12421
|
-
provider: true
|
|
12011
|
+
provider: true,
|
|
12422
12012
|
// Available for only ADMIN users
|
|
12013
|
+
storeUrl: true
|
|
12423
12014
|
});
|
|
12424
12015
|
var integrationsDeliverooQuerySchema = external_exports.object({
|
|
12425
|
-
"order[createdAt]":
|
|
12426
|
-
"order[updatedAt]":
|
|
12427
|
-
"order[latestMenuCheckAt]":
|
|
12428
|
-
"order[latestMenuSyncAt]":
|
|
12429
|
-
"order[latestOpeningHoursSyncAt]":
|
|
12016
|
+
"order[createdAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12017
|
+
"order[updatedAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12018
|
+
"order[latestMenuCheckAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12019
|
+
"order[latestMenuSyncAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12020
|
+
"order[latestOpeningHoursSyncAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12430
12021
|
name: external_exports.string().optional(),
|
|
12431
12022
|
brandId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12432
12023
|
siteId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
@@ -12448,20 +12039,20 @@ var integrationsDeliverooQuerySchema = external_exports.object({
|
|
|
12448
12039
|
"latestOpeningHoursSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12449
12040
|
service: integrationServiceSchema.extract(["deliveroo"]).optional(),
|
|
12450
12041
|
page: external_exports.coerce.number().optional()
|
|
12451
|
-
}).extend(
|
|
12042
|
+
}).extend(import_sdk_js_global_types7.timestampsFilterSchema.shape);
|
|
12452
12043
|
var integrationDeliverooSyncMenuProcessSchema = external_exports.object({
|
|
12453
12044
|
id: external_exports.string(),
|
|
12454
12045
|
mode: integrationDeliverooSyncMenuProcessModeSchema,
|
|
12455
12046
|
success: external_exports.boolean().nullable(),
|
|
12456
12047
|
response: external_exports.string().nullable(),
|
|
12457
|
-
createdAt:
|
|
12458
|
-
endAt:
|
|
12048
|
+
createdAt: import_sdk_js_global_types7.datetimeSchema,
|
|
12049
|
+
endAt: import_sdk_js_global_types7.datetimeSchema.nullable()
|
|
12459
12050
|
});
|
|
12460
12051
|
var integrationDeliverooSyncMenuProcessDetailsSchema = integrationDeliverooSyncMenuProcessSchema.extend({
|
|
12461
12052
|
integration: integrationDeliverooIriSchema
|
|
12462
12053
|
});
|
|
12463
12054
|
var integrationDeliverooSyncMenuProcessesQuerySchema = external_exports.object({
|
|
12464
|
-
"order[endAt]":
|
|
12055
|
+
"order[endAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12465
12056
|
mode: external_exports.union([
|
|
12466
12057
|
integrationDeliverooSyncMenuProcessModeSchema,
|
|
12467
12058
|
external_exports.array(integrationDeliverooSyncMenuProcessModeSchema)
|
|
@@ -12480,13 +12071,13 @@ var integrationDeliverooWebhookEventSchema = external_exports.object({
|
|
|
12480
12071
|
id: external_exports.string(),
|
|
12481
12072
|
event: integrationDeliverooWebhookEventTypeSchema,
|
|
12482
12073
|
body: external_exports.any(),
|
|
12483
|
-
createdAt:
|
|
12074
|
+
createdAt: import_sdk_js_global_types7.datetimeSchema
|
|
12484
12075
|
});
|
|
12485
12076
|
var integrationDeliverooWebhookEventDetailsSchema = integrationDeliverooWebhookEventSchema.extend({
|
|
12486
12077
|
integration: integrationDeliverooIriSchema
|
|
12487
12078
|
});
|
|
12488
12079
|
var integrationDeliverooWebhookEventsQueryParamsSchema = external_exports.object({
|
|
12489
|
-
"order[createdAt]":
|
|
12080
|
+
"order[createdAt]": import_sdk_js_global_types7.sortDirSchema.optional(),
|
|
12490
12081
|
event: external_exports.union([
|
|
12491
12082
|
integrationDeliverooWebhookEventTypeSchema,
|
|
12492
12083
|
external_exports.array(integrationDeliverooWebhookEventTypeSchema)
|
|
@@ -12498,198 +12089,616 @@ var integrationDeliverooWebhookEventsQueryParamsSchema = external_exports.object
|
|
|
12498
12089
|
page: external_exports.coerce.number().optional()
|
|
12499
12090
|
});
|
|
12500
12091
|
|
|
12501
|
-
// src/service-schemas/glovo.ts
|
|
12502
|
-
var
|
|
12503
|
-
var integrationGlovoSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
12504
|
-
storeId: external_exports.string(),
|
|
12505
|
-
locale: external_exports.string(),
|
|
12506
|
-
pendingMenuChanges: external_exports.boolean(),
|
|
12507
|
-
service: integrationServiceSchema.extract(["glovo"])
|
|
12508
|
-
});
|
|
12509
|
-
var integrationGlovoDetailsSchema = integrationGlovoSchema.extend(
|
|
12510
|
-
integrationDetailsFieldsSchema.shape
|
|
12511
|
-
);
|
|
12512
|
-
var integrationGlovoEditableFieldsSchema = integrationGlovoSchema.pick({
|
|
12513
|
-
name: true,
|
|
12514
|
-
storeId: true,
|
|
12515
|
-
locale: true,
|
|
12516
|
-
skipNegativePrices: true,
|
|
12517
|
-
skipInvalidItem: true,
|
|
12518
|
-
salesMode: true,
|
|
12519
|
-
importTaggedItems: true,
|
|
12520
|
-
tagsForImport: true,
|
|
12521
|
-
provider: true
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
"order[
|
|
12526
|
-
"order[
|
|
12527
|
-
"order[
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
"latestMenuCheckAt[
|
|
12536
|
-
"latestMenuCheckAt[
|
|
12537
|
-
"latestMenuCheckAt[
|
|
12538
|
-
"
|
|
12539
|
-
"latestMenuSyncAt[
|
|
12540
|
-
"latestMenuSyncAt[
|
|
12541
|
-
"latestMenuSyncAt[
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
"createdAt[
|
|
12562
|
-
"createdAt[
|
|
12563
|
-
"createdAt[
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
"order[
|
|
12582
|
-
"order[
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
"createdAt[
|
|
12591
|
-
"createdAt[
|
|
12592
|
-
"createdAt[
|
|
12593
|
-
"
|
|
12594
|
-
"responseAt[
|
|
12595
|
-
"responseAt[
|
|
12596
|
-
"responseAt[
|
|
12597
|
-
"
|
|
12598
|
-
"latestCheckAt[
|
|
12599
|
-
"latestCheckAt[
|
|
12600
|
-
"latestCheckAt[
|
|
12601
|
-
|
|
12092
|
+
// src/service-schemas/glovo.ts
|
|
12093
|
+
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
12094
|
+
var integrationGlovoSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
12095
|
+
storeId: external_exports.string(),
|
|
12096
|
+
locale: external_exports.string(),
|
|
12097
|
+
pendingMenuChanges: external_exports.boolean(),
|
|
12098
|
+
service: integrationServiceSchema.extract(["glovo"])
|
|
12099
|
+
});
|
|
12100
|
+
var integrationGlovoDetailsSchema = integrationGlovoSchema.extend(
|
|
12101
|
+
integrationDetailsFieldsSchema.shape
|
|
12102
|
+
);
|
|
12103
|
+
var integrationGlovoEditableFieldsSchema = integrationGlovoSchema.pick({
|
|
12104
|
+
name: true,
|
|
12105
|
+
storeId: true,
|
|
12106
|
+
locale: true,
|
|
12107
|
+
skipNegativePrices: true,
|
|
12108
|
+
skipInvalidItem: true,
|
|
12109
|
+
salesMode: true,
|
|
12110
|
+
importTaggedItems: true,
|
|
12111
|
+
tagsForImport: true,
|
|
12112
|
+
provider: true,
|
|
12113
|
+
storeUrl: true
|
|
12114
|
+
}).partial();
|
|
12115
|
+
var integrationsGlovoQuerySchema = external_exports.object({
|
|
12116
|
+
"order[createdAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12117
|
+
"order[updatedAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12118
|
+
"order[latestMenuCheckAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12119
|
+
"order[latestMenuSyncAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12120
|
+
name: external_exports.string().optional(),
|
|
12121
|
+
storeId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12122
|
+
status: external_exports.union([integrationStatusSchema, external_exports.array(integrationStatusSchema)]).optional(),
|
|
12123
|
+
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12124
|
+
skipInvalidItem: external_exports.coerce.boolean().optional(),
|
|
12125
|
+
isValidMenu: external_exports.coerce.boolean().optional(),
|
|
12126
|
+
"latestMenuCheckAt[before]": external_exports.string().optional(),
|
|
12127
|
+
"latestMenuCheckAt[strictly_before]": external_exports.string().optional(),
|
|
12128
|
+
"latestMenuCheckAt[after]": external_exports.string().optional(),
|
|
12129
|
+
"latestMenuCheckAt[strictly_after]": external_exports.string().optional(),
|
|
12130
|
+
"latestMenuSyncAt[before]": external_exports.string().optional(),
|
|
12131
|
+
"latestMenuSyncAt[strictly_before]": external_exports.string().optional(),
|
|
12132
|
+
"latestMenuSyncAt[after]": external_exports.string().optional(),
|
|
12133
|
+
"latestMenuSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12134
|
+
service: integrationServiceSchema.extract(["glovo"]).optional(),
|
|
12135
|
+
page: external_exports.coerce.number().optional()
|
|
12136
|
+
}).extend(import_sdk_js_global_types8.timestampsFilterSchema.shape);
|
|
12137
|
+
var integrationGlovoWebhookEventSchema = external_exports.object({
|
|
12138
|
+
id: external_exports.string(),
|
|
12139
|
+
event: integrationGlovoWebhookEventTypeSchema,
|
|
12140
|
+
body: external_exports.any(),
|
|
12141
|
+
createdAt: import_sdk_js_global_types8.datetimeSchema
|
|
12142
|
+
});
|
|
12143
|
+
var integrationGlovoWebhookEventDetailsSchema = integrationGlovoWebhookEventSchema.extend({
|
|
12144
|
+
integration: integrationGlovoIriSchema
|
|
12145
|
+
});
|
|
12146
|
+
var integrationGlovoWebhookEventsQueryParamsSchema = external_exports.object({
|
|
12147
|
+
"order[createdAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12148
|
+
event: external_exports.union([
|
|
12149
|
+
integrationGlovoWebhookEventTypeSchema,
|
|
12150
|
+
external_exports.array(integrationGlovoWebhookEventTypeSchema)
|
|
12151
|
+
]).optional(),
|
|
12152
|
+
"createdAt[before]": external_exports.string().optional(),
|
|
12153
|
+
"createdAt[strictly_before]": external_exports.string().optional(),
|
|
12154
|
+
"createdAt[after]": external_exports.string().optional(),
|
|
12155
|
+
"createdAt[strictly_after]": external_exports.string().optional(),
|
|
12156
|
+
page: external_exports.coerce.number().optional()
|
|
12157
|
+
});
|
|
12158
|
+
var integrationGlovoMenuUpdateSchema = external_exports.object({
|
|
12159
|
+
id: external_exports.string(),
|
|
12160
|
+
transactionId: external_exports.string().nullable(),
|
|
12161
|
+
status: integrationGlovoMenuUpdateStatusSchema.nullable(),
|
|
12162
|
+
retryCompleted: external_exports.boolean(),
|
|
12163
|
+
createdAt: import_sdk_js_global_types8.datetimeSchema,
|
|
12164
|
+
responseAt: import_sdk_js_global_types8.datetimeSchema.nullable(),
|
|
12165
|
+
latestCheckAt: import_sdk_js_global_types8.datetimeSchema.nullable()
|
|
12166
|
+
});
|
|
12167
|
+
var integrationGlovoMenuUpdateDetailsSchema = integrationGlovoMenuUpdateSchema.extend({
|
|
12168
|
+
integration: integrationGlovoIriSchema,
|
|
12169
|
+
details: external_exports.any().nullable()
|
|
12170
|
+
});
|
|
12171
|
+
var integrationGlovoMenuUpdatesQuerySchema = external_exports.object({
|
|
12172
|
+
"order[createdAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12173
|
+
"order[responseAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12174
|
+
"order[latestCheckAt]": import_sdk_js_global_types8.sortDirSchema.optional(),
|
|
12175
|
+
retryCompleted: external_exports.coerce.boolean().optional(),
|
|
12176
|
+
transactionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12177
|
+
status: external_exports.union([
|
|
12178
|
+
integrationGlovoMenuUpdateStatusSchema,
|
|
12179
|
+
external_exports.array(integrationGlovoMenuUpdateStatusSchema)
|
|
12180
|
+
]).optional(),
|
|
12181
|
+
"createdAt[before]": external_exports.string().optional(),
|
|
12182
|
+
"createdAt[strictly_before]": external_exports.string().optional(),
|
|
12183
|
+
"createdAt[after]": external_exports.string().optional(),
|
|
12184
|
+
"createdAt[strictly_after]": external_exports.string().optional(),
|
|
12185
|
+
"responseAt[before]": external_exports.string().optional(),
|
|
12186
|
+
"responseAt[strictly_before]": external_exports.string().optional(),
|
|
12187
|
+
"responseAt[after]": external_exports.string().optional(),
|
|
12188
|
+
"responseAt[strictly_after]": external_exports.string().optional(),
|
|
12189
|
+
"latestCheckAt[before]": external_exports.string().optional(),
|
|
12190
|
+
"latestCheckAt[strictly_before]": external_exports.string().optional(),
|
|
12191
|
+
"latestCheckAt[after]": external_exports.string().optional(),
|
|
12192
|
+
"latestCheckAt[strictly_after]": external_exports.string().optional(),
|
|
12193
|
+
page: external_exports.coerce.number().optional()
|
|
12194
|
+
});
|
|
12195
|
+
|
|
12196
|
+
// src/service-schemas/justeat.ts
|
|
12197
|
+
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
12198
|
+
var integrationJustEatSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
12199
|
+
syncType: integrationJustEatSyncTypeSchema,
|
|
12200
|
+
defaultLanguage: external_exports.string(),
|
|
12201
|
+
restaurantId: external_exports.string(),
|
|
12202
|
+
latestOpeningTimesSyncAt: import_sdk_js_global_types9.datetimeSchema.nullable(),
|
|
12203
|
+
service: integrationServiceSchema.extract(["justeat"]),
|
|
12204
|
+
autoAcceptOrders: external_exports.boolean(),
|
|
12205
|
+
nextSyncMenuScheduledAt: import_sdk_js_global_types9.datetimeSchema.nullable(),
|
|
12206
|
+
currentMenuVersionSyncAttempts: external_exports.number().min(0)
|
|
12207
|
+
});
|
|
12208
|
+
var integrationJustEatDetailsSchema = integrationJustEatSchema.extend(
|
|
12209
|
+
integrationDetailsFieldsSchema.shape
|
|
12210
|
+
);
|
|
12211
|
+
var integrationJustEatEditableFieldsSchema = integrationJustEatSchema.pick({
|
|
12212
|
+
name: true,
|
|
12213
|
+
provider: true,
|
|
12214
|
+
syncType: true,
|
|
12215
|
+
defaultLanguage: true,
|
|
12216
|
+
restaurantId: true,
|
|
12217
|
+
skipNegativePrices: true,
|
|
12218
|
+
skipInvalidItem: true,
|
|
12219
|
+
autoAcceptOrders: true,
|
|
12220
|
+
importTaggedItems: true,
|
|
12221
|
+
tagsForImport: true,
|
|
12222
|
+
storeUrl: true
|
|
12223
|
+
}).partial();
|
|
12224
|
+
var integrationsJustEatQuerySchema = external_exports.object({
|
|
12225
|
+
"order[createdAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12226
|
+
"order[updatedAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12227
|
+
"order[latestMenuCheckAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12228
|
+
"order[latestMenuSyncAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12229
|
+
"order[latestOpeningTimesSyncAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12230
|
+
"order[nextSyncMenuScheduledAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12231
|
+
name: external_exports.string().optional(),
|
|
12232
|
+
restaurantId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12233
|
+
status: external_exports.union([integrationStatusSchema, external_exports.array(integrationStatusSchema)]).optional(),
|
|
12234
|
+
syncType: external_exports.union([integrationJustEatSyncTypeSchema, external_exports.array(integrationJustEatSyncTypeSchema)]).optional(),
|
|
12235
|
+
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12236
|
+
skipInvalidItem: external_exports.coerce.boolean().optional(),
|
|
12237
|
+
isValidMenu: external_exports.coerce.boolean().optional(),
|
|
12238
|
+
"latestMenuCheckAt[before]": external_exports.string().optional(),
|
|
12239
|
+
"latestMenuCheckAt[strictly_before]": external_exports.string().optional(),
|
|
12240
|
+
"latestMenuCheckAt[after]": external_exports.string().optional(),
|
|
12241
|
+
"latestMenuCheckAt[strictly_after]": external_exports.string().optional(),
|
|
12242
|
+
"latestMenuSyncAt[before]": external_exports.string().optional(),
|
|
12243
|
+
"latestMenuSyncAt[strictly_before]": external_exports.string().optional(),
|
|
12244
|
+
"latestMenuSyncAt[after]": external_exports.string().optional(),
|
|
12245
|
+
"latestMenuSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12246
|
+
"latestOpeningTimesSyncAt[before]": external_exports.string().optional(),
|
|
12247
|
+
"latestOpeningTimesSyncAt[strictly_before]": external_exports.string().optional(),
|
|
12248
|
+
"latestOpeningTimesSyncAt[after]": external_exports.string().optional(),
|
|
12249
|
+
"latestOpeningTimesSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12250
|
+
"nextSyncMenuScheduledAt[before]": external_exports.string().optional(),
|
|
12251
|
+
"nextSyncMenuScheduledAt[strictly_before]": external_exports.string().optional(),
|
|
12252
|
+
"nextSyncMenuScheduledAt[after]": external_exports.string().optional(),
|
|
12253
|
+
"nextSyncMenuScheduledAt[strictly_after]": external_exports.string().optional(),
|
|
12254
|
+
service: integrationServiceSchema.extract(["justeat"]).optional(),
|
|
12255
|
+
page: external_exports.coerce.number().optional()
|
|
12256
|
+
}).extend(import_sdk_js_global_types9.timestampsFilterSchema.shape);
|
|
12257
|
+
var integrationJustEatSyncMenuProcessSchema = external_exports.object({
|
|
12258
|
+
id: external_exports.string(),
|
|
12259
|
+
ingestionSucceeded: external_exports.boolean().nullable(),
|
|
12260
|
+
error: external_exports.any().nullable(),
|
|
12261
|
+
createdAt: import_sdk_js_global_types9.datetimeSchema
|
|
12262
|
+
});
|
|
12263
|
+
var integrationJustEatSyncMenuProcessDetailsSchema = integrationJustEatSyncMenuProcessSchema.extend({
|
|
12264
|
+
integration: integrationJustEatIriSchema
|
|
12265
|
+
});
|
|
12266
|
+
var integrationJustEatSyncMenuProcessesQuerySchema = external_exports.object({
|
|
12267
|
+
"order[createdAt]": import_sdk_js_global_types9.sortDirSchema.optional(),
|
|
12268
|
+
page: external_exports.coerce.number().optional()
|
|
12269
|
+
});
|
|
12270
|
+
|
|
12271
|
+
// src/integration-schemas.ts
|
|
12272
|
+
var integrationSchema = external_exports.discriminatedUnion("service", [
|
|
12273
|
+
integrationJustEatSchema,
|
|
12274
|
+
integrationDeliverooSchema,
|
|
12275
|
+
integrationGlovoSchema,
|
|
12276
|
+
integrationCassaInCloudSchema
|
|
12277
|
+
]);
|
|
12278
|
+
var integrationDetailsSchema = external_exports.discriminatedUnion("service", [
|
|
12279
|
+
integrationJustEatDetailsSchema,
|
|
12280
|
+
integrationDeliverooDetailsSchema,
|
|
12281
|
+
integrationGlovoDetailsSchema,
|
|
12282
|
+
integrationCassaInCloudDetailsSchema
|
|
12283
|
+
]);
|
|
12284
|
+
|
|
12285
|
+
// src/requests/activation-requests/ActivateIntegrationActivationRequest.ts
|
|
12286
|
+
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
12287
|
+
var activateIntegrationActivationRequestInputSchema = external_exports.undefined();
|
|
12288
|
+
var activateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12289
|
+
var ActivateIntegrationActivationRequest = class extends import_sdk_js_core.AbstractApiRequest {
|
|
12290
|
+
constructor(integrationActivationRequestId) {
|
|
12291
|
+
super(void 0);
|
|
12292
|
+
this.method = "POST";
|
|
12293
|
+
this.contentType = "application/json";
|
|
12294
|
+
this.accept = "application/json";
|
|
12295
|
+
this.inputSchema = activateIntegrationActivationRequestInputSchema;
|
|
12296
|
+
this.outputSchema = activateIntegrationActivationRequestResponseSchema;
|
|
12297
|
+
this.querySchema = void 0;
|
|
12298
|
+
this.headersSchema = void 0;
|
|
12299
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12300
|
+
}
|
|
12301
|
+
getPath() {
|
|
12302
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/send-partner`;
|
|
12303
|
+
}
|
|
12304
|
+
};
|
|
12305
|
+
|
|
12306
|
+
// src/requests/activation-requests/AnnotateIntegrationActivationRequest.ts
|
|
12307
|
+
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
12308
|
+
var annotateIntegrationActivationRequestInputSchema = external_exports.object({
|
|
12309
|
+
message: external_exports.string().min(1, "Message is required")
|
|
12310
|
+
});
|
|
12311
|
+
var annotateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12312
|
+
var AnnotateIntegrationActivationRequest = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
12313
|
+
constructor(integrationActivationRequestId, input) {
|
|
12314
|
+
super(input);
|
|
12315
|
+
this.method = "POST";
|
|
12316
|
+
this.contentType = "application/json";
|
|
12317
|
+
this.accept = "application/json";
|
|
12318
|
+
this.inputSchema = annotateIntegrationActivationRequestInputSchema;
|
|
12319
|
+
this.outputSchema = annotateIntegrationActivationRequestResponseSchema;
|
|
12320
|
+
this.querySchema = void 0;
|
|
12321
|
+
this.headersSchema = void 0;
|
|
12322
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12323
|
+
}
|
|
12324
|
+
getPath() {
|
|
12325
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/annotate`;
|
|
12326
|
+
}
|
|
12327
|
+
};
|
|
12328
|
+
|
|
12329
|
+
// src/requests/activation-requests/CreateIntegrationActivationRequest.ts
|
|
12330
|
+
var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
|
|
12331
|
+
var import_sdk_js_point_of_sale3 = require("@deliverart/sdk-js-point-of-sale");
|
|
12332
|
+
var writableIntegrationActivationRequestBaseSchema = external_exports.object({
|
|
12333
|
+
name: external_exports.string(),
|
|
12334
|
+
provider: integrationProviderSchema,
|
|
12335
|
+
pointOfSale: import_sdk_js_point_of_sale3.pointOfSaleIriSchema
|
|
12336
|
+
});
|
|
12337
|
+
var createIntegrationActivationRequestInputSchema = external_exports.discriminatedUnion("service", [
|
|
12338
|
+
external_exports.object({
|
|
12339
|
+
service: external_exports.literal("deliveroo"),
|
|
12340
|
+
data: integrationDeliverooDataSchema
|
|
12341
|
+
}).extend(writableIntegrationActivationRequestBaseSchema.shape),
|
|
12342
|
+
external_exports.object({
|
|
12343
|
+
service: external_exports.literal("glovo"),
|
|
12344
|
+
data: integrationGlovoDataSchema
|
|
12345
|
+
}).extend(writableIntegrationActivationRequestBaseSchema.shape),
|
|
12346
|
+
external_exports.object({
|
|
12347
|
+
service: external_exports.literal("justeat"),
|
|
12348
|
+
data: integrationJustEatDataSchema
|
|
12349
|
+
}).extend(writableIntegrationActivationRequestBaseSchema.shape),
|
|
12350
|
+
external_exports.object({
|
|
12351
|
+
service: external_exports.literal("cassa_in_cloud"),
|
|
12352
|
+
data: integrationCassaInCloudDataSchema
|
|
12353
|
+
}).extend(writableIntegrationActivationRequestBaseSchema.shape)
|
|
12354
|
+
]);
|
|
12355
|
+
var createIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12356
|
+
var CreateIntegrationActivationRequest = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
12357
|
+
constructor(input) {
|
|
12358
|
+
super(input);
|
|
12359
|
+
this.method = "POST";
|
|
12360
|
+
this.contentType = "application/json";
|
|
12361
|
+
this.accept = "application/json";
|
|
12362
|
+
this.inputSchema = createIntegrationActivationRequestInputSchema;
|
|
12363
|
+
this.outputSchema = createIntegrationActivationRequestResponseSchema;
|
|
12364
|
+
this.querySchema = void 0;
|
|
12365
|
+
this.headersSchema = void 0;
|
|
12366
|
+
}
|
|
12367
|
+
getPath() {
|
|
12368
|
+
return "/integrations/activation_requests";
|
|
12369
|
+
}
|
|
12370
|
+
};
|
|
12371
|
+
|
|
12372
|
+
// src/requests/activation-requests/DeleteIntegrationActivationRequest.ts
|
|
12373
|
+
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
12374
|
+
var deleteIntegrationActivationRequestInputSchema = external_exports.undefined();
|
|
12375
|
+
var deleteIntegrationActivationRequestResponseSchema = external_exports.undefined();
|
|
12376
|
+
var DeleteIntegrationActivationRequest = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
12377
|
+
constructor(integrationActivationRequestId) {
|
|
12378
|
+
super(void 0);
|
|
12379
|
+
this.method = "DELETE";
|
|
12380
|
+
this.contentType = "application/json";
|
|
12381
|
+
this.accept = "application/json";
|
|
12382
|
+
this.inputSchema = deleteIntegrationActivationRequestInputSchema;
|
|
12383
|
+
this.outputSchema = deleteIntegrationActivationRequestResponseSchema;
|
|
12384
|
+
this.querySchema = void 0;
|
|
12385
|
+
this.headersSchema = void 0;
|
|
12386
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12387
|
+
}
|
|
12388
|
+
getPath() {
|
|
12389
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
12390
|
+
}
|
|
12391
|
+
};
|
|
12392
|
+
|
|
12393
|
+
// src/requests/activation-requests/GetIntegrationActivationRequestDetails.ts
|
|
12394
|
+
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
12395
|
+
var getIntegrationActivationRequestDetailsInputSchema = external_exports.undefined();
|
|
12396
|
+
var getIntegrationActivationRequestDetailsResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12397
|
+
var GetIntegrationActivationRequestDetails = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
12398
|
+
constructor(integrationActivationRequestId) {
|
|
12399
|
+
super(void 0);
|
|
12400
|
+
this.method = "GET";
|
|
12401
|
+
this.contentType = "application/json";
|
|
12402
|
+
this.accept = "application/json";
|
|
12403
|
+
this.inputSchema = getIntegrationActivationRequestDetailsInputSchema;
|
|
12404
|
+
this.outputSchema = getIntegrationActivationRequestDetailsResponseSchema;
|
|
12405
|
+
this.querySchema = void 0;
|
|
12406
|
+
this.headersSchema = void 0;
|
|
12407
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12408
|
+
}
|
|
12409
|
+
getPath() {
|
|
12410
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
12411
|
+
}
|
|
12412
|
+
};
|
|
12413
|
+
|
|
12414
|
+
// src/requests/activation-requests/GetIntegrationActivationRequests.ts
|
|
12415
|
+
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
12416
|
+
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
12417
|
+
var getIntegrationActivationRequestsQuerySchema = external_exports.object({
|
|
12418
|
+
"order[service]": import_sdk_js_global_types10.sortDirSchema.optional(),
|
|
12419
|
+
"order[status]": import_sdk_js_global_types10.sortDirSchema.optional(),
|
|
12420
|
+
"order[createdAt]": import_sdk_js_global_types10.sortDirSchema.optional(),
|
|
12421
|
+
"order[updatedAt]": import_sdk_js_global_types10.sortDirSchema.optional(),
|
|
12422
|
+
service: external_exports.union([integrationServiceSchema, external_exports.array(integrationServiceSchema)]).optional(),
|
|
12423
|
+
provider: external_exports.union([integrationProviderSchema, external_exports.array(integrationProviderSchema)]).optional(),
|
|
12424
|
+
status: external_exports.union([activatableIntegrationStatusSchema, external_exports.array(activatableIntegrationStatusSchema)]).optional(),
|
|
12425
|
+
healthStatus: external_exports.union([
|
|
12426
|
+
activatableIntegrationHealthStatusSchema,
|
|
12427
|
+
external_exports.array(activatableIntegrationHealthStatusSchema)
|
|
12428
|
+
]).optional(),
|
|
12429
|
+
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12430
|
+
page: external_exports.coerce.number().optional()
|
|
12431
|
+
}).extend(import_sdk_js_global_types10.timestampsFilterSchema.shape);
|
|
12432
|
+
var getIntegrationActivationRequestsInputSchema = external_exports.undefined();
|
|
12433
|
+
var getIntegrationActivationRequestsResponseSchema = (0, import_sdk_js_global_types10.createPaginatedSchema)(
|
|
12434
|
+
integrationActivationRequestSchema
|
|
12435
|
+
);
|
|
12436
|
+
var GetIntegrationActivationRequests = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
12437
|
+
constructor(options) {
|
|
12438
|
+
super(void 0, options);
|
|
12439
|
+
this.method = "GET";
|
|
12440
|
+
this.contentType = "application/json";
|
|
12441
|
+
this.accept = "application/json";
|
|
12442
|
+
this.inputSchema = getIntegrationActivationRequestsInputSchema;
|
|
12443
|
+
this.outputSchema = getIntegrationActivationRequestsResponseSchema;
|
|
12444
|
+
this.querySchema = getIntegrationActivationRequestsQuerySchema;
|
|
12445
|
+
this.headersSchema = void 0;
|
|
12446
|
+
}
|
|
12447
|
+
getPath() {
|
|
12448
|
+
return "/integrations/activation_requests";
|
|
12449
|
+
}
|
|
12450
|
+
parseResponse(data, rawResponse) {
|
|
12451
|
+
const integrations = external_exports.array(integrationActivationRequestSchema).parse(data);
|
|
12452
|
+
return this.validateOutput({
|
|
12453
|
+
data: integrations,
|
|
12454
|
+
pagination: (0, import_sdk_js_global_types10.responseToPagination)(rawResponse)
|
|
12455
|
+
});
|
|
12456
|
+
}
|
|
12457
|
+
};
|
|
12458
|
+
|
|
12459
|
+
// src/requests/activation-requests/RespondIntegrationActivationRequest.ts
|
|
12460
|
+
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
12461
|
+
var respondIntegrationActivationRequestInputSchema = external_exports.object({
|
|
12462
|
+
message: external_exports.string().min(1, "Message is required"),
|
|
12463
|
+
data: external_exports.union([
|
|
12464
|
+
integrationDeliverooDataSchema,
|
|
12465
|
+
integrationGlovoDataSchema,
|
|
12466
|
+
integrationJustEatDataSchema,
|
|
12467
|
+
integrationCassaInCloudDataSchema
|
|
12468
|
+
])
|
|
12469
|
+
});
|
|
12470
|
+
var respondIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12471
|
+
var RespondIntegrationActivationRequest = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
12472
|
+
constructor(integrationActivationRequestId, input) {
|
|
12473
|
+
super(input);
|
|
12474
|
+
this.method = "POST";
|
|
12475
|
+
this.contentType = "application/json";
|
|
12476
|
+
this.accept = "application/json";
|
|
12477
|
+
this.inputSchema = respondIntegrationActivationRequestInputSchema;
|
|
12478
|
+
this.outputSchema = respondIntegrationActivationRequestResponseSchema;
|
|
12479
|
+
this.querySchema = void 0;
|
|
12480
|
+
this.headersSchema = void 0;
|
|
12481
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12482
|
+
}
|
|
12483
|
+
getPath() {
|
|
12484
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/respond`;
|
|
12485
|
+
}
|
|
12486
|
+
};
|
|
12487
|
+
|
|
12488
|
+
// src/requests/activation-requests/SendIntegrationActivationRequestToPartner.ts
|
|
12489
|
+
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
12490
|
+
var sendIntegrationActivationRequestToPartnerInputSchema = external_exports.undefined();
|
|
12491
|
+
var sendIntegrationActivationRequestToPartnerResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12492
|
+
var SendIntegrationActivationRequestToPartner = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
12493
|
+
constructor(integrationActivationRequestId) {
|
|
12494
|
+
super(void 0);
|
|
12495
|
+
this.method = "POST";
|
|
12496
|
+
this.contentType = "application/json";
|
|
12497
|
+
this.accept = "application/json";
|
|
12498
|
+
this.inputSchema = sendIntegrationActivationRequestToPartnerInputSchema;
|
|
12499
|
+
this.outputSchema = sendIntegrationActivationRequestToPartnerResponseSchema;
|
|
12500
|
+
this.querySchema = void 0;
|
|
12501
|
+
this.headersSchema = void 0;
|
|
12502
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12503
|
+
}
|
|
12504
|
+
getPath() {
|
|
12505
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/send-partner`;
|
|
12506
|
+
}
|
|
12507
|
+
};
|
|
12508
|
+
|
|
12509
|
+
// src/requests/activation-requests/UpdateIntegrationActivationRequest.ts
|
|
12510
|
+
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
12511
|
+
var import_sdk_js_point_of_sale4 = require("@deliverart/sdk-js-point-of-sale");
|
|
12512
|
+
var writableIntegrationActivationRequestBaseSchema2 = external_exports.object({
|
|
12513
|
+
healthStatus: activatableIntegrationHealthStatusSchema,
|
|
12514
|
+
provider: integrationProviderSchema,
|
|
12515
|
+
pointOfSale: import_sdk_js_point_of_sale4.pointOfSaleIriSchema,
|
|
12516
|
+
name: external_exports.string(),
|
|
12517
|
+
internalNotes: external_exports.string().nullable()
|
|
12518
|
+
}).partial();
|
|
12519
|
+
var updateIntegrationActivationRequestInputSchema = external_exports.discriminatedUnion("service", [
|
|
12520
|
+
external_exports.object({
|
|
12521
|
+
service: external_exports.literal("deliveroo"),
|
|
12522
|
+
data: integrationDeliverooDataSchema.optional()
|
|
12523
|
+
}).extend(writableIntegrationActivationRequestBaseSchema2.shape),
|
|
12524
|
+
external_exports.object({
|
|
12525
|
+
service: external_exports.literal("glovo"),
|
|
12526
|
+
data: integrationGlovoDataSchema.optional()
|
|
12527
|
+
}).extend(writableIntegrationActivationRequestBaseSchema2.shape),
|
|
12528
|
+
external_exports.object({
|
|
12529
|
+
service: external_exports.literal("justeat"),
|
|
12530
|
+
data: integrationJustEatDataSchema.optional()
|
|
12531
|
+
}).extend(writableIntegrationActivationRequestBaseSchema2.shape),
|
|
12532
|
+
external_exports.object({
|
|
12533
|
+
service: external_exports.literal("cassa_in_cloud"),
|
|
12534
|
+
data: integrationCassaInCloudDataSchema.optional()
|
|
12535
|
+
}).extend(writableIntegrationActivationRequestBaseSchema2.shape)
|
|
12536
|
+
]);
|
|
12537
|
+
var updateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
12538
|
+
var UpdateIntegrationActivationRequest = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
12539
|
+
constructor(integrationActivationRequestId, input) {
|
|
12540
|
+
super(input);
|
|
12541
|
+
this.method = "PATCH";
|
|
12542
|
+
this.contentType = "application/merge-patch+json";
|
|
12543
|
+
this.accept = "application/json";
|
|
12544
|
+
this.inputSchema = updateIntegrationActivationRequestInputSchema;
|
|
12545
|
+
this.outputSchema = updateIntegrationActivationRequestResponseSchema;
|
|
12546
|
+
this.querySchema = void 0;
|
|
12547
|
+
this.headersSchema = void 0;
|
|
12548
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
12549
|
+
}
|
|
12550
|
+
getPath() {
|
|
12551
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
12552
|
+
}
|
|
12553
|
+
};
|
|
12554
|
+
|
|
12555
|
+
// src/requests/cancellation-requests/CancelIntegrationCancellationRequest.ts
|
|
12556
|
+
var import_sdk_js_core10 = require("@deliverart/sdk-js-core");
|
|
12557
|
+
var cancelIntegrationCancellationRequestInputSchema = external_exports.undefined();
|
|
12558
|
+
var cancelIntegrationCancellationRequestResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
12559
|
+
var CancelIntegrationCancellationRequest = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
12560
|
+
constructor(integrationCancellationRequestId) {
|
|
12561
|
+
super(void 0);
|
|
12562
|
+
this.method = "POST";
|
|
12563
|
+
this.contentType = "application/json";
|
|
12564
|
+
this.accept = "application/json";
|
|
12565
|
+
this.inputSchema = cancelIntegrationCancellationRequestInputSchema;
|
|
12566
|
+
this.outputSchema = cancelIntegrationCancellationRequestResponseSchema;
|
|
12567
|
+
this.querySchema = void 0;
|
|
12568
|
+
this.headersSchema = void 0;
|
|
12569
|
+
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
12570
|
+
}
|
|
12571
|
+
getPath() {
|
|
12572
|
+
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}/cancel`;
|
|
12573
|
+
}
|
|
12574
|
+
};
|
|
12575
|
+
|
|
12576
|
+
// src/requests/cancellation-requests/CreateIntegrationCancellationRequest.ts
|
|
12577
|
+
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
12578
|
+
var createIntegrationCancellationRequestInputSchema = external_exports.object({
|
|
12579
|
+
integration: integrationIriSchema
|
|
12602
12580
|
});
|
|
12581
|
+
var createIntegrationCancellationRequestResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
12582
|
+
var CreateIntegrationCancellationRequest = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
12583
|
+
constructor(input) {
|
|
12584
|
+
super(input);
|
|
12585
|
+
this.method = "POST";
|
|
12586
|
+
this.contentType = "application/json";
|
|
12587
|
+
this.accept = "application/json";
|
|
12588
|
+
this.inputSchema = createIntegrationCancellationRequestInputSchema;
|
|
12589
|
+
this.outputSchema = createIntegrationCancellationRequestResponseSchema;
|
|
12590
|
+
this.querySchema = void 0;
|
|
12591
|
+
this.headersSchema = void 0;
|
|
12592
|
+
}
|
|
12593
|
+
getPath() {
|
|
12594
|
+
return "/integrations/cancellation_requests";
|
|
12595
|
+
}
|
|
12596
|
+
};
|
|
12603
12597
|
|
|
12604
|
-
// src/
|
|
12598
|
+
// src/requests/cancellation-requests/DeleteIntegrationCancellationRequest.ts
|
|
12599
|
+
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
12600
|
+
var deleteIntegrationCancellationRequestInputSchema = external_exports.undefined();
|
|
12601
|
+
var deleteIntegrationCancellationRequestResponseSchema = external_exports.undefined();
|
|
12602
|
+
var DeleteIntegrationCancellationRequest = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
12603
|
+
constructor(integrationCancellationRequestId) {
|
|
12604
|
+
super(void 0);
|
|
12605
|
+
this.method = "DELETE";
|
|
12606
|
+
this.contentType = "application/json";
|
|
12607
|
+
this.accept = "application/json";
|
|
12608
|
+
this.inputSchema = deleteIntegrationCancellationRequestInputSchema;
|
|
12609
|
+
this.outputSchema = deleteIntegrationCancellationRequestResponseSchema;
|
|
12610
|
+
this.querySchema = void 0;
|
|
12611
|
+
this.headersSchema = void 0;
|
|
12612
|
+
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
12613
|
+
}
|
|
12614
|
+
getPath() {
|
|
12615
|
+
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}`;
|
|
12616
|
+
}
|
|
12617
|
+
};
|
|
12618
|
+
|
|
12619
|
+
// src/requests/cancellation-requests/GetIntegrationCancellationRequestDetails.ts
|
|
12620
|
+
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
12621
|
+
var getIntegrationCancellationRequestDetailsInputSchema = external_exports.undefined();
|
|
12622
|
+
var getIntegrationCancellationRequestDetailsResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
12623
|
+
var GetIntegrationCancellationRequestDetails = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
12624
|
+
constructor(integrationCancellationRequestId) {
|
|
12625
|
+
super(void 0);
|
|
12626
|
+
this.method = "GET";
|
|
12627
|
+
this.contentType = "application/json";
|
|
12628
|
+
this.accept = "application/json";
|
|
12629
|
+
this.inputSchema = getIntegrationCancellationRequestDetailsInputSchema;
|
|
12630
|
+
this.outputSchema = getIntegrationCancellationRequestDetailsResponseSchema;
|
|
12631
|
+
this.querySchema = void 0;
|
|
12632
|
+
this.headersSchema = void 0;
|
|
12633
|
+
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
12634
|
+
}
|
|
12635
|
+
getPath() {
|
|
12636
|
+
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}`;
|
|
12637
|
+
}
|
|
12638
|
+
};
|
|
12639
|
+
|
|
12640
|
+
// src/requests/cancellation-requests/GetIntegrationCancellationRequests.ts
|
|
12641
|
+
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
12605
12642
|
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
12606
|
-
var
|
|
12607
|
-
syncType: integrationJustEatSyncTypeSchema,
|
|
12608
|
-
defaultLanguage: external_exports.string(),
|
|
12609
|
-
restaurantId: external_exports.string(),
|
|
12610
|
-
latestOpeningTimesSyncAt: import_sdk_js_global_types11.datetimeSchema.nullable(),
|
|
12611
|
-
service: integrationServiceSchema.extract(["justeat"]),
|
|
12612
|
-
autoAcceptOrders: external_exports.boolean(),
|
|
12613
|
-
nextSyncMenuScheduledAt: import_sdk_js_global_types11.datetimeSchema.nullable(),
|
|
12614
|
-
currentMenuVersionSyncAttempts: external_exports.number().min(0)
|
|
12615
|
-
});
|
|
12616
|
-
var integrationJustEatDetailsSchema = integrationJustEatSchema.extend(
|
|
12617
|
-
integrationDetailsFieldsSchema.shape
|
|
12618
|
-
);
|
|
12619
|
-
var integrationJustEatEditableFieldsSchema = integrationJustEatSchema.pick({
|
|
12620
|
-
name: true,
|
|
12621
|
-
provider: true,
|
|
12622
|
-
syncType: true,
|
|
12623
|
-
defaultLanguage: true,
|
|
12624
|
-
restaurantId: true,
|
|
12625
|
-
skipNegativePrices: true,
|
|
12626
|
-
skipInvalidItem: true,
|
|
12627
|
-
autoAcceptOrders: true,
|
|
12628
|
-
importTaggedItems: true,
|
|
12629
|
-
tagsForImport: true
|
|
12630
|
-
}).partial();
|
|
12631
|
-
var integrationsJustEatQuerySchema = external_exports.object({
|
|
12643
|
+
var getIntegrationCancellationRequestsQuerySchema = external_exports.object({
|
|
12632
12644
|
"order[createdAt]": import_sdk_js_global_types11.sortDirSchema.optional(),
|
|
12633
12645
|
"order[updatedAt]": import_sdk_js_global_types11.sortDirSchema.optional(),
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
name: external_exports.string().optional(),
|
|
12639
|
-
restaurantId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12640
|
-
status: external_exports.union([integrationStatusSchema, external_exports.array(integrationStatusSchema)]).optional(),
|
|
12641
|
-
syncType: external_exports.union([integrationJustEatSyncTypeSchema, external_exports.array(integrationJustEatSyncTypeSchema)]).optional(),
|
|
12642
|
-
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12643
|
-
skipInvalidItem: external_exports.coerce.boolean().optional(),
|
|
12644
|
-
isValidMenu: external_exports.coerce.boolean().optional(),
|
|
12645
|
-
"latestMenuCheckAt[before]": external_exports.string().optional(),
|
|
12646
|
-
"latestMenuCheckAt[strictly_before]": external_exports.string().optional(),
|
|
12647
|
-
"latestMenuCheckAt[after]": external_exports.string().optional(),
|
|
12648
|
-
"latestMenuCheckAt[strictly_after]": external_exports.string().optional(),
|
|
12649
|
-
"latestMenuSyncAt[before]": external_exports.string().optional(),
|
|
12650
|
-
"latestMenuSyncAt[strictly_before]": external_exports.string().optional(),
|
|
12651
|
-
"latestMenuSyncAt[after]": external_exports.string().optional(),
|
|
12652
|
-
"latestMenuSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12653
|
-
"latestOpeningTimesSyncAt[before]": external_exports.string().optional(),
|
|
12654
|
-
"latestOpeningTimesSyncAt[strictly_before]": external_exports.string().optional(),
|
|
12655
|
-
"latestOpeningTimesSyncAt[after]": external_exports.string().optional(),
|
|
12656
|
-
"latestOpeningTimesSyncAt[strictly_after]": external_exports.string().optional(),
|
|
12657
|
-
"nextSyncMenuScheduledAt[before]": external_exports.string().optional(),
|
|
12658
|
-
"nextSyncMenuScheduledAt[strictly_before]": external_exports.string().optional(),
|
|
12659
|
-
"nextSyncMenuScheduledAt[after]": external_exports.string().optional(),
|
|
12660
|
-
"nextSyncMenuScheduledAt[strictly_after]": external_exports.string().optional(),
|
|
12661
|
-
service: integrationServiceSchema.extract(["justeat"]).optional(),
|
|
12646
|
+
status: external_exports.union([
|
|
12647
|
+
integrationCancellationRequestStatusSchema,
|
|
12648
|
+
external_exports.array(integrationCancellationRequestStatusSchema)
|
|
12649
|
+
]).optional(),
|
|
12662
12650
|
page: external_exports.coerce.number().optional()
|
|
12663
12651
|
}).extend(import_sdk_js_global_types11.timestampsFilterSchema.shape);
|
|
12664
|
-
var
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12652
|
+
var getIntegrationCancellationRequestsInputSchema = external_exports.undefined();
|
|
12653
|
+
var getIntegrationCancellationRequestsResponseSchema = (0, import_sdk_js_global_types11.createPaginatedSchema)(
|
|
12654
|
+
integrationCancellationRequestSchema
|
|
12655
|
+
);
|
|
12656
|
+
var GetIntegrationCancellationRequests = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
12657
|
+
constructor(options) {
|
|
12658
|
+
super(void 0, options);
|
|
12659
|
+
this.method = "GET";
|
|
12660
|
+
this.contentType = "application/json";
|
|
12661
|
+
this.accept = "application/json";
|
|
12662
|
+
this.inputSchema = getIntegrationCancellationRequestsInputSchema;
|
|
12663
|
+
this.outputSchema = getIntegrationCancellationRequestsResponseSchema;
|
|
12664
|
+
this.querySchema = getIntegrationCancellationRequestsQuerySchema;
|
|
12665
|
+
this.headersSchema = void 0;
|
|
12666
|
+
}
|
|
12667
|
+
getPath() {
|
|
12668
|
+
return "/integrations/cancellation_requests";
|
|
12669
|
+
}
|
|
12670
|
+
parseResponse(data, rawResponse) {
|
|
12671
|
+
const integrations = external_exports.array(integrationCancellationRequestSchema).parse(data);
|
|
12672
|
+
return this.validateOutput({
|
|
12673
|
+
data: integrations,
|
|
12674
|
+
pagination: (0, import_sdk_js_global_types11.responseToPagination)(rawResponse)
|
|
12675
|
+
});
|
|
12676
|
+
}
|
|
12677
|
+
};
|
|
12677
12678
|
|
|
12678
|
-
// src/
|
|
12679
|
-
var
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12679
|
+
// src/requests/DeleteIntegration.ts
|
|
12680
|
+
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
12681
|
+
var deleteIntegrationInputSchema = external_exports.undefined();
|
|
12682
|
+
var deleteIntegrationResponseSchema = external_exports.undefined();
|
|
12683
|
+
var DeleteIntegration = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
12684
|
+
constructor(integrationId) {
|
|
12685
|
+
super(void 0);
|
|
12686
|
+
this.method = "DELETE";
|
|
12687
|
+
this.contentType = "application/json";
|
|
12688
|
+
this.accept = "application/json";
|
|
12689
|
+
this.inputSchema = deleteIntegrationInputSchema;
|
|
12690
|
+
this.outputSchema = deleteIntegrationResponseSchema;
|
|
12691
|
+
this.querySchema = void 0;
|
|
12692
|
+
this.headersSchema = void 0;
|
|
12693
|
+
this.integrationId = integrationId;
|
|
12694
|
+
}
|
|
12695
|
+
getPath() {
|
|
12696
|
+
return `/integrations/${this.integrationId}`;
|
|
12697
|
+
}
|
|
12698
|
+
};
|
|
12691
12699
|
|
|
12692
12700
|
// src/requests/GetIntegrationDetails.ts
|
|
12701
|
+
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
12693
12702
|
var getIntegrationDetailsInputSchema = external_exports.undefined();
|
|
12694
12703
|
var getIntegrationDetailsResponseSchema = integrationDetailsSchema;
|
|
12695
12704
|
var GetIntegrationDetails = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
@@ -12745,14 +12754,47 @@ var GetIntegrations = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
|
12745
12754
|
}
|
|
12746
12755
|
};
|
|
12747
12756
|
|
|
12748
|
-
// src/requests/
|
|
12757
|
+
// src/requests/GetIntegrationsFromPointOfSale.ts
|
|
12749
12758
|
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
12759
|
+
var import_sdk_js_global_types13 = require("@deliverart/sdk-js-global-types");
|
|
12760
|
+
var getIntegrationsFromPointOfSaleQuerySchema = external_exports.object({
|
|
12761
|
+
status: external_exports.union([integrationStatusSchema, external_exports.array(integrationStatusSchema)]).optional(),
|
|
12762
|
+
connectionId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
12763
|
+
service: integrationServiceSchema.optional(),
|
|
12764
|
+
"order[createdAt]": import_sdk_js_global_types13.sortDirSchema.optional(),
|
|
12765
|
+
"order[updatedAt]": import_sdk_js_global_types13.sortDirSchema.optional(),
|
|
12766
|
+
page: external_exports.coerce.number().optional()
|
|
12767
|
+
}).extend(import_sdk_js_global_types13.timestampsFilterSchema.shape);
|
|
12768
|
+
var getIntegrationsFromPointOfSaleInputSchema = external_exports.undefined();
|
|
12769
|
+
var getIntegrationsFromPointOfSaleResponseSchema = external_exports.array(integrationSchema);
|
|
12770
|
+
var GetIntegrationsFromPointOfSale = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
12771
|
+
constructor(pointOfSaleId, options) {
|
|
12772
|
+
super(void 0, options);
|
|
12773
|
+
this.method = "GET";
|
|
12774
|
+
this.contentType = "application/json";
|
|
12775
|
+
this.accept = "application/json";
|
|
12776
|
+
this.inputSchema = getIntegrationsFromPointOfSaleInputSchema;
|
|
12777
|
+
this.outputSchema = getIntegrationsFromPointOfSaleResponseSchema;
|
|
12778
|
+
this.querySchema = getIntegrationsFromPointOfSaleQuerySchema;
|
|
12779
|
+
this.headersSchema = void 0;
|
|
12780
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
12781
|
+
}
|
|
12782
|
+
getPath() {
|
|
12783
|
+
return `/point_of_sales/${this.pointOfSaleId}/integrations`;
|
|
12784
|
+
}
|
|
12785
|
+
parseResponse(data) {
|
|
12786
|
+
return external_exports.array(integrationSchema).parse(data);
|
|
12787
|
+
}
|
|
12788
|
+
};
|
|
12789
|
+
|
|
12790
|
+
// src/requests/services/cassa_in_cloud/CreateIntegrationCassaInCloud.ts
|
|
12791
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
12750
12792
|
var import_sdk_js_point_of_sale5 = require("@deliverart/sdk-js-point-of-sale");
|
|
12751
12793
|
var createIntegrationCassaInCloudInputSchema = integrationCassaInCloudEditableFieldsSchema.extend({
|
|
12752
12794
|
pointOfSale: import_sdk_js_point_of_sale5.pointOfSaleIriSchema
|
|
12753
12795
|
});
|
|
12754
12796
|
var createIntegrationCassaInCloudResponseSchema = integrationCassaInCloudDetailsSchema;
|
|
12755
|
-
var CreateIntegrationCassaInCloud = class extends
|
|
12797
|
+
var CreateIntegrationCassaInCloud = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
12756
12798
|
constructor(input) {
|
|
12757
12799
|
super(input);
|
|
12758
12800
|
this.method = "POST";
|
|
@@ -12769,10 +12811,10 @@ var CreateIntegrationCassaInCloud = class extends import_sdk_js_core18.AbstractA
|
|
|
12769
12811
|
};
|
|
12770
12812
|
|
|
12771
12813
|
// src/requests/services/cassa_in_cloud/DeleteIntegrationCassaInCloud.ts
|
|
12772
|
-
var
|
|
12814
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
12773
12815
|
var deleteIntegrationCassaInCloudInputSchema = external_exports.undefined();
|
|
12774
12816
|
var deleteIntegrationCassaInCloudResponseSchema = external_exports.undefined();
|
|
12775
|
-
var DeleteIntegrationCassaInCloud = class extends
|
|
12817
|
+
var DeleteIntegrationCassaInCloud = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
12776
12818
|
constructor(integrationCassaInCloudId) {
|
|
12777
12819
|
super(void 0);
|
|
12778
12820
|
this.method = "DELETE";
|
|
@@ -12790,10 +12832,10 @@ var DeleteIntegrationCassaInCloud = class extends import_sdk_js_core19.AbstractA
|
|
|
12790
12832
|
};
|
|
12791
12833
|
|
|
12792
12834
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudClientLogRequestDetails.ts
|
|
12793
|
-
var
|
|
12835
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
12794
12836
|
var getIntegrationCassaInCloudClientLogRequestDetailsInputSchema = external_exports.undefined();
|
|
12795
12837
|
var getIntegrationCassaInCloudClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
12796
|
-
var GetIntegrationCassaInCloudClientLogRequestDetails = class extends
|
|
12838
|
+
var GetIntegrationCassaInCloudClientLogRequestDetails = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
12797
12839
|
constructor(integrationCassaInCloudId, requestId) {
|
|
12798
12840
|
super(void 0);
|
|
12799
12841
|
this.method = "GET";
|
|
@@ -12812,14 +12854,14 @@ var GetIntegrationCassaInCloudClientLogRequestDetails = class extends import_sdk
|
|
|
12812
12854
|
};
|
|
12813
12855
|
|
|
12814
12856
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudClientLogRequests.ts
|
|
12815
|
-
var
|
|
12816
|
-
var
|
|
12857
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
12858
|
+
var import_sdk_js_global_types14 = require("@deliverart/sdk-js-global-types");
|
|
12817
12859
|
var getIntegrationCassaInCloudClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
12818
12860
|
var getIntegrationCassaInCloudClientLogRequestsInputSchema = external_exports.undefined();
|
|
12819
|
-
var getIntegrationCassaInCloudClientLogRequestsResponseSchema = (0,
|
|
12861
|
+
var getIntegrationCassaInCloudClientLogRequestsResponseSchema = (0, import_sdk_js_global_types14.createPaginatedSchema)(
|
|
12820
12862
|
integrationClientLogRequestSchema
|
|
12821
12863
|
);
|
|
12822
|
-
var GetIntegrationCassaInCloudClientLogRequests = class extends
|
|
12864
|
+
var GetIntegrationCassaInCloudClientLogRequests = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
12823
12865
|
constructor(integrationCassaInCloudId, options) {
|
|
12824
12866
|
super(void 0, options);
|
|
12825
12867
|
this.method = "GET";
|
|
@@ -12838,16 +12880,16 @@ var GetIntegrationCassaInCloudClientLogRequests = class extends import_sdk_js_co
|
|
|
12838
12880
|
const integrations = external_exports.array(integrationClientLogRequestSchema).parse(data);
|
|
12839
12881
|
return this.validateOutput({
|
|
12840
12882
|
data: integrations,
|
|
12841
|
-
pagination: (0,
|
|
12883
|
+
pagination: (0, import_sdk_js_global_types14.responseToPagination)(rawResponse)
|
|
12842
12884
|
});
|
|
12843
12885
|
}
|
|
12844
12886
|
};
|
|
12845
12887
|
|
|
12846
12888
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudDetails.ts
|
|
12847
|
-
var
|
|
12889
|
+
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
12848
12890
|
var getIntegrationCassaInCloudDetailsInputSchema = external_exports.undefined();
|
|
12849
12891
|
var getIntegrationCassaInCloudDetailsResponseSchema = integrationCassaInCloudDetailsSchema;
|
|
12850
|
-
var GetIntegrationCassaInCloudDetails = class extends
|
|
12892
|
+
var GetIntegrationCassaInCloudDetails = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
12851
12893
|
constructor(integrationCassaInCloudId) {
|
|
12852
12894
|
super(void 0);
|
|
12853
12895
|
this.method = "GET";
|
|
@@ -12865,16 +12907,16 @@ var GetIntegrationCassaInCloudDetails = class extends import_sdk_js_core22.Abstr
|
|
|
12865
12907
|
};
|
|
12866
12908
|
|
|
12867
12909
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudList.ts
|
|
12868
|
-
var
|
|
12869
|
-
var
|
|
12910
|
+
var import_sdk_js_core24 = require("@deliverart/sdk-js-core");
|
|
12911
|
+
var import_sdk_js_global_types15 = require("@deliverart/sdk-js-global-types");
|
|
12870
12912
|
var getIntegrationCassaInCloudListQuerySchema = integrationsCassaInCloudQuerySchema.omit({
|
|
12871
12913
|
service: true
|
|
12872
12914
|
});
|
|
12873
12915
|
var getIntegrationCassaInCloudListInputSchema = external_exports.undefined();
|
|
12874
|
-
var getIntegrationCassaInCloudListResponseSchema = (0,
|
|
12916
|
+
var getIntegrationCassaInCloudListResponseSchema = (0, import_sdk_js_global_types15.createPaginatedSchema)(
|
|
12875
12917
|
integrationCassaInCloudSchema
|
|
12876
12918
|
);
|
|
12877
|
-
var GetIntegrationCassaInCloudList = class extends
|
|
12919
|
+
var GetIntegrationCassaInCloudList = class extends import_sdk_js_core24.AbstractApiRequest {
|
|
12878
12920
|
constructor(options) {
|
|
12879
12921
|
super(void 0, options);
|
|
12880
12922
|
this.method = "GET";
|
|
@@ -12892,16 +12934,16 @@ var GetIntegrationCassaInCloudList = class extends import_sdk_js_core23.Abstract
|
|
|
12892
12934
|
const integrations = external_exports.array(integrationCassaInCloudSchema).parse(data);
|
|
12893
12935
|
return this.validateOutput({
|
|
12894
12936
|
data: integrations,
|
|
12895
|
-
pagination: (0,
|
|
12937
|
+
pagination: (0, import_sdk_js_global_types15.responseToPagination)(rawResponse)
|
|
12896
12938
|
});
|
|
12897
12939
|
}
|
|
12898
12940
|
};
|
|
12899
12941
|
|
|
12900
12942
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudSyncMenuProcessDetails.ts
|
|
12901
|
-
var
|
|
12943
|
+
var import_sdk_js_core25 = require("@deliverart/sdk-js-core");
|
|
12902
12944
|
var getIntegrationCassaInCloudSyncMenuProcessDetailsInputSchema = external_exports.undefined();
|
|
12903
12945
|
var getIntegrationCassaInCloudSyncMenuProcessDetailsResponseSchema = integrationCassaInCloudSyncMenuProcessDetailsSchema;
|
|
12904
|
-
var GetIntegrationCassaInCloudSyncMenuProcessDetails = class extends
|
|
12946
|
+
var GetIntegrationCassaInCloudSyncMenuProcessDetails = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
12905
12947
|
constructor(integrationCassaInCloudId, processId) {
|
|
12906
12948
|
super(void 0);
|
|
12907
12949
|
this.method = "GET";
|
|
@@ -12920,16 +12962,16 @@ var GetIntegrationCassaInCloudSyncMenuProcessDetails = class extends import_sdk_
|
|
|
12920
12962
|
};
|
|
12921
12963
|
|
|
12922
12964
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudSyncMenuProcesses.ts
|
|
12923
|
-
var
|
|
12924
|
-
var
|
|
12965
|
+
var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
|
|
12966
|
+
var import_sdk_js_global_types16 = require("@deliverart/sdk-js-global-types");
|
|
12925
12967
|
var getIntegrationCassaInCloudSyncMenuProcessesQuerySchema = external_exports.object({
|
|
12926
12968
|
page: external_exports.number().optional()
|
|
12927
12969
|
});
|
|
12928
12970
|
var getIntegrationCassaInCloudSyncMenuProcessesInputSchema = external_exports.undefined();
|
|
12929
|
-
var getIntegrationCassaInCloudSyncMenuProcessesResponseSchema = (0,
|
|
12971
|
+
var getIntegrationCassaInCloudSyncMenuProcessesResponseSchema = (0, import_sdk_js_global_types16.createPaginatedSchema)(
|
|
12930
12972
|
integrationCassaInCloudSyncMenuProcessSchema
|
|
12931
12973
|
);
|
|
12932
|
-
var GetIntegrationCassaInCloudSyncMenuProcesses = class extends
|
|
12974
|
+
var GetIntegrationCassaInCloudSyncMenuProcesses = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
12933
12975
|
constructor(integrationCassaInCloudId, options) {
|
|
12934
12976
|
super(void 0, options);
|
|
12935
12977
|
this.method = "GET";
|
|
@@ -12948,16 +12990,16 @@ var GetIntegrationCassaInCloudSyncMenuProcesses = class extends import_sdk_js_co
|
|
|
12948
12990
|
const integrations = external_exports.array(integrationCassaInCloudSyncMenuProcessSchema).parse(data);
|
|
12949
12991
|
return this.validateOutput({
|
|
12950
12992
|
data: integrations,
|
|
12951
|
-
pagination: (0,
|
|
12993
|
+
pagination: (0, import_sdk_js_global_types16.responseToPagination)(rawResponse)
|
|
12952
12994
|
});
|
|
12953
12995
|
}
|
|
12954
12996
|
};
|
|
12955
12997
|
|
|
12956
12998
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudWebHookEventDetails.ts
|
|
12957
|
-
var
|
|
12999
|
+
var import_sdk_js_core27 = require("@deliverart/sdk-js-core");
|
|
12958
13000
|
var getIntegrationCassaInCloudWebHookEventDetailsInputSchema = external_exports.undefined();
|
|
12959
13001
|
var getIntegrationCassaInCloudWebHookEventDetailsResponseSchema = integrationCassaInCloudWebHookEventDetailsSchema;
|
|
12960
|
-
var GetIntegrationCassaInCloudWebHookEventDetails = class extends
|
|
13002
|
+
var GetIntegrationCassaInCloudWebHookEventDetails = class extends import_sdk_js_core27.AbstractApiRequest {
|
|
12961
13003
|
constructor(integrationCassaInCloudId, eventId) {
|
|
12962
13004
|
super(void 0);
|
|
12963
13005
|
this.method = "GET";
|
|
@@ -12976,14 +13018,14 @@ var GetIntegrationCassaInCloudWebHookEventDetails = class extends import_sdk_js_
|
|
|
12976
13018
|
};
|
|
12977
13019
|
|
|
12978
13020
|
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudWebHookEvents.ts
|
|
12979
|
-
var
|
|
12980
|
-
var
|
|
13021
|
+
var import_sdk_js_core28 = require("@deliverart/sdk-js-core");
|
|
13022
|
+
var import_sdk_js_global_types17 = require("@deliverart/sdk-js-global-types");
|
|
12981
13023
|
var getIntegrationCassaInCloudWebHookEventsQuerySchema = integrationCassaInCloudWebHookEventsQuerySchema;
|
|
12982
13024
|
var getIntegrationCassaInCloudWebHookEventsInputSchema = external_exports.undefined();
|
|
12983
|
-
var getIntegrationCassaInCloudWebHookEventsResponseSchema = (0,
|
|
13025
|
+
var getIntegrationCassaInCloudWebHookEventsResponseSchema = (0, import_sdk_js_global_types17.createPaginatedSchema)(
|
|
12984
13026
|
integrationCassaInCloudWebHookEventSchema
|
|
12985
13027
|
);
|
|
12986
|
-
var GetIntegrationCassaInCloudWebHookEvents = class extends
|
|
13028
|
+
var GetIntegrationCassaInCloudWebHookEvents = class extends import_sdk_js_core28.AbstractApiRequest {
|
|
12987
13029
|
constructor(integrationCassaInCloudId, options) {
|
|
12988
13030
|
super(void 0, options);
|
|
12989
13031
|
this.method = "GET";
|
|
@@ -13002,16 +13044,16 @@ var GetIntegrationCassaInCloudWebHookEvents = class extends import_sdk_js_core27
|
|
|
13002
13044
|
const integrations = external_exports.array(integrationCassaInCloudWebHookEventSchema).parse(data);
|
|
13003
13045
|
return this.validateOutput({
|
|
13004
13046
|
data: integrations,
|
|
13005
|
-
pagination: (0,
|
|
13047
|
+
pagination: (0, import_sdk_js_global_types17.responseToPagination)(rawResponse)
|
|
13006
13048
|
});
|
|
13007
13049
|
}
|
|
13008
13050
|
};
|
|
13009
13051
|
|
|
13010
13052
|
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncCustomers.ts
|
|
13011
|
-
var
|
|
13053
|
+
var import_sdk_js_core29 = require("@deliverart/sdk-js-core");
|
|
13012
13054
|
var integrationCassaInCloudSyncCustomersInputSchema = external_exports.undefined();
|
|
13013
13055
|
var integrationCassaInCloudSyncCustomersResponseSchema = external_exports.undefined();
|
|
13014
|
-
var IntegrationCassaInCloudSyncCustomers = class extends
|
|
13056
|
+
var IntegrationCassaInCloudSyncCustomers = class extends import_sdk_js_core29.AbstractApiRequest {
|
|
13015
13057
|
constructor(integrationCassaInCloudId) {
|
|
13016
13058
|
super(void 0);
|
|
13017
13059
|
this.method = "POST";
|
|
@@ -13029,10 +13071,10 @@ var IntegrationCassaInCloudSyncCustomers = class extends import_sdk_js_core28.Ab
|
|
|
13029
13071
|
};
|
|
13030
13072
|
|
|
13031
13073
|
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncOrganizations.ts
|
|
13032
|
-
var
|
|
13074
|
+
var import_sdk_js_core30 = require("@deliverart/sdk-js-core");
|
|
13033
13075
|
var integrationCassaInCloudSyncOrganizationsInputSchema = external_exports.undefined();
|
|
13034
13076
|
var integrationCassaInCloudSyncOrganizationsResponseSchema = external_exports.undefined();
|
|
13035
|
-
var IntegrationCassaInCloudSyncOrganizations = class extends
|
|
13077
|
+
var IntegrationCassaInCloudSyncOrganizations = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
13036
13078
|
constructor(integrationCassaInCloudId) {
|
|
13037
13079
|
super(void 0);
|
|
13038
13080
|
this.method = "POST";
|
|
@@ -13050,10 +13092,10 @@ var IntegrationCassaInCloudSyncOrganizations = class extends import_sdk_js_core2
|
|
|
13050
13092
|
};
|
|
13051
13093
|
|
|
13052
13094
|
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncProducts.ts
|
|
13053
|
-
var
|
|
13095
|
+
var import_sdk_js_core31 = require("@deliverart/sdk-js-core");
|
|
13054
13096
|
var integrationCassaInCloudSyncProductsInputSchema = external_exports.undefined();
|
|
13055
13097
|
var integrationCassaInCloudSyncProductsResponseSchema = external_exports.undefined();
|
|
13056
|
-
var IntegrationCassaInCloudSyncProducts = class extends
|
|
13098
|
+
var IntegrationCassaInCloudSyncProducts = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
13057
13099
|
constructor(integrationCassaInCloudId) {
|
|
13058
13100
|
super(void 0);
|
|
13059
13101
|
this.method = "POST";
|
|
@@ -13071,10 +13113,10 @@ var IntegrationCassaInCloudSyncProducts = class extends import_sdk_js_core30.Abs
|
|
|
13071
13113
|
};
|
|
13072
13114
|
|
|
13073
13115
|
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncSalesModes.ts
|
|
13074
|
-
var
|
|
13116
|
+
var import_sdk_js_core32 = require("@deliverart/sdk-js-core");
|
|
13075
13117
|
var integrationCassaInCloudSyncSalesModesInputSchema = external_exports.undefined();
|
|
13076
13118
|
var integrationCassaInCloudSyncSalesModesResponseSchema = external_exports.undefined();
|
|
13077
|
-
var IntegrationCassaInCloudSyncSalesModes = class extends
|
|
13119
|
+
var IntegrationCassaInCloudSyncSalesModes = class extends import_sdk_js_core32.AbstractApiRequest {
|
|
13078
13120
|
constructor(integrationCassaInCloudId) {
|
|
13079
13121
|
super(void 0);
|
|
13080
13122
|
this.method = "POST";
|
|
@@ -13092,10 +13134,10 @@ var IntegrationCassaInCloudSyncSalesModes = class extends import_sdk_js_core31.A
|
|
|
13092
13134
|
};
|
|
13093
13135
|
|
|
13094
13136
|
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncStock.ts
|
|
13095
|
-
var
|
|
13137
|
+
var import_sdk_js_core33 = require("@deliverart/sdk-js-core");
|
|
13096
13138
|
var integrationCassaInCloudSyncStockInputSchema = external_exports.undefined();
|
|
13097
13139
|
var integrationCassaInCloudSyncStockResponseSchema = external_exports.undefined();
|
|
13098
|
-
var IntegrationCassaInCloudSyncStock = class extends
|
|
13140
|
+
var IntegrationCassaInCloudSyncStock = class extends import_sdk_js_core33.AbstractApiRequest {
|
|
13099
13141
|
constructor(integrationCassaInCloudId) {
|
|
13100
13142
|
super(void 0);
|
|
13101
13143
|
this.method = "POST";
|
|
@@ -13113,10 +13155,10 @@ var IntegrationCassaInCloudSyncStock = class extends import_sdk_js_core32.Abstra
|
|
|
13113
13155
|
};
|
|
13114
13156
|
|
|
13115
13157
|
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncTimetables.ts
|
|
13116
|
-
var
|
|
13158
|
+
var import_sdk_js_core34 = require("@deliverart/sdk-js-core");
|
|
13117
13159
|
var integrationCassaInCloudSyncTimetablesInputSchema = external_exports.undefined();
|
|
13118
13160
|
var integrationCassaInCloudSyncTimetablesResponseSchema = external_exports.undefined();
|
|
13119
|
-
var IntegrationCassaInCloudSyncTimetables = class extends
|
|
13161
|
+
var IntegrationCassaInCloudSyncTimetables = class extends import_sdk_js_core34.AbstractApiRequest {
|
|
13120
13162
|
constructor(integrationCassaInCloudId) {
|
|
13121
13163
|
super(void 0);
|
|
13122
13164
|
this.method = "POST";
|
|
@@ -13134,10 +13176,10 @@ var IntegrationCassaInCloudSyncTimetables = class extends import_sdk_js_core33.A
|
|
|
13134
13176
|
};
|
|
13135
13177
|
|
|
13136
13178
|
// src/requests/services/cassa_in_cloud/UpdateIntegrationCassaInCloud.ts
|
|
13137
|
-
var
|
|
13179
|
+
var import_sdk_js_core35 = require("@deliverart/sdk-js-core");
|
|
13138
13180
|
var updateIntegrationCassaInCloudInputSchema = integrationCassaInCloudEditableFieldsSchema;
|
|
13139
13181
|
var updateIntegrationCassaInCloudResponseSchema = integrationCassaInCloudDetailsSchema;
|
|
13140
|
-
var UpdateIntegrationCassaInCloud = class extends
|
|
13182
|
+
var UpdateIntegrationCassaInCloud = class extends import_sdk_js_core35.AbstractApiRequest {
|
|
13141
13183
|
constructor(integrationCassaInCloudId, input) {
|
|
13142
13184
|
super(input);
|
|
13143
13185
|
this.method = "PATCH";
|
|
@@ -13155,13 +13197,13 @@ var UpdateIntegrationCassaInCloud = class extends import_sdk_js_core34.AbstractA
|
|
|
13155
13197
|
};
|
|
13156
13198
|
|
|
13157
13199
|
// src/requests/services/deliveroo/CreateIntegrationDeliveroo.ts
|
|
13158
|
-
var
|
|
13200
|
+
var import_sdk_js_core36 = require("@deliverart/sdk-js-core");
|
|
13159
13201
|
var import_sdk_js_point_of_sale6 = require("@deliverart/sdk-js-point-of-sale");
|
|
13160
13202
|
var createIntegrationDeliverooInputSchema = integrationDeliverooEditableFieldsSchema.extend({
|
|
13161
13203
|
pointOfSale: import_sdk_js_point_of_sale6.pointOfSaleIriSchema
|
|
13162
13204
|
});
|
|
13163
13205
|
var createIntegrationDeliverooResponseSchema = integrationDeliverooDetailsSchema;
|
|
13164
|
-
var CreateIntegrationDeliveroo = class extends
|
|
13206
|
+
var CreateIntegrationDeliveroo = class extends import_sdk_js_core36.AbstractApiRequest {
|
|
13165
13207
|
constructor(input) {
|
|
13166
13208
|
super(input);
|
|
13167
13209
|
this.method = "POST";
|
|
@@ -13178,10 +13220,10 @@ var CreateIntegrationDeliveroo = class extends import_sdk_js_core35.AbstractApiR
|
|
|
13178
13220
|
};
|
|
13179
13221
|
|
|
13180
13222
|
// src/requests/services/deliveroo/DeleteIntegrationDeliveroo.ts
|
|
13181
|
-
var
|
|
13223
|
+
var import_sdk_js_core37 = require("@deliverart/sdk-js-core");
|
|
13182
13224
|
var deleteIntegrationDeliverooInputSchema = external_exports.undefined();
|
|
13183
13225
|
var deleteIntegrationDeliverooResponseSchema = external_exports.undefined();
|
|
13184
|
-
var DeleteIntegrationDeliveroo = class extends
|
|
13226
|
+
var DeleteIntegrationDeliveroo = class extends import_sdk_js_core37.AbstractApiRequest {
|
|
13185
13227
|
constructor(integrationDeliverooId) {
|
|
13186
13228
|
super(void 0);
|
|
13187
13229
|
this.method = "DELETE";
|
|
@@ -13199,10 +13241,10 @@ var DeleteIntegrationDeliveroo = class extends import_sdk_js_core36.AbstractApiR
|
|
|
13199
13241
|
};
|
|
13200
13242
|
|
|
13201
13243
|
// src/requests/services/deliveroo/GetIntegrationDeliverooClientLogRequestDetails.ts
|
|
13202
|
-
var
|
|
13244
|
+
var import_sdk_js_core38 = require("@deliverart/sdk-js-core");
|
|
13203
13245
|
var getIntegrationDeliverooClientLogRequestDetailsInputSchema = external_exports.undefined();
|
|
13204
13246
|
var getIntegrationDeliverooClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
13205
|
-
var GetIntegrationDeliverooClientLogRequestDetails = class extends
|
|
13247
|
+
var GetIntegrationDeliverooClientLogRequestDetails = class extends import_sdk_js_core38.AbstractApiRequest {
|
|
13206
13248
|
constructor(integrationDeliverooId, requestId) {
|
|
13207
13249
|
super(void 0);
|
|
13208
13250
|
this.method = "GET";
|
|
@@ -13221,14 +13263,14 @@ var GetIntegrationDeliverooClientLogRequestDetails = class extends import_sdk_js
|
|
|
13221
13263
|
};
|
|
13222
13264
|
|
|
13223
13265
|
// src/requests/services/deliveroo/GetIntegrationDeliverooClientLogRequests.ts
|
|
13224
|
-
var
|
|
13225
|
-
var
|
|
13266
|
+
var import_sdk_js_core39 = require("@deliverart/sdk-js-core");
|
|
13267
|
+
var import_sdk_js_global_types18 = require("@deliverart/sdk-js-global-types");
|
|
13226
13268
|
var getIntegrationDeliverooClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
13227
13269
|
var getIntegrationDeliverooClientLogRequestsInputSchema = external_exports.undefined();
|
|
13228
|
-
var getIntegrationDeliverooClientLogRequestsResponseSchema = (0,
|
|
13270
|
+
var getIntegrationDeliverooClientLogRequestsResponseSchema = (0, import_sdk_js_global_types18.createPaginatedSchema)(
|
|
13229
13271
|
integrationClientLogRequestSchema
|
|
13230
13272
|
);
|
|
13231
|
-
var GetIntegrationDeliverooClientLogRequests = class extends
|
|
13273
|
+
var GetIntegrationDeliverooClientLogRequests = class extends import_sdk_js_core39.AbstractApiRequest {
|
|
13232
13274
|
constructor(integrationDeliverooId, options) {
|
|
13233
13275
|
super(void 0, options);
|
|
13234
13276
|
this.method = "GET";
|
|
@@ -13247,16 +13289,16 @@ var GetIntegrationDeliverooClientLogRequests = class extends import_sdk_js_core3
|
|
|
13247
13289
|
const integrations = external_exports.array(integrationClientLogRequestSchema).parse(data);
|
|
13248
13290
|
return this.validateOutput({
|
|
13249
13291
|
data: integrations,
|
|
13250
|
-
pagination: (0,
|
|
13292
|
+
pagination: (0, import_sdk_js_global_types18.responseToPagination)(rawResponse)
|
|
13251
13293
|
});
|
|
13252
13294
|
}
|
|
13253
13295
|
};
|
|
13254
13296
|
|
|
13255
13297
|
// src/requests/services/deliveroo/GetIntegrationDeliverooDetails.ts
|
|
13256
|
-
var
|
|
13298
|
+
var import_sdk_js_core40 = require("@deliverart/sdk-js-core");
|
|
13257
13299
|
var getIntegrationDeliverooDetailsInputSchema = external_exports.undefined();
|
|
13258
13300
|
var getIntegrationDeliverooDetailsResponseSchema = integrationDeliverooDetailsSchema;
|
|
13259
|
-
var GetIntegrationDeliverooDetails = class extends
|
|
13301
|
+
var GetIntegrationDeliverooDetails = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
13260
13302
|
constructor(integrationDeliverooId) {
|
|
13261
13303
|
super(void 0);
|
|
13262
13304
|
this.method = "GET";
|
|
@@ -13274,16 +13316,16 @@ var GetIntegrationDeliverooDetails = class extends import_sdk_js_core39.Abstract
|
|
|
13274
13316
|
};
|
|
13275
13317
|
|
|
13276
13318
|
// src/requests/services/deliveroo/GetIntegrationDeliverooList.ts
|
|
13277
|
-
var
|
|
13278
|
-
var
|
|
13319
|
+
var import_sdk_js_core41 = require("@deliverart/sdk-js-core");
|
|
13320
|
+
var import_sdk_js_global_types19 = require("@deliverart/sdk-js-global-types");
|
|
13279
13321
|
var getIntegrationDeliverooListQuerySchema = integrationsDeliverooQuerySchema.omit({
|
|
13280
13322
|
service: true
|
|
13281
13323
|
});
|
|
13282
|
-
var getIntegrationDeliverooListResponseSchema = (0,
|
|
13324
|
+
var getIntegrationDeliverooListResponseSchema = (0, import_sdk_js_global_types19.createPaginatedSchema)(
|
|
13283
13325
|
integrationDeliverooSchema
|
|
13284
13326
|
);
|
|
13285
13327
|
var getIntegrationDeliverooListInputSchema = external_exports.undefined();
|
|
13286
|
-
var GetIntegrationDeliverooList = class extends
|
|
13328
|
+
var GetIntegrationDeliverooList = class extends import_sdk_js_core41.AbstractApiRequest {
|
|
13287
13329
|
constructor(options) {
|
|
13288
13330
|
super(void 0, options);
|
|
13289
13331
|
this.method = "GET";
|
|
@@ -13301,16 +13343,16 @@ var GetIntegrationDeliverooList = class extends import_sdk_js_core40.AbstractApi
|
|
|
13301
13343
|
const integrations = external_exports.array(integrationDeliverooSchema).parse(data);
|
|
13302
13344
|
return this.validateOutput({
|
|
13303
13345
|
data: integrations,
|
|
13304
|
-
pagination: (0,
|
|
13346
|
+
pagination: (0, import_sdk_js_global_types19.responseToPagination)(rawResponse)
|
|
13305
13347
|
});
|
|
13306
13348
|
}
|
|
13307
13349
|
};
|
|
13308
13350
|
|
|
13309
13351
|
// src/requests/services/deliveroo/GetIntegrationDeliverooMenuVersionDetails.ts
|
|
13310
|
-
var
|
|
13352
|
+
var import_sdk_js_core42 = require("@deliverart/sdk-js-core");
|
|
13311
13353
|
var getIntegrationDeliverooMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
13312
13354
|
var getIntegrationDeliverooMenuVersionDetailsResponseSchema = menuVersionDetailsSchema;
|
|
13313
|
-
var GetIntegrationDeliverooMenuVersionDetails = class extends
|
|
13355
|
+
var GetIntegrationDeliverooMenuVersionDetails = class extends import_sdk_js_core42.AbstractApiRequest {
|
|
13314
13356
|
constructor(integrationDeliverooId, versionId) {
|
|
13315
13357
|
super(void 0);
|
|
13316
13358
|
this.method = "GET";
|
|
@@ -13329,14 +13371,14 @@ var GetIntegrationDeliverooMenuVersionDetails = class extends import_sdk_js_core
|
|
|
13329
13371
|
};
|
|
13330
13372
|
|
|
13331
13373
|
// src/requests/services/deliveroo/GetIntegrationDeliverooMenuVersions.ts
|
|
13332
|
-
var
|
|
13333
|
-
var
|
|
13374
|
+
var import_sdk_js_core43 = require("@deliverart/sdk-js-core");
|
|
13375
|
+
var import_sdk_js_global_types20 = require("@deliverart/sdk-js-global-types");
|
|
13334
13376
|
var getIntegrationDeliverooMenuVersionsQuerySchema = external_exports.object({
|
|
13335
13377
|
page: external_exports.number().optional()
|
|
13336
13378
|
});
|
|
13337
13379
|
var getIntegrationDeliverooMenuVersionsInputSchema = external_exports.undefined();
|
|
13338
|
-
var getIntegrationDeliverooMenuVersionsResponseSchema = (0,
|
|
13339
|
-
var GetIntegrationDeliverooMenuVersions = class extends
|
|
13380
|
+
var getIntegrationDeliverooMenuVersionsResponseSchema = (0, import_sdk_js_global_types20.createPaginatedSchema)(menuVersionSchema);
|
|
13381
|
+
var GetIntegrationDeliverooMenuVersions = class extends import_sdk_js_core43.AbstractApiRequest {
|
|
13340
13382
|
constructor(integrationDeliverooId, options) {
|
|
13341
13383
|
super(void 0, options);
|
|
13342
13384
|
this.method = "GET";
|
|
@@ -13355,16 +13397,16 @@ var GetIntegrationDeliverooMenuVersions = class extends import_sdk_js_core42.Abs
|
|
|
13355
13397
|
const integrations = external_exports.array(menuVersionSchema).parse(data);
|
|
13356
13398
|
return this.validateOutput({
|
|
13357
13399
|
data: integrations,
|
|
13358
|
-
pagination: (0,
|
|
13400
|
+
pagination: (0, import_sdk_js_global_types20.responseToPagination)(rawResponse)
|
|
13359
13401
|
});
|
|
13360
13402
|
}
|
|
13361
13403
|
};
|
|
13362
13404
|
|
|
13363
13405
|
// src/requests/services/deliveroo/GetIntegrationDeliverooSyncMenuProcessDetails.ts
|
|
13364
|
-
var
|
|
13406
|
+
var import_sdk_js_core44 = require("@deliverart/sdk-js-core");
|
|
13365
13407
|
var getIntegrationDeliverooSyncMenuProcessDetailsInputSchema = external_exports.undefined();
|
|
13366
13408
|
var getIntegrationDeliverooSyncMenuProcessDetailsResponseSchema = integrationDeliverooSyncMenuProcessDetailsSchema;
|
|
13367
|
-
var GetIntegrationDeliverooSyncMenuProcessDetails = class extends
|
|
13409
|
+
var GetIntegrationDeliverooSyncMenuProcessDetails = class extends import_sdk_js_core44.AbstractApiRequest {
|
|
13368
13410
|
constructor(integrationDeliverooId, processId) {
|
|
13369
13411
|
super(void 0);
|
|
13370
13412
|
this.method = "GET";
|
|
@@ -13383,16 +13425,16 @@ var GetIntegrationDeliverooSyncMenuProcessDetails = class extends import_sdk_js_
|
|
|
13383
13425
|
};
|
|
13384
13426
|
|
|
13385
13427
|
// src/requests/services/deliveroo/GetIntegrationDeliverooSyncMenuProcesses.ts
|
|
13386
|
-
var
|
|
13387
|
-
var
|
|
13428
|
+
var import_sdk_js_core45 = require("@deliverart/sdk-js-core");
|
|
13429
|
+
var import_sdk_js_global_types21 = require("@deliverart/sdk-js-global-types");
|
|
13388
13430
|
var getIntegrationDeliverooSyncMenuProcessesQuerySchema = external_exports.object({
|
|
13389
13431
|
page: external_exports.number().optional()
|
|
13390
13432
|
});
|
|
13391
13433
|
var getIntegrationDeliverooSyncMenuProcessesInputSchema = external_exports.undefined();
|
|
13392
|
-
var getIntegrationDeliverooSyncMenuProcessesResponseSchema = (0,
|
|
13434
|
+
var getIntegrationDeliverooSyncMenuProcessesResponseSchema = (0, import_sdk_js_global_types21.createPaginatedSchema)(
|
|
13393
13435
|
integrationDeliverooSyncMenuProcessSchema
|
|
13394
13436
|
);
|
|
13395
|
-
var GetIntegrationDeliverooSyncMenuProcesses = class extends
|
|
13437
|
+
var GetIntegrationDeliverooSyncMenuProcesses = class extends import_sdk_js_core45.AbstractApiRequest {
|
|
13396
13438
|
constructor(integrationDeliverooId, options) {
|
|
13397
13439
|
super(void 0, options);
|
|
13398
13440
|
this.method = "GET";
|
|
@@ -13411,16 +13453,16 @@ var GetIntegrationDeliverooSyncMenuProcesses = class extends import_sdk_js_core4
|
|
|
13411
13453
|
const integrations = external_exports.array(integrationDeliverooSyncMenuProcessSchema).parse(data);
|
|
13412
13454
|
return this.validateOutput({
|
|
13413
13455
|
data: integrations,
|
|
13414
|
-
pagination: (0,
|
|
13456
|
+
pagination: (0, import_sdk_js_global_types21.responseToPagination)(rawResponse)
|
|
13415
13457
|
});
|
|
13416
13458
|
}
|
|
13417
13459
|
};
|
|
13418
13460
|
|
|
13419
13461
|
// src/requests/services/deliveroo/GetIntegrationDeliverooWebhookEventDetails.ts
|
|
13420
|
-
var
|
|
13462
|
+
var import_sdk_js_core46 = require("@deliverart/sdk-js-core");
|
|
13421
13463
|
var getIntegrationDeliverooWebhookEventDetailsInputSchema = external_exports.undefined();
|
|
13422
13464
|
var getIntegrationDeliverooWebhookEventDetailsResponseSchema = integrationDeliverooWebhookEventDetailsSchema;
|
|
13423
|
-
var GetIntegrationDeliverooWebhookEventDetails = class extends
|
|
13465
|
+
var GetIntegrationDeliverooWebhookEventDetails = class extends import_sdk_js_core46.AbstractApiRequest {
|
|
13424
13466
|
constructor(integrationDeliverooId, eventId) {
|
|
13425
13467
|
super(void 0);
|
|
13426
13468
|
this.method = "GET";
|
|
@@ -13439,14 +13481,14 @@ var GetIntegrationDeliverooWebhookEventDetails = class extends import_sdk_js_cor
|
|
|
13439
13481
|
};
|
|
13440
13482
|
|
|
13441
13483
|
// src/requests/services/deliveroo/GetIntegrationDeliverooWebhookEvents.ts
|
|
13442
|
-
var
|
|
13443
|
-
var
|
|
13484
|
+
var import_sdk_js_core47 = require("@deliverart/sdk-js-core");
|
|
13485
|
+
var import_sdk_js_global_types22 = require("@deliverart/sdk-js-global-types");
|
|
13444
13486
|
var getIntegrationDeliverooWebhookEventsQuerySchema = integrationDeliverooWebhookEventsQueryParamsSchema;
|
|
13445
13487
|
var getIntegrationDeliverooWebhookEventsInputSchema = external_exports.undefined();
|
|
13446
|
-
var getIntegrationDeliverooWebhookEventsResponseSchema = (0,
|
|
13488
|
+
var getIntegrationDeliverooWebhookEventsResponseSchema = (0, import_sdk_js_global_types22.createPaginatedSchema)(
|
|
13447
13489
|
integrationDeliverooWebhookEventSchema
|
|
13448
13490
|
);
|
|
13449
|
-
var GetIntegrationDeliverooWebhookEvents = class extends
|
|
13491
|
+
var GetIntegrationDeliverooWebhookEvents = class extends import_sdk_js_core47.AbstractApiRequest {
|
|
13450
13492
|
constructor(integrationDeliverooId, options) {
|
|
13451
13493
|
super(void 0, options);
|
|
13452
13494
|
this.method = "GET";
|
|
@@ -13465,16 +13507,16 @@ var GetIntegrationDeliverooWebhookEvents = class extends import_sdk_js_core46.Ab
|
|
|
13465
13507
|
const integrations = external_exports.array(integrationDeliverooWebhookEventSchema).parse(data);
|
|
13466
13508
|
return this.validateOutput({
|
|
13467
13509
|
data: integrations,
|
|
13468
|
-
pagination: (0,
|
|
13510
|
+
pagination: (0, import_sdk_js_global_types22.responseToPagination)(rawResponse)
|
|
13469
13511
|
});
|
|
13470
13512
|
}
|
|
13471
13513
|
};
|
|
13472
13514
|
|
|
13473
13515
|
// src/requests/services/deliveroo/IntegrationDeliverooSyncMenu.ts
|
|
13474
|
-
var
|
|
13516
|
+
var import_sdk_js_core48 = require("@deliverart/sdk-js-core");
|
|
13475
13517
|
var integrationDeliverooSyncMenuInputSchema = external_exports.undefined();
|
|
13476
13518
|
var integrationDeliverooSyncMenuResponseSchema = external_exports.undefined();
|
|
13477
|
-
var IntegrationDeliverooSyncMenu = class extends
|
|
13519
|
+
var IntegrationDeliverooSyncMenu = class extends import_sdk_js_core48.AbstractApiRequest {
|
|
13478
13520
|
constructor(integrationDeliverooId) {
|
|
13479
13521
|
super(void 0);
|
|
13480
13522
|
this.method = "POST";
|
|
@@ -13492,10 +13534,10 @@ var IntegrationDeliverooSyncMenu = class extends import_sdk_js_core47.AbstractAp
|
|
|
13492
13534
|
};
|
|
13493
13535
|
|
|
13494
13536
|
// src/requests/services/deliveroo/IntegrationDeliverooSyncOpeningHours.ts
|
|
13495
|
-
var
|
|
13537
|
+
var import_sdk_js_core49 = require("@deliverart/sdk-js-core");
|
|
13496
13538
|
var integrationDeliverooSyncOpeningHoursInputSchema = external_exports.undefined();
|
|
13497
13539
|
var integrationDeliverooSyncOpeningHoursResponseSchema = external_exports.undefined();
|
|
13498
|
-
var IntegrationDeliverooSyncOpeningHours = class extends
|
|
13540
|
+
var IntegrationDeliverooSyncOpeningHours = class extends import_sdk_js_core49.AbstractApiRequest {
|
|
13499
13541
|
constructor(integrationDeliverooId) {
|
|
13500
13542
|
super(void 0);
|
|
13501
13543
|
this.method = "POST";
|
|
@@ -13513,10 +13555,10 @@ var IntegrationDeliverooSyncOpeningHours = class extends import_sdk_js_core48.Ab
|
|
|
13513
13555
|
};
|
|
13514
13556
|
|
|
13515
13557
|
// src/requests/services/deliveroo/UpdateIntegrationDeliveroo.ts
|
|
13516
|
-
var
|
|
13558
|
+
var import_sdk_js_core50 = require("@deliverart/sdk-js-core");
|
|
13517
13559
|
var updateIntegrationDeliverooInputSchema = integrationDeliverooEditableFieldsSchema;
|
|
13518
13560
|
var updateIntegrationDeliverooResponseSchema = integrationDeliverooDetailsSchema;
|
|
13519
|
-
var UpdateIntegrationDeliveroo = class extends
|
|
13561
|
+
var UpdateIntegrationDeliveroo = class extends import_sdk_js_core50.AbstractApiRequest {
|
|
13520
13562
|
constructor(integrationDeliverooId, input) {
|
|
13521
13563
|
super(input);
|
|
13522
13564
|
this.method = "PATCH";
|
|
@@ -13534,12 +13576,12 @@ var UpdateIntegrationDeliveroo = class extends import_sdk_js_core49.AbstractApiR
|
|
|
13534
13576
|
};
|
|
13535
13577
|
|
|
13536
13578
|
// src/requests/services/deliveroo/UpdateIntegrationDeliverooSiteStatus.ts
|
|
13537
|
-
var
|
|
13579
|
+
var import_sdk_js_core51 = require("@deliverart/sdk-js-core");
|
|
13538
13580
|
var updateIntegrationDeliverooSiteStatusInputSchema = external_exports.object({
|
|
13539
13581
|
status: integrationDeliverooSiteStatusSchema
|
|
13540
13582
|
});
|
|
13541
13583
|
var updateIntegrationDeliverooSiteStatusResponseSchema = integrationDeliverooDetailsSchema;
|
|
13542
|
-
var UpdateIntegrationDeliverooSiteStatus = class extends
|
|
13584
|
+
var UpdateIntegrationDeliverooSiteStatus = class extends import_sdk_js_core51.AbstractApiRequest {
|
|
13543
13585
|
constructor(integrationDeliverooId, input) {
|
|
13544
13586
|
super(input);
|
|
13545
13587
|
this.method = "POST";
|
|
@@ -13557,13 +13599,13 @@ var UpdateIntegrationDeliverooSiteStatus = class extends import_sdk_js_core50.Ab
|
|
|
13557
13599
|
};
|
|
13558
13600
|
|
|
13559
13601
|
// src/requests/services/glovo/CreateIntegrationGlovo.ts
|
|
13560
|
-
var
|
|
13602
|
+
var import_sdk_js_core52 = require("@deliverart/sdk-js-core");
|
|
13561
13603
|
var import_sdk_js_point_of_sale7 = require("@deliverart/sdk-js-point-of-sale");
|
|
13562
13604
|
var createIntegrationGlovoInputSchema = integrationGlovoEditableFieldsSchema.extend({
|
|
13563
13605
|
pointOfSale: import_sdk_js_point_of_sale7.pointOfSaleIriSchema
|
|
13564
13606
|
});
|
|
13565
13607
|
var createIntegrationGlovoResponseSchema = integrationGlovoDetailsSchema;
|
|
13566
|
-
var CreateIntegrationGlovo = class extends
|
|
13608
|
+
var CreateIntegrationGlovo = class extends import_sdk_js_core52.AbstractApiRequest {
|
|
13567
13609
|
constructor(input) {
|
|
13568
13610
|
super(input);
|
|
13569
13611
|
this.method = "POST";
|
|
@@ -13580,10 +13622,10 @@ var CreateIntegrationGlovo = class extends import_sdk_js_core51.AbstractApiReque
|
|
|
13580
13622
|
};
|
|
13581
13623
|
|
|
13582
13624
|
// src/requests/services/glovo/DeleteIntegrationGlovo.ts
|
|
13583
|
-
var
|
|
13625
|
+
var import_sdk_js_core53 = require("@deliverart/sdk-js-core");
|
|
13584
13626
|
var deleteIntegrationGlovoInputSchema = external_exports.undefined();
|
|
13585
13627
|
var deleteIntegrationGlovoResponseSchema = external_exports.undefined();
|
|
13586
|
-
var DeleteIntegrationGlovo = class extends
|
|
13628
|
+
var DeleteIntegrationGlovo = class extends import_sdk_js_core53.AbstractApiRequest {
|
|
13587
13629
|
constructor(integrationGlovoId) {
|
|
13588
13630
|
super(void 0);
|
|
13589
13631
|
this.method = "DELETE";
|
|
@@ -13601,10 +13643,10 @@ var DeleteIntegrationGlovo = class extends import_sdk_js_core52.AbstractApiReque
|
|
|
13601
13643
|
};
|
|
13602
13644
|
|
|
13603
13645
|
// src/requests/services/glovo/GetIntegrationGlovoClientLogRequestDetails.ts
|
|
13604
|
-
var
|
|
13646
|
+
var import_sdk_js_core54 = require("@deliverart/sdk-js-core");
|
|
13605
13647
|
var getIntegrationGlovoClientLogRequestDetailsInputSchema = external_exports.undefined();
|
|
13606
13648
|
var getIntegrationGlovoClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
13607
|
-
var GetIntegrationGlovoClientLogRequestDetails = class extends
|
|
13649
|
+
var GetIntegrationGlovoClientLogRequestDetails = class extends import_sdk_js_core54.AbstractApiRequest {
|
|
13608
13650
|
constructor(integrationGlovoId, requestId) {
|
|
13609
13651
|
super(void 0);
|
|
13610
13652
|
this.method = "GET";
|
|
@@ -13623,14 +13665,14 @@ var GetIntegrationGlovoClientLogRequestDetails = class extends import_sdk_js_cor
|
|
|
13623
13665
|
};
|
|
13624
13666
|
|
|
13625
13667
|
// src/requests/services/glovo/GetIntegrationGlovoClientLogRequests.ts
|
|
13626
|
-
var
|
|
13627
|
-
var
|
|
13668
|
+
var import_sdk_js_core55 = require("@deliverart/sdk-js-core");
|
|
13669
|
+
var import_sdk_js_global_types23 = require("@deliverart/sdk-js-global-types");
|
|
13628
13670
|
var getIntegrationGlovoClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
13629
13671
|
var getIntegrationGlovoClientLogRequestsInputSchema = external_exports.undefined();
|
|
13630
|
-
var getIntegrationGlovoClientLogRequestsResponseSchema = (0,
|
|
13672
|
+
var getIntegrationGlovoClientLogRequestsResponseSchema = (0, import_sdk_js_global_types23.createPaginatedSchema)(
|
|
13631
13673
|
integrationClientLogRequestSchema
|
|
13632
13674
|
);
|
|
13633
|
-
var GetIntegrationGlovoClientLogRequests = class extends
|
|
13675
|
+
var GetIntegrationGlovoClientLogRequests = class extends import_sdk_js_core55.AbstractApiRequest {
|
|
13634
13676
|
constructor(integrationGlovoId, options) {
|
|
13635
13677
|
super(void 0, options);
|
|
13636
13678
|
this.method = "GET";
|
|
@@ -13649,16 +13691,16 @@ var GetIntegrationGlovoClientLogRequests = class extends import_sdk_js_core54.Ab
|
|
|
13649
13691
|
const integrations = external_exports.array(integrationClientLogRequestSchema).parse(data);
|
|
13650
13692
|
return this.validateOutput({
|
|
13651
13693
|
data: integrations,
|
|
13652
|
-
pagination: (0,
|
|
13694
|
+
pagination: (0, import_sdk_js_global_types23.responseToPagination)(rawResponse)
|
|
13653
13695
|
});
|
|
13654
13696
|
}
|
|
13655
13697
|
};
|
|
13656
13698
|
|
|
13657
13699
|
// src/requests/services/glovo/GetIntegrationGlovoDetails.ts
|
|
13658
|
-
var
|
|
13700
|
+
var import_sdk_js_core56 = require("@deliverart/sdk-js-core");
|
|
13659
13701
|
var getIntegrationGlovoDetailsInputSchema = external_exports.undefined();
|
|
13660
13702
|
var getIntegrationGlovoDetailsResponseSchema = integrationGlovoDetailsSchema;
|
|
13661
|
-
var GetIntegrationGlovoDetails = class extends
|
|
13703
|
+
var GetIntegrationGlovoDetails = class extends import_sdk_js_core56.AbstractApiRequest {
|
|
13662
13704
|
constructor(integrationGlovoId) {
|
|
13663
13705
|
super(void 0);
|
|
13664
13706
|
this.method = "GET";
|
|
@@ -13676,14 +13718,14 @@ var GetIntegrationGlovoDetails = class extends import_sdk_js_core55.AbstractApiR
|
|
|
13676
13718
|
};
|
|
13677
13719
|
|
|
13678
13720
|
// src/requests/services/glovo/GetIntegrationGlovoList.ts
|
|
13679
|
-
var
|
|
13680
|
-
var
|
|
13721
|
+
var import_sdk_js_core57 = require("@deliverart/sdk-js-core");
|
|
13722
|
+
var import_sdk_js_global_types24 = require("@deliverart/sdk-js-global-types");
|
|
13681
13723
|
var getIntegrationGlovoListQuerySchema = integrationsGlovoQuerySchema.omit({
|
|
13682
13724
|
service: true
|
|
13683
13725
|
});
|
|
13684
13726
|
var getIntegrationGlovoListInputSchema = external_exports.undefined();
|
|
13685
|
-
var getIntegrationGlovoListResponseSchema = (0,
|
|
13686
|
-
var GetIntegrationGlovoList = class extends
|
|
13727
|
+
var getIntegrationGlovoListResponseSchema = (0, import_sdk_js_global_types24.createPaginatedSchema)(integrationGlovoSchema);
|
|
13728
|
+
var GetIntegrationGlovoList = class extends import_sdk_js_core57.AbstractApiRequest {
|
|
13687
13729
|
constructor(options) {
|
|
13688
13730
|
super(void 0, options);
|
|
13689
13731
|
this.method = "GET";
|
|
@@ -13701,16 +13743,16 @@ var GetIntegrationGlovoList = class extends import_sdk_js_core56.AbstractApiRequ
|
|
|
13701
13743
|
const integrations = external_exports.array(integrationGlovoSchema).parse(data);
|
|
13702
13744
|
return this.validateOutput({
|
|
13703
13745
|
data: integrations,
|
|
13704
|
-
pagination: (0,
|
|
13746
|
+
pagination: (0, import_sdk_js_global_types24.responseToPagination)(rawResponse)
|
|
13705
13747
|
});
|
|
13706
13748
|
}
|
|
13707
13749
|
};
|
|
13708
13750
|
|
|
13709
13751
|
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdateDetails.ts
|
|
13710
|
-
var
|
|
13752
|
+
var import_sdk_js_core58 = require("@deliverart/sdk-js-core");
|
|
13711
13753
|
var getIntegrationGlovoMenuUpdateDetailsInputSchema = external_exports.undefined();
|
|
13712
13754
|
var getIntegrationGlovoMenuUpdateDetailsResponseSchema = integrationGlovoMenuUpdateDetailsSchema;
|
|
13713
|
-
var GetIntegrationGlovoMenuUpdateDetails = class extends
|
|
13755
|
+
var GetIntegrationGlovoMenuUpdateDetails = class extends import_sdk_js_core58.AbstractApiRequest {
|
|
13714
13756
|
constructor(integrationGlovoId, processId) {
|
|
13715
13757
|
super(void 0);
|
|
13716
13758
|
this.method = "GET";
|
|
@@ -13729,16 +13771,16 @@ var GetIntegrationGlovoMenuUpdateDetails = class extends import_sdk_js_core57.Ab
|
|
|
13729
13771
|
};
|
|
13730
13772
|
|
|
13731
13773
|
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdates.ts
|
|
13732
|
-
var
|
|
13733
|
-
var
|
|
13774
|
+
var import_sdk_js_core59 = require("@deliverart/sdk-js-core");
|
|
13775
|
+
var import_sdk_js_global_types25 = require("@deliverart/sdk-js-global-types");
|
|
13734
13776
|
var getIntegrationGlovoMenuUpdatesQuerySchema = external_exports.object({
|
|
13735
13777
|
page: external_exports.number().optional()
|
|
13736
13778
|
});
|
|
13737
13779
|
var getIntegrationGlovoMenuUpdatesInputSchema = external_exports.undefined();
|
|
13738
|
-
var getIntegrationGlovoMenuUpdatesResponseSchema = (0,
|
|
13780
|
+
var getIntegrationGlovoMenuUpdatesResponseSchema = (0, import_sdk_js_global_types25.createPaginatedSchema)(
|
|
13739
13781
|
integrationGlovoMenuUpdateSchema
|
|
13740
13782
|
);
|
|
13741
|
-
var GetIntegrationGlovoMenuUpdates = class extends
|
|
13783
|
+
var GetIntegrationGlovoMenuUpdates = class extends import_sdk_js_core59.AbstractApiRequest {
|
|
13742
13784
|
constructor(integrationId, options) {
|
|
13743
13785
|
super(void 0, options);
|
|
13744
13786
|
this.method = "GET";
|
|
@@ -13757,16 +13799,16 @@ var GetIntegrationGlovoMenuUpdates = class extends import_sdk_js_core58.Abstract
|
|
|
13757
13799
|
const integrations = external_exports.array(integrationGlovoMenuUpdateSchema).parse(data);
|
|
13758
13800
|
return this.validateOutput({
|
|
13759
13801
|
data: integrations,
|
|
13760
|
-
pagination: (0,
|
|
13802
|
+
pagination: (0, import_sdk_js_global_types25.responseToPagination)(rawResponse)
|
|
13761
13803
|
});
|
|
13762
13804
|
}
|
|
13763
13805
|
};
|
|
13764
13806
|
|
|
13765
13807
|
// src/requests/services/glovo/GetIntegrationGlovoMenuVersionDetails.ts
|
|
13766
|
-
var
|
|
13808
|
+
var import_sdk_js_core60 = require("@deliverart/sdk-js-core");
|
|
13767
13809
|
var getIntegrationGlovoMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
13768
13810
|
var getIntegrationGlovoMenuVersionDetailsResponseSchema = menuVersionDetailsSchema;
|
|
13769
|
-
var GetIntegrationGlovoMenuVersionDetails = class extends
|
|
13811
|
+
var GetIntegrationGlovoMenuVersionDetails = class extends import_sdk_js_core60.AbstractApiRequest {
|
|
13770
13812
|
constructor(integrationGlovoId, versionId) {
|
|
13771
13813
|
super(void 0);
|
|
13772
13814
|
this.method = "GET";
|
|
@@ -13785,14 +13827,14 @@ var GetIntegrationGlovoMenuVersionDetails = class extends import_sdk_js_core59.A
|
|
|
13785
13827
|
};
|
|
13786
13828
|
|
|
13787
13829
|
// src/requests/services/glovo/GetIntegrationGlovoMenuVersions.ts
|
|
13788
|
-
var
|
|
13789
|
-
var
|
|
13830
|
+
var import_sdk_js_core61 = require("@deliverart/sdk-js-core");
|
|
13831
|
+
var import_sdk_js_global_types26 = require("@deliverart/sdk-js-global-types");
|
|
13790
13832
|
var getIntegrationGlovoMenuVersionsQuerySchema = external_exports.object({
|
|
13791
13833
|
page: external_exports.number().optional()
|
|
13792
13834
|
});
|
|
13793
13835
|
var getIntegrationGlovoMenuVersionsInputSchema = external_exports.undefined();
|
|
13794
|
-
var getIntegrationGlovoMenuVersionsResponseSchema = (0,
|
|
13795
|
-
var GetIntegrationGlovoMenuVersions = class extends
|
|
13836
|
+
var getIntegrationGlovoMenuVersionsResponseSchema = (0, import_sdk_js_global_types26.createPaginatedSchema)(menuVersionSchema);
|
|
13837
|
+
var GetIntegrationGlovoMenuVersions = class extends import_sdk_js_core61.AbstractApiRequest {
|
|
13796
13838
|
constructor(integrationGlovoId, options) {
|
|
13797
13839
|
super(void 0, options);
|
|
13798
13840
|
this.method = "GET";
|
|
@@ -13811,16 +13853,16 @@ var GetIntegrationGlovoMenuVersions = class extends import_sdk_js_core60.Abstrac
|
|
|
13811
13853
|
const integrations = external_exports.array(menuVersionSchema).parse(data);
|
|
13812
13854
|
return this.validateOutput({
|
|
13813
13855
|
data: integrations,
|
|
13814
|
-
pagination: (0,
|
|
13856
|
+
pagination: (0, import_sdk_js_global_types26.responseToPagination)(rawResponse)
|
|
13815
13857
|
});
|
|
13816
13858
|
}
|
|
13817
13859
|
};
|
|
13818
13860
|
|
|
13819
13861
|
// src/requests/services/glovo/GetIntegrationGlovoWebhookEventDetails.ts
|
|
13820
|
-
var
|
|
13862
|
+
var import_sdk_js_core62 = require("@deliverart/sdk-js-core");
|
|
13821
13863
|
var getIntegrationGlovoWebhookEventDetailsInputSchema = external_exports.undefined();
|
|
13822
13864
|
var getIntegrationGlovoWebhookEventDetailsResponseSchema = integrationGlovoWebhookEventDetailsSchema;
|
|
13823
|
-
var GetIntegrationGlovoWebhookEventDetails = class extends
|
|
13865
|
+
var GetIntegrationGlovoWebhookEventDetails = class extends import_sdk_js_core62.AbstractApiRequest {
|
|
13824
13866
|
constructor(integrationGlovoId, eventId) {
|
|
13825
13867
|
super(void 0);
|
|
13826
13868
|
this.method = "GET";
|
|
@@ -13839,14 +13881,14 @@ var GetIntegrationGlovoWebhookEventDetails = class extends import_sdk_js_core61.
|
|
|
13839
13881
|
};
|
|
13840
13882
|
|
|
13841
13883
|
// src/requests/services/glovo/GetIntegrationGlovoWebhookEvents.ts
|
|
13842
|
-
var
|
|
13843
|
-
var
|
|
13884
|
+
var import_sdk_js_core63 = require("@deliverart/sdk-js-core");
|
|
13885
|
+
var import_sdk_js_global_types27 = require("@deliverart/sdk-js-global-types");
|
|
13844
13886
|
var getIntegrationGlovoWebhookEventsQuerySchema = integrationGlovoWebhookEventsQueryParamsSchema;
|
|
13845
13887
|
var getIntegrationGlovoWebhookEventsInputSchema = external_exports.undefined();
|
|
13846
|
-
var getIntegrationGlovoWebhookEventsResponseSchema = (0,
|
|
13888
|
+
var getIntegrationGlovoWebhookEventsResponseSchema = (0, import_sdk_js_global_types27.createPaginatedSchema)(
|
|
13847
13889
|
integrationGlovoWebhookEventSchema
|
|
13848
13890
|
);
|
|
13849
|
-
var GetIntegrationGlovoWebhookEvents = class extends
|
|
13891
|
+
var GetIntegrationGlovoWebhookEvents = class extends import_sdk_js_core63.AbstractApiRequest {
|
|
13850
13892
|
constructor(integrationGlovoId, options) {
|
|
13851
13893
|
super(void 0, options);
|
|
13852
13894
|
this.method = "GET";
|
|
@@ -13865,16 +13907,16 @@ var GetIntegrationGlovoWebhookEvents = class extends import_sdk_js_core62.Abstra
|
|
|
13865
13907
|
const integrations = external_exports.array(integrationGlovoWebhookEventSchema).parse(data);
|
|
13866
13908
|
return this.validateOutput({
|
|
13867
13909
|
data: integrations,
|
|
13868
|
-
pagination: (0,
|
|
13910
|
+
pagination: (0, import_sdk_js_global_types27.responseToPagination)(rawResponse)
|
|
13869
13911
|
});
|
|
13870
13912
|
}
|
|
13871
13913
|
};
|
|
13872
13914
|
|
|
13873
13915
|
// src/requests/services/glovo/IntegrationGlovoSyncMenu.ts
|
|
13874
|
-
var
|
|
13916
|
+
var import_sdk_js_core64 = require("@deliverart/sdk-js-core");
|
|
13875
13917
|
var integrationGlovoSyncMenuInputSchema = external_exports.undefined();
|
|
13876
13918
|
var integrationGlovoSyncMenuResponseSchema = external_exports.undefined();
|
|
13877
|
-
var IntegrationGlovoSyncMenu = class extends
|
|
13919
|
+
var IntegrationGlovoSyncMenu = class extends import_sdk_js_core64.AbstractApiRequest {
|
|
13878
13920
|
constructor(integrationGlovoId) {
|
|
13879
13921
|
super(void 0);
|
|
13880
13922
|
this.method = "POST";
|
|
@@ -13892,10 +13934,10 @@ var IntegrationGlovoSyncMenu = class extends import_sdk_js_core63.AbstractApiReq
|
|
|
13892
13934
|
};
|
|
13893
13935
|
|
|
13894
13936
|
// src/requests/services/glovo/UpdateIntegrationGlovo.ts
|
|
13895
|
-
var
|
|
13937
|
+
var import_sdk_js_core65 = require("@deliverart/sdk-js-core");
|
|
13896
13938
|
var updateIntegrationGlovoInputSchema = integrationGlovoEditableFieldsSchema;
|
|
13897
13939
|
var updateIntegrationGlovoResponseSchema = integrationGlovoDetailsSchema;
|
|
13898
|
-
var UpdateIntegrationGlovo = class extends
|
|
13940
|
+
var UpdateIntegrationGlovo = class extends import_sdk_js_core65.AbstractApiRequest {
|
|
13899
13941
|
constructor(integrationGlovoId, input) {
|
|
13900
13942
|
super(input);
|
|
13901
13943
|
this.method = "PATCH";
|
|
@@ -13913,12 +13955,12 @@ var UpdateIntegrationGlovo = class extends import_sdk_js_core64.AbstractApiReque
|
|
|
13913
13955
|
};
|
|
13914
13956
|
|
|
13915
13957
|
// src/requests/services/glovo/UpdateIntegrationGlovoStoreStatus.ts
|
|
13916
|
-
var
|
|
13958
|
+
var import_sdk_js_core66 = require("@deliverart/sdk-js-core");
|
|
13917
13959
|
var updateIntegrationGlovoStoreStatusInputSchema = external_exports.object({
|
|
13918
13960
|
status: integrationGlovoStoreStatusSchema
|
|
13919
13961
|
});
|
|
13920
13962
|
var updateIntegrationGlovoStoreStatusResponseSchema = integrationGlovoDetailsSchema;
|
|
13921
|
-
var UpdateIntegrationGlovoStoreStatus = class extends
|
|
13963
|
+
var UpdateIntegrationGlovoStoreStatus = class extends import_sdk_js_core66.AbstractApiRequest {
|
|
13922
13964
|
constructor(integrationGlovoId, input) {
|
|
13923
13965
|
super(input);
|
|
13924
13966
|
this.method = "POST";
|
|
@@ -13936,13 +13978,13 @@ var UpdateIntegrationGlovoStoreStatus = class extends import_sdk_js_core65.Abstr
|
|
|
13936
13978
|
};
|
|
13937
13979
|
|
|
13938
13980
|
// src/requests/services/justeat/CreateIntegrationJustEat.ts
|
|
13939
|
-
var
|
|
13981
|
+
var import_sdk_js_core67 = require("@deliverart/sdk-js-core");
|
|
13940
13982
|
var import_sdk_js_point_of_sale8 = require("@deliverart/sdk-js-point-of-sale");
|
|
13941
13983
|
var createIntegrationJustEatInputSchema = integrationJustEatEditableFieldsSchema.extend({
|
|
13942
13984
|
pointOfSale: import_sdk_js_point_of_sale8.pointOfSaleIriSchema
|
|
13943
13985
|
});
|
|
13944
13986
|
var createIntegrationJustEatResponseSchema = integrationJustEatDetailsSchema;
|
|
13945
|
-
var CreateIntegrationJustEat = class extends
|
|
13987
|
+
var CreateIntegrationJustEat = class extends import_sdk_js_core67.AbstractApiRequest {
|
|
13946
13988
|
constructor(input) {
|
|
13947
13989
|
super(input);
|
|
13948
13990
|
this.method = "POST";
|
|
@@ -13959,10 +14001,10 @@ var CreateIntegrationJustEat = class extends import_sdk_js_core66.AbstractApiReq
|
|
|
13959
14001
|
};
|
|
13960
14002
|
|
|
13961
14003
|
// src/requests/services/justeat/DeleteIntegrationJustEat.ts
|
|
13962
|
-
var
|
|
14004
|
+
var import_sdk_js_core68 = require("@deliverart/sdk-js-core");
|
|
13963
14005
|
var deleteIntegrationJustEatInputSchema = external_exports.undefined();
|
|
13964
14006
|
var deleteIntegrationJustEatResponseSchema = external_exports.undefined();
|
|
13965
|
-
var DeleteIntegrationJustEat = class extends
|
|
14007
|
+
var DeleteIntegrationJustEat = class extends import_sdk_js_core68.AbstractApiRequest {
|
|
13966
14008
|
constructor(integrationJustEatId) {
|
|
13967
14009
|
super(void 0);
|
|
13968
14010
|
this.method = "DELETE";
|
|
@@ -13980,10 +14022,10 @@ var DeleteIntegrationJustEat = class extends import_sdk_js_core67.AbstractApiReq
|
|
|
13980
14022
|
};
|
|
13981
14023
|
|
|
13982
14024
|
// src/requests/services/justeat/GetIntegrationJustEatClientLogRequestDetails.ts
|
|
13983
|
-
var
|
|
14025
|
+
var import_sdk_js_core69 = require("@deliverart/sdk-js-core");
|
|
13984
14026
|
var getIntegrationJustEatClientLogRequestDetailsInputSchema = external_exports.undefined();
|
|
13985
14027
|
var getIntegrationJustEatClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
13986
|
-
var GetIntegrationJustEatClientLogRequestDetails = class extends
|
|
14028
|
+
var GetIntegrationJustEatClientLogRequestDetails = class extends import_sdk_js_core69.AbstractApiRequest {
|
|
13987
14029
|
constructor(integrationJustEatId, requestId) {
|
|
13988
14030
|
super(void 0);
|
|
13989
14031
|
this.method = "GET";
|
|
@@ -14002,14 +14044,14 @@ var GetIntegrationJustEatClientLogRequestDetails = class extends import_sdk_js_c
|
|
|
14002
14044
|
};
|
|
14003
14045
|
|
|
14004
14046
|
// src/requests/services/justeat/GetIntegrationJustEatClientLogRequests.ts
|
|
14005
|
-
var
|
|
14006
|
-
var
|
|
14047
|
+
var import_sdk_js_core70 = require("@deliverart/sdk-js-core");
|
|
14048
|
+
var import_sdk_js_global_types28 = require("@deliverart/sdk-js-global-types");
|
|
14007
14049
|
var getIntegrationJustEatClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
14008
14050
|
var getIntegrationJustEatClientLogRequestsInputSchema = external_exports.undefined();
|
|
14009
|
-
var getIntegrationJustEatClientLogRequestsResponseSchema = (0,
|
|
14051
|
+
var getIntegrationJustEatClientLogRequestsResponseSchema = (0, import_sdk_js_global_types28.createPaginatedSchema)(
|
|
14010
14052
|
integrationClientLogRequestSchema
|
|
14011
14053
|
);
|
|
14012
|
-
var GetIntegrationJustEatClientLogRequests = class extends
|
|
14054
|
+
var GetIntegrationJustEatClientLogRequests = class extends import_sdk_js_core70.AbstractApiRequest {
|
|
14013
14055
|
constructor(integrationJustEatId, options) {
|
|
14014
14056
|
super(void 0, options);
|
|
14015
14057
|
this.method = "GET";
|
|
@@ -14028,16 +14070,16 @@ var GetIntegrationJustEatClientLogRequests = class extends import_sdk_js_core69.
|
|
|
14028
14070
|
const integrations = external_exports.array(integrationClientLogRequestSchema).parse(data);
|
|
14029
14071
|
return this.validateOutput({
|
|
14030
14072
|
data: integrations,
|
|
14031
|
-
pagination: (0,
|
|
14073
|
+
pagination: (0, import_sdk_js_global_types28.responseToPagination)(rawResponse)
|
|
14032
14074
|
});
|
|
14033
14075
|
}
|
|
14034
14076
|
};
|
|
14035
14077
|
|
|
14036
14078
|
// src/requests/services/justeat/GetIntegrationJustEatDetails.ts
|
|
14037
|
-
var
|
|
14079
|
+
var import_sdk_js_core71 = require("@deliverart/sdk-js-core");
|
|
14038
14080
|
var getIntegrationJustEatDetailsInputSchema = external_exports.undefined();
|
|
14039
14081
|
var getIntegrationJustEatDetailsResponseSchema = integrationJustEatDetailsSchema;
|
|
14040
|
-
var GetIntegrationJustEatDetails = class extends
|
|
14082
|
+
var GetIntegrationJustEatDetails = class extends import_sdk_js_core71.AbstractApiRequest {
|
|
14041
14083
|
constructor(integrationJustEatId) {
|
|
14042
14084
|
super(void 0);
|
|
14043
14085
|
this.method = "GET";
|
|
@@ -14055,14 +14097,14 @@ var GetIntegrationJustEatDetails = class extends import_sdk_js_core70.AbstractAp
|
|
|
14055
14097
|
};
|
|
14056
14098
|
|
|
14057
14099
|
// src/requests/services/justeat/GetIntegrationJustEatList.ts
|
|
14058
|
-
var
|
|
14059
|
-
var
|
|
14100
|
+
var import_sdk_js_core72 = require("@deliverart/sdk-js-core");
|
|
14101
|
+
var import_sdk_js_global_types29 = require("@deliverart/sdk-js-global-types");
|
|
14060
14102
|
var getIntegrationJustEatListQuerySchema = integrationsJustEatQuerySchema.omit({
|
|
14061
14103
|
service: true
|
|
14062
14104
|
});
|
|
14063
14105
|
var getIntegrationJustEatListInputSchema = external_exports.undefined();
|
|
14064
|
-
var getIntegrationJustEatListResponseSchema = (0,
|
|
14065
|
-
var GetIntegrationJustEatList = class extends
|
|
14106
|
+
var getIntegrationJustEatListResponseSchema = (0, import_sdk_js_global_types29.createPaginatedSchema)(integrationJustEatSchema);
|
|
14107
|
+
var GetIntegrationJustEatList = class extends import_sdk_js_core72.AbstractApiRequest {
|
|
14066
14108
|
constructor(options) {
|
|
14067
14109
|
super(void 0, options);
|
|
14068
14110
|
this.method = "GET";
|
|
@@ -14080,16 +14122,16 @@ var GetIntegrationJustEatList = class extends import_sdk_js_core71.AbstractApiRe
|
|
|
14080
14122
|
const integrations = external_exports.array(integrationJustEatSchema).parse(data);
|
|
14081
14123
|
return this.validateOutput({
|
|
14082
14124
|
data: integrations,
|
|
14083
|
-
pagination: (0,
|
|
14125
|
+
pagination: (0, import_sdk_js_global_types29.responseToPagination)(rawResponse)
|
|
14084
14126
|
});
|
|
14085
14127
|
}
|
|
14086
14128
|
};
|
|
14087
14129
|
|
|
14088
14130
|
// src/requests/services/justeat/GetIntegrationJustEatMenuVersionDetails.ts
|
|
14089
|
-
var
|
|
14131
|
+
var import_sdk_js_core73 = require("@deliverart/sdk-js-core");
|
|
14090
14132
|
var getIntegrationJustEatMenuVersionDetailsInputSchema = external_exports.undefined();
|
|
14091
14133
|
var getIntegrationJustEatMenuVersionDetailsResponseSchema = menuVersionDetailsSchema;
|
|
14092
|
-
var GetIntegrationJustEatMenuVersionDetails = class extends
|
|
14134
|
+
var GetIntegrationJustEatMenuVersionDetails = class extends import_sdk_js_core73.AbstractApiRequest {
|
|
14093
14135
|
constructor(integrationJustEatId, versionId) {
|
|
14094
14136
|
super(void 0);
|
|
14095
14137
|
this.method = "GET";
|
|
@@ -14108,14 +14150,14 @@ var GetIntegrationJustEatMenuVersionDetails = class extends import_sdk_js_core72
|
|
|
14108
14150
|
};
|
|
14109
14151
|
|
|
14110
14152
|
// src/requests/services/justeat/GetIntegrationJustEatMenuVersions.ts
|
|
14111
|
-
var
|
|
14112
|
-
var
|
|
14153
|
+
var import_sdk_js_core74 = require("@deliverart/sdk-js-core");
|
|
14154
|
+
var import_sdk_js_global_types30 = require("@deliverart/sdk-js-global-types");
|
|
14113
14155
|
var getIntegrationJustEatMenuVersionsQuerySchema = external_exports.object({
|
|
14114
14156
|
page: external_exports.number().optional()
|
|
14115
14157
|
});
|
|
14116
14158
|
var getIntegrationJustEatMenuVersionsInputSchema = external_exports.undefined();
|
|
14117
|
-
var getIntegrationJustEatMenuVersionsResponseSchema = (0,
|
|
14118
|
-
var GetIntegrationJustEatMenuVersions = class extends
|
|
14159
|
+
var getIntegrationJustEatMenuVersionsResponseSchema = (0, import_sdk_js_global_types30.createPaginatedSchema)(menuVersionSchema);
|
|
14160
|
+
var GetIntegrationJustEatMenuVersions = class extends import_sdk_js_core74.AbstractApiRequest {
|
|
14119
14161
|
constructor(integrationJustEatId, options) {
|
|
14120
14162
|
super(void 0, options);
|
|
14121
14163
|
this.method = "GET";
|
|
@@ -14134,16 +14176,16 @@ var GetIntegrationJustEatMenuVersions = class extends import_sdk_js_core73.Abstr
|
|
|
14134
14176
|
const integrations = external_exports.array(menuVersionSchema).parse(data);
|
|
14135
14177
|
return this.validateOutput({
|
|
14136
14178
|
data: integrations,
|
|
14137
|
-
pagination: (0,
|
|
14179
|
+
pagination: (0, import_sdk_js_global_types30.responseToPagination)(rawResponse)
|
|
14138
14180
|
});
|
|
14139
14181
|
}
|
|
14140
14182
|
};
|
|
14141
14183
|
|
|
14142
14184
|
// src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcessDetails.ts
|
|
14143
|
-
var
|
|
14185
|
+
var import_sdk_js_core75 = require("@deliverart/sdk-js-core");
|
|
14144
14186
|
var getIntegrationJustEatSyncMenuProcessDetailsInputSchema = external_exports.undefined();
|
|
14145
14187
|
var getIntegrationJustEatSyncMenuProcessDetailsResponseSchema = integrationJustEatSyncMenuProcessDetailsSchema;
|
|
14146
|
-
var GetIntegrationJustEatSyncMenuProcessDetails = class extends
|
|
14188
|
+
var GetIntegrationJustEatSyncMenuProcessDetails = class extends import_sdk_js_core75.AbstractApiRequest {
|
|
14147
14189
|
constructor(integrationJustEatId, processId) {
|
|
14148
14190
|
super(void 0);
|
|
14149
14191
|
this.method = "GET";
|
|
@@ -14162,16 +14204,16 @@ var GetIntegrationJustEatSyncMenuProcessDetails = class extends import_sdk_js_co
|
|
|
14162
14204
|
};
|
|
14163
14205
|
|
|
14164
14206
|
// src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcesses.ts
|
|
14165
|
-
var
|
|
14166
|
-
var
|
|
14207
|
+
var import_sdk_js_core76 = require("@deliverart/sdk-js-core");
|
|
14208
|
+
var import_sdk_js_global_types31 = require("@deliverart/sdk-js-global-types");
|
|
14167
14209
|
var getIntegrationJustEatSyncMenuProcessesQuerySchema = external_exports.object({
|
|
14168
14210
|
page: external_exports.number().optional()
|
|
14169
14211
|
});
|
|
14170
14212
|
var getIntegrationJustEatSyncMenuProcessesInputSchema = external_exports.undefined();
|
|
14171
|
-
var getIntegrationJustEatSyncMenuProcessesResponseSchema = (0,
|
|
14213
|
+
var getIntegrationJustEatSyncMenuProcessesResponseSchema = (0, import_sdk_js_global_types31.createPaginatedSchema)(
|
|
14172
14214
|
integrationJustEatSyncMenuProcessSchema
|
|
14173
14215
|
);
|
|
14174
|
-
var GetIntegrationJustEatSyncMenuProcesses = class extends
|
|
14216
|
+
var GetIntegrationJustEatSyncMenuProcesses = class extends import_sdk_js_core76.AbstractApiRequest {
|
|
14175
14217
|
constructor(integrationJustEatId, options) {
|
|
14176
14218
|
super(void 0, options);
|
|
14177
14219
|
this.method = "GET";
|
|
@@ -14190,16 +14232,16 @@ var GetIntegrationJustEatSyncMenuProcesses = class extends import_sdk_js_core75.
|
|
|
14190
14232
|
const integrations = external_exports.array(integrationJustEatSyncMenuProcessSchema).parse(data);
|
|
14191
14233
|
return this.validateOutput({
|
|
14192
14234
|
data: integrations,
|
|
14193
|
-
pagination: (0,
|
|
14235
|
+
pagination: (0, import_sdk_js_global_types31.responseToPagination)(rawResponse)
|
|
14194
14236
|
});
|
|
14195
14237
|
}
|
|
14196
14238
|
};
|
|
14197
14239
|
|
|
14198
14240
|
// src/requests/services/justeat/IntegrationJustEatSyncMenu.ts
|
|
14199
|
-
var
|
|
14241
|
+
var import_sdk_js_core77 = require("@deliverart/sdk-js-core");
|
|
14200
14242
|
var integrationJustEatSyncMenuInputSchema = external_exports.undefined();
|
|
14201
14243
|
var integrationJustEatSyncMenuResponseSchema = external_exports.undefined();
|
|
14202
|
-
var IntegrationJustEatSyncMenu = class extends
|
|
14244
|
+
var IntegrationJustEatSyncMenu = class extends import_sdk_js_core77.AbstractApiRequest {
|
|
14203
14245
|
constructor(integrationJustEatId) {
|
|
14204
14246
|
super(void 0);
|
|
14205
14247
|
this.method = "POST";
|
|
@@ -14217,10 +14259,10 @@ var IntegrationJustEatSyncMenu = class extends import_sdk_js_core76.AbstractApiR
|
|
|
14217
14259
|
};
|
|
14218
14260
|
|
|
14219
14261
|
// src/requests/services/justeat/IntegrationJustEatSyncOpeningTimes.ts
|
|
14220
|
-
var
|
|
14262
|
+
var import_sdk_js_core78 = require("@deliverart/sdk-js-core");
|
|
14221
14263
|
var integrationJustEatSyncOpeningHoursInputSchema = external_exports.undefined();
|
|
14222
14264
|
var integrationJustEatSyncOpeningHoursResponseSchema = external_exports.undefined();
|
|
14223
|
-
var IntegrationJustEatSyncOpeningTimes = class extends
|
|
14265
|
+
var IntegrationJustEatSyncOpeningTimes = class extends import_sdk_js_core78.AbstractApiRequest {
|
|
14224
14266
|
constructor(integrationJustEatId) {
|
|
14225
14267
|
super(void 0);
|
|
14226
14268
|
this.method = "POST";
|
|
@@ -14238,10 +14280,10 @@ var IntegrationJustEatSyncOpeningTimes = class extends import_sdk_js_core77.Abst
|
|
|
14238
14280
|
};
|
|
14239
14281
|
|
|
14240
14282
|
// src/requests/services/justeat/UpdateIntegrationJustEat.ts
|
|
14241
|
-
var
|
|
14283
|
+
var import_sdk_js_core79 = require("@deliverart/sdk-js-core");
|
|
14242
14284
|
var updateIntegrationJustEatInputSchema = integrationJustEatEditableFieldsSchema;
|
|
14243
14285
|
var updateIntegrationJustEatResponseSchema = integrationJustEatDetailsSchema;
|
|
14244
|
-
var UpdateIntegrationJustEat = class extends
|
|
14286
|
+
var UpdateIntegrationJustEat = class extends import_sdk_js_core79.AbstractApiRequest {
|
|
14245
14287
|
constructor(integrationJustEatId, input) {
|
|
14246
14288
|
super(input);
|
|
14247
14289
|
this.method = "PATCH";
|
|
@@ -14259,12 +14301,12 @@ var UpdateIntegrationJustEat = class extends import_sdk_js_core78.AbstractApiReq
|
|
|
14259
14301
|
};
|
|
14260
14302
|
|
|
14261
14303
|
// src/requests/services/justeat/UpdateIntegrationJustEatRestaurantStatus.ts
|
|
14262
|
-
var
|
|
14304
|
+
var import_sdk_js_core80 = require("@deliverart/sdk-js-core");
|
|
14263
14305
|
var updateIntegrationJustEatRestaurantStatusInputSchema = external_exports.object({
|
|
14264
14306
|
status: integrationJustEatRestaurantStatusSchema
|
|
14265
14307
|
});
|
|
14266
14308
|
var updateIntegrationJustEatRestaurantStatusResponseSchema = integrationJustEatDetailsSchema;
|
|
14267
|
-
var UpdateIntegrationJustEatRestaurantStatus = class extends
|
|
14309
|
+
var UpdateIntegrationJustEatRestaurantStatus = class extends import_sdk_js_core80.AbstractApiRequest {
|
|
14268
14310
|
constructor(integrationJustEatId, input) {
|
|
14269
14311
|
super(input);
|
|
14270
14312
|
this.method = "POST";
|
|
@@ -14282,10 +14324,10 @@ var UpdateIntegrationJustEatRestaurantStatus = class extends import_sdk_js_core7
|
|
|
14282
14324
|
};
|
|
14283
14325
|
|
|
14284
14326
|
// src/requests/UpdateIntegration.ts
|
|
14285
|
-
var
|
|
14327
|
+
var import_sdk_js_core81 = require("@deliverart/sdk-js-core");
|
|
14286
14328
|
var updateIntegrationInputSchema = writableIntegrationSchema.partial();
|
|
14287
14329
|
var updateIntegrationResponseSchema = integrationDetailsSchema;
|
|
14288
|
-
var UpdateIntegration = class extends
|
|
14330
|
+
var UpdateIntegration = class extends import_sdk_js_core81.AbstractApiRequest {
|
|
14289
14331
|
constructor(integrationId, input) {
|
|
14290
14332
|
super(input);
|
|
14291
14333
|
this.method = "PATCH";
|
|
@@ -14361,6 +14403,7 @@ var UpdateIntegration = class extends import_sdk_js_core80.AbstractApiRequest {
|
|
|
14361
14403
|
GetIntegrationJustEatSyncMenuProcessDetails,
|
|
14362
14404
|
GetIntegrationJustEatSyncMenuProcesses,
|
|
14363
14405
|
GetIntegrations,
|
|
14406
|
+
GetIntegrationsFromPointOfSale,
|
|
14364
14407
|
IntegrationCassaInCloudSyncCustomers,
|
|
14365
14408
|
IntegrationCassaInCloudSyncOrganizations,
|
|
14366
14409
|
IntegrationCassaInCloudSyncProducts,
|
|
@@ -14524,6 +14567,9 @@ var UpdateIntegration = class extends import_sdk_js_core80.AbstractApiRequest {
|
|
|
14524
14567
|
getIntegrationJustEatSyncMenuProcessesInputSchema,
|
|
14525
14568
|
getIntegrationJustEatSyncMenuProcessesQuerySchema,
|
|
14526
14569
|
getIntegrationJustEatSyncMenuProcessesResponseSchema,
|
|
14570
|
+
getIntegrationsFromPointOfSaleInputSchema,
|
|
14571
|
+
getIntegrationsFromPointOfSaleQuerySchema,
|
|
14572
|
+
getIntegrationsFromPointOfSaleResponseSchema,
|
|
14527
14573
|
getIntegrationsInputSchema,
|
|
14528
14574
|
getIntegrationsQuerySchema,
|
|
14529
14575
|
getIntegrationsResponseSchema,
|
|
@@ -14582,6 +14628,7 @@ var UpdateIntegration = class extends import_sdk_js_core80.AbstractApiRequest {
|
|
|
14582
14628
|
integrationDeliverooWebhookEventTypes,
|
|
14583
14629
|
integrationDeliveryProviderCommonSchema,
|
|
14584
14630
|
integrationDetailsFieldsSchema,
|
|
14631
|
+
integrationDetailsSchema,
|
|
14585
14632
|
integrationGlovoDataSchema,
|
|
14586
14633
|
integrationGlovoIriSchema,
|
|
14587
14634
|
integrationGlovoMenuUpdateStatusSchema,
|
|
@@ -14614,6 +14661,7 @@ var UpdateIntegration = class extends import_sdk_js_core80.AbstractApiRequest {
|
|
|
14614
14661
|
integrationPathSchemas,
|
|
14615
14662
|
integrationProviderSchema,
|
|
14616
14663
|
integrationProviders,
|
|
14664
|
+
integrationSchema,
|
|
14617
14665
|
integrationServiceDataSchema,
|
|
14618
14666
|
integrationServiceSchema,
|
|
14619
14667
|
integrationServices,
|