@deliverart/sdk-js-integration 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/config.json +11 -0
- package/.github/workflows/workflow.yml +47 -0
- package/.prettierrc +7 -0
- package/README.md +3 -0
- package/dist/index.cjs +3660 -0
- package/dist/index.d.cts +32181 -0
- package/dist/index.d.ts +32181 -0
- package/dist/index.js +3385 -0
- package/eslint.config.js +37 -0
- package/package.json +48 -0
- package/src/activatable-integration-data-schemas.ts +50 -0
- package/src/activatable-integration-types.ts +17 -0
- package/src/activatable-integration.ts +86 -0
- package/src/activation-request.ts +53 -0
- package/src/cancellation-request-types.ts +34 -0
- package/src/cancellation-request.ts +21 -0
- package/src/index.ts +9 -0
- package/src/integration-schemas.ts +31 -0
- package/src/requests/DeleteIntegration.ts +27 -0
- package/src/requests/GetIntegrationDetails.ts +30 -0
- package/src/requests/GetIntegrations.ts +63 -0
- package/src/requests/UpdateIntegration.ts +36 -0
- package/src/requests/activation-requests/ActivateIntegrationActivationRequest.ts +38 -0
- package/src/requests/activation-requests/AnnotateIntegrationActivationRequest.ts +46 -0
- package/src/requests/activation-requests/CreateIntegrationActivationRequest.ts +80 -0
- package/src/requests/activation-requests/DeleteIntegrationActivationRequest.ts +27 -0
- package/src/requests/activation-requests/GetIntegrationActivationRequestDetails.ts +37 -0
- package/src/requests/activation-requests/GetIntegrationActivationRequests.ts +86 -0
- package/src/requests/activation-requests/RespondIntegrationActivationRequest.ts +58 -0
- package/src/requests/activation-requests/SendIntegrationActivationRequestToPartner.ts +38 -0
- package/src/requests/activation-requests/UpdateIntegrationActivationRequest.ts +91 -0
- package/src/requests/activation-requests/index.ts +9 -0
- package/src/requests/cancellation-requests/CancelIntegrationCancellationRequest.ts +38 -0
- package/src/requests/cancellation-requests/CreateIntegrationCancellationRequest.ts +41 -0
- package/src/requests/cancellation-requests/DeleteIntegrationCancellationRequest.ts +27 -0
- package/src/requests/cancellation-requests/GetIntegrationCancellationRequestDetails.ts +37 -0
- package/src/requests/cancellation-requests/GetIntegrationCancellationRequests.ts +72 -0
- package/src/requests/cancellation-requests/index.ts +5 -0
- package/src/requests/index.ts +7 -0
- package/src/requests/services/cassa_in_cloud/CreateIntegrationCassaInCloud.ts +42 -0
- package/src/requests/services/cassa_in_cloud/DeleteIntegrationCassaInCloud.ts +27 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudClientLogRequestDetails.ts +40 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudClientLogRequests.ts +64 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudDetails.ts +36 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudList.ts +61 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudSyncMenuProcessDetails.ts +40 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudSyncMenuProcesses.ts +69 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudWebHookEventDetails.ts +40 -0
- package/src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudWebHookEvents.ts +69 -0
- package/src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncCustomers.ts +27 -0
- package/src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncOrganizations.ts +27 -0
- package/src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncProducts.ts +27 -0
- package/src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncSalesModes.ts +27 -0
- package/src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncStock.ts +27 -0
- package/src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncTimetables.ts +27 -0
- package/src/requests/services/cassa_in_cloud/UpdateIntegrationCassaInCloud.ts +39 -0
- package/src/requests/services/cassa_in_cloud/index.ts +17 -0
- package/src/requests/services/deliveroo/CreateIntegrationDeliveroo.ts +40 -0
- package/src/requests/services/deliveroo/DeleteIntegrationDeliveroo.ts +27 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooClientLogRequestDetails.ts +40 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooClientLogRequests.ts +64 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooDetails.ts +36 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooList.ts +61 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooMenuVersionDetails.ts +35 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooMenuVersions.ts +62 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooSyncMenuProcessDetails.ts +40 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooSyncMenuProcesses.ts +69 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooWebhookEventDetails.ts +40 -0
- package/src/requests/services/deliveroo/GetIntegrationDeliverooWebhookEvents.ts +69 -0
- package/src/requests/services/deliveroo/IntegrationDeliverooSyncMenu.ts +27 -0
- package/src/requests/services/deliveroo/IntegrationDeliverooSyncOpeningHours.ts +27 -0
- package/src/requests/services/deliveroo/UpdateIntegrationDeliveroo.ts +39 -0
- package/src/requests/services/deliveroo/UpdateIntegrationDeliverooSiteStatus.ts +43 -0
- package/src/requests/services/deliveroo/index.ts +16 -0
- package/src/requests/services/glovo/CreateIntegrationGlovo.ts +39 -0
- package/src/requests/services/glovo/DeleteIntegrationGlovo.ts +27 -0
- package/src/requests/services/glovo/GetIntegrationGlovoClientLogRequestDetails.ts +39 -0
- package/src/requests/services/glovo/GetIntegrationGlovoClientLogRequests.ts +64 -0
- package/src/requests/services/glovo/GetIntegrationGlovoDetails.ts +36 -0
- package/src/requests/services/glovo/GetIntegrationGlovoList.ts +55 -0
- package/src/requests/services/glovo/GetIntegrationGlovoMenuUpdateDetails.ts +39 -0
- package/src/requests/services/glovo/GetIntegrationGlovoMenuUpdates.ts +66 -0
- package/src/requests/services/glovo/GetIntegrationGlovoMenuVersionDetails.ts +35 -0
- package/src/requests/services/glovo/GetIntegrationGlovoMenuVersions.ts +62 -0
- package/src/requests/services/glovo/GetIntegrationGlovoWebhookEventDetails.ts +39 -0
- package/src/requests/services/glovo/GetIntegrationGlovoWebhookEvents.ts +68 -0
- package/src/requests/services/glovo/IntegrationGlovoSyncMenu.ts +27 -0
- package/src/requests/services/glovo/UpdateIntegrationGlovo.ts +39 -0
- package/src/requests/services/glovo/UpdateIntegrationGlovoStoreStatus.ts +43 -0
- package/src/requests/services/glovo/index.ts +15 -0
- package/src/requests/services/index.ts +4 -0
- package/src/requests/services/justeat/CreateIntegrationJustEat.ts +39 -0
- package/src/requests/services/justeat/DeleteIntegrationJustEat.ts +27 -0
- package/src/requests/services/justeat/GetIntegrationJustEatClientLogRequestDetails.ts +40 -0
- package/src/requests/services/justeat/GetIntegrationJustEatClientLogRequests.ts +64 -0
- package/src/requests/services/justeat/GetIntegrationJustEatDetails.ts +36 -0
- package/src/requests/services/justeat/GetIntegrationJustEatList.ts +60 -0
- package/src/requests/services/justeat/GetIntegrationJustEatMenuVersionDetails.ts +35 -0
- package/src/requests/services/justeat/GetIntegrationJustEatMenuVersions.ts +62 -0
- package/src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcessDetails.ts +40 -0
- package/src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcesses.ts +69 -0
- package/src/requests/services/justeat/IntegrationJustEatSyncMenu.ts +27 -0
- package/src/requests/services/justeat/IntegrationJustEatSyncOpeningTimes.ts +27 -0
- package/src/requests/services/justeat/UpdateIntegrationJustEat.ts +39 -0
- package/src/requests/services/justeat/UpdateIntegrationJustEatRestaurantStatus.ts +44 -0
- package/src/requests/services/justeat/index.ts +14 -0
- package/src/schemas.ts +97 -0
- package/src/service-schemas/cassa_in_cloud.ts +154 -0
- package/src/service-schemas/deliveroo.ts +159 -0
- package/src/service-schemas/glovo.ts +153 -0
- package/src/service-schemas/justeat.ts +121 -0
- package/src/types.ts +227 -0
- package/tsconfig.json +15 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3385 @@
|
|
|
1
|
+
// src/activatable-integration.ts
|
|
2
|
+
import { datetimeSchema } from "@deliverart/sdk-js-global-types";
|
|
3
|
+
import { z as z4 } from "zod";
|
|
4
|
+
|
|
5
|
+
// src/activatable-integration-data-schemas.ts
|
|
6
|
+
import { z as z2 } from "zod";
|
|
7
|
+
|
|
8
|
+
// src/types.ts
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
var integrationStatuses = ["pending", "active", "deleting"];
|
|
11
|
+
var integrationStatusSchema = z.enum(integrationStatuses);
|
|
12
|
+
var integrationProviders = ["deliverart", "cassa_in_cloud"];
|
|
13
|
+
var integrationProviderSchema = z.enum(integrationProviders);
|
|
14
|
+
var integrationServices = ["deliveroo", "justeat", "glovo", "cassa_in_cloud"];
|
|
15
|
+
var integrationServiceSchema = z.enum(integrationServices);
|
|
16
|
+
var integrationClientLogRequestMethods = ["DELETE", "GET", "PATCH", "POST", "PUT"];
|
|
17
|
+
var integrationClientLogRequestMethodSchema = z.enum(integrationClientLogRequestMethods);
|
|
18
|
+
var integrationJustEatSyncTypes = ["ALL", "DELIVERY", "TAKE_AWAY"];
|
|
19
|
+
var integrationJustEatSyncTypeSchema = z.enum(integrationJustEatSyncTypes);
|
|
20
|
+
var integrationJustEatRestaurantStatuses = ["OPEN", "CLOSED"];
|
|
21
|
+
var integrationJustEatRestaurantStatusSchema = z.enum(integrationJustEatRestaurantStatuses);
|
|
22
|
+
var integrationDeliverooSiteStatuses = ["OPEN", "CLOSED"];
|
|
23
|
+
var integrationDeliverooSiteStatusSchema = z.enum(integrationDeliverooSiteStatuses);
|
|
24
|
+
var integrationDeliverooSyncMenuProcessModes = ["menu", "item_availabilities"];
|
|
25
|
+
var integrationDeliverooSyncMenuProcessModeSchema = z.enum(
|
|
26
|
+
integrationDeliverooSyncMenuProcessModes
|
|
27
|
+
);
|
|
28
|
+
var integrationDeliverooWebhookEventTypes = [
|
|
29
|
+
"order.new",
|
|
30
|
+
"order.status_update",
|
|
31
|
+
"rider.status_update",
|
|
32
|
+
"menu.upload_result"
|
|
33
|
+
];
|
|
34
|
+
var integrationDeliverooWebhookEventTypeSchema = z.enum(
|
|
35
|
+
integrationDeliverooWebhookEventTypes
|
|
36
|
+
);
|
|
37
|
+
var integrationGlovoMenuUpdateStatuses = [
|
|
38
|
+
"SUCCESS",
|
|
39
|
+
"PROCESSING",
|
|
40
|
+
"FETCH_MENU_INVALID_PAYLOAD",
|
|
41
|
+
"FETCH_MENU_SERVER_ERROR",
|
|
42
|
+
"FETCH_MENU_UNAUTHORIZED",
|
|
43
|
+
"NOT_PROCESSED",
|
|
44
|
+
"LIMIT_EXCEEDED",
|
|
45
|
+
"GLOVO_ERROR",
|
|
46
|
+
"SCHEDULE_CATALOG_DISABLED"
|
|
47
|
+
];
|
|
48
|
+
var integrationGlovoMenuUpdateStatusSchema = z.enum(integrationGlovoMenuUpdateStatuses);
|
|
49
|
+
var integrationGlovoStoreStatuses = ["OPEN", "CLOSED"];
|
|
50
|
+
var integrationGlovoStoreStatusSchema = z.enum(integrationGlovoStoreStatuses);
|
|
51
|
+
var integrationGlovoWebhookEventTypes = ["order.dispatched", "order.cancelled"];
|
|
52
|
+
var integrationGlovoWebhookEventTypeSchema = z.enum(integrationGlovoWebhookEventTypes);
|
|
53
|
+
var integrationCassaInCloudDirections = [
|
|
54
|
+
"EXTERNAL_TO_INTERNAL",
|
|
55
|
+
"INTERNAL_TO_EXTERNAL"
|
|
56
|
+
];
|
|
57
|
+
var integrationCassaInCloudDirectionSchema = z.enum(integrationCassaInCloudDirections);
|
|
58
|
+
var integrationCassaInCloudProductChannels = [
|
|
59
|
+
"RISTO",
|
|
60
|
+
"SALE",
|
|
61
|
+
"ECOMMERCE",
|
|
62
|
+
"MOBILE_COMMERCE",
|
|
63
|
+
"SELF_ORDER",
|
|
64
|
+
"KIOSK"
|
|
65
|
+
];
|
|
66
|
+
var integrationCassaInCloudProductChannelSchema = z.enum(
|
|
67
|
+
integrationCassaInCloudProductChannels
|
|
68
|
+
);
|
|
69
|
+
var integrationCassaInCloudWebHookEventEntities = [
|
|
70
|
+
"BILL",
|
|
71
|
+
"RECEIPT",
|
|
72
|
+
"CREDIT_NOTE",
|
|
73
|
+
"INVOICE",
|
|
74
|
+
"DDT",
|
|
75
|
+
"ORDER",
|
|
76
|
+
"QUOTATION",
|
|
77
|
+
"RECONCILIATION",
|
|
78
|
+
"STOCK_MOVEMENT",
|
|
79
|
+
"CUSTOMER",
|
|
80
|
+
"ORGANIZATION"
|
|
81
|
+
];
|
|
82
|
+
var integrationCassaInCloudWebHookEventEntitySchema = z.enum(
|
|
83
|
+
integrationCassaInCloudWebHookEventEntities
|
|
84
|
+
);
|
|
85
|
+
var integrationCassaInCloudWebHookEventEvents = ["CREATE", "UPDATE", "DELETE"];
|
|
86
|
+
var integrationCassaInCloudWebHookEventEventSchema = z.enum(
|
|
87
|
+
integrationCassaInCloudWebHookEventEvents
|
|
88
|
+
);
|
|
89
|
+
function createIntegrationPathSchemas(service) {
|
|
90
|
+
const regex = new RegExp(`^/integrations/${service}/[a-z_]+/[0-9a-fA-F-]{36}$`);
|
|
91
|
+
const pathSchema = z.string().refine((val) => regex.test(val), {
|
|
92
|
+
message: `Invalid integration ${service} path format`
|
|
93
|
+
});
|
|
94
|
+
const nullablePathSchema = z.string().nullable().refine((val) => val == null || regex.test(val), {
|
|
95
|
+
message: `Invalid integration ${service} path format`
|
|
96
|
+
});
|
|
97
|
+
return { pathSchema, nullablePathSchema };
|
|
98
|
+
}
|
|
99
|
+
var integrationPathSchemas = Object.fromEntries(
|
|
100
|
+
integrationServices.map((service) => [service, createIntegrationPathSchemas(service)])
|
|
101
|
+
);
|
|
102
|
+
var integrationDeliverooPathSchema = integrationPathSchemas.deliveroo.pathSchema;
|
|
103
|
+
var integrationDeliverooNullablePathSchema = integrationPathSchemas.deliveroo.nullablePathSchema;
|
|
104
|
+
var integrationGlovoPathSchema = integrationPathSchemas.glovo.pathSchema;
|
|
105
|
+
var integrationGlovoNullablePathSchema = integrationPathSchemas.glovo.nullablePathSchema;
|
|
106
|
+
var integrationJustEatPathSchema = integrationPathSchemas.justeat.pathSchema;
|
|
107
|
+
var integrationJustEatNullablePathSchema = integrationPathSchemas.justeat.nullablePathSchema;
|
|
108
|
+
var integrationCassaInCloudPathSchema = integrationPathSchemas.cassa_in_cloud.pathSchema;
|
|
109
|
+
var integrationCassaInCloudNullablePathSchema = integrationPathSchemas.cassa_in_cloud.nullablePathSchema;
|
|
110
|
+
var integrationPathSchema = z.string().refine((val) => /^\/integrations\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
|
|
111
|
+
message: "Invalid integration path format"
|
|
112
|
+
});
|
|
113
|
+
var integrationNullablePathSchema = z.string().nullable().refine((val) => val == null || /^\/integrations\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
|
|
114
|
+
message: "Invalid integration path format"
|
|
115
|
+
});
|
|
116
|
+
var integrationCassaInCloudSyncMenuErrorLogPathSchema = z.string().refine(
|
|
117
|
+
(val) => /^\/integrations\/cassa_in_cloud\/[a-z_]+\/[0-9a-fA-F-]{36}\/sync_menu_processes\/[a-z_]+\/[0-9a-fA-F-]{36}\/error_logs\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(
|
|
118
|
+
val
|
|
119
|
+
),
|
|
120
|
+
{
|
|
121
|
+
message: "Invalid integration path format"
|
|
122
|
+
}
|
|
123
|
+
);
|
|
124
|
+
var integrationCassaInCloudSyncMenuErrorLogNullablePathSchema = z.string().nullable().refine(
|
|
125
|
+
(val) => val == null || /^\/integrations\/cassa_in_cloud\/[a-z_]+\/[0-9a-fA-F-]{36}\/sync_menu_processes\/[a-z_]+\/[0-9a-fA-F-]{36}\/error_logs\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(
|
|
126
|
+
val
|
|
127
|
+
),
|
|
128
|
+
{
|
|
129
|
+
message: "Invalid integration path format"
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
|
|
133
|
+
// src/activatable-integration-data-schemas.ts
|
|
134
|
+
var integrationDeliverooDataSchema = z2.object({
|
|
135
|
+
brandId: z2.string(),
|
|
136
|
+
siteId: z2.string(),
|
|
137
|
+
salesModeId: z2.string().nullable()
|
|
138
|
+
});
|
|
139
|
+
var integrationGlovoDataSchema = z2.object({
|
|
140
|
+
storeId: z2.string(),
|
|
141
|
+
salesModeId: z2.string().nullable()
|
|
142
|
+
});
|
|
143
|
+
var integrationJustEatDataSchema = z2.object({
|
|
144
|
+
restaurantId: z2.string(),
|
|
145
|
+
salesModeId: z2.string().nullable()
|
|
146
|
+
});
|
|
147
|
+
var integrationCassaInCloudDataSchema = z2.object({
|
|
148
|
+
apiKey: z2.string(),
|
|
149
|
+
idSalesPoint: z2.number(),
|
|
150
|
+
direction: integrationCassaInCloudDirectionSchema,
|
|
151
|
+
locale: z2.string()
|
|
152
|
+
});
|
|
153
|
+
var integrationServiceDataSchema = z2.discriminatedUnion("service", [
|
|
154
|
+
z2.object({
|
|
155
|
+
service: z2.literal("deliveroo"),
|
|
156
|
+
data: integrationDeliverooDataSchema
|
|
157
|
+
}),
|
|
158
|
+
z2.object({
|
|
159
|
+
service: z2.literal("glovo"),
|
|
160
|
+
data: integrationGlovoDataSchema
|
|
161
|
+
}),
|
|
162
|
+
z2.object({
|
|
163
|
+
service: z2.literal("justeat"),
|
|
164
|
+
data: integrationJustEatDataSchema
|
|
165
|
+
}),
|
|
166
|
+
z2.object({
|
|
167
|
+
service: z2.literal("cassa_in_cloud"),
|
|
168
|
+
data: integrationCassaInCloudDataSchema
|
|
169
|
+
})
|
|
170
|
+
]);
|
|
171
|
+
|
|
172
|
+
// src/activatable-integration-types.ts
|
|
173
|
+
import { z as z3 } from "zod";
|
|
174
|
+
var activatableIntegrationStatuses = [
|
|
175
|
+
"waiting_for_user",
|
|
176
|
+
"waiting_for_admin",
|
|
177
|
+
"request_sent_partner",
|
|
178
|
+
"active",
|
|
179
|
+
"failed"
|
|
180
|
+
];
|
|
181
|
+
var activatableIntegrationStatusSchema = z3.enum(activatableIntegrationStatuses);
|
|
182
|
+
var activatableIntegrationHealthStatuses = ["success", "waiting", "error"];
|
|
183
|
+
var activatableIntegrationHealthStatusSchema = z3.enum(activatableIntegrationHealthStatuses);
|
|
184
|
+
|
|
185
|
+
// src/activatable-integration.ts
|
|
186
|
+
var activatableIntegrationBaseSchema = z4.object({
|
|
187
|
+
id: z4.string(),
|
|
188
|
+
connectionId: z4.string().nullable(),
|
|
189
|
+
integration: z4.union([
|
|
190
|
+
integrationDeliverooPathSchema,
|
|
191
|
+
integrationGlovoPathSchema,
|
|
192
|
+
integrationJustEatPathSchema,
|
|
193
|
+
integrationCassaInCloudPathSchema
|
|
194
|
+
]).nullable(),
|
|
195
|
+
status: activatableIntegrationStatusSchema,
|
|
196
|
+
healthStatus: activatableIntegrationHealthStatusSchema,
|
|
197
|
+
provider: integrationProviderSchema,
|
|
198
|
+
name: z4.string(),
|
|
199
|
+
message: z4.string().nullable(),
|
|
200
|
+
internalNotes: z4.string().nullable(),
|
|
201
|
+
createdAt: datetimeSchema,
|
|
202
|
+
updatedAt: datetimeSchema,
|
|
203
|
+
updates: z4.array(
|
|
204
|
+
z4.object({
|
|
205
|
+
status: activatableIntegrationStatusSchema,
|
|
206
|
+
message: z4.string(),
|
|
207
|
+
updatedAt: datetimeSchema
|
|
208
|
+
})
|
|
209
|
+
)
|
|
210
|
+
});
|
|
211
|
+
function createIntegrationSchema(service, dataSchema, integrationPathSchema2) {
|
|
212
|
+
return z4.object({
|
|
213
|
+
service: z4.literal(service),
|
|
214
|
+
data: dataSchema,
|
|
215
|
+
integration: integrationPathSchema2.nullable()
|
|
216
|
+
}).merge(activatableIntegrationBaseSchema.omit({ integration: true }));
|
|
217
|
+
}
|
|
218
|
+
var activatableIntegrationSchema = z4.discriminatedUnion("service", [
|
|
219
|
+
createIntegrationSchema(
|
|
220
|
+
"deliveroo",
|
|
221
|
+
integrationDeliverooDataSchema,
|
|
222
|
+
integrationDeliverooNullablePathSchema
|
|
223
|
+
),
|
|
224
|
+
createIntegrationSchema("glovo", integrationGlovoDataSchema, integrationGlovoNullablePathSchema),
|
|
225
|
+
createIntegrationSchema(
|
|
226
|
+
"justeat",
|
|
227
|
+
integrationJustEatDataSchema,
|
|
228
|
+
integrationJustEatNullablePathSchema
|
|
229
|
+
),
|
|
230
|
+
createIntegrationSchema(
|
|
231
|
+
"cassa_in_cloud",
|
|
232
|
+
integrationCassaInCloudDataSchema,
|
|
233
|
+
integrationCassaInCloudNullablePathSchema
|
|
234
|
+
)
|
|
235
|
+
]);
|
|
236
|
+
|
|
237
|
+
// src/activation-request.ts
|
|
238
|
+
import { pointOfSaleSchema } from "@deliverart/sdk-js-point-of-sale";
|
|
239
|
+
import { z as z5 } from "zod";
|
|
240
|
+
var integrationActivationRequestSchema = activatableIntegrationSchema;
|
|
241
|
+
var integrationActivationRequestDetailsSchema = z5.discriminatedUnion("service", [
|
|
242
|
+
z5.object({
|
|
243
|
+
pointOfSale: pointOfSaleSchema,
|
|
244
|
+
service: z5.literal("deliveroo"),
|
|
245
|
+
data: integrationDeliverooDataSchema
|
|
246
|
+
}).merge(activatableIntegrationBaseSchema),
|
|
247
|
+
z5.object({
|
|
248
|
+
pointOfSale: pointOfSaleSchema,
|
|
249
|
+
service: z5.literal("glovo"),
|
|
250
|
+
data: integrationGlovoDataSchema
|
|
251
|
+
}).merge(activatableIntegrationBaseSchema),
|
|
252
|
+
z5.object({
|
|
253
|
+
pointOfSale: pointOfSaleSchema,
|
|
254
|
+
service: z5.literal("justeat"),
|
|
255
|
+
data: integrationJustEatDataSchema
|
|
256
|
+
}).merge(activatableIntegrationBaseSchema),
|
|
257
|
+
z5.object({
|
|
258
|
+
pointOfSale: pointOfSaleSchema,
|
|
259
|
+
service: z5.literal("cassa_in_cloud"),
|
|
260
|
+
data: integrationCassaInCloudDataSchema
|
|
261
|
+
}).merge(activatableIntegrationBaseSchema)
|
|
262
|
+
]);
|
|
263
|
+
|
|
264
|
+
// src/cancellation-request.ts
|
|
265
|
+
import { datetimeSchema as datetimeSchema2 } from "@deliverart/sdk-js-global-types";
|
|
266
|
+
import { z as z7 } from "zod";
|
|
267
|
+
|
|
268
|
+
// src/cancellation-request-types.ts
|
|
269
|
+
import { z as z6 } from "zod";
|
|
270
|
+
var integrationCancellationRequestStatuses = ["pending", "aborted", "completed"];
|
|
271
|
+
var integrationCancellationRequestStatusSchema = z6.enum(
|
|
272
|
+
integrationCancellationRequestStatuses
|
|
273
|
+
);
|
|
274
|
+
var integrationCancellationRequestPathSchema = z6.string().refine((val) => /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val), {
|
|
275
|
+
message: "Invalid integration cancellation request path format"
|
|
276
|
+
});
|
|
277
|
+
var integrationCancellationRequestNullablePathSchema = z6.string().nullable().refine(
|
|
278
|
+
(val) => {
|
|
279
|
+
if (!val) return true;
|
|
280
|
+
return /^\/integrations\/cancellation_requests\/[a-z_]+\/[0-9a-fA-F-]{36}$/.test(val);
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
message: "Invalid integration cancellation request path format"
|
|
284
|
+
}
|
|
285
|
+
);
|
|
286
|
+
|
|
287
|
+
// src/cancellation-request.ts
|
|
288
|
+
var integrationCancellationRequestSchema = z7.object({
|
|
289
|
+
id: z7.string(),
|
|
290
|
+
status: integrationCancellationRequestStatusSchema,
|
|
291
|
+
createdAt: datetimeSchema2,
|
|
292
|
+
updatedAt: datetimeSchema2
|
|
293
|
+
});
|
|
294
|
+
var integrationCancellationRequestDetailsSchema = integrationCancellationRequestSchema.extend({
|
|
295
|
+
integration: integrationNullablePathSchema
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
// src/requests/activation-requests/ActivateIntegrationActivationRequest.ts
|
|
299
|
+
import { AbstractApiRequest } from "@deliverart/sdk-js-core";
|
|
300
|
+
import { z as z8 } from "zod";
|
|
301
|
+
var activateIntegrationActivationRequestInputSchema = z8.undefined();
|
|
302
|
+
var activateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
303
|
+
var ActivateIntegrationActivationRequest = class extends AbstractApiRequest {
|
|
304
|
+
method = "POST";
|
|
305
|
+
contentType = "application/json";
|
|
306
|
+
accept = "application/json";
|
|
307
|
+
inputSchema = activateIntegrationActivationRequestInputSchema;
|
|
308
|
+
outputSchema = activateIntegrationActivationRequestResponseSchema;
|
|
309
|
+
querySchema = void 0;
|
|
310
|
+
headersSchema = void 0;
|
|
311
|
+
integrationActivationRequestId;
|
|
312
|
+
constructor(integrationActivationRequestId) {
|
|
313
|
+
super();
|
|
314
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
315
|
+
}
|
|
316
|
+
getPath() {
|
|
317
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/send-partner`;
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
// src/requests/activation-requests/AnnotateIntegrationActivationRequest.ts
|
|
322
|
+
import { AbstractApiRequest as AbstractApiRequest2 } from "@deliverart/sdk-js-core";
|
|
323
|
+
import { z as z9 } from "zod";
|
|
324
|
+
var annotateIntegrationActivationRequestInputSchema = z9.object({
|
|
325
|
+
message: z9.string().min(1, "Message is required")
|
|
326
|
+
});
|
|
327
|
+
var annotateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
328
|
+
var AnnotateIntegrationActivationRequest = class extends AbstractApiRequest2 {
|
|
329
|
+
method = "POST";
|
|
330
|
+
contentType = "application/json";
|
|
331
|
+
accept = "application/json";
|
|
332
|
+
inputSchema = annotateIntegrationActivationRequestInputSchema;
|
|
333
|
+
outputSchema = annotateIntegrationActivationRequestResponseSchema;
|
|
334
|
+
querySchema = void 0;
|
|
335
|
+
headersSchema = void 0;
|
|
336
|
+
integrationActivationRequestId;
|
|
337
|
+
constructor(integrationActivationRequestId, input) {
|
|
338
|
+
super(input);
|
|
339
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
340
|
+
}
|
|
341
|
+
getPath() {
|
|
342
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/annotate`;
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
// src/requests/activation-requests/CreateIntegrationActivationRequest.ts
|
|
347
|
+
import { AbstractApiRequest as AbstractApiRequest3 } from "@deliverart/sdk-js-core";
|
|
348
|
+
import { pointOfSalePathSchema } from "@deliverart/sdk-js-point-of-sale";
|
|
349
|
+
import { z as z10 } from "zod";
|
|
350
|
+
var writableIntegrationActivationRequestBaseSchema = z10.object({
|
|
351
|
+
name: z10.string(),
|
|
352
|
+
provider: integrationProviderSchema,
|
|
353
|
+
pointOfSale: pointOfSalePathSchema
|
|
354
|
+
});
|
|
355
|
+
var createIntegrationActivationRequestInputSchema = z10.discriminatedUnion("service", [
|
|
356
|
+
z10.object({
|
|
357
|
+
service: z10.literal("deliveroo"),
|
|
358
|
+
data: integrationDeliverooDataSchema
|
|
359
|
+
}).merge(writableIntegrationActivationRequestBaseSchema),
|
|
360
|
+
z10.object({
|
|
361
|
+
service: z10.literal("glovo"),
|
|
362
|
+
data: integrationGlovoDataSchema
|
|
363
|
+
}).merge(writableIntegrationActivationRequestBaseSchema),
|
|
364
|
+
z10.object({
|
|
365
|
+
service: z10.literal("justeat"),
|
|
366
|
+
data: integrationJustEatDataSchema
|
|
367
|
+
}).merge(writableIntegrationActivationRequestBaseSchema),
|
|
368
|
+
z10.object({
|
|
369
|
+
service: z10.literal("cassa_in_cloud"),
|
|
370
|
+
data: integrationCassaInCloudDataSchema
|
|
371
|
+
}).merge(writableIntegrationActivationRequestBaseSchema)
|
|
372
|
+
]);
|
|
373
|
+
var createIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
374
|
+
var CreateIntegrationActivationRequest = class extends AbstractApiRequest3 {
|
|
375
|
+
method = "POST";
|
|
376
|
+
contentType = "application/json";
|
|
377
|
+
accept = "application/json";
|
|
378
|
+
inputSchema = createIntegrationActivationRequestInputSchema;
|
|
379
|
+
outputSchema = createIntegrationActivationRequestResponseSchema;
|
|
380
|
+
querySchema = void 0;
|
|
381
|
+
headersSchema = void 0;
|
|
382
|
+
constructor(input) {
|
|
383
|
+
super(input);
|
|
384
|
+
}
|
|
385
|
+
getPath() {
|
|
386
|
+
return "/integrations/activation_requests";
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
// src/requests/activation-requests/DeleteIntegrationActivationRequest.ts
|
|
391
|
+
import { AbstractApiRequest as AbstractApiRequest4 } from "@deliverart/sdk-js-core";
|
|
392
|
+
import { z as z11 } from "zod";
|
|
393
|
+
var deleteIntegrationActivationRequestInputSchema = z11.undefined();
|
|
394
|
+
var deleteIntegrationActivationRequestResponseSchema = z11.undefined();
|
|
395
|
+
var DeleteIntegrationActivationRequest = class extends AbstractApiRequest4 {
|
|
396
|
+
method = "DELETE";
|
|
397
|
+
contentType = "application/json";
|
|
398
|
+
accept = "application/json";
|
|
399
|
+
inputSchema = deleteIntegrationActivationRequestInputSchema;
|
|
400
|
+
outputSchema = deleteIntegrationActivationRequestResponseSchema;
|
|
401
|
+
querySchema = void 0;
|
|
402
|
+
headersSchema = void 0;
|
|
403
|
+
integrationActivationRequestId;
|
|
404
|
+
constructor(integrationActivationRequestId) {
|
|
405
|
+
super();
|
|
406
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
407
|
+
}
|
|
408
|
+
getPath() {
|
|
409
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
// src/requests/activation-requests/GetIntegrationActivationRequestDetails.ts
|
|
414
|
+
import { AbstractApiRequest as AbstractApiRequest5 } from "@deliverart/sdk-js-core";
|
|
415
|
+
import { z as z12 } from "zod";
|
|
416
|
+
var getIntegrationActivationRequestDetailsInputSchema = z12.undefined();
|
|
417
|
+
var getIntegrationActivationRequestDetailsResponseSchema = integrationActivationRequestDetailsSchema;
|
|
418
|
+
var GetIntegrationActivationRequestDetails = class extends AbstractApiRequest5 {
|
|
419
|
+
method = "GET";
|
|
420
|
+
contentType = "application/json";
|
|
421
|
+
accept = "application/json";
|
|
422
|
+
inputSchema = getIntegrationActivationRequestDetailsInputSchema;
|
|
423
|
+
outputSchema = getIntegrationActivationRequestDetailsResponseSchema;
|
|
424
|
+
querySchema = void 0;
|
|
425
|
+
headersSchema = void 0;
|
|
426
|
+
integrationActivationRequestId;
|
|
427
|
+
constructor(integrationActivationRequestId) {
|
|
428
|
+
super();
|
|
429
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
430
|
+
}
|
|
431
|
+
getPath() {
|
|
432
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
433
|
+
}
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
// src/requests/activation-requests/GetIntegrationActivationRequests.ts
|
|
437
|
+
import { AbstractApiRequest as AbstractApiRequest6 } from "@deliverart/sdk-js-core";
|
|
438
|
+
import {
|
|
439
|
+
createPaginatedSchema,
|
|
440
|
+
responseToPagination,
|
|
441
|
+
sortDirSchema,
|
|
442
|
+
timestampsFilterSchema
|
|
443
|
+
} from "@deliverart/sdk-js-global-types";
|
|
444
|
+
import { z as z13 } from "zod";
|
|
445
|
+
var getIntegrationActivationRequestsQuerySchema = z13.object({
|
|
446
|
+
"order[service]": sortDirSchema.optional(),
|
|
447
|
+
"order[status]": sortDirSchema.optional(),
|
|
448
|
+
"order[createdAt]": sortDirSchema.optional(),
|
|
449
|
+
"order[updatedAt]": sortDirSchema.optional(),
|
|
450
|
+
service: integrationServiceSchema.optional(),
|
|
451
|
+
"service[]": z13.array(integrationServiceSchema).optional(),
|
|
452
|
+
provider: integrationProviderSchema.optional(),
|
|
453
|
+
"provider[]": z13.array(integrationProviderSchema).optional(),
|
|
454
|
+
status: activatableIntegrationStatusSchema.optional(),
|
|
455
|
+
"status[]": z13.array(activatableIntegrationStatusSchema).optional(),
|
|
456
|
+
healthStatus: activatableIntegrationHealthStatusSchema.optional(),
|
|
457
|
+
"healthStatus[]": z13.array(activatableIntegrationHealthStatusSchema).optional(),
|
|
458
|
+
connectionId: z13.string().optional(),
|
|
459
|
+
"connectionId[]": z13.array(z13.string()).optional(),
|
|
460
|
+
page: z13.coerce.number().optional()
|
|
461
|
+
}).merge(timestampsFilterSchema);
|
|
462
|
+
var getIntegrationActivationRequestsResponseSchema = createPaginatedSchema(
|
|
463
|
+
integrationActivationRequestSchema
|
|
464
|
+
);
|
|
465
|
+
var getIntegrationActivationRequestsInputSchema = z13.undefined();
|
|
466
|
+
var GetIntegrationActivationRequests = class extends AbstractApiRequest6 {
|
|
467
|
+
method = "GET";
|
|
468
|
+
contentType = "application/json";
|
|
469
|
+
accept = "application/json";
|
|
470
|
+
inputSchema = getIntegrationActivationRequestsInputSchema;
|
|
471
|
+
outputSchema = getIntegrationActivationRequestsResponseSchema;
|
|
472
|
+
querySchema = getIntegrationActivationRequestsQuerySchema;
|
|
473
|
+
headersSchema = void 0;
|
|
474
|
+
constructor(options) {
|
|
475
|
+
super(void 0, options);
|
|
476
|
+
}
|
|
477
|
+
getPath() {
|
|
478
|
+
return "/integrations/activation_requests";
|
|
479
|
+
}
|
|
480
|
+
parseResponse(data, rawResponse) {
|
|
481
|
+
const integrations = z13.array(integrationActivationRequestSchema).parse(data);
|
|
482
|
+
return this.validateOutput({
|
|
483
|
+
data: integrations,
|
|
484
|
+
pagination: responseToPagination(rawResponse)
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
// src/requests/activation-requests/RespondIntegrationActivationRequest.ts
|
|
490
|
+
import { AbstractApiRequest as AbstractApiRequest7 } from "@deliverart/sdk-js-core";
|
|
491
|
+
import { z as z14 } from "zod";
|
|
492
|
+
var respondIntegrationActivationRequestInputSchema = z14.object({
|
|
493
|
+
message: z14.string().min(1, "Message is required"),
|
|
494
|
+
data: z14.union([
|
|
495
|
+
integrationDeliverooDataSchema,
|
|
496
|
+
integrationGlovoDataSchema,
|
|
497
|
+
integrationJustEatDataSchema,
|
|
498
|
+
integrationCassaInCloudDataSchema
|
|
499
|
+
])
|
|
500
|
+
});
|
|
501
|
+
var respondIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
502
|
+
var RespondIntegrationActivationRequest = class extends AbstractApiRequest7 {
|
|
503
|
+
method = "POST";
|
|
504
|
+
contentType = "application/json";
|
|
505
|
+
accept = "application/json";
|
|
506
|
+
inputSchema = respondIntegrationActivationRequestInputSchema;
|
|
507
|
+
outputSchema = respondIntegrationActivationRequestResponseSchema;
|
|
508
|
+
querySchema = void 0;
|
|
509
|
+
headersSchema = void 0;
|
|
510
|
+
integrationActivationRequestId;
|
|
511
|
+
constructor(integrationActivationRequestId, input) {
|
|
512
|
+
super(input);
|
|
513
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
514
|
+
}
|
|
515
|
+
getPath() {
|
|
516
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/respond`;
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
// src/requests/activation-requests/SendIntegrationActivationRequestToPartner.ts
|
|
521
|
+
import { AbstractApiRequest as AbstractApiRequest8 } from "@deliverart/sdk-js-core";
|
|
522
|
+
import { z as z15 } from "zod";
|
|
523
|
+
var sendIntegrationActivationRequestToPartnerInputSchema = z15.undefined();
|
|
524
|
+
var sendIntegrationActivationRequestToPartnerResponseSchema = integrationActivationRequestDetailsSchema;
|
|
525
|
+
var SendIntegrationActivationRequestToPartner = class extends AbstractApiRequest8 {
|
|
526
|
+
method = "POST";
|
|
527
|
+
contentType = "application/json";
|
|
528
|
+
accept = "application/json";
|
|
529
|
+
inputSchema = sendIntegrationActivationRequestToPartnerInputSchema;
|
|
530
|
+
outputSchema = sendIntegrationActivationRequestToPartnerResponseSchema;
|
|
531
|
+
querySchema = void 0;
|
|
532
|
+
headersSchema = void 0;
|
|
533
|
+
integrationActivationRequestId;
|
|
534
|
+
constructor(integrationActivationRequestId) {
|
|
535
|
+
super();
|
|
536
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
537
|
+
}
|
|
538
|
+
getPath() {
|
|
539
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}/send-partner`;
|
|
540
|
+
}
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
// src/requests/activation-requests/UpdateIntegrationActivationRequest.ts
|
|
544
|
+
import { AbstractApiRequest as AbstractApiRequest9 } from "@deliverart/sdk-js-core";
|
|
545
|
+
import { pointOfSalePathSchema as pointOfSalePathSchema2 } from "@deliverart/sdk-js-point-of-sale";
|
|
546
|
+
import { z as z16 } from "zod";
|
|
547
|
+
var writableIntegrationActivationRequestBaseSchema2 = z16.object({
|
|
548
|
+
healthStatus: activatableIntegrationHealthStatusSchema,
|
|
549
|
+
provider: integrationProviderSchema,
|
|
550
|
+
pointOfSale: pointOfSalePathSchema2,
|
|
551
|
+
name: z16.string(),
|
|
552
|
+
internalNotes: z16.string().nullable()
|
|
553
|
+
}).partial();
|
|
554
|
+
var updateIntegrationActivationRequestInputSchema = z16.discriminatedUnion("service", [
|
|
555
|
+
z16.object({
|
|
556
|
+
service: z16.literal("deliveroo"),
|
|
557
|
+
data: integrationDeliverooDataSchema.optional()
|
|
558
|
+
}).merge(writableIntegrationActivationRequestBaseSchema2),
|
|
559
|
+
z16.object({
|
|
560
|
+
service: z16.literal("glovo"),
|
|
561
|
+
data: integrationGlovoDataSchema.optional()
|
|
562
|
+
}).merge(writableIntegrationActivationRequestBaseSchema2),
|
|
563
|
+
z16.object({
|
|
564
|
+
service: z16.literal("justeat"),
|
|
565
|
+
data: integrationJustEatDataSchema.optional()
|
|
566
|
+
}).merge(writableIntegrationActivationRequestBaseSchema2),
|
|
567
|
+
z16.object({
|
|
568
|
+
service: z16.literal("cassa_in_cloud"),
|
|
569
|
+
data: integrationCassaInCloudDataSchema.optional()
|
|
570
|
+
}).merge(writableIntegrationActivationRequestBaseSchema2)
|
|
571
|
+
]);
|
|
572
|
+
var updateIntegrationActivationRequestResponseSchema = integrationActivationRequestDetailsSchema;
|
|
573
|
+
var UpdateIntegrationActivationRequest = class extends AbstractApiRequest9 {
|
|
574
|
+
method = "PATCH";
|
|
575
|
+
contentType = "application/merge-patch+json";
|
|
576
|
+
accept = "application/json";
|
|
577
|
+
inputSchema = updateIntegrationActivationRequestInputSchema;
|
|
578
|
+
outputSchema = updateIntegrationActivationRequestResponseSchema;
|
|
579
|
+
querySchema = void 0;
|
|
580
|
+
headersSchema = void 0;
|
|
581
|
+
integrationActivationRequestId;
|
|
582
|
+
constructor(integrationActivationRequestId, input) {
|
|
583
|
+
super(input);
|
|
584
|
+
this.integrationActivationRequestId = integrationActivationRequestId;
|
|
585
|
+
}
|
|
586
|
+
getPath() {
|
|
587
|
+
return `/integrations/activation_requests/${this.integrationActivationRequestId}`;
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
// src/requests/cancellation-requests/CancelIntegrationCancellationRequest.ts
|
|
592
|
+
import { AbstractApiRequest as AbstractApiRequest10 } from "@deliverart/sdk-js-core";
|
|
593
|
+
import { z as z17 } from "zod";
|
|
594
|
+
var cancelIntegrationCancellationRequestInputSchema = z17.undefined();
|
|
595
|
+
var cancelIntegrationCancellationRequestResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
596
|
+
var CancelIntegrationCancellationRequest = class extends AbstractApiRequest10 {
|
|
597
|
+
method = "POST";
|
|
598
|
+
contentType = "application/json";
|
|
599
|
+
accept = "application/json";
|
|
600
|
+
inputSchema = cancelIntegrationCancellationRequestInputSchema;
|
|
601
|
+
outputSchema = cancelIntegrationCancellationRequestResponseSchema;
|
|
602
|
+
querySchema = void 0;
|
|
603
|
+
headersSchema = void 0;
|
|
604
|
+
integrationCancellationRequestId;
|
|
605
|
+
constructor(integrationCancellationRequestId) {
|
|
606
|
+
super();
|
|
607
|
+
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
608
|
+
}
|
|
609
|
+
getPath() {
|
|
610
|
+
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}/cancel`;
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
// src/requests/cancellation-requests/CreateIntegrationCancellationRequest.ts
|
|
615
|
+
import { AbstractApiRequest as AbstractApiRequest11 } from "@deliverart/sdk-js-core";
|
|
616
|
+
import { z as z18 } from "zod";
|
|
617
|
+
var createIntegrationCancellationRequestInputSchema = z18.object({
|
|
618
|
+
integration: integrationPathSchema
|
|
619
|
+
});
|
|
620
|
+
var createIntegrationCancellationRequestResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
621
|
+
var CreateIntegrationCancellationRequest = class extends AbstractApiRequest11 {
|
|
622
|
+
method = "POST";
|
|
623
|
+
contentType = "application/json";
|
|
624
|
+
accept = "application/json";
|
|
625
|
+
inputSchema = createIntegrationCancellationRequestInputSchema;
|
|
626
|
+
outputSchema = createIntegrationCancellationRequestResponseSchema;
|
|
627
|
+
querySchema = void 0;
|
|
628
|
+
headersSchema = void 0;
|
|
629
|
+
constructor(input) {
|
|
630
|
+
super(input);
|
|
631
|
+
}
|
|
632
|
+
getPath() {
|
|
633
|
+
return "/integrations/cancellation_requests";
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
// src/requests/cancellation-requests/DeleteIntegrationCancellationRequest.ts
|
|
638
|
+
import { AbstractApiRequest as AbstractApiRequest12 } from "@deliverart/sdk-js-core";
|
|
639
|
+
import { z as z19 } from "zod";
|
|
640
|
+
var deleteIntegrationCancellationRequestInputSchema = z19.undefined();
|
|
641
|
+
var deleteIntegrationCancellationRequestResponseSchema = z19.undefined();
|
|
642
|
+
var DeleteIntegrationCancellationRequest = class extends AbstractApiRequest12 {
|
|
643
|
+
method = "DELETE";
|
|
644
|
+
contentType = "application/json";
|
|
645
|
+
accept = "application/json";
|
|
646
|
+
inputSchema = deleteIntegrationCancellationRequestInputSchema;
|
|
647
|
+
outputSchema = deleteIntegrationCancellationRequestResponseSchema;
|
|
648
|
+
querySchema = void 0;
|
|
649
|
+
headersSchema = void 0;
|
|
650
|
+
integrationCancellationRequestId;
|
|
651
|
+
constructor(integrationCancellationRequestId) {
|
|
652
|
+
super();
|
|
653
|
+
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
654
|
+
}
|
|
655
|
+
getPath() {
|
|
656
|
+
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}`;
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
// src/requests/cancellation-requests/GetIntegrationCancellationRequestDetails.ts
|
|
661
|
+
import { AbstractApiRequest as AbstractApiRequest13 } from "@deliverart/sdk-js-core";
|
|
662
|
+
import { z as z20 } from "zod";
|
|
663
|
+
var getIntegrationCancellationRequestDetailsInputSchema = z20.undefined();
|
|
664
|
+
var getIntegrationCancellationRequestDetailsResponseSchema = integrationCancellationRequestDetailsSchema;
|
|
665
|
+
var GetIntegrationCancellationRequestDetails = class extends AbstractApiRequest13 {
|
|
666
|
+
method = "GET";
|
|
667
|
+
contentType = "application/json";
|
|
668
|
+
accept = "application/json";
|
|
669
|
+
inputSchema = getIntegrationCancellationRequestDetailsInputSchema;
|
|
670
|
+
outputSchema = getIntegrationCancellationRequestDetailsResponseSchema;
|
|
671
|
+
querySchema = void 0;
|
|
672
|
+
headersSchema = void 0;
|
|
673
|
+
integrationCancellationRequestId;
|
|
674
|
+
constructor(integrationCancellationRequestId) {
|
|
675
|
+
super();
|
|
676
|
+
this.integrationCancellationRequestId = integrationCancellationRequestId;
|
|
677
|
+
}
|
|
678
|
+
getPath() {
|
|
679
|
+
return `/integrations/cancellation_requests/${this.integrationCancellationRequestId}`;
|
|
680
|
+
}
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
// src/requests/cancellation-requests/GetIntegrationCancellationRequests.ts
|
|
684
|
+
import { AbstractApiRequest as AbstractApiRequest14 } from "@deliverart/sdk-js-core";
|
|
685
|
+
import {
|
|
686
|
+
createPaginatedSchema as createPaginatedSchema2,
|
|
687
|
+
responseToPagination as responseToPagination2,
|
|
688
|
+
sortDirSchema as sortDirSchema2,
|
|
689
|
+
timestampsFilterSchema as timestampsFilterSchema2
|
|
690
|
+
} from "@deliverart/sdk-js-global-types";
|
|
691
|
+
import { z as z21 } from "zod";
|
|
692
|
+
var getIntegrationCancellationRequestsQuerySchema = z21.object({
|
|
693
|
+
"order[createdAt]": sortDirSchema2.optional(),
|
|
694
|
+
"order[updatedAt]": sortDirSchema2.optional(),
|
|
695
|
+
status: integrationCancellationRequestStatusSchema.optional(),
|
|
696
|
+
"status[]": z21.array(integrationCancellationRequestStatusSchema).optional(),
|
|
697
|
+
page: z21.coerce.number().optional()
|
|
698
|
+
}).merge(timestampsFilterSchema2);
|
|
699
|
+
var getIntegrationCancellationRequestsResponseSchema = createPaginatedSchema2(
|
|
700
|
+
integrationCancellationRequestSchema
|
|
701
|
+
);
|
|
702
|
+
var getIntegrationCancellationRequestsInputSchema = z21.undefined();
|
|
703
|
+
var GetIntegrationCancellationRequests = class extends AbstractApiRequest14 {
|
|
704
|
+
method = "GET";
|
|
705
|
+
contentType = "application/json";
|
|
706
|
+
accept = "application/json";
|
|
707
|
+
inputSchema = getIntegrationCancellationRequestsInputSchema;
|
|
708
|
+
outputSchema = getIntegrationCancellationRequestsResponseSchema;
|
|
709
|
+
querySchema = getIntegrationCancellationRequestsQuerySchema;
|
|
710
|
+
headersSchema = void 0;
|
|
711
|
+
constructor(options) {
|
|
712
|
+
super(void 0, options);
|
|
713
|
+
}
|
|
714
|
+
getPath() {
|
|
715
|
+
return "/integrations/cancellation_requests";
|
|
716
|
+
}
|
|
717
|
+
parseResponse(data, rawResponse) {
|
|
718
|
+
const integrations = z21.array(integrationCancellationRequestSchema).parse(data);
|
|
719
|
+
return this.validateOutput({
|
|
720
|
+
data: integrations,
|
|
721
|
+
pagination: responseToPagination2(rawResponse)
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
// src/requests/DeleteIntegration.ts
|
|
727
|
+
import { AbstractApiRequest as AbstractApiRequest15 } from "@deliverart/sdk-js-core";
|
|
728
|
+
import { z as z22 } from "zod";
|
|
729
|
+
var deleteIntegrationInputSchema = z22.undefined();
|
|
730
|
+
var deleteIntegrationResponseSchema = z22.undefined();
|
|
731
|
+
var DeleteIntegration = class extends AbstractApiRequest15 {
|
|
732
|
+
method = "DELETE";
|
|
733
|
+
contentType = "application/json";
|
|
734
|
+
accept = "application/json";
|
|
735
|
+
inputSchema = deleteIntegrationInputSchema;
|
|
736
|
+
outputSchema = deleteIntegrationResponseSchema;
|
|
737
|
+
querySchema = void 0;
|
|
738
|
+
headersSchema = void 0;
|
|
739
|
+
integrationId;
|
|
740
|
+
constructor(integrationId) {
|
|
741
|
+
super();
|
|
742
|
+
this.integrationId = integrationId;
|
|
743
|
+
}
|
|
744
|
+
getPath() {
|
|
745
|
+
return `/integrations/${this.integrationId}`;
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
// src/requests/GetIntegrationDetails.ts
|
|
750
|
+
import { AbstractApiRequest as AbstractApiRequest16 } from "@deliverart/sdk-js-core";
|
|
751
|
+
import { z as z29 } from "zod";
|
|
752
|
+
|
|
753
|
+
// src/integration-schemas.ts
|
|
754
|
+
import { z as z28 } from "zod";
|
|
755
|
+
|
|
756
|
+
// src/service-schemas/cassa_in_cloud.ts
|
|
757
|
+
import {
|
|
758
|
+
datetimeSchema as datetimeSchema4,
|
|
759
|
+
sortDirSchema as sortDirSchema4,
|
|
760
|
+
timestampsFilterSchema as timestampsFilterSchema3
|
|
761
|
+
} from "@deliverart/sdk-js-global-types";
|
|
762
|
+
import { z as z24 } from "zod";
|
|
763
|
+
|
|
764
|
+
// src/schemas.ts
|
|
765
|
+
import { datetimeSchema as datetimeSchema3, sortDirSchema as sortDirSchema3 } from "@deliverart/sdk-js-global-types";
|
|
766
|
+
import { pointOfSalePathSchema as pointOfSalePathSchema3 } from "@deliverart/sdk-js-point-of-sale";
|
|
767
|
+
import { salesModeNullablePathSchema } from "@deliverart/sdk-js-sales-mode";
|
|
768
|
+
import { z as z23 } from "zod";
|
|
769
|
+
var menuVersionSchema = z23.object({
|
|
770
|
+
id: z23.string(),
|
|
771
|
+
contentUrl: z23.string(),
|
|
772
|
+
filePath: z23.string(),
|
|
773
|
+
createdAt: datetimeSchema3,
|
|
774
|
+
updatedAt: datetimeSchema3
|
|
775
|
+
});
|
|
776
|
+
var menuVersionDetailsSchema = menuVersionSchema.extend({
|
|
777
|
+
integration: integrationPathSchema
|
|
778
|
+
});
|
|
779
|
+
var integrationBaseSchema = z23.object({
|
|
780
|
+
id: z23.string(),
|
|
781
|
+
cancellationRequest: integrationCancellationRequestNullablePathSchema,
|
|
782
|
+
connectionId: z23.string().nullable(),
|
|
783
|
+
service: integrationServiceSchema,
|
|
784
|
+
status: integrationStatusSchema,
|
|
785
|
+
provider: integrationProviderSchema,
|
|
786
|
+
createdAt: datetimeSchema3,
|
|
787
|
+
updatedAt: datetimeSchema3
|
|
788
|
+
});
|
|
789
|
+
var writableIntegrationSchema = integrationBaseSchema.pick({
|
|
790
|
+
status: true,
|
|
791
|
+
// Only for ADMIN users
|
|
792
|
+
provider: true
|
|
793
|
+
});
|
|
794
|
+
var integrationDetailsFieldsSchema = z23.object({
|
|
795
|
+
pointOfSale: pointOfSalePathSchema3
|
|
796
|
+
});
|
|
797
|
+
var integrationDeliveryProviderCommonSchema = z23.object({
|
|
798
|
+
name: z23.string(),
|
|
799
|
+
skipInvalidItem: z23.boolean(),
|
|
800
|
+
skipNegativePrices: z23.boolean(),
|
|
801
|
+
importTaggedItems: z23.boolean(),
|
|
802
|
+
tagsForImport: z23.array(z23.string()).optional(),
|
|
803
|
+
isValidMenu: z23.boolean(),
|
|
804
|
+
latestMenuSyncAt: datetimeSchema3,
|
|
805
|
+
latestMenuCheckAt: datetimeSchema3,
|
|
806
|
+
currentMenuVersion: menuVersionSchema.nullable(),
|
|
807
|
+
salesMode: salesModeNullablePathSchema
|
|
808
|
+
});
|
|
809
|
+
var integrationClientLogRequestSchema = z23.object({
|
|
810
|
+
id: z23.string(),
|
|
811
|
+
url: z23.string(),
|
|
812
|
+
method: integrationClientLogRequestMethodSchema,
|
|
813
|
+
statusCode: z23.number(),
|
|
814
|
+
createdAt: datetimeSchema3
|
|
815
|
+
});
|
|
816
|
+
var integrationClientLogRequestDetailsSchema = integrationClientLogRequestSchema.extend({
|
|
817
|
+
integration: integrationPathSchema,
|
|
818
|
+
requestHeaders: z23.record(z23.string()),
|
|
819
|
+
responseHeaders: z23.record(z23.string()),
|
|
820
|
+
requestBody: z23.string(),
|
|
821
|
+
responseBody: z23.string()
|
|
822
|
+
});
|
|
823
|
+
var clientLogRequestQuerySchema = z23.object({
|
|
824
|
+
"order[createdAt]": sortDirSchema3.optional(),
|
|
825
|
+
method: integrationClientLogRequestMethodSchema.optional(),
|
|
826
|
+
"method[]": z23.array(integrationClientLogRequestMethodSchema).optional(),
|
|
827
|
+
"statusCode[between]": z23.number().optional(),
|
|
828
|
+
"statusCode[gt]": z23.number().optional(),
|
|
829
|
+
"statusCode[gte]": z23.number().optional(),
|
|
830
|
+
"statusCode[lt]": z23.number().optional(),
|
|
831
|
+
"statusCode[lte]": z23.number().optional(),
|
|
832
|
+
"createdAt[before]": z23.string().optional(),
|
|
833
|
+
"createdAt[strictly_before]": z23.string().optional(),
|
|
834
|
+
"createdAt[after]": z23.string().optional(),
|
|
835
|
+
"createdAt[strictly_after]": z23.string().optional(),
|
|
836
|
+
page: z23.coerce.number().optional()
|
|
837
|
+
});
|
|
838
|
+
|
|
839
|
+
// src/service-schemas/cassa_in_cloud.ts
|
|
840
|
+
var integrationCassaInCloudSchema = integrationBaseSchema.omit({ service: true }).extend({
|
|
841
|
+
finalized: z24.boolean(),
|
|
842
|
+
apiKey: z24.string(),
|
|
843
|
+
service: integrationServiceSchema.extract(["cassa_in_cloud"]),
|
|
844
|
+
idSalesPoint: z24.number().nonnegative(),
|
|
845
|
+
direction: integrationCassaInCloudDirectionSchema,
|
|
846
|
+
locale: z24.string(),
|
|
847
|
+
latestMenuSyncAt: datetimeSchema4.nullable(),
|
|
848
|
+
defaultCustomerId: z24.string().nullable(),
|
|
849
|
+
skipSyncProductDescription: z24.boolean(),
|
|
850
|
+
productChannels: integrationCassaInCloudProductChannelSchema.array()
|
|
851
|
+
});
|
|
852
|
+
var integrationCassaInCloudDetailsSchema = integrationCassaInCloudSchema.extend(
|
|
853
|
+
integrationDetailsFieldsSchema.shape
|
|
854
|
+
);
|
|
855
|
+
var integrationsCassaInCloudQuerySchema = z24.object({
|
|
856
|
+
"order[createdAt]": sortDirSchema4.optional(),
|
|
857
|
+
"order[updatedAt]": sortDirSchema4.optional(),
|
|
858
|
+
"order[latestMenuSyncAt]": sortDirSchema4.optional(),
|
|
859
|
+
apiKey: z24.string().optional(),
|
|
860
|
+
"apiKey[]": z24.array(z24.string()).optional(),
|
|
861
|
+
idSalesPoint: z24.string().optional(),
|
|
862
|
+
"idSalesPoint[]": z24.array(z24.string()).optional(),
|
|
863
|
+
direction: integrationCassaInCloudDirectionSchema.optional(),
|
|
864
|
+
"direction[]": z24.array(integrationCassaInCloudDirectionSchema).optional(),
|
|
865
|
+
status: integrationStatusSchema.optional(),
|
|
866
|
+
"status[]": z24.array(integrationStatusSchema).optional(),
|
|
867
|
+
connectionId: z24.string().optional(),
|
|
868
|
+
"connectionId[]": z24.array(z24.string()).optional(),
|
|
869
|
+
finalized: z24.coerce.boolean().optional(),
|
|
870
|
+
skipInvalidItem: z24.coerce.boolean().optional(),
|
|
871
|
+
isValidMenu: z24.coerce.boolean().optional(),
|
|
872
|
+
"latestMenuSyncAt[before]": z24.string().optional(),
|
|
873
|
+
"latestMenuSyncAt[strictly_before]": z24.string().optional(),
|
|
874
|
+
"latestMenuSyncAt[after]": z24.string().optional(),
|
|
875
|
+
"latestMenuSyncAt[strictly_after]": z24.string().optional(),
|
|
876
|
+
service: integrationServiceSchema.extract(["cassa_in_cloud"]).optional(),
|
|
877
|
+
page: z24.coerce.number().optional()
|
|
878
|
+
}).merge(timestampsFilterSchema3);
|
|
879
|
+
var integrationCassaInCloudEditableFieldsSchema = integrationCassaInCloudSchema.pick({
|
|
880
|
+
apiKey: true,
|
|
881
|
+
idSalesPoint: true,
|
|
882
|
+
direction: true,
|
|
883
|
+
skipSyncProductDescription: true,
|
|
884
|
+
productChannels: true,
|
|
885
|
+
locale: true,
|
|
886
|
+
provider: true
|
|
887
|
+
// Available for only ADMIN users
|
|
888
|
+
}).partial();
|
|
889
|
+
var integrationCassaInCloudSyncMenuProcessSchema = z24.object({
|
|
890
|
+
id: z24.string(),
|
|
891
|
+
currentPlaces: z24.any(),
|
|
892
|
+
availableSalesModesIds: z24.array(z24.string()),
|
|
893
|
+
availableProductIds: z24.array(z24.string()),
|
|
894
|
+
availableCategoryIds: z24.array(z24.string()),
|
|
895
|
+
createdAt: datetimeSchema4,
|
|
896
|
+
endAt: datetimeSchema4.nullable()
|
|
897
|
+
});
|
|
898
|
+
var integrationCassaInCloudSyncMenuProcessDetailsSchema = integrationCassaInCloudSyncMenuProcessSchema.extend({
|
|
899
|
+
integration: integrationCassaInCloudPathSchema,
|
|
900
|
+
errors: z24.array(integrationCassaInCloudSyncMenuErrorLogPathSchema).optional()
|
|
901
|
+
});
|
|
902
|
+
var integrationCassaInCloudSyncMenuProcessesQuerySchema = z24.object({
|
|
903
|
+
"order[createdAt]": sortDirSchema4.optional(),
|
|
904
|
+
"order[endAt]": sortDirSchema4.optional(),
|
|
905
|
+
"createdAt[before]": z24.string().optional(),
|
|
906
|
+
"createdAt[strictly_before]": z24.string().optional(),
|
|
907
|
+
"createdAt[after]": z24.string().optional(),
|
|
908
|
+
"createdAt[strictly_after]": z24.string().optional(),
|
|
909
|
+
"endAt[before]": z24.string().optional(),
|
|
910
|
+
"endAt[strictly_before]": z24.string().optional(),
|
|
911
|
+
"endAt[after]": z24.string().optional(),
|
|
912
|
+
"endAt[strictly_after]": z24.string().optional(),
|
|
913
|
+
page: z24.coerce.number().optional()
|
|
914
|
+
});
|
|
915
|
+
var integrationCassaInCloudWebHookEventSchema = z24.object({
|
|
916
|
+
id: z24.string(),
|
|
917
|
+
entity: integrationCassaInCloudWebHookEventEntitySchema,
|
|
918
|
+
event: integrationCassaInCloudWebHookEventEventSchema,
|
|
919
|
+
body: z24.any(),
|
|
920
|
+
createdAt: datetimeSchema4
|
|
921
|
+
});
|
|
922
|
+
var integrationCassaInCloudWebHookEventDetailsSchema = integrationCassaInCloudWebHookEventSchema.extend({
|
|
923
|
+
integration: integrationCassaInCloudPathSchema
|
|
924
|
+
});
|
|
925
|
+
var integrationCassaInCloudWebHookEventsQuerySchema = z24.object({
|
|
926
|
+
"order[createdAt]": sortDirSchema4.optional(),
|
|
927
|
+
entity: integrationCassaInCloudWebHookEventEntitySchema.optional(),
|
|
928
|
+
"entity[]": z24.array(integrationCassaInCloudWebHookEventEntitySchema).optional(),
|
|
929
|
+
event: integrationCassaInCloudWebHookEventEventSchema.optional(),
|
|
930
|
+
"event[]": z24.array(integrationCassaInCloudWebHookEventEventSchema).optional(),
|
|
931
|
+
"createdAt[before]": z24.string().optional(),
|
|
932
|
+
"createdAt[strictly_before]": z24.string().optional(),
|
|
933
|
+
"createdAt[after]": z24.string().optional(),
|
|
934
|
+
"createdAt[strictly_after]": z24.string().optional(),
|
|
935
|
+
page: z24.coerce.number().optional()
|
|
936
|
+
});
|
|
937
|
+
|
|
938
|
+
// src/service-schemas/deliveroo.ts
|
|
939
|
+
import {
|
|
940
|
+
datetimeSchema as datetimeSchema5,
|
|
941
|
+
sortDirSchema as sortDirSchema5,
|
|
942
|
+
timestampsFilterSchema as timestampsFilterSchema4
|
|
943
|
+
} from "@deliverart/sdk-js-global-types";
|
|
944
|
+
import { z as z25 } from "zod";
|
|
945
|
+
var integrationDeliverooSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
946
|
+
brandId: z25.string(),
|
|
947
|
+
siteId: z25.string(),
|
|
948
|
+
imageMenuUrl: z25.string().url().nullable(),
|
|
949
|
+
latestOpeningHoursSyncAt: datetimeSchema5.nullable(),
|
|
950
|
+
service: integrationServiceSchema.extract(["deliveroo"]),
|
|
951
|
+
acceptanceTimeout: z25.number().min(0).max(8),
|
|
952
|
+
nextSyncMenuScheduledAt: datetimeSchema5.nullable()
|
|
953
|
+
});
|
|
954
|
+
var integrationDeliverooDetailsSchema = integrationDeliverooSchema.extend(
|
|
955
|
+
integrationDetailsFieldsSchema.shape
|
|
956
|
+
);
|
|
957
|
+
var integrationDeliverooEditableFieldsSchema = integrationDeliverooSchema.pick({
|
|
958
|
+
name: true,
|
|
959
|
+
brandId: true,
|
|
960
|
+
siteId: true,
|
|
961
|
+
imageMenuUrl: true,
|
|
962
|
+
acceptanceTimeout: true,
|
|
963
|
+
skipNegativePrices: true,
|
|
964
|
+
skipInvalidItem: true,
|
|
965
|
+
salesMode: true,
|
|
966
|
+
importTaggedItems: true,
|
|
967
|
+
tagsForImport: true,
|
|
968
|
+
provider: true
|
|
969
|
+
// Available for only ADMIN users
|
|
970
|
+
});
|
|
971
|
+
var integrationsDeliverooQuerySchema = z25.object({
|
|
972
|
+
"order[createdAt]": sortDirSchema5.optional(),
|
|
973
|
+
"order[updatedAt]": sortDirSchema5.optional(),
|
|
974
|
+
"order[latestMenuCheckAt]": sortDirSchema5.optional(),
|
|
975
|
+
"order[latestMenuSyncAt]": sortDirSchema5.optional(),
|
|
976
|
+
"order[latestOpeningHoursSyncAt]": sortDirSchema5.optional(),
|
|
977
|
+
name: z25.string().optional(),
|
|
978
|
+
brandId: z25.string().optional(),
|
|
979
|
+
"brandId[]": z25.array(z25.string()).optional(),
|
|
980
|
+
siteId: z25.string().optional(),
|
|
981
|
+
"siteId[]": z25.array(z25.string()).optional(),
|
|
982
|
+
status: integrationStatusSchema.optional(),
|
|
983
|
+
"status[]": z25.array(integrationStatusSchema).optional(),
|
|
984
|
+
connectionId: z25.string().optional(),
|
|
985
|
+
"connectionId[]": z25.array(z25.string()).optional(),
|
|
986
|
+
skipInvalidItem: z25.coerce.boolean().optional(),
|
|
987
|
+
isValidMenu: z25.coerce.boolean().optional(),
|
|
988
|
+
"latestMenuCheckAt[before]": z25.string().optional(),
|
|
989
|
+
"latestMenuCheckAt[strictly_before]": z25.string().optional(),
|
|
990
|
+
"latestMenuCheckAt[after]": z25.string().optional(),
|
|
991
|
+
"latestMenuCheckAt[strictly_after]": z25.string().optional(),
|
|
992
|
+
"latestMenuSyncAt[before]": z25.string().optional(),
|
|
993
|
+
"latestMenuSyncAt[strictly_before]": z25.string().optional(),
|
|
994
|
+
"latestMenuSyncAt[after]": z25.string().optional(),
|
|
995
|
+
"latestMenuSyncAt[strictly_after]": z25.string().optional(),
|
|
996
|
+
"latestOpeningHoursSyncAt[before]": z25.string().optional(),
|
|
997
|
+
"latestOpeningHoursSyncAt[strictly_before]": z25.string().optional(),
|
|
998
|
+
"latestOpeningHoursSyncAt[after]": z25.string().optional(),
|
|
999
|
+
"latestOpeningHoursSyncAt[strictly_after]": z25.string().optional(),
|
|
1000
|
+
service: integrationServiceSchema.extract(["deliveroo"]).optional(),
|
|
1001
|
+
page: z25.coerce.number().optional()
|
|
1002
|
+
}).merge(timestampsFilterSchema4);
|
|
1003
|
+
var integrationDeliverooSyncMenuProcessSchema = z25.object({
|
|
1004
|
+
id: z25.string(),
|
|
1005
|
+
mode: integrationDeliverooSyncMenuProcessModeSchema,
|
|
1006
|
+
success: z25.boolean().nullable(),
|
|
1007
|
+
response: z25.string().nullable(),
|
|
1008
|
+
createdAt: datetimeSchema5,
|
|
1009
|
+
endAt: datetimeSchema5.nullable()
|
|
1010
|
+
});
|
|
1011
|
+
var integrationDeliverooSyncMenuProcessDetailsSchema = integrationDeliverooSyncMenuProcessSchema.extend({
|
|
1012
|
+
integration: integrationDeliverooPathSchema
|
|
1013
|
+
});
|
|
1014
|
+
var integrationDeliverooSyncMenuProcessesQuerySchema = z25.object({
|
|
1015
|
+
"order[endAt]": sortDirSchema5.optional(),
|
|
1016
|
+
mode: integrationDeliverooSyncMenuProcessModeSchema.optional(),
|
|
1017
|
+
"mode[]": z25.array(integrationDeliverooSyncMenuProcessModeSchema).optional(),
|
|
1018
|
+
"createdAt[before]": z25.string().optional(),
|
|
1019
|
+
"createdAt[strictly_before]": z25.string().optional(),
|
|
1020
|
+
"createdAt[after]": z25.string().optional(),
|
|
1021
|
+
"createdAt[strictly_after]": z25.string().optional(),
|
|
1022
|
+
"endAt[before]": z25.string().optional(),
|
|
1023
|
+
"endAt[strictly_before]": z25.string().optional(),
|
|
1024
|
+
"endAt[after]": z25.string().optional(),
|
|
1025
|
+
"endAt[strictly_after]": z25.string().optional(),
|
|
1026
|
+
page: z25.coerce.number().optional()
|
|
1027
|
+
});
|
|
1028
|
+
var integrationDeliverooWebhookEventSchema = z25.object({
|
|
1029
|
+
id: z25.string(),
|
|
1030
|
+
event: integrationDeliverooWebhookEventTypeSchema,
|
|
1031
|
+
body: z25.any(),
|
|
1032
|
+
createdAt: datetimeSchema5
|
|
1033
|
+
});
|
|
1034
|
+
var integrationDeliverooWebhookEventDetailsSchema = integrationDeliverooWebhookEventSchema.extend({
|
|
1035
|
+
integration: integrationDeliverooPathSchema
|
|
1036
|
+
});
|
|
1037
|
+
var integrationDeliverooWebhookEventsQueryParamsSchema = z25.object({
|
|
1038
|
+
"order[createdAt]": sortDirSchema5.optional(),
|
|
1039
|
+
event: integrationDeliverooWebhookEventTypeSchema.optional(),
|
|
1040
|
+
"event[]": z25.array(integrationDeliverooWebhookEventTypeSchema).optional(),
|
|
1041
|
+
"createdAt[before]": z25.string().optional(),
|
|
1042
|
+
"createdAt[strictly_before]": z25.string().optional(),
|
|
1043
|
+
"createdAt[after]": z25.string().optional(),
|
|
1044
|
+
"createdAt[strictly_after]": z25.string().optional(),
|
|
1045
|
+
page: z25.coerce.number().optional()
|
|
1046
|
+
});
|
|
1047
|
+
|
|
1048
|
+
// src/service-schemas/glovo.ts
|
|
1049
|
+
import {
|
|
1050
|
+
datetimeSchema as datetimeSchema6,
|
|
1051
|
+
sortDirSchema as sortDirSchema6,
|
|
1052
|
+
timestampsFilterSchema as timestampsFilterSchema5
|
|
1053
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1054
|
+
import { z as z26 } from "zod";
|
|
1055
|
+
var integrationGlovoSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
1056
|
+
storeId: z26.string(),
|
|
1057
|
+
locale: z26.string(),
|
|
1058
|
+
pendingMenuChanges: z26.boolean(),
|
|
1059
|
+
service: integrationServiceSchema.extract(["glovo"])
|
|
1060
|
+
});
|
|
1061
|
+
var integrationGlovoDetailsSchema = integrationGlovoSchema.extend(
|
|
1062
|
+
integrationDetailsFieldsSchema.shape
|
|
1063
|
+
);
|
|
1064
|
+
var integrationGlovoEditableFieldsSchema = integrationGlovoSchema.pick({
|
|
1065
|
+
name: true,
|
|
1066
|
+
storeId: true,
|
|
1067
|
+
locale: true,
|
|
1068
|
+
skipNegativePrices: true,
|
|
1069
|
+
skipInvalidItem: true,
|
|
1070
|
+
salesMode: true,
|
|
1071
|
+
importTaggedItems: true,
|
|
1072
|
+
tagsForImport: true,
|
|
1073
|
+
provider: true
|
|
1074
|
+
}).partial();
|
|
1075
|
+
var integrationsGlovoQuerySchema = z26.object({
|
|
1076
|
+
"order[createdAt]": sortDirSchema6.optional(),
|
|
1077
|
+
"order[updatedAt]": sortDirSchema6.optional(),
|
|
1078
|
+
"order[latestMenuCheckAt]": sortDirSchema6.optional(),
|
|
1079
|
+
"order[latestMenuSyncAt]": sortDirSchema6.optional(),
|
|
1080
|
+
name: z26.string().optional(),
|
|
1081
|
+
storeId: z26.string().optional(),
|
|
1082
|
+
"storeId[]": z26.array(z26.string()).optional(),
|
|
1083
|
+
status: integrationStatusSchema.optional(),
|
|
1084
|
+
"status[]": z26.array(integrationStatusSchema).optional(),
|
|
1085
|
+
connectionId: z26.string().optional(),
|
|
1086
|
+
"connectionId[]": z26.array(z26.string()).optional(),
|
|
1087
|
+
skipInvalidItem: z26.coerce.boolean().optional(),
|
|
1088
|
+
isValidMenu: z26.coerce.boolean().optional(),
|
|
1089
|
+
"latestMenuCheckAt[before]": z26.string().optional(),
|
|
1090
|
+
"latestMenuCheckAt[strictly_before]": z26.string().optional(),
|
|
1091
|
+
"latestMenuCheckAt[after]": z26.string().optional(),
|
|
1092
|
+
"latestMenuCheckAt[strictly_after]": z26.string().optional(),
|
|
1093
|
+
"latestMenuSyncAt[before]": z26.string().optional(),
|
|
1094
|
+
"latestMenuSyncAt[strictly_before]": z26.string().optional(),
|
|
1095
|
+
"latestMenuSyncAt[after]": z26.string().optional(),
|
|
1096
|
+
"latestMenuSyncAt[strictly_after]": z26.string().optional(),
|
|
1097
|
+
service: integrationServiceSchema.extract(["glovo"]).optional(),
|
|
1098
|
+
page: z26.coerce.number().optional()
|
|
1099
|
+
}).merge(timestampsFilterSchema5);
|
|
1100
|
+
var integrationGlovoWebhookEventSchema = z26.object({
|
|
1101
|
+
id: z26.string(),
|
|
1102
|
+
event: integrationGlovoWebhookEventTypeSchema,
|
|
1103
|
+
body: z26.any(),
|
|
1104
|
+
createdAt: datetimeSchema6
|
|
1105
|
+
});
|
|
1106
|
+
var integrationGlovoWebhookEventDetailsSchema = integrationGlovoWebhookEventSchema.extend({
|
|
1107
|
+
integration: integrationGlovoPathSchema
|
|
1108
|
+
});
|
|
1109
|
+
var integrationGlovoWebhookEventsQueryParamsSchema = z26.object({
|
|
1110
|
+
"order[createdAt]": sortDirSchema6.optional(),
|
|
1111
|
+
event: integrationGlovoWebhookEventTypeSchema.optional(),
|
|
1112
|
+
"event[]": z26.array(integrationGlovoWebhookEventTypeSchema).optional(),
|
|
1113
|
+
"createdAt[before]": z26.string().optional(),
|
|
1114
|
+
"createdAt[strictly_before]": z26.string().optional(),
|
|
1115
|
+
"createdAt[after]": z26.string().optional(),
|
|
1116
|
+
"createdAt[strictly_after]": z26.string().optional(),
|
|
1117
|
+
page: z26.coerce.number().optional()
|
|
1118
|
+
});
|
|
1119
|
+
var integrationGlovoMenuUpdateSchema = z26.object({
|
|
1120
|
+
id: z26.string(),
|
|
1121
|
+
transactionId: z26.string().nullable(),
|
|
1122
|
+
status: integrationGlovoMenuUpdateStatusSchema.nullable(),
|
|
1123
|
+
retryCompleted: z26.boolean(),
|
|
1124
|
+
createdAt: datetimeSchema6,
|
|
1125
|
+
responseAt: datetimeSchema6.nullable(),
|
|
1126
|
+
latestCheckAt: datetimeSchema6.nullable()
|
|
1127
|
+
});
|
|
1128
|
+
var integrationGlovoMenuUpdateDetailsSchema = integrationGlovoMenuUpdateSchema.extend({
|
|
1129
|
+
integration: integrationDeliverooPathSchema,
|
|
1130
|
+
details: z26.any().nullable()
|
|
1131
|
+
});
|
|
1132
|
+
var integrationGlovoMenuUpdatesQuerySchema = z26.object({
|
|
1133
|
+
"order[createdAt]": sortDirSchema6.optional(),
|
|
1134
|
+
"order[responseAt]": sortDirSchema6.optional(),
|
|
1135
|
+
"order[latestCheckAt]": sortDirSchema6.optional(),
|
|
1136
|
+
retryCompleted: z26.coerce.boolean().optional(),
|
|
1137
|
+
transactionId: z26.string().optional(),
|
|
1138
|
+
"transactionId[]": z26.array(z26.string()).optional(),
|
|
1139
|
+
status: integrationGlovoMenuUpdateStatusSchema.optional(),
|
|
1140
|
+
"status[]": z26.array(integrationGlovoMenuUpdateStatusSchema).optional(),
|
|
1141
|
+
"createdAt[before]": z26.string().optional(),
|
|
1142
|
+
"createdAt[strictly_before]": z26.string().optional(),
|
|
1143
|
+
"createdAt[after]": z26.string().optional(),
|
|
1144
|
+
"createdAt[strictly_after]": z26.string().optional(),
|
|
1145
|
+
"responseAt[before]": z26.string().optional(),
|
|
1146
|
+
"responseAt[strictly_before]": z26.string().optional(),
|
|
1147
|
+
"responseAt[after]": z26.string().optional(),
|
|
1148
|
+
"responseAt[strictly_after]": z26.string().optional(),
|
|
1149
|
+
"latestCheckAt[before]": z26.string().optional(),
|
|
1150
|
+
"latestCheckAt[strictly_before]": z26.string().optional(),
|
|
1151
|
+
"latestCheckAt[after]": z26.string().optional(),
|
|
1152
|
+
"latestCheckAt[strictly_after]": z26.string().optional(),
|
|
1153
|
+
page: z26.coerce.number().optional()
|
|
1154
|
+
});
|
|
1155
|
+
|
|
1156
|
+
// src/service-schemas/justeat.ts
|
|
1157
|
+
import {
|
|
1158
|
+
datetimeSchema as datetimeSchema7,
|
|
1159
|
+
sortDirSchema as sortDirSchema7,
|
|
1160
|
+
timestampsFilterSchema as timestampsFilterSchema6
|
|
1161
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1162
|
+
import { z as z27 } from "zod";
|
|
1163
|
+
var integrationJustEatSchema = integrationBaseSchema.omit({ service: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
1164
|
+
syncType: integrationJustEatSyncTypeSchema,
|
|
1165
|
+
defaultLanguage: z27.string(),
|
|
1166
|
+
restaurantId: z27.string(),
|
|
1167
|
+
latestOpeningTimesSyncAt: datetimeSchema7,
|
|
1168
|
+
service: integrationServiceSchema.extract(["justeat"]),
|
|
1169
|
+
autoAcceptOrders: z27.boolean(),
|
|
1170
|
+
nextSyncMenuScheduledAt: datetimeSchema7.nullable()
|
|
1171
|
+
});
|
|
1172
|
+
var integrationJustEatDetailsSchema = integrationJustEatSchema.extend(
|
|
1173
|
+
integrationDetailsFieldsSchema.shape
|
|
1174
|
+
);
|
|
1175
|
+
var integrationJustEatEditableFieldsSchema = integrationJustEatSchema.pick({
|
|
1176
|
+
name: true,
|
|
1177
|
+
provider: true,
|
|
1178
|
+
syncType: true,
|
|
1179
|
+
defaultLanguage: true,
|
|
1180
|
+
restaurantId: true,
|
|
1181
|
+
skipNegativePrices: true,
|
|
1182
|
+
skipInvalidItem: true,
|
|
1183
|
+
autoAcceptOrders: true,
|
|
1184
|
+
importTaggedItems: true,
|
|
1185
|
+
tagsForImport: true
|
|
1186
|
+
}).partial();
|
|
1187
|
+
var integrationsJustEatQuerySchema = z27.object({
|
|
1188
|
+
"order[createdAt]": sortDirSchema7.optional(),
|
|
1189
|
+
"order[updatedAt]": sortDirSchema7.optional(),
|
|
1190
|
+
"order[latestMenuCheckAt]": sortDirSchema7.optional(),
|
|
1191
|
+
"order[latestMenuSyncAt]": sortDirSchema7.optional(),
|
|
1192
|
+
"order[latestOpeningTimesSyncAt]": sortDirSchema7.optional(),
|
|
1193
|
+
"order[nextSyncMenuScheduledAt]": sortDirSchema7.optional(),
|
|
1194
|
+
name: z27.string().optional(),
|
|
1195
|
+
restaurantId: z27.string().optional(),
|
|
1196
|
+
"restaurantId[]": z27.array(z27.string()).optional(),
|
|
1197
|
+
status: integrationStatusSchema.optional(),
|
|
1198
|
+
"status[]": z27.array(integrationStatusSchema).optional(),
|
|
1199
|
+
syncType: integrationJustEatPathSchema.optional(),
|
|
1200
|
+
"syncType[]": z27.array(integrationJustEatPathSchema).optional(),
|
|
1201
|
+
connectionId: z27.string().optional(),
|
|
1202
|
+
"connectionId[]": z27.array(z27.string()).optional(),
|
|
1203
|
+
skipInvalidItem: z27.coerce.boolean().optional(),
|
|
1204
|
+
isValidMenu: z27.coerce.boolean().optional(),
|
|
1205
|
+
"latestMenuCheckAt[before]": z27.string().optional(),
|
|
1206
|
+
"latestMenuCheckAt[strictly_before]": z27.string().optional(),
|
|
1207
|
+
"latestMenuCheckAt[after]": z27.string().optional(),
|
|
1208
|
+
"latestMenuCheckAt[strictly_after]": z27.string().optional(),
|
|
1209
|
+
"latestMenuSyncAt[before]": z27.string().optional(),
|
|
1210
|
+
"latestMenuSyncAt[strictly_before]": z27.string().optional(),
|
|
1211
|
+
"latestMenuSyncAt[after]": z27.string().optional(),
|
|
1212
|
+
"latestMenuSyncAt[strictly_after]": z27.string().optional(),
|
|
1213
|
+
"latestOpeningTimesSyncAt[before]": z27.string().optional(),
|
|
1214
|
+
"latestOpeningTimesSyncAt[strictly_before]": z27.string().optional(),
|
|
1215
|
+
"latestOpeningTimesSyncAt[after]": z27.string().optional(),
|
|
1216
|
+
"latestOpeningTimesSyncAt[strictly_after]": z27.string().optional(),
|
|
1217
|
+
"nextSyncMenuScheduledAt[before]": z27.string().optional(),
|
|
1218
|
+
"nextSyncMenuScheduledAt[strictly_before]": z27.string().optional(),
|
|
1219
|
+
"nextSyncMenuScheduledAt[after]": z27.string().optional(),
|
|
1220
|
+
"nextSyncMenuScheduledAt[strictly_after]": z27.string().optional(),
|
|
1221
|
+
service: integrationServiceSchema.extract(["justeat"]).optional(),
|
|
1222
|
+
page: z27.coerce.number().optional()
|
|
1223
|
+
}).merge(timestampsFilterSchema6);
|
|
1224
|
+
var integrationJustEatSyncMenuProcessSchema = z27.object({
|
|
1225
|
+
id: z27.string(),
|
|
1226
|
+
ingestionSucceeded: z27.boolean().nullable(),
|
|
1227
|
+
error: z27.any().nullable(),
|
|
1228
|
+
createdAt: datetimeSchema7
|
|
1229
|
+
});
|
|
1230
|
+
var integrationJustEatSyncMenuProcessDetailsSchema = integrationJustEatSyncMenuProcessSchema.extend({
|
|
1231
|
+
integration: integrationJustEatPathSchema
|
|
1232
|
+
});
|
|
1233
|
+
var integrationJustEatSyncMenuProcessesQuerySchema = z27.object({
|
|
1234
|
+
"order[createdAt]": sortDirSchema7.optional(),
|
|
1235
|
+
page: z27.coerce.number().optional()
|
|
1236
|
+
});
|
|
1237
|
+
|
|
1238
|
+
// src/integration-schemas.ts
|
|
1239
|
+
var integrationSchema = z28.discriminatedUnion("service", [
|
|
1240
|
+
integrationJustEatSchema,
|
|
1241
|
+
integrationDeliverooSchema,
|
|
1242
|
+
integrationGlovoSchema,
|
|
1243
|
+
integrationCassaInCloudSchema
|
|
1244
|
+
]);
|
|
1245
|
+
var integrationDetailsSchema = z28.discriminatedUnion("service", [
|
|
1246
|
+
integrationJustEatDetailsSchema,
|
|
1247
|
+
integrationDeliverooDetailsSchema,
|
|
1248
|
+
integrationGlovoDetailsSchema,
|
|
1249
|
+
integrationCassaInCloudDetailsSchema
|
|
1250
|
+
]);
|
|
1251
|
+
|
|
1252
|
+
// src/requests/GetIntegrationDetails.ts
|
|
1253
|
+
var getIntegrationDetailsInputSchema = z29.undefined();
|
|
1254
|
+
var getIntegrationDetailsResponseSchema = integrationDetailsSchema;
|
|
1255
|
+
var GetIntegrationDetails = class extends AbstractApiRequest16 {
|
|
1256
|
+
method = "GET";
|
|
1257
|
+
contentType = "application/json";
|
|
1258
|
+
accept = "application/json";
|
|
1259
|
+
inputSchema = getIntegrationDetailsInputSchema;
|
|
1260
|
+
outputSchema = getIntegrationDetailsResponseSchema;
|
|
1261
|
+
querySchema = void 0;
|
|
1262
|
+
headersSchema = void 0;
|
|
1263
|
+
integrationId;
|
|
1264
|
+
constructor(integrationId) {
|
|
1265
|
+
super();
|
|
1266
|
+
this.integrationId = integrationId;
|
|
1267
|
+
}
|
|
1268
|
+
getPath() {
|
|
1269
|
+
return `/integrations/${this.integrationId}`;
|
|
1270
|
+
}
|
|
1271
|
+
};
|
|
1272
|
+
|
|
1273
|
+
// src/requests/GetIntegrations.ts
|
|
1274
|
+
import { AbstractApiRequest as AbstractApiRequest17 } from "@deliverart/sdk-js-core";
|
|
1275
|
+
import {
|
|
1276
|
+
createPaginatedSchema as createPaginatedSchema3,
|
|
1277
|
+
responseToPagination as responseToPagination3,
|
|
1278
|
+
sortDirSchema as sortDirSchema8,
|
|
1279
|
+
timestampsFilterSchema as timestampsFilterSchema7
|
|
1280
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1281
|
+
import { z as z30 } from "zod";
|
|
1282
|
+
var getIntegrationsQuerySchema = z30.object({
|
|
1283
|
+
status: integrationStatusSchema.optional(),
|
|
1284
|
+
"status[]": z30.array(integrationStatusSchema).optional(),
|
|
1285
|
+
connectionId: z30.string().optional(),
|
|
1286
|
+
"connectionId[]": z30.array(z30.string()).optional(),
|
|
1287
|
+
service: integrationServiceSchema.optional(),
|
|
1288
|
+
"order[createdAt]": sortDirSchema8.optional(),
|
|
1289
|
+
"order[updatedAt]": sortDirSchema8.optional(),
|
|
1290
|
+
page: z30.coerce.number().optional()
|
|
1291
|
+
}).merge(timestampsFilterSchema7);
|
|
1292
|
+
var getIntegrationsResponseSchema = createPaginatedSchema3(integrationSchema);
|
|
1293
|
+
var getIntegrationsInputSchema = z30.undefined();
|
|
1294
|
+
var GetIntegrations = class extends AbstractApiRequest17 {
|
|
1295
|
+
method = "GET";
|
|
1296
|
+
contentType = "application/json";
|
|
1297
|
+
accept = "application/json";
|
|
1298
|
+
inputSchema = getIntegrationsInputSchema;
|
|
1299
|
+
outputSchema = getIntegrationsResponseSchema;
|
|
1300
|
+
querySchema = getIntegrationsQuerySchema;
|
|
1301
|
+
headersSchema = void 0;
|
|
1302
|
+
constructor(options) {
|
|
1303
|
+
super(void 0, options);
|
|
1304
|
+
}
|
|
1305
|
+
getPath() {
|
|
1306
|
+
return "/integrations";
|
|
1307
|
+
}
|
|
1308
|
+
parseResponse(data, rawResponse) {
|
|
1309
|
+
const integrations = z30.array(integrationSchema).parse(data);
|
|
1310
|
+
return this.validateOutput({
|
|
1311
|
+
data: integrations,
|
|
1312
|
+
pagination: responseToPagination3(rawResponse)
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
// src/requests/services/cassa_in_cloud/CreateIntegrationCassaInCloud.ts
|
|
1318
|
+
import { AbstractApiRequest as AbstractApiRequest18 } from "@deliverart/sdk-js-core";
|
|
1319
|
+
import { pointOfSalePathSchema as pointOfSalePathSchema4 } from "@deliverart/sdk-js-point-of-sale";
|
|
1320
|
+
var createIntegrationCassaInCloudInputSchema = integrationCassaInCloudEditableFieldsSchema.extend({
|
|
1321
|
+
pointOfSale: pointOfSalePathSchema4
|
|
1322
|
+
});
|
|
1323
|
+
var createIntegrationCassaInCloudResponseSchema = integrationCassaInCloudDetailsSchema;
|
|
1324
|
+
var CreateIntegrationCassaInCloud = class extends AbstractApiRequest18 {
|
|
1325
|
+
method = "POST";
|
|
1326
|
+
contentType = "application/json";
|
|
1327
|
+
accept = "application/json";
|
|
1328
|
+
inputSchema = createIntegrationCassaInCloudInputSchema;
|
|
1329
|
+
outputSchema = createIntegrationCassaInCloudResponseSchema;
|
|
1330
|
+
querySchema = void 0;
|
|
1331
|
+
headersSchema = void 0;
|
|
1332
|
+
constructor(input) {
|
|
1333
|
+
super(input);
|
|
1334
|
+
}
|
|
1335
|
+
getPath() {
|
|
1336
|
+
return "/integrations/cassa_in_cloud";
|
|
1337
|
+
}
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
// src/requests/services/cassa_in_cloud/DeleteIntegrationCassaInCloud.ts
|
|
1341
|
+
import { AbstractApiRequest as AbstractApiRequest19 } from "@deliverart/sdk-js-core";
|
|
1342
|
+
import { z as z31 } from "zod";
|
|
1343
|
+
var deleteIntegrationCassaInCloudInputSchema = z31.undefined();
|
|
1344
|
+
var deleteIntegrationCassaInCloudResponseSchema = z31.undefined();
|
|
1345
|
+
var DeleteIntegrationCassaInCloud = class extends AbstractApiRequest19 {
|
|
1346
|
+
method = "DELETE";
|
|
1347
|
+
contentType = "application/json";
|
|
1348
|
+
accept = "application/json";
|
|
1349
|
+
inputSchema = deleteIntegrationCassaInCloudInputSchema;
|
|
1350
|
+
outputSchema = deleteIntegrationCassaInCloudResponseSchema;
|
|
1351
|
+
querySchema = void 0;
|
|
1352
|
+
headersSchema = void 0;
|
|
1353
|
+
integrationCassaInCloudId;
|
|
1354
|
+
constructor(integrationCassaInCloudId) {
|
|
1355
|
+
super();
|
|
1356
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1357
|
+
}
|
|
1358
|
+
getPath() {
|
|
1359
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}`;
|
|
1360
|
+
}
|
|
1361
|
+
};
|
|
1362
|
+
|
|
1363
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudClientLogRequestDetails.ts
|
|
1364
|
+
import { AbstractApiRequest as AbstractApiRequest20 } from "@deliverart/sdk-js-core";
|
|
1365
|
+
import { z as z32 } from "zod";
|
|
1366
|
+
var getIntegrationCassaInCloudClientLogRequestDetailsInputSchema = z32.undefined();
|
|
1367
|
+
var getIntegrationCassaInCloudClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
1368
|
+
var GetIntegrationCassaInCloudClientLogRequestDetails = class extends AbstractApiRequest20 {
|
|
1369
|
+
method = "GET";
|
|
1370
|
+
contentType = "application/json";
|
|
1371
|
+
accept = "application/json";
|
|
1372
|
+
inputSchema = getIntegrationCassaInCloudClientLogRequestDetailsInputSchema;
|
|
1373
|
+
outputSchema = getIntegrationCassaInCloudClientLogRequestDetailsResponseSchema;
|
|
1374
|
+
querySchema = void 0;
|
|
1375
|
+
headersSchema = void 0;
|
|
1376
|
+
integrationCassaInCloudId;
|
|
1377
|
+
requestId;
|
|
1378
|
+
constructor(integrationCassaInCloudId, requestId) {
|
|
1379
|
+
super();
|
|
1380
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1381
|
+
this.requestId = requestId;
|
|
1382
|
+
}
|
|
1383
|
+
getPath() {
|
|
1384
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/client_log_requests/${this.requestId}`;
|
|
1385
|
+
}
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudClientLogRequests.ts
|
|
1389
|
+
import { AbstractApiRequest as AbstractApiRequest21 } from "@deliverart/sdk-js-core";
|
|
1390
|
+
import {
|
|
1391
|
+
createPaginatedSchema as createPaginatedSchema4,
|
|
1392
|
+
responseToPagination as responseToPagination4
|
|
1393
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1394
|
+
import { z as z33 } from "zod";
|
|
1395
|
+
var getIntegrationCassaInCloudClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
1396
|
+
var getIntegrationCassaInCloudClientLogRequestsResponseSchema = createPaginatedSchema4(
|
|
1397
|
+
integrationClientLogRequestSchema
|
|
1398
|
+
);
|
|
1399
|
+
var getIntegrationCassaInCloudClientLogRequestsInputSchema = z33.undefined();
|
|
1400
|
+
var GetIntegrationCassaInCloudClientLogRequests = class extends AbstractApiRequest21 {
|
|
1401
|
+
method = "GET";
|
|
1402
|
+
contentType = "application/json";
|
|
1403
|
+
accept = "application/json";
|
|
1404
|
+
inputSchema = getIntegrationCassaInCloudClientLogRequestsInputSchema;
|
|
1405
|
+
outputSchema = getIntegrationCassaInCloudClientLogRequestsResponseSchema;
|
|
1406
|
+
querySchema = getIntegrationCassaInCloudClientLogRequestsQuerySchema;
|
|
1407
|
+
headersSchema = void 0;
|
|
1408
|
+
integrationCassaInCloudId;
|
|
1409
|
+
constructor(integrationCassaInCloudId, options) {
|
|
1410
|
+
super(void 0, options);
|
|
1411
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1412
|
+
}
|
|
1413
|
+
getPath() {
|
|
1414
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/client_log_requests`;
|
|
1415
|
+
}
|
|
1416
|
+
parseResponse(data, rawResponse) {
|
|
1417
|
+
const integrations = z33.array(integrationClientLogRequestSchema).parse(data);
|
|
1418
|
+
return this.validateOutput({
|
|
1419
|
+
data: integrations,
|
|
1420
|
+
pagination: responseToPagination4(rawResponse)
|
|
1421
|
+
});
|
|
1422
|
+
}
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudDetails.ts
|
|
1426
|
+
import { AbstractApiRequest as AbstractApiRequest22 } from "@deliverart/sdk-js-core";
|
|
1427
|
+
import { z as z34 } from "zod";
|
|
1428
|
+
var getIntegrationCassaInCloudDetailsInputSchema = z34.undefined();
|
|
1429
|
+
var getIntegrationCassaInCloudDetailsResponseSchema = integrationCassaInCloudDetailsSchema;
|
|
1430
|
+
var GetIntegrationCassaInCloudDetails = class extends AbstractApiRequest22 {
|
|
1431
|
+
method = "GET";
|
|
1432
|
+
contentType = "application/json";
|
|
1433
|
+
accept = "application/json";
|
|
1434
|
+
inputSchema = getIntegrationCassaInCloudDetailsInputSchema;
|
|
1435
|
+
outputSchema = getIntegrationCassaInCloudDetailsResponseSchema;
|
|
1436
|
+
querySchema = void 0;
|
|
1437
|
+
headersSchema = void 0;
|
|
1438
|
+
integrationCassaInCloudId;
|
|
1439
|
+
constructor(integrationCassaInCloudId) {
|
|
1440
|
+
super();
|
|
1441
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1442
|
+
}
|
|
1443
|
+
getPath() {
|
|
1444
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}`;
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudList.ts
|
|
1449
|
+
import { AbstractApiRequest as AbstractApiRequest23 } from "@deliverart/sdk-js-core";
|
|
1450
|
+
import {
|
|
1451
|
+
createPaginatedSchema as createPaginatedSchema5,
|
|
1452
|
+
responseToPagination as responseToPagination5
|
|
1453
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1454
|
+
import { z as z35 } from "zod";
|
|
1455
|
+
var getIntegrationCassaInCloudListQuerySchema = integrationsCassaInCloudQuerySchema.omit({
|
|
1456
|
+
service: true
|
|
1457
|
+
});
|
|
1458
|
+
var getIntegrationCassaInCloudListResponseSchema = createPaginatedSchema5(
|
|
1459
|
+
integrationCassaInCloudSchema
|
|
1460
|
+
);
|
|
1461
|
+
var getIntegrationCassaInCloudListInputSchema = z35.undefined();
|
|
1462
|
+
var GetIntegrationCassaInCloudList = class extends AbstractApiRequest23 {
|
|
1463
|
+
method = "GET";
|
|
1464
|
+
contentType = "application/json";
|
|
1465
|
+
accept = "application/json";
|
|
1466
|
+
inputSchema = getIntegrationCassaInCloudListInputSchema;
|
|
1467
|
+
outputSchema = getIntegrationCassaInCloudListResponseSchema;
|
|
1468
|
+
querySchema = getIntegrationCassaInCloudListQuerySchema;
|
|
1469
|
+
headersSchema = void 0;
|
|
1470
|
+
constructor(options) {
|
|
1471
|
+
super(void 0, options);
|
|
1472
|
+
}
|
|
1473
|
+
getPath() {
|
|
1474
|
+
return "/integrations/cassa_in_cloud";
|
|
1475
|
+
}
|
|
1476
|
+
parseResponse(data, rawResponse) {
|
|
1477
|
+
const integrations = z35.array(integrationCassaInCloudSchema).parse(data);
|
|
1478
|
+
return this.validateOutput({
|
|
1479
|
+
data: integrations,
|
|
1480
|
+
pagination: responseToPagination5(rawResponse)
|
|
1481
|
+
});
|
|
1482
|
+
}
|
|
1483
|
+
};
|
|
1484
|
+
|
|
1485
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudSyncMenuProcessDetails.ts
|
|
1486
|
+
import { AbstractApiRequest as AbstractApiRequest24 } from "@deliverart/sdk-js-core";
|
|
1487
|
+
import { z as z36 } from "zod";
|
|
1488
|
+
var getIntegrationCassaInCloudSyncMenuProcessDetailsInputSchema = z36.undefined();
|
|
1489
|
+
var getIntegrationCassaInCloudSyncMenuProcessDetailsResponseSchema = integrationCassaInCloudSyncMenuProcessDetailsSchema;
|
|
1490
|
+
var GetIntegrationCassaInCloudSyncMenuProcessDetails = class extends AbstractApiRequest24 {
|
|
1491
|
+
method = "GET";
|
|
1492
|
+
contentType = "application/json";
|
|
1493
|
+
accept = "application/json";
|
|
1494
|
+
inputSchema = getIntegrationCassaInCloudSyncMenuProcessDetailsInputSchema;
|
|
1495
|
+
outputSchema = getIntegrationCassaInCloudSyncMenuProcessDetailsResponseSchema;
|
|
1496
|
+
querySchema = void 0;
|
|
1497
|
+
headersSchema = void 0;
|
|
1498
|
+
integrationCassaInCloudId;
|
|
1499
|
+
processId;
|
|
1500
|
+
constructor(integrationCassaInCloudId, processId) {
|
|
1501
|
+
super();
|
|
1502
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1503
|
+
this.processId = processId;
|
|
1504
|
+
}
|
|
1505
|
+
getPath() {
|
|
1506
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync_menu_processes/${this.processId}`;
|
|
1507
|
+
}
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudSyncMenuProcesses.ts
|
|
1511
|
+
import { AbstractApiRequest as AbstractApiRequest25 } from "@deliverart/sdk-js-core";
|
|
1512
|
+
import {
|
|
1513
|
+
createPaginatedSchema as createPaginatedSchema6,
|
|
1514
|
+
responseToPagination as responseToPagination6
|
|
1515
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1516
|
+
import { z as z37 } from "zod";
|
|
1517
|
+
var getIntegrationCassaInCloudSyncMenuProcessesQuerySchema = z37.object({
|
|
1518
|
+
page: z37.number().optional()
|
|
1519
|
+
});
|
|
1520
|
+
var getIntegrationCassaInCloudSyncMenuProcessesResponseSchema = createPaginatedSchema6(
|
|
1521
|
+
integrationCassaInCloudSyncMenuProcessSchema
|
|
1522
|
+
);
|
|
1523
|
+
var getIntegrationCassaInCloudSyncMenuProcessesInputSchema = z37.undefined();
|
|
1524
|
+
var GetIntegrationCassaInCloudSyncMenuProcesses = class extends AbstractApiRequest25 {
|
|
1525
|
+
method = "GET";
|
|
1526
|
+
contentType = "application/json";
|
|
1527
|
+
accept = "application/json";
|
|
1528
|
+
inputSchema = getIntegrationCassaInCloudSyncMenuProcessesInputSchema;
|
|
1529
|
+
outputSchema = getIntegrationCassaInCloudSyncMenuProcessesResponseSchema;
|
|
1530
|
+
querySchema = getIntegrationCassaInCloudSyncMenuProcessesQuerySchema;
|
|
1531
|
+
headersSchema = void 0;
|
|
1532
|
+
integrationCassaInCloudId;
|
|
1533
|
+
constructor(integrationCassaInCloudId, options) {
|
|
1534
|
+
super(void 0, options);
|
|
1535
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1536
|
+
}
|
|
1537
|
+
getPath() {
|
|
1538
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync_menu_processes`;
|
|
1539
|
+
}
|
|
1540
|
+
parseResponse(data, rawResponse) {
|
|
1541
|
+
const integrations = z37.array(integrationCassaInCloudSyncMenuProcessSchema).parse(data);
|
|
1542
|
+
return this.validateOutput({
|
|
1543
|
+
data: integrations,
|
|
1544
|
+
pagination: responseToPagination6(rawResponse)
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudWebHookEventDetails.ts
|
|
1550
|
+
import { AbstractApiRequest as AbstractApiRequest26 } from "@deliverart/sdk-js-core";
|
|
1551
|
+
import { z as z38 } from "zod";
|
|
1552
|
+
var getIntegrationCassaInCloudWebHookEventDetailsInputSchema = z38.undefined();
|
|
1553
|
+
var getIntegrationCassaInCloudWebHookEventDetailsResponseSchema = integrationCassaInCloudWebHookEventDetailsSchema;
|
|
1554
|
+
var GetIntegrationCassaInCloudWebHookEventDetails = class extends AbstractApiRequest26 {
|
|
1555
|
+
method = "GET";
|
|
1556
|
+
contentType = "application/json";
|
|
1557
|
+
accept = "application/json";
|
|
1558
|
+
inputSchema = getIntegrationCassaInCloudWebHookEventDetailsInputSchema;
|
|
1559
|
+
outputSchema = getIntegrationCassaInCloudWebHookEventDetailsResponseSchema;
|
|
1560
|
+
querySchema = void 0;
|
|
1561
|
+
headersSchema = void 0;
|
|
1562
|
+
integrationCassaInCloudId;
|
|
1563
|
+
eventId;
|
|
1564
|
+
constructor(integrationCassaInCloudId, eventId) {
|
|
1565
|
+
super();
|
|
1566
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1567
|
+
this.eventId = eventId;
|
|
1568
|
+
}
|
|
1569
|
+
getPath() {
|
|
1570
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/webhook_events/${this.eventId}`;
|
|
1571
|
+
}
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1574
|
+
// src/requests/services/cassa_in_cloud/GetIntegrationCassaInCloudWebHookEvents.ts
|
|
1575
|
+
import { AbstractApiRequest as AbstractApiRequest27 } from "@deliverart/sdk-js-core";
|
|
1576
|
+
import {
|
|
1577
|
+
createPaginatedSchema as createPaginatedSchema7,
|
|
1578
|
+
responseToPagination as responseToPagination7
|
|
1579
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1580
|
+
import { z as z39 } from "zod";
|
|
1581
|
+
var getIntegrationCassaInCloudWebHookEventsQuerySchema = integrationCassaInCloudWebHookEventsQuerySchema;
|
|
1582
|
+
var getIntegrationCassaInCloudWebHookEventsResponseSchema = createPaginatedSchema7(
|
|
1583
|
+
integrationCassaInCloudWebHookEventSchema
|
|
1584
|
+
);
|
|
1585
|
+
var getIntegrationCassaInCloudWebHookEventsInputSchema = z39.undefined();
|
|
1586
|
+
var GetIntegrationCassaInCloudWebHookEvents = class extends AbstractApiRequest27 {
|
|
1587
|
+
method = "GET";
|
|
1588
|
+
contentType = "application/json";
|
|
1589
|
+
accept = "application/json";
|
|
1590
|
+
inputSchema = getIntegrationCassaInCloudWebHookEventsInputSchema;
|
|
1591
|
+
outputSchema = getIntegrationCassaInCloudWebHookEventsResponseSchema;
|
|
1592
|
+
querySchema = getIntegrationCassaInCloudWebHookEventsQuerySchema;
|
|
1593
|
+
headersSchema = void 0;
|
|
1594
|
+
integrationCassaInCloudId;
|
|
1595
|
+
constructor(integrationCassaInCloudId, options) {
|
|
1596
|
+
super(void 0, options);
|
|
1597
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1598
|
+
}
|
|
1599
|
+
getPath() {
|
|
1600
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/webhook_events`;
|
|
1601
|
+
}
|
|
1602
|
+
parseResponse(data, rawResponse) {
|
|
1603
|
+
const integrations = z39.array(integrationCassaInCloudWebHookEventSchema).parse(data);
|
|
1604
|
+
return this.validateOutput({
|
|
1605
|
+
data: integrations,
|
|
1606
|
+
pagination: responseToPagination7(rawResponse)
|
|
1607
|
+
});
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1610
|
+
|
|
1611
|
+
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncCustomers.ts
|
|
1612
|
+
import { AbstractApiRequest as AbstractApiRequest28 } from "@deliverart/sdk-js-core";
|
|
1613
|
+
import { z as z40 } from "zod";
|
|
1614
|
+
var integrationCassaInCloudSyncCustomersInputSchema = z40.undefined();
|
|
1615
|
+
var integrationCassaInCloudSyncCustomersResponseSchema = z40.undefined();
|
|
1616
|
+
var IntegrationCassaInCloudSyncCustomers = class extends AbstractApiRequest28 {
|
|
1617
|
+
method = "POST";
|
|
1618
|
+
contentType = "application/json";
|
|
1619
|
+
accept = "application/json";
|
|
1620
|
+
inputSchema = integrationCassaInCloudSyncCustomersInputSchema;
|
|
1621
|
+
outputSchema = integrationCassaInCloudSyncCustomersResponseSchema;
|
|
1622
|
+
querySchema = void 0;
|
|
1623
|
+
headersSchema = void 0;
|
|
1624
|
+
integrationCassaInCloudId;
|
|
1625
|
+
constructor(integrationCassaInCloudId) {
|
|
1626
|
+
super();
|
|
1627
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1628
|
+
}
|
|
1629
|
+
getPath() {
|
|
1630
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync/customers`;
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncOrganizations.ts
|
|
1635
|
+
import { AbstractApiRequest as AbstractApiRequest29 } from "@deliverart/sdk-js-core";
|
|
1636
|
+
import { z as z41 } from "zod";
|
|
1637
|
+
var integrationCassaInCloudSyncOrganizationsInputSchema = z41.undefined();
|
|
1638
|
+
var integrationCassaInCloudSyncOrganizationsResponseSchema = z41.undefined();
|
|
1639
|
+
var IntegrationCassaInCloudSyncOrganizations = class extends AbstractApiRequest29 {
|
|
1640
|
+
method = "POST";
|
|
1641
|
+
contentType = "application/json";
|
|
1642
|
+
accept = "application/json";
|
|
1643
|
+
inputSchema = integrationCassaInCloudSyncOrganizationsInputSchema;
|
|
1644
|
+
outputSchema = integrationCassaInCloudSyncOrganizationsResponseSchema;
|
|
1645
|
+
querySchema = void 0;
|
|
1646
|
+
headersSchema = void 0;
|
|
1647
|
+
integrationCassaInCloudId;
|
|
1648
|
+
constructor(integrationCassaInCloudId) {
|
|
1649
|
+
super();
|
|
1650
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1651
|
+
}
|
|
1652
|
+
getPath() {
|
|
1653
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync/organizations`;
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
|
|
1657
|
+
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncProducts.ts
|
|
1658
|
+
import { AbstractApiRequest as AbstractApiRequest30 } from "@deliverart/sdk-js-core";
|
|
1659
|
+
import { z as z42 } from "zod";
|
|
1660
|
+
var integrationCassaInCloudSyncProductsInputSchema = z42.undefined();
|
|
1661
|
+
var integrationCassaInCloudSyncProductsResponseSchema = z42.undefined();
|
|
1662
|
+
var IntegrationCassaInCloudSyncProducts = class extends AbstractApiRequest30 {
|
|
1663
|
+
method = "POST";
|
|
1664
|
+
contentType = "application/json";
|
|
1665
|
+
accept = "application/json";
|
|
1666
|
+
inputSchema = integrationCassaInCloudSyncProductsInputSchema;
|
|
1667
|
+
outputSchema = integrationCassaInCloudSyncProductsResponseSchema;
|
|
1668
|
+
querySchema = void 0;
|
|
1669
|
+
headersSchema = void 0;
|
|
1670
|
+
integrationCassaInCloudId;
|
|
1671
|
+
constructor(integrationCassaInCloudId) {
|
|
1672
|
+
super();
|
|
1673
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1674
|
+
}
|
|
1675
|
+
getPath() {
|
|
1676
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync/products`;
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1679
|
+
|
|
1680
|
+
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncSalesModes.ts
|
|
1681
|
+
import { AbstractApiRequest as AbstractApiRequest31 } from "@deliverart/sdk-js-core";
|
|
1682
|
+
import { z as z43 } from "zod";
|
|
1683
|
+
var integrationCassaInCloudSyncSalesModesInputSchema = z43.undefined();
|
|
1684
|
+
var integrationCassaInCloudSyncSalesModesResponseSchema = z43.undefined();
|
|
1685
|
+
var IntegrationCassaInCloudSyncSalesModes = class extends AbstractApiRequest31 {
|
|
1686
|
+
method = "POST";
|
|
1687
|
+
contentType = "application/json";
|
|
1688
|
+
accept = "application/json";
|
|
1689
|
+
inputSchema = integrationCassaInCloudSyncSalesModesInputSchema;
|
|
1690
|
+
outputSchema = integrationCassaInCloudSyncSalesModesResponseSchema;
|
|
1691
|
+
querySchema = void 0;
|
|
1692
|
+
headersSchema = void 0;
|
|
1693
|
+
integrationCassaInCloudId;
|
|
1694
|
+
constructor(integrationCassaInCloudId) {
|
|
1695
|
+
super();
|
|
1696
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1697
|
+
}
|
|
1698
|
+
getPath() {
|
|
1699
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync/sales_modes`;
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncStock.ts
|
|
1704
|
+
import { AbstractApiRequest as AbstractApiRequest32 } from "@deliverart/sdk-js-core";
|
|
1705
|
+
import { z as z44 } from "zod";
|
|
1706
|
+
var integrationCassaInCloudSyncStockInputSchema = z44.undefined();
|
|
1707
|
+
var integrationCassaInCloudSyncStockResponseSchema = z44.undefined();
|
|
1708
|
+
var IntegrationCassaInCloudSyncStock = class extends AbstractApiRequest32 {
|
|
1709
|
+
method = "POST";
|
|
1710
|
+
contentType = "application/json";
|
|
1711
|
+
accept = "application/json";
|
|
1712
|
+
inputSchema = integrationCassaInCloudSyncStockInputSchema;
|
|
1713
|
+
outputSchema = integrationCassaInCloudSyncStockResponseSchema;
|
|
1714
|
+
querySchema = void 0;
|
|
1715
|
+
headersSchema = void 0;
|
|
1716
|
+
integrationCassaInCloudId;
|
|
1717
|
+
constructor(integrationCassaInCloudId) {
|
|
1718
|
+
super();
|
|
1719
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1720
|
+
}
|
|
1721
|
+
getPath() {
|
|
1722
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync/stock`;
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
// src/requests/services/cassa_in_cloud/IntegrationCassaInCloudSyncTimetables.ts
|
|
1727
|
+
import { AbstractApiRequest as AbstractApiRequest33 } from "@deliverart/sdk-js-core";
|
|
1728
|
+
import { z as z45 } from "zod";
|
|
1729
|
+
var integrationCassaInCloudSyncTimetablesInputSchema = z45.undefined();
|
|
1730
|
+
var integrationCassaInCloudSyncTimetablesResponseSchema = z45.undefined();
|
|
1731
|
+
var IntegrationCassaInCloudSyncTimetables = class extends AbstractApiRequest33 {
|
|
1732
|
+
method = "POST";
|
|
1733
|
+
contentType = "application/json";
|
|
1734
|
+
accept = "application/json";
|
|
1735
|
+
inputSchema = integrationCassaInCloudSyncTimetablesInputSchema;
|
|
1736
|
+
outputSchema = integrationCassaInCloudSyncTimetablesResponseSchema;
|
|
1737
|
+
querySchema = void 0;
|
|
1738
|
+
headersSchema = void 0;
|
|
1739
|
+
integrationCassaInCloudId;
|
|
1740
|
+
constructor(integrationCassaInCloudId) {
|
|
1741
|
+
super();
|
|
1742
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1743
|
+
}
|
|
1744
|
+
getPath() {
|
|
1745
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}/sync/timetables`;
|
|
1746
|
+
}
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
// src/requests/services/cassa_in_cloud/UpdateIntegrationCassaInCloud.ts
|
|
1750
|
+
import { AbstractApiRequest as AbstractApiRequest34 } from "@deliverart/sdk-js-core";
|
|
1751
|
+
var updateIntegrationCassaInCloudInputSchema = integrationCassaInCloudEditableFieldsSchema;
|
|
1752
|
+
var updateIntegrationCassaInCloudResponseSchema = integrationCassaInCloudDetailsSchema;
|
|
1753
|
+
var UpdateIntegrationCassaInCloud = class extends AbstractApiRequest34 {
|
|
1754
|
+
method = "PATCH";
|
|
1755
|
+
contentType = "application/merge-patch+json";
|
|
1756
|
+
accept = "application/json";
|
|
1757
|
+
inputSchema = updateIntegrationCassaInCloudInputSchema;
|
|
1758
|
+
outputSchema = updateIntegrationCassaInCloudResponseSchema;
|
|
1759
|
+
querySchema = void 0;
|
|
1760
|
+
headersSchema = void 0;
|
|
1761
|
+
integrationCassaInCloudId;
|
|
1762
|
+
constructor(integrationCassaInCloudId, input) {
|
|
1763
|
+
super(input);
|
|
1764
|
+
this.integrationCassaInCloudId = integrationCassaInCloudId;
|
|
1765
|
+
}
|
|
1766
|
+
getPath() {
|
|
1767
|
+
return `/integrations/cassa_in_cloud/${this.integrationCassaInCloudId}`;
|
|
1768
|
+
}
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
// src/requests/services/deliveroo/CreateIntegrationDeliveroo.ts
|
|
1772
|
+
import { AbstractApiRequest as AbstractApiRequest35 } from "@deliverart/sdk-js-core";
|
|
1773
|
+
import { pointOfSalePathSchema as pointOfSalePathSchema5 } from "@deliverart/sdk-js-point-of-sale";
|
|
1774
|
+
var createIntegrationDeliverooInputSchema = integrationDeliverooEditableFieldsSchema.extend({
|
|
1775
|
+
pointOfSale: pointOfSalePathSchema5
|
|
1776
|
+
});
|
|
1777
|
+
var createIntegrationDeliverooResponseSchema = integrationDeliverooDetailsSchema;
|
|
1778
|
+
var CreateIntegrationDeliveroo = class extends AbstractApiRequest35 {
|
|
1779
|
+
method = "POST";
|
|
1780
|
+
contentType = "application/json";
|
|
1781
|
+
accept = "application/json";
|
|
1782
|
+
inputSchema = createIntegrationDeliverooInputSchema;
|
|
1783
|
+
outputSchema = createIntegrationDeliverooResponseSchema;
|
|
1784
|
+
querySchema = void 0;
|
|
1785
|
+
headersSchema = void 0;
|
|
1786
|
+
constructor(input) {
|
|
1787
|
+
super(input);
|
|
1788
|
+
}
|
|
1789
|
+
getPath() {
|
|
1790
|
+
return "/integrations/deliveroo";
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
|
|
1794
|
+
// src/requests/services/deliveroo/DeleteIntegrationDeliveroo.ts
|
|
1795
|
+
import { AbstractApiRequest as AbstractApiRequest36 } from "@deliverart/sdk-js-core";
|
|
1796
|
+
import { z as z46 } from "zod";
|
|
1797
|
+
var deleteIntegrationDeliverooInputSchema = z46.undefined();
|
|
1798
|
+
var deleteIntegrationDeliverooResponseSchema = z46.undefined();
|
|
1799
|
+
var DeleteIntegrationDeliveroo = class extends AbstractApiRequest36 {
|
|
1800
|
+
method = "DELETE";
|
|
1801
|
+
contentType = "application/json";
|
|
1802
|
+
accept = "application/json";
|
|
1803
|
+
inputSchema = deleteIntegrationDeliverooInputSchema;
|
|
1804
|
+
outputSchema = deleteIntegrationDeliverooResponseSchema;
|
|
1805
|
+
querySchema = void 0;
|
|
1806
|
+
headersSchema = void 0;
|
|
1807
|
+
integrationDeliverooId;
|
|
1808
|
+
constructor(integrationDeliverooId) {
|
|
1809
|
+
super();
|
|
1810
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
1811
|
+
}
|
|
1812
|
+
getPath() {
|
|
1813
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}`;
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooClientLogRequestDetails.ts
|
|
1818
|
+
import { AbstractApiRequest as AbstractApiRequest37 } from "@deliverart/sdk-js-core";
|
|
1819
|
+
import { z as z47 } from "zod";
|
|
1820
|
+
var getIntegrationDeliverooClientLogRequestDetailsInputSchema = z47.undefined();
|
|
1821
|
+
var getIntegrationDeliverooClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
1822
|
+
var GetIntegrationDeliverooClientLogRequestDetails = class extends AbstractApiRequest37 {
|
|
1823
|
+
method = "GET";
|
|
1824
|
+
contentType = "application/json";
|
|
1825
|
+
accept = "application/json";
|
|
1826
|
+
inputSchema = getIntegrationDeliverooClientLogRequestDetailsInputSchema;
|
|
1827
|
+
outputSchema = getIntegrationDeliverooClientLogRequestDetailsResponseSchema;
|
|
1828
|
+
querySchema = void 0;
|
|
1829
|
+
headersSchema = void 0;
|
|
1830
|
+
integrationDeliverooId;
|
|
1831
|
+
requestId;
|
|
1832
|
+
constructor(integrationDeliverooId, requestId) {
|
|
1833
|
+
super();
|
|
1834
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
1835
|
+
this.requestId = requestId;
|
|
1836
|
+
}
|
|
1837
|
+
getPath() {
|
|
1838
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/client_log_requests/${this.requestId}`;
|
|
1839
|
+
}
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1842
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooClientLogRequests.ts
|
|
1843
|
+
import { AbstractApiRequest as AbstractApiRequest38 } from "@deliverart/sdk-js-core";
|
|
1844
|
+
import {
|
|
1845
|
+
createPaginatedSchema as createPaginatedSchema8,
|
|
1846
|
+
responseToPagination as responseToPagination8
|
|
1847
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1848
|
+
import { z as z48 } from "zod";
|
|
1849
|
+
var getIntegrationDeliverooClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
1850
|
+
var getIntegrationDeliverooClientLogRequestsResponseSchema = createPaginatedSchema8(
|
|
1851
|
+
integrationClientLogRequestSchema
|
|
1852
|
+
);
|
|
1853
|
+
var getIntegrationDeliverooClientLogRequestsInputSchema = z48.undefined();
|
|
1854
|
+
var GetIntegrationDeliverooClientLogRequests = class extends AbstractApiRequest38 {
|
|
1855
|
+
method = "GET";
|
|
1856
|
+
contentType = "application/json";
|
|
1857
|
+
accept = "application/json";
|
|
1858
|
+
inputSchema = getIntegrationDeliverooClientLogRequestsInputSchema;
|
|
1859
|
+
outputSchema = getIntegrationDeliverooClientLogRequestsResponseSchema;
|
|
1860
|
+
querySchema = getIntegrationDeliverooClientLogRequestsQuerySchema;
|
|
1861
|
+
headersSchema = void 0;
|
|
1862
|
+
integrationDeliverooId;
|
|
1863
|
+
constructor(integrationDeliverooId, options) {
|
|
1864
|
+
super(void 0, options);
|
|
1865
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
1866
|
+
}
|
|
1867
|
+
getPath() {
|
|
1868
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/client_log_requests`;
|
|
1869
|
+
}
|
|
1870
|
+
parseResponse(data, rawResponse) {
|
|
1871
|
+
const integrations = z48.array(integrationClientLogRequestSchema).parse(data);
|
|
1872
|
+
return this.validateOutput({
|
|
1873
|
+
data: integrations,
|
|
1874
|
+
pagination: responseToPagination8(rawResponse)
|
|
1875
|
+
});
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooDetails.ts
|
|
1880
|
+
import { AbstractApiRequest as AbstractApiRequest39 } from "@deliverart/sdk-js-core";
|
|
1881
|
+
import { z as z49 } from "zod";
|
|
1882
|
+
var getIntegrationDeliverooDetailsInputSchema = z49.undefined();
|
|
1883
|
+
var getIntegrationDeliverooDetailsResponseSchema = integrationDeliverooDetailsSchema;
|
|
1884
|
+
var GetIntegrationDeliverooDetails = class extends AbstractApiRequest39 {
|
|
1885
|
+
method = "GET";
|
|
1886
|
+
contentType = "application/json";
|
|
1887
|
+
accept = "application/json";
|
|
1888
|
+
inputSchema = getIntegrationDeliverooDetailsInputSchema;
|
|
1889
|
+
outputSchema = getIntegrationDeliverooDetailsResponseSchema;
|
|
1890
|
+
querySchema = void 0;
|
|
1891
|
+
headersSchema = void 0;
|
|
1892
|
+
integrationDeliverooId;
|
|
1893
|
+
constructor(integrationDeliverooId) {
|
|
1894
|
+
super();
|
|
1895
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
1896
|
+
}
|
|
1897
|
+
getPath() {
|
|
1898
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}`;
|
|
1899
|
+
}
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooList.ts
|
|
1903
|
+
import { AbstractApiRequest as AbstractApiRequest40 } from "@deliverart/sdk-js-core";
|
|
1904
|
+
import {
|
|
1905
|
+
createPaginatedSchema as createPaginatedSchema9,
|
|
1906
|
+
responseToPagination as responseToPagination9
|
|
1907
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1908
|
+
import { z as z50 } from "zod";
|
|
1909
|
+
var getIntegrationDeliverooListQuerySchema = integrationsDeliverooQuerySchema.omit({
|
|
1910
|
+
service: true
|
|
1911
|
+
});
|
|
1912
|
+
var getIntegrationDeliverooListResponseSchema = createPaginatedSchema9(
|
|
1913
|
+
integrationDeliverooSchema
|
|
1914
|
+
);
|
|
1915
|
+
var getIntegrationDeliverooListInputSchema = z50.undefined();
|
|
1916
|
+
var GetIntegrationDeliverooList = class extends AbstractApiRequest40 {
|
|
1917
|
+
method = "GET";
|
|
1918
|
+
contentType = "application/json";
|
|
1919
|
+
accept = "application/json";
|
|
1920
|
+
inputSchema = getIntegrationDeliverooListInputSchema;
|
|
1921
|
+
outputSchema = getIntegrationDeliverooListResponseSchema;
|
|
1922
|
+
querySchema = getIntegrationDeliverooListQuerySchema;
|
|
1923
|
+
headersSchema = void 0;
|
|
1924
|
+
constructor(options) {
|
|
1925
|
+
super(void 0, options);
|
|
1926
|
+
}
|
|
1927
|
+
getPath() {
|
|
1928
|
+
return "/integrations/deliveroo";
|
|
1929
|
+
}
|
|
1930
|
+
parseResponse(data, rawResponse) {
|
|
1931
|
+
const integrations = z50.array(integrationDeliverooSchema).parse(data);
|
|
1932
|
+
return this.validateOutput({
|
|
1933
|
+
data: integrations,
|
|
1934
|
+
pagination: responseToPagination9(rawResponse)
|
|
1935
|
+
});
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooMenuVersionDetails.ts
|
|
1940
|
+
import { AbstractApiRequest as AbstractApiRequest41 } from "@deliverart/sdk-js-core";
|
|
1941
|
+
import { z as z51 } from "zod";
|
|
1942
|
+
var getIntegrationDeliverooMenuVersionDetailsInputSchema = z51.undefined();
|
|
1943
|
+
var getIntegrationDeliverooMenuVersionDetailsResponseSchema = menuVersionDetailsSchema;
|
|
1944
|
+
var GetIntegrationDeliverooMenuVersionDetails = class extends AbstractApiRequest41 {
|
|
1945
|
+
method = "GET";
|
|
1946
|
+
contentType = "application/json";
|
|
1947
|
+
accept = "application/json";
|
|
1948
|
+
inputSchema = getIntegrationDeliverooMenuVersionDetailsInputSchema;
|
|
1949
|
+
outputSchema = getIntegrationDeliverooMenuVersionDetailsResponseSchema;
|
|
1950
|
+
querySchema = void 0;
|
|
1951
|
+
headersSchema = void 0;
|
|
1952
|
+
integrationDeliverooId;
|
|
1953
|
+
versionId;
|
|
1954
|
+
constructor(integrationDeliverooId, versionId) {
|
|
1955
|
+
super();
|
|
1956
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
1957
|
+
this.versionId = versionId;
|
|
1958
|
+
}
|
|
1959
|
+
getPath() {
|
|
1960
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/menu_versions/${this.versionId}`;
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
|
|
1964
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooMenuVersions.ts
|
|
1965
|
+
import { AbstractApiRequest as AbstractApiRequest42 } from "@deliverart/sdk-js-core";
|
|
1966
|
+
import {
|
|
1967
|
+
createPaginatedSchema as createPaginatedSchema10,
|
|
1968
|
+
responseToPagination as responseToPagination10
|
|
1969
|
+
} from "@deliverart/sdk-js-global-types";
|
|
1970
|
+
import { z as z52 } from "zod";
|
|
1971
|
+
var getIntegrationDeliverooMenuVersionsQuerySchema = z52.object({
|
|
1972
|
+
page: z52.number().optional()
|
|
1973
|
+
});
|
|
1974
|
+
var getIntegrationDeliverooMenuVersionsResponseSchema = createPaginatedSchema10(menuVersionSchema);
|
|
1975
|
+
var getIntegrationDeliverooMenuVersionsInputSchema = z52.undefined();
|
|
1976
|
+
var GetIntegrationDeliverooMenuVersions = class extends AbstractApiRequest42 {
|
|
1977
|
+
method = "GET";
|
|
1978
|
+
contentType = "application/json";
|
|
1979
|
+
accept = "application/json";
|
|
1980
|
+
inputSchema = getIntegrationDeliverooMenuVersionsInputSchema;
|
|
1981
|
+
outputSchema = getIntegrationDeliverooMenuVersionsResponseSchema;
|
|
1982
|
+
querySchema = getIntegrationDeliverooMenuVersionsQuerySchema;
|
|
1983
|
+
headersSchema = void 0;
|
|
1984
|
+
integrationDeliverooId;
|
|
1985
|
+
constructor(integrationDeliverooId, options) {
|
|
1986
|
+
super(void 0, options);
|
|
1987
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
1988
|
+
}
|
|
1989
|
+
getPath() {
|
|
1990
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/menu_versions`;
|
|
1991
|
+
}
|
|
1992
|
+
parseResponse(data, rawResponse) {
|
|
1993
|
+
const integrations = z52.array(menuVersionSchema).parse(data);
|
|
1994
|
+
return this.validateOutput({
|
|
1995
|
+
data: integrations,
|
|
1996
|
+
pagination: responseToPagination10(rawResponse)
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1999
|
+
};
|
|
2000
|
+
|
|
2001
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooSyncMenuProcessDetails.ts
|
|
2002
|
+
import { AbstractApiRequest as AbstractApiRequest43 } from "@deliverart/sdk-js-core";
|
|
2003
|
+
import { z as z53 } from "zod";
|
|
2004
|
+
var getIntegrationDeliverooSyncMenuProcessDetailsInputSchema = z53.undefined();
|
|
2005
|
+
var getIntegrationDeliverooSyncMenuProcessDetailsResponseSchema = integrationDeliverooSyncMenuProcessDetailsSchema;
|
|
2006
|
+
var GetIntegrationDeliverooSyncMenuProcessDetails = class extends AbstractApiRequest43 {
|
|
2007
|
+
method = "GET";
|
|
2008
|
+
contentType = "application/json";
|
|
2009
|
+
accept = "application/json";
|
|
2010
|
+
inputSchema = getIntegrationDeliverooSyncMenuProcessDetailsInputSchema;
|
|
2011
|
+
outputSchema = getIntegrationDeliverooSyncMenuProcessDetailsResponseSchema;
|
|
2012
|
+
querySchema = void 0;
|
|
2013
|
+
headersSchema = void 0;
|
|
2014
|
+
integrationDeliverooId;
|
|
2015
|
+
processId;
|
|
2016
|
+
constructor(integrationDeliverooId, processId) {
|
|
2017
|
+
super();
|
|
2018
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2019
|
+
this.processId = processId;
|
|
2020
|
+
}
|
|
2021
|
+
getPath() {
|
|
2022
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/sync_menu_processes/${this.processId}`;
|
|
2023
|
+
}
|
|
2024
|
+
};
|
|
2025
|
+
|
|
2026
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooSyncMenuProcesses.ts
|
|
2027
|
+
import { AbstractApiRequest as AbstractApiRequest44 } from "@deliverart/sdk-js-core";
|
|
2028
|
+
import {
|
|
2029
|
+
createPaginatedSchema as createPaginatedSchema11,
|
|
2030
|
+
responseToPagination as responseToPagination11
|
|
2031
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2032
|
+
import { z as z54 } from "zod";
|
|
2033
|
+
var getIntegrationDeliverooSyncMenuProcessesQuerySchema = z54.object({
|
|
2034
|
+
page: z54.number().optional()
|
|
2035
|
+
});
|
|
2036
|
+
var getIntegrationDeliverooSyncMenuProcessesResponseSchema = createPaginatedSchema11(
|
|
2037
|
+
integrationDeliverooSyncMenuProcessSchema
|
|
2038
|
+
);
|
|
2039
|
+
var getIntegrationDeliverooSyncMenuProcessesInputSchema = z54.undefined();
|
|
2040
|
+
var GetIntegrationDeliverooSyncMenuProcesses = class extends AbstractApiRequest44 {
|
|
2041
|
+
method = "GET";
|
|
2042
|
+
contentType = "application/json";
|
|
2043
|
+
accept = "application/json";
|
|
2044
|
+
inputSchema = getIntegrationDeliverooSyncMenuProcessesInputSchema;
|
|
2045
|
+
outputSchema = getIntegrationDeliverooSyncMenuProcessesResponseSchema;
|
|
2046
|
+
querySchema = getIntegrationDeliverooSyncMenuProcessesQuerySchema;
|
|
2047
|
+
headersSchema = void 0;
|
|
2048
|
+
integrationDeliverooId;
|
|
2049
|
+
constructor(integrationDeliverooId, options) {
|
|
2050
|
+
super(void 0, options);
|
|
2051
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2052
|
+
}
|
|
2053
|
+
getPath() {
|
|
2054
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/sync_menu_processes`;
|
|
2055
|
+
}
|
|
2056
|
+
parseResponse(data, rawResponse) {
|
|
2057
|
+
const integrations = z54.array(integrationDeliverooSyncMenuProcessSchema).parse(data);
|
|
2058
|
+
return this.validateOutput({
|
|
2059
|
+
data: integrations,
|
|
2060
|
+
pagination: responseToPagination11(rawResponse)
|
|
2061
|
+
});
|
|
2062
|
+
}
|
|
2063
|
+
};
|
|
2064
|
+
|
|
2065
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooWebhookEventDetails.ts
|
|
2066
|
+
import { AbstractApiRequest as AbstractApiRequest45 } from "@deliverart/sdk-js-core";
|
|
2067
|
+
import { z as z55 } from "zod";
|
|
2068
|
+
var getIntegrationDeliverooWebhookEventDetailsInputSchema = z55.undefined();
|
|
2069
|
+
var getIntegrationDeliverooWebhookEventDetailsResponseSchema = integrationDeliverooWebhookEventDetailsSchema;
|
|
2070
|
+
var GetIntegrationDeliverooWebhookEventDetails = class extends AbstractApiRequest45 {
|
|
2071
|
+
method = "GET";
|
|
2072
|
+
contentType = "application/json";
|
|
2073
|
+
accept = "application/json";
|
|
2074
|
+
inputSchema = getIntegrationDeliverooWebhookEventDetailsInputSchema;
|
|
2075
|
+
outputSchema = getIntegrationDeliverooWebhookEventDetailsResponseSchema;
|
|
2076
|
+
querySchema = void 0;
|
|
2077
|
+
headersSchema = void 0;
|
|
2078
|
+
integrationDeliverooId;
|
|
2079
|
+
eventId;
|
|
2080
|
+
constructor(integrationDeliverooId, eventId) {
|
|
2081
|
+
super();
|
|
2082
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2083
|
+
this.eventId = eventId;
|
|
2084
|
+
}
|
|
2085
|
+
getPath() {
|
|
2086
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/webhook_events/${this.eventId}`;
|
|
2087
|
+
}
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
// src/requests/services/deliveroo/GetIntegrationDeliverooWebhookEvents.ts
|
|
2091
|
+
import { AbstractApiRequest as AbstractApiRequest46 } from "@deliverart/sdk-js-core";
|
|
2092
|
+
import {
|
|
2093
|
+
createPaginatedSchema as createPaginatedSchema12,
|
|
2094
|
+
responseToPagination as responseToPagination12
|
|
2095
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2096
|
+
import { z as z56 } from "zod";
|
|
2097
|
+
var getIntegrationDeliverooWebhookEventsQuerySchema = integrationDeliverooWebhookEventsQueryParamsSchema;
|
|
2098
|
+
var getIntegrationDeliverooWebhookEventsResponseSchema = createPaginatedSchema12(
|
|
2099
|
+
integrationDeliverooWebhookEventSchema
|
|
2100
|
+
);
|
|
2101
|
+
var getIntegrationDeliverooWebhookEventsInputSchema = z56.undefined();
|
|
2102
|
+
var GetIntegrationDeliverooWebhookEvents = class extends AbstractApiRequest46 {
|
|
2103
|
+
method = "GET";
|
|
2104
|
+
contentType = "application/json";
|
|
2105
|
+
accept = "application/json";
|
|
2106
|
+
inputSchema = getIntegrationDeliverooWebhookEventsInputSchema;
|
|
2107
|
+
outputSchema = getIntegrationDeliverooWebhookEventsResponseSchema;
|
|
2108
|
+
querySchema = getIntegrationDeliverooWebhookEventsQuerySchema;
|
|
2109
|
+
headersSchema = void 0;
|
|
2110
|
+
integrationDeliverooId;
|
|
2111
|
+
constructor(integrationDeliverooId, options) {
|
|
2112
|
+
super(void 0, options);
|
|
2113
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2114
|
+
}
|
|
2115
|
+
getPath() {
|
|
2116
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/webhook_events`;
|
|
2117
|
+
}
|
|
2118
|
+
parseResponse(data, rawResponse) {
|
|
2119
|
+
const integrations = z56.array(integrationDeliverooWebhookEventSchema).parse(data);
|
|
2120
|
+
return this.validateOutput({
|
|
2121
|
+
data: integrations,
|
|
2122
|
+
pagination: responseToPagination12(rawResponse)
|
|
2123
|
+
});
|
|
2124
|
+
}
|
|
2125
|
+
};
|
|
2126
|
+
|
|
2127
|
+
// src/requests/services/deliveroo/IntegrationDeliverooSyncMenu.ts
|
|
2128
|
+
import { AbstractApiRequest as AbstractApiRequest47 } from "@deliverart/sdk-js-core";
|
|
2129
|
+
import { z as z57 } from "zod";
|
|
2130
|
+
var integrationDeliverooSyncMenuInputSchema = z57.undefined();
|
|
2131
|
+
var integrationDeliverooSyncMenuResponseSchema = z57.undefined();
|
|
2132
|
+
var IntegrationDeliverooSyncMenu = class extends AbstractApiRequest47 {
|
|
2133
|
+
method = "POST";
|
|
2134
|
+
contentType = "application/json";
|
|
2135
|
+
accept = "application/json";
|
|
2136
|
+
inputSchema = integrationDeliverooSyncMenuInputSchema;
|
|
2137
|
+
outputSchema = integrationDeliverooSyncMenuResponseSchema;
|
|
2138
|
+
querySchema = void 0;
|
|
2139
|
+
headersSchema = void 0;
|
|
2140
|
+
integrationDeliverooId;
|
|
2141
|
+
constructor(integrationDeliverooId) {
|
|
2142
|
+
super();
|
|
2143
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2144
|
+
}
|
|
2145
|
+
getPath() {
|
|
2146
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/sync/menu`;
|
|
2147
|
+
}
|
|
2148
|
+
};
|
|
2149
|
+
|
|
2150
|
+
// src/requests/services/deliveroo/IntegrationDeliverooSyncOpeningHours.ts
|
|
2151
|
+
import { AbstractApiRequest as AbstractApiRequest48 } from "@deliverart/sdk-js-core";
|
|
2152
|
+
import { z as z58 } from "zod";
|
|
2153
|
+
var integrationDeliverooSyncOpeningHoursInputSchema = z58.undefined();
|
|
2154
|
+
var integrationDeliverooSyncOpeningHoursResponseSchema = z58.undefined();
|
|
2155
|
+
var IntegrationDeliverooSyncOpeningHours = class extends AbstractApiRequest48 {
|
|
2156
|
+
method = "POST";
|
|
2157
|
+
contentType = "application/json";
|
|
2158
|
+
accept = "application/json";
|
|
2159
|
+
inputSchema = integrationDeliverooSyncOpeningHoursInputSchema;
|
|
2160
|
+
outputSchema = integrationDeliverooSyncOpeningHoursResponseSchema;
|
|
2161
|
+
querySchema = void 0;
|
|
2162
|
+
headersSchema = void 0;
|
|
2163
|
+
integrationDeliverooId;
|
|
2164
|
+
constructor(integrationDeliverooId) {
|
|
2165
|
+
super();
|
|
2166
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2167
|
+
}
|
|
2168
|
+
getPath() {
|
|
2169
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/sync/opening_hours`;
|
|
2170
|
+
}
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
// src/requests/services/deliveroo/UpdateIntegrationDeliveroo.ts
|
|
2174
|
+
import { AbstractApiRequest as AbstractApiRequest49 } from "@deliverart/sdk-js-core";
|
|
2175
|
+
var updateIntegrationDeliverooInputSchema = integrationDeliverooEditableFieldsSchema;
|
|
2176
|
+
var updateIntegrationDeliverooResponseSchema = integrationDeliverooDetailsSchema;
|
|
2177
|
+
var UpdateIntegrationDeliveroo = class extends AbstractApiRequest49 {
|
|
2178
|
+
method = "PATCH";
|
|
2179
|
+
contentType = "application/merge-patch+json";
|
|
2180
|
+
accept = "application/json";
|
|
2181
|
+
inputSchema = updateIntegrationDeliverooInputSchema;
|
|
2182
|
+
outputSchema = updateIntegrationDeliverooResponseSchema;
|
|
2183
|
+
querySchema = void 0;
|
|
2184
|
+
headersSchema = void 0;
|
|
2185
|
+
integrationDeliverooId;
|
|
2186
|
+
constructor(integrationDeliverooId, input) {
|
|
2187
|
+
super(input);
|
|
2188
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2189
|
+
}
|
|
2190
|
+
getPath() {
|
|
2191
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}`;
|
|
2192
|
+
}
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
// src/requests/services/deliveroo/UpdateIntegrationDeliverooSiteStatus.ts
|
|
2196
|
+
import { AbstractApiRequest as AbstractApiRequest50 } from "@deliverart/sdk-js-core";
|
|
2197
|
+
import { z as z59 } from "zod";
|
|
2198
|
+
var updateIntegrationDeliverooSiteStatusInputSchema = z59.object({
|
|
2199
|
+
status: integrationDeliverooSiteStatusSchema
|
|
2200
|
+
});
|
|
2201
|
+
var updateIntegrationDeliverooSiteStatusResponseSchema = integrationDeliverooDetailsSchema;
|
|
2202
|
+
var UpdateIntegrationDeliverooSiteStatus = class extends AbstractApiRequest50 {
|
|
2203
|
+
method = "POST";
|
|
2204
|
+
contentType = "application/json";
|
|
2205
|
+
accept = "application/json";
|
|
2206
|
+
inputSchema = updateIntegrationDeliverooSiteStatusInputSchema;
|
|
2207
|
+
outputSchema = updateIntegrationDeliverooSiteStatusResponseSchema;
|
|
2208
|
+
querySchema = void 0;
|
|
2209
|
+
headersSchema = void 0;
|
|
2210
|
+
integrationDeliverooId;
|
|
2211
|
+
constructor(integrationDeliverooId, input) {
|
|
2212
|
+
super(input);
|
|
2213
|
+
this.integrationDeliverooId = integrationDeliverooId;
|
|
2214
|
+
}
|
|
2215
|
+
getPath() {
|
|
2216
|
+
return `/integrations/deliveroo/${this.integrationDeliverooId}/site/status`;
|
|
2217
|
+
}
|
|
2218
|
+
};
|
|
2219
|
+
|
|
2220
|
+
// src/requests/services/glovo/CreateIntegrationGlovo.ts
|
|
2221
|
+
import { AbstractApiRequest as AbstractApiRequest51 } from "@deliverart/sdk-js-core";
|
|
2222
|
+
import { pointOfSalePathSchema as pointOfSalePathSchema6 } from "@deliverart/sdk-js-point-of-sale";
|
|
2223
|
+
var createIntegrationGlovoInputSchema = integrationGlovoEditableFieldsSchema.extend({
|
|
2224
|
+
pointOfSale: pointOfSalePathSchema6
|
|
2225
|
+
});
|
|
2226
|
+
var createIntegrationGlovoResponseSchema = integrationGlovoDetailsSchema;
|
|
2227
|
+
var CreateIntegrationGlovo = class extends AbstractApiRequest51 {
|
|
2228
|
+
method = "POST";
|
|
2229
|
+
contentType = "application/json";
|
|
2230
|
+
accept = "application/json";
|
|
2231
|
+
inputSchema = createIntegrationGlovoInputSchema;
|
|
2232
|
+
outputSchema = createIntegrationGlovoResponseSchema;
|
|
2233
|
+
querySchema = void 0;
|
|
2234
|
+
headersSchema = void 0;
|
|
2235
|
+
constructor(input) {
|
|
2236
|
+
super(input);
|
|
2237
|
+
}
|
|
2238
|
+
getPath() {
|
|
2239
|
+
return "/integrations/glovo";
|
|
2240
|
+
}
|
|
2241
|
+
};
|
|
2242
|
+
|
|
2243
|
+
// src/requests/services/glovo/DeleteIntegrationGlovo.ts
|
|
2244
|
+
import { AbstractApiRequest as AbstractApiRequest52 } from "@deliverart/sdk-js-core";
|
|
2245
|
+
import { z as z60 } from "zod";
|
|
2246
|
+
var deleteIntegrationGlovoInputSchema = z60.undefined();
|
|
2247
|
+
var deleteIntegrationGlovoResponseSchema = z60.undefined();
|
|
2248
|
+
var DeleteIntegrationGlovo = class extends AbstractApiRequest52 {
|
|
2249
|
+
method = "DELETE";
|
|
2250
|
+
contentType = "application/json";
|
|
2251
|
+
accept = "application/json";
|
|
2252
|
+
inputSchema = deleteIntegrationGlovoInputSchema;
|
|
2253
|
+
outputSchema = deleteIntegrationGlovoResponseSchema;
|
|
2254
|
+
querySchema = void 0;
|
|
2255
|
+
headersSchema = void 0;
|
|
2256
|
+
integrationGlovoId;
|
|
2257
|
+
constructor(integrationGlovoId) {
|
|
2258
|
+
super();
|
|
2259
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2260
|
+
}
|
|
2261
|
+
getPath() {
|
|
2262
|
+
return `/integrations/glovo/${this.integrationGlovoId}`;
|
|
2263
|
+
}
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
// src/requests/services/glovo/GetIntegrationGlovoClientLogRequestDetails.ts
|
|
2267
|
+
import { AbstractApiRequest as AbstractApiRequest53 } from "@deliverart/sdk-js-core";
|
|
2268
|
+
import { z as z61 } from "zod";
|
|
2269
|
+
var getIntegrationGlovoClientLogRequestDetailsInputSchema = z61.undefined();
|
|
2270
|
+
var getIntegrationGlovoClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
2271
|
+
var GetIntegrationGlovoClientLogRequestDetails = class extends AbstractApiRequest53 {
|
|
2272
|
+
method = "GET";
|
|
2273
|
+
contentType = "application/json";
|
|
2274
|
+
accept = "application/json";
|
|
2275
|
+
inputSchema = getIntegrationGlovoClientLogRequestDetailsInputSchema;
|
|
2276
|
+
outputSchema = getIntegrationGlovoClientLogRequestDetailsResponseSchema;
|
|
2277
|
+
querySchema = void 0;
|
|
2278
|
+
headersSchema = void 0;
|
|
2279
|
+
integrationGlovoId;
|
|
2280
|
+
requestId;
|
|
2281
|
+
constructor(integrationGlovoId, requestId) {
|
|
2282
|
+
super();
|
|
2283
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2284
|
+
this.requestId = requestId;
|
|
2285
|
+
}
|
|
2286
|
+
getPath() {
|
|
2287
|
+
return `/integrations/glovo/${this.integrationGlovoId}/client_log_requests/${this.requestId}`;
|
|
2288
|
+
}
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
// src/requests/services/glovo/GetIntegrationGlovoClientLogRequests.ts
|
|
2292
|
+
import { AbstractApiRequest as AbstractApiRequest54 } from "@deliverart/sdk-js-core";
|
|
2293
|
+
import {
|
|
2294
|
+
createPaginatedSchema as createPaginatedSchema13,
|
|
2295
|
+
responseToPagination as responseToPagination13
|
|
2296
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2297
|
+
import { z as z62 } from "zod";
|
|
2298
|
+
var getIntegrationGlovoClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
2299
|
+
var getIntegrationGlovoClientLogRequestsResponseSchema = createPaginatedSchema13(
|
|
2300
|
+
integrationClientLogRequestSchema
|
|
2301
|
+
);
|
|
2302
|
+
var getIntegrationGlovoClientLogRequestsInputSchema = z62.undefined();
|
|
2303
|
+
var GetIntegrationGlovoClientLogRequests = class extends AbstractApiRequest54 {
|
|
2304
|
+
method = "GET";
|
|
2305
|
+
contentType = "application/json";
|
|
2306
|
+
accept = "application/json";
|
|
2307
|
+
inputSchema = getIntegrationGlovoClientLogRequestsInputSchema;
|
|
2308
|
+
outputSchema = getIntegrationGlovoClientLogRequestsResponseSchema;
|
|
2309
|
+
querySchema = getIntegrationGlovoClientLogRequestsQuerySchema;
|
|
2310
|
+
headersSchema = void 0;
|
|
2311
|
+
integrationGlovoId;
|
|
2312
|
+
constructor(integrationGlovoId, options) {
|
|
2313
|
+
super(void 0, options);
|
|
2314
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2315
|
+
}
|
|
2316
|
+
getPath() {
|
|
2317
|
+
return `/integrations/glovo/${this.integrationGlovoId}/client_log_requests`;
|
|
2318
|
+
}
|
|
2319
|
+
parseResponse(data, rawResponse) {
|
|
2320
|
+
const integrations = z62.array(integrationClientLogRequestSchema).parse(data);
|
|
2321
|
+
return this.validateOutput({
|
|
2322
|
+
data: integrations,
|
|
2323
|
+
pagination: responseToPagination13(rawResponse)
|
|
2324
|
+
});
|
|
2325
|
+
}
|
|
2326
|
+
};
|
|
2327
|
+
|
|
2328
|
+
// src/requests/services/glovo/GetIntegrationGlovoDetails.ts
|
|
2329
|
+
import { AbstractApiRequest as AbstractApiRequest55 } from "@deliverart/sdk-js-core";
|
|
2330
|
+
import { z as z63 } from "zod";
|
|
2331
|
+
var getIntegrationGlovoDetailsInputSchema = z63.undefined();
|
|
2332
|
+
var getIntegrationGlovoDetailsResponseSchema = integrationGlovoDetailsSchema;
|
|
2333
|
+
var GetIntegrationGlovoDetails = class extends AbstractApiRequest55 {
|
|
2334
|
+
method = "GET";
|
|
2335
|
+
contentType = "application/json";
|
|
2336
|
+
accept = "application/json";
|
|
2337
|
+
inputSchema = getIntegrationGlovoDetailsInputSchema;
|
|
2338
|
+
outputSchema = getIntegrationGlovoDetailsResponseSchema;
|
|
2339
|
+
querySchema = void 0;
|
|
2340
|
+
headersSchema = void 0;
|
|
2341
|
+
integrationGlovoId;
|
|
2342
|
+
constructor(integrationGlovoId) {
|
|
2343
|
+
super();
|
|
2344
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2345
|
+
}
|
|
2346
|
+
getPath() {
|
|
2347
|
+
return `/integrations/glovo/${this.integrationGlovoId}`;
|
|
2348
|
+
}
|
|
2349
|
+
};
|
|
2350
|
+
|
|
2351
|
+
// src/requests/services/glovo/GetIntegrationGlovoList.ts
|
|
2352
|
+
import { AbstractApiRequest as AbstractApiRequest56 } from "@deliverart/sdk-js-core";
|
|
2353
|
+
import {
|
|
2354
|
+
createPaginatedSchema as createPaginatedSchema14,
|
|
2355
|
+
responseToPagination as responseToPagination14
|
|
2356
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2357
|
+
import { z as z64 } from "zod";
|
|
2358
|
+
var getIntegrationGlovoListQuerySchema = integrationsGlovoQuerySchema.omit({
|
|
2359
|
+
service: true
|
|
2360
|
+
});
|
|
2361
|
+
var getIntegrationGlovoListResponseSchema = createPaginatedSchema14(integrationGlovoSchema);
|
|
2362
|
+
var getIntegrationGlovoListInputSchema = z64.undefined();
|
|
2363
|
+
var GetIntegrationGlovoList = class extends AbstractApiRequest56 {
|
|
2364
|
+
method = "GET";
|
|
2365
|
+
contentType = "application/json";
|
|
2366
|
+
accept = "application/json";
|
|
2367
|
+
inputSchema = getIntegrationGlovoListInputSchema;
|
|
2368
|
+
outputSchema = getIntegrationGlovoListResponseSchema;
|
|
2369
|
+
querySchema = getIntegrationGlovoListQuerySchema;
|
|
2370
|
+
headersSchema = void 0;
|
|
2371
|
+
constructor(options) {
|
|
2372
|
+
super(void 0, options);
|
|
2373
|
+
}
|
|
2374
|
+
getPath() {
|
|
2375
|
+
return "/integrations/glovo";
|
|
2376
|
+
}
|
|
2377
|
+
parseResponse(data, rawResponse) {
|
|
2378
|
+
const integrations = z64.array(integrationGlovoSchema).parse(data);
|
|
2379
|
+
return this.validateOutput({
|
|
2380
|
+
data: integrations,
|
|
2381
|
+
pagination: responseToPagination14(rawResponse)
|
|
2382
|
+
});
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdateDetails.ts
|
|
2387
|
+
import { AbstractApiRequest as AbstractApiRequest57 } from "@deliverart/sdk-js-core";
|
|
2388
|
+
import { z as z65 } from "zod";
|
|
2389
|
+
var getIntegrationGlovoMenuUpdateDetailsInputSchema = z65.undefined();
|
|
2390
|
+
var getIntegrationGlovoMenuUpdateDetailsResponseSchema = integrationGlovoMenuUpdateDetailsSchema;
|
|
2391
|
+
var GetIntegrationGlovoMenuUpdateDetails = class extends AbstractApiRequest57 {
|
|
2392
|
+
method = "GET";
|
|
2393
|
+
contentType = "application/json";
|
|
2394
|
+
accept = "application/json";
|
|
2395
|
+
inputSchema = getIntegrationGlovoMenuUpdateDetailsInputSchema;
|
|
2396
|
+
outputSchema = getIntegrationGlovoMenuUpdateDetailsResponseSchema;
|
|
2397
|
+
querySchema = void 0;
|
|
2398
|
+
headersSchema = void 0;
|
|
2399
|
+
integrationGlovoId;
|
|
2400
|
+
processId;
|
|
2401
|
+
constructor(integrationGlovoId, processId) {
|
|
2402
|
+
super();
|
|
2403
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2404
|
+
this.processId = processId;
|
|
2405
|
+
}
|
|
2406
|
+
getPath() {
|
|
2407
|
+
return `/integrations/glovo/${this.integrationGlovoId}/menu_updates/${this.processId}`;
|
|
2408
|
+
}
|
|
2409
|
+
};
|
|
2410
|
+
|
|
2411
|
+
// src/requests/services/glovo/GetIntegrationGlovoMenuUpdates.ts
|
|
2412
|
+
import { AbstractApiRequest as AbstractApiRequest58 } from "@deliverart/sdk-js-core";
|
|
2413
|
+
import {
|
|
2414
|
+
createPaginatedSchema as createPaginatedSchema15,
|
|
2415
|
+
responseToPagination as responseToPagination15
|
|
2416
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2417
|
+
import { z as z66 } from "zod";
|
|
2418
|
+
var getIntegrationGlovoMenuUpdatesQuerySchema = z66.object({
|
|
2419
|
+
page: z66.number().optional()
|
|
2420
|
+
});
|
|
2421
|
+
var getIntegrationGlovoMenuUpdatesResponseSchema = createPaginatedSchema15(
|
|
2422
|
+
integrationGlovoMenuUpdateSchema
|
|
2423
|
+
);
|
|
2424
|
+
var getIntegrationGlovoMenuUpdatesInputSchema = z66.undefined();
|
|
2425
|
+
var GetIntegrationGlovoMenuUpdates = class extends AbstractApiRequest58 {
|
|
2426
|
+
method = "GET";
|
|
2427
|
+
contentType = "application/json";
|
|
2428
|
+
accept = "application/json";
|
|
2429
|
+
inputSchema = getIntegrationGlovoMenuUpdatesInputSchema;
|
|
2430
|
+
outputSchema = getIntegrationGlovoMenuUpdatesResponseSchema;
|
|
2431
|
+
querySchema = getIntegrationGlovoMenuUpdatesQuerySchema;
|
|
2432
|
+
headersSchema = void 0;
|
|
2433
|
+
integrationId;
|
|
2434
|
+
constructor(integrationId, options) {
|
|
2435
|
+
super(void 0, options);
|
|
2436
|
+
this.integrationId = integrationId;
|
|
2437
|
+
}
|
|
2438
|
+
getPath() {
|
|
2439
|
+
return `/integrations/glovo/${this.integrationId}/menu_updates`;
|
|
2440
|
+
}
|
|
2441
|
+
parseResponse(data, rawResponse) {
|
|
2442
|
+
const integrations = z66.array(integrationGlovoMenuUpdateSchema).parse(data);
|
|
2443
|
+
return this.validateOutput({
|
|
2444
|
+
data: integrations,
|
|
2445
|
+
pagination: responseToPagination15(rawResponse)
|
|
2446
|
+
});
|
|
2447
|
+
}
|
|
2448
|
+
};
|
|
2449
|
+
|
|
2450
|
+
// src/requests/services/glovo/GetIntegrationGlovoMenuVersionDetails.ts
|
|
2451
|
+
import { AbstractApiRequest as AbstractApiRequest59 } from "@deliverart/sdk-js-core";
|
|
2452
|
+
import { z as z67 } from "zod";
|
|
2453
|
+
var getIntegrationGlovoMenuVersionDetailsInputSchema = z67.undefined();
|
|
2454
|
+
var getIntegrationGlovoMenuVersionDetailsResponseSchema = menuVersionDetailsSchema;
|
|
2455
|
+
var GetIntegrationGlovoMenuVersionDetails = class extends AbstractApiRequest59 {
|
|
2456
|
+
method = "GET";
|
|
2457
|
+
contentType = "application/json";
|
|
2458
|
+
accept = "application/json";
|
|
2459
|
+
inputSchema = getIntegrationGlovoMenuVersionDetailsInputSchema;
|
|
2460
|
+
outputSchema = getIntegrationGlovoMenuVersionDetailsResponseSchema;
|
|
2461
|
+
querySchema = void 0;
|
|
2462
|
+
headersSchema = void 0;
|
|
2463
|
+
integrationGlovoId;
|
|
2464
|
+
versionId;
|
|
2465
|
+
constructor(integrationGlovoId, versionId) {
|
|
2466
|
+
super();
|
|
2467
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2468
|
+
this.versionId = versionId;
|
|
2469
|
+
}
|
|
2470
|
+
getPath() {
|
|
2471
|
+
return `/integrations/glovo/${this.integrationGlovoId}/menu_versions/${this.versionId}`;
|
|
2472
|
+
}
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
// src/requests/services/glovo/GetIntegrationGlovoMenuVersions.ts
|
|
2476
|
+
import { AbstractApiRequest as AbstractApiRequest60 } from "@deliverart/sdk-js-core";
|
|
2477
|
+
import {
|
|
2478
|
+
createPaginatedSchema as createPaginatedSchema16,
|
|
2479
|
+
responseToPagination as responseToPagination16
|
|
2480
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2481
|
+
import { z as z68 } from "zod";
|
|
2482
|
+
var getIntegrationGlovoMenuVersionsQuerySchema = z68.object({
|
|
2483
|
+
page: z68.number().optional()
|
|
2484
|
+
});
|
|
2485
|
+
var getIntegrationGlovoMenuVersionsResponseSchema = createPaginatedSchema16(menuVersionSchema);
|
|
2486
|
+
var getIntegrationGlovoMenuVersionsInputSchema = z68.undefined();
|
|
2487
|
+
var GetIntegrationGlovoMenuVersions = class extends AbstractApiRequest60 {
|
|
2488
|
+
method = "GET";
|
|
2489
|
+
contentType = "application/json";
|
|
2490
|
+
accept = "application/json";
|
|
2491
|
+
inputSchema = getIntegrationGlovoMenuVersionsInputSchema;
|
|
2492
|
+
outputSchema = getIntegrationGlovoMenuVersionsResponseSchema;
|
|
2493
|
+
querySchema = getIntegrationGlovoMenuVersionsQuerySchema;
|
|
2494
|
+
headersSchema = void 0;
|
|
2495
|
+
integrationGlovoId;
|
|
2496
|
+
constructor(integrationGlovoId, options) {
|
|
2497
|
+
super(void 0, options);
|
|
2498
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2499
|
+
}
|
|
2500
|
+
getPath() {
|
|
2501
|
+
return `/integrations/glovo/${this.integrationGlovoId}/menu_versions`;
|
|
2502
|
+
}
|
|
2503
|
+
parseResponse(data, rawResponse) {
|
|
2504
|
+
const integrations = z68.array(menuVersionSchema).parse(data);
|
|
2505
|
+
return this.validateOutput({
|
|
2506
|
+
data: integrations,
|
|
2507
|
+
pagination: responseToPagination16(rawResponse)
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
// src/requests/services/glovo/GetIntegrationGlovoWebhookEventDetails.ts
|
|
2513
|
+
import { AbstractApiRequest as AbstractApiRequest61 } from "@deliverart/sdk-js-core";
|
|
2514
|
+
import { z as z69 } from "zod";
|
|
2515
|
+
var getIntegrationGlovoWebhookEventDetailsInputSchema = z69.undefined();
|
|
2516
|
+
var getIntegrationGlovoWebhookEventDetailsResponseSchema = integrationGlovoWebhookEventDetailsSchema;
|
|
2517
|
+
var GetIntegrationGlovoWebhookEventDetails = class extends AbstractApiRequest61 {
|
|
2518
|
+
method = "GET";
|
|
2519
|
+
contentType = "application/json";
|
|
2520
|
+
accept = "application/json";
|
|
2521
|
+
inputSchema = getIntegrationGlovoWebhookEventDetailsInputSchema;
|
|
2522
|
+
outputSchema = getIntegrationGlovoWebhookEventDetailsResponseSchema;
|
|
2523
|
+
querySchema = void 0;
|
|
2524
|
+
headersSchema = void 0;
|
|
2525
|
+
integrationGlovoId;
|
|
2526
|
+
eventId;
|
|
2527
|
+
constructor(integrationGlovoId, eventId) {
|
|
2528
|
+
super();
|
|
2529
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2530
|
+
this.eventId = eventId;
|
|
2531
|
+
}
|
|
2532
|
+
getPath() {
|
|
2533
|
+
return `/integrations/glovo/${this.integrationGlovoId}/webhook_events/${this.eventId}`;
|
|
2534
|
+
}
|
|
2535
|
+
};
|
|
2536
|
+
|
|
2537
|
+
// src/requests/services/glovo/GetIntegrationGlovoWebhookEvents.ts
|
|
2538
|
+
import { AbstractApiRequest as AbstractApiRequest62 } from "@deliverart/sdk-js-core";
|
|
2539
|
+
import {
|
|
2540
|
+
createPaginatedSchema as createPaginatedSchema17,
|
|
2541
|
+
responseToPagination as responseToPagination17
|
|
2542
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2543
|
+
import { z as z70 } from "zod";
|
|
2544
|
+
var getIntegrationGlovoWebhookEventsQuerySchema = integrationGlovoWebhookEventsQueryParamsSchema;
|
|
2545
|
+
var getIntegrationGlovoWebhookEventsResponseSchema = createPaginatedSchema17(
|
|
2546
|
+
integrationGlovoWebhookEventSchema
|
|
2547
|
+
);
|
|
2548
|
+
var getIntegrationGlovoWebhookEventsInputSchema = z70.undefined();
|
|
2549
|
+
var GetIntegrationGlovoWebhookEvents = class extends AbstractApiRequest62 {
|
|
2550
|
+
method = "GET";
|
|
2551
|
+
contentType = "application/json";
|
|
2552
|
+
accept = "application/json";
|
|
2553
|
+
inputSchema = getIntegrationGlovoWebhookEventsInputSchema;
|
|
2554
|
+
outputSchema = getIntegrationGlovoWebhookEventsResponseSchema;
|
|
2555
|
+
querySchema = getIntegrationGlovoWebhookEventsQuerySchema;
|
|
2556
|
+
headersSchema = void 0;
|
|
2557
|
+
integrationGlovoId;
|
|
2558
|
+
constructor(integrationGlovoId, options) {
|
|
2559
|
+
super(void 0, options);
|
|
2560
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2561
|
+
}
|
|
2562
|
+
getPath() {
|
|
2563
|
+
return `/integrations/glovo/${this.integrationGlovoId}/webhook_events`;
|
|
2564
|
+
}
|
|
2565
|
+
parseResponse(data, rawResponse) {
|
|
2566
|
+
const integrations = z70.array(integrationGlovoWebhookEventSchema).parse(data);
|
|
2567
|
+
return this.validateOutput({
|
|
2568
|
+
data: integrations,
|
|
2569
|
+
pagination: responseToPagination17(rawResponse)
|
|
2570
|
+
});
|
|
2571
|
+
}
|
|
2572
|
+
};
|
|
2573
|
+
|
|
2574
|
+
// src/requests/services/glovo/IntegrationGlovoSyncMenu.ts
|
|
2575
|
+
import { AbstractApiRequest as AbstractApiRequest63 } from "@deliverart/sdk-js-core";
|
|
2576
|
+
import { z as z71 } from "zod";
|
|
2577
|
+
var integrationGlovoSyncMenuInputSchema = z71.undefined();
|
|
2578
|
+
var integrationGlovoSyncMenuResponseSchema = z71.undefined();
|
|
2579
|
+
var IntegrationGlovoSyncMenu = class extends AbstractApiRequest63 {
|
|
2580
|
+
method = "POST";
|
|
2581
|
+
contentType = "application/json";
|
|
2582
|
+
accept = "application/json";
|
|
2583
|
+
inputSchema = integrationGlovoSyncMenuInputSchema;
|
|
2584
|
+
outputSchema = integrationGlovoSyncMenuResponseSchema;
|
|
2585
|
+
querySchema = void 0;
|
|
2586
|
+
headersSchema = void 0;
|
|
2587
|
+
integrationGlovoId;
|
|
2588
|
+
constructor(integrationGlovoId) {
|
|
2589
|
+
super();
|
|
2590
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2591
|
+
}
|
|
2592
|
+
getPath() {
|
|
2593
|
+
return `/integrations/glovo/${this.integrationGlovoId}/sync/menu`;
|
|
2594
|
+
}
|
|
2595
|
+
};
|
|
2596
|
+
|
|
2597
|
+
// src/requests/services/glovo/UpdateIntegrationGlovo.ts
|
|
2598
|
+
import { AbstractApiRequest as AbstractApiRequest64 } from "@deliverart/sdk-js-core";
|
|
2599
|
+
var updateIntegrationGlovoInputSchema = integrationGlovoEditableFieldsSchema;
|
|
2600
|
+
var updateIntegrationGlovoResponseSchema = integrationGlovoDetailsSchema;
|
|
2601
|
+
var UpdateIntegrationGlovo = class extends AbstractApiRequest64 {
|
|
2602
|
+
method = "PATCH";
|
|
2603
|
+
contentType = "application/merge-patch+json";
|
|
2604
|
+
accept = "application/json";
|
|
2605
|
+
inputSchema = updateIntegrationGlovoInputSchema;
|
|
2606
|
+
outputSchema = updateIntegrationGlovoResponseSchema;
|
|
2607
|
+
querySchema = void 0;
|
|
2608
|
+
headersSchema = void 0;
|
|
2609
|
+
integrationGlovoId;
|
|
2610
|
+
constructor(integrationGlovoId, input) {
|
|
2611
|
+
super(input);
|
|
2612
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2613
|
+
}
|
|
2614
|
+
getPath() {
|
|
2615
|
+
return `/integrations/glovo/${this.integrationGlovoId}`;
|
|
2616
|
+
}
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
// src/requests/services/glovo/UpdateIntegrationGlovoStoreStatus.ts
|
|
2620
|
+
import { AbstractApiRequest as AbstractApiRequest65 } from "@deliverart/sdk-js-core";
|
|
2621
|
+
import { z as z72 } from "zod";
|
|
2622
|
+
var updateIntegrationGlovoStoreStatusInputSchema = z72.object({
|
|
2623
|
+
status: integrationGlovoStoreStatusSchema
|
|
2624
|
+
});
|
|
2625
|
+
var updateIntegrationGlovoStoreStatusResponseSchema = integrationGlovoDetailsSchema;
|
|
2626
|
+
var UpdateIntegrationGlovoStoreStatus = class extends AbstractApiRequest65 {
|
|
2627
|
+
method = "POST";
|
|
2628
|
+
contentType = "application/json";
|
|
2629
|
+
accept = "application/json";
|
|
2630
|
+
inputSchema = updateIntegrationGlovoStoreStatusInputSchema;
|
|
2631
|
+
outputSchema = updateIntegrationGlovoStoreStatusResponseSchema;
|
|
2632
|
+
querySchema = void 0;
|
|
2633
|
+
headersSchema = void 0;
|
|
2634
|
+
integrationGlovoId;
|
|
2635
|
+
constructor(integrationGlovoId, input) {
|
|
2636
|
+
super(input);
|
|
2637
|
+
this.integrationGlovoId = integrationGlovoId;
|
|
2638
|
+
}
|
|
2639
|
+
getPath() {
|
|
2640
|
+
return `/integrations/glovo/${this.integrationGlovoId}/store/status`;
|
|
2641
|
+
}
|
|
2642
|
+
};
|
|
2643
|
+
|
|
2644
|
+
// src/requests/services/justeat/CreateIntegrationJustEat.ts
|
|
2645
|
+
import { AbstractApiRequest as AbstractApiRequest66 } from "@deliverart/sdk-js-core";
|
|
2646
|
+
import { pointOfSalePathSchema as pointOfSalePathSchema7 } from "@deliverart/sdk-js-point-of-sale";
|
|
2647
|
+
var createIntegrationJustEatInputSchema = integrationJustEatEditableFieldsSchema.extend({
|
|
2648
|
+
pointOfSale: pointOfSalePathSchema7
|
|
2649
|
+
});
|
|
2650
|
+
var createIntegrationJustEatResponseSchema = integrationJustEatDetailsSchema;
|
|
2651
|
+
var CreateIntegrationJustEat = class extends AbstractApiRequest66 {
|
|
2652
|
+
method = "POST";
|
|
2653
|
+
contentType = "application/json";
|
|
2654
|
+
accept = "application/json";
|
|
2655
|
+
inputSchema = createIntegrationJustEatInputSchema;
|
|
2656
|
+
outputSchema = createIntegrationJustEatResponseSchema;
|
|
2657
|
+
querySchema = void 0;
|
|
2658
|
+
headersSchema = void 0;
|
|
2659
|
+
constructor(input) {
|
|
2660
|
+
super(input);
|
|
2661
|
+
}
|
|
2662
|
+
getPath() {
|
|
2663
|
+
return "/integrations/justeat";
|
|
2664
|
+
}
|
|
2665
|
+
};
|
|
2666
|
+
|
|
2667
|
+
// src/requests/services/justeat/DeleteIntegrationJustEat.ts
|
|
2668
|
+
import { AbstractApiRequest as AbstractApiRequest67 } from "@deliverart/sdk-js-core";
|
|
2669
|
+
import { z as z73 } from "zod";
|
|
2670
|
+
var deleteIntegrationJustEatInputSchema = z73.undefined();
|
|
2671
|
+
var deleteIntegrationJustEatResponseSchema = z73.undefined();
|
|
2672
|
+
var DeleteIntegrationJustEat = class extends AbstractApiRequest67 {
|
|
2673
|
+
method = "DELETE";
|
|
2674
|
+
contentType = "application/json";
|
|
2675
|
+
accept = "application/json";
|
|
2676
|
+
inputSchema = deleteIntegrationJustEatInputSchema;
|
|
2677
|
+
outputSchema = deleteIntegrationJustEatResponseSchema;
|
|
2678
|
+
querySchema = void 0;
|
|
2679
|
+
headersSchema = void 0;
|
|
2680
|
+
integrationJustEatId;
|
|
2681
|
+
constructor(integrationJustEatId) {
|
|
2682
|
+
super();
|
|
2683
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2684
|
+
}
|
|
2685
|
+
getPath() {
|
|
2686
|
+
return `/integrations/justeat/${this.integrationJustEatId}`;
|
|
2687
|
+
}
|
|
2688
|
+
};
|
|
2689
|
+
|
|
2690
|
+
// src/requests/services/justeat/GetIntegrationJustEatClientLogRequestDetails.ts
|
|
2691
|
+
import { AbstractApiRequest as AbstractApiRequest68 } from "@deliverart/sdk-js-core";
|
|
2692
|
+
import { z as z74 } from "zod";
|
|
2693
|
+
var getIntegrationJustEatClientLogRequestDetailsInputSchema = z74.undefined();
|
|
2694
|
+
var getIntegrationJustEatClientLogRequestDetailsResponseSchema = integrationClientLogRequestDetailsSchema;
|
|
2695
|
+
var GetIntegrationJustEatClientLogRequestDetails = class extends AbstractApiRequest68 {
|
|
2696
|
+
method = "GET";
|
|
2697
|
+
contentType = "application/json";
|
|
2698
|
+
accept = "application/json";
|
|
2699
|
+
inputSchema = getIntegrationJustEatClientLogRequestDetailsInputSchema;
|
|
2700
|
+
outputSchema = getIntegrationJustEatClientLogRequestDetailsResponseSchema;
|
|
2701
|
+
querySchema = void 0;
|
|
2702
|
+
headersSchema = void 0;
|
|
2703
|
+
integrationJustEatId;
|
|
2704
|
+
requestId;
|
|
2705
|
+
constructor(integrationJustEatId, requestId) {
|
|
2706
|
+
super();
|
|
2707
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2708
|
+
this.requestId = requestId;
|
|
2709
|
+
}
|
|
2710
|
+
getPath() {
|
|
2711
|
+
return `/integrations/justeat/${this.integrationJustEatId}/client_log_requests/${this.requestId}`;
|
|
2712
|
+
}
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
// src/requests/services/justeat/GetIntegrationJustEatClientLogRequests.ts
|
|
2716
|
+
import { AbstractApiRequest as AbstractApiRequest69 } from "@deliverart/sdk-js-core";
|
|
2717
|
+
import {
|
|
2718
|
+
createPaginatedSchema as createPaginatedSchema18,
|
|
2719
|
+
responseToPagination as responseToPagination18
|
|
2720
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2721
|
+
import { z as z75 } from "zod";
|
|
2722
|
+
var getIntegrationJustEatClientLogRequestsQuerySchema = clientLogRequestQuerySchema;
|
|
2723
|
+
var getIntegrationJustEatClientLogRequestsResponseSchema = createPaginatedSchema18(
|
|
2724
|
+
integrationClientLogRequestSchema
|
|
2725
|
+
);
|
|
2726
|
+
var getIntegrationJustEatClientLogRequestsInputSchema = z75.undefined();
|
|
2727
|
+
var GetIntegrationJustEatClientLogRequests = class extends AbstractApiRequest69 {
|
|
2728
|
+
method = "GET";
|
|
2729
|
+
contentType = "application/json";
|
|
2730
|
+
accept = "application/json";
|
|
2731
|
+
inputSchema = getIntegrationJustEatClientLogRequestsInputSchema;
|
|
2732
|
+
outputSchema = getIntegrationJustEatClientLogRequestsResponseSchema;
|
|
2733
|
+
querySchema = getIntegrationJustEatClientLogRequestsQuerySchema;
|
|
2734
|
+
headersSchema = void 0;
|
|
2735
|
+
integrationJustEatId;
|
|
2736
|
+
constructor(integrationJustEatId, options) {
|
|
2737
|
+
super(void 0, options);
|
|
2738
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2739
|
+
}
|
|
2740
|
+
getPath() {
|
|
2741
|
+
return `/integrations/justeat/${this.integrationJustEatId}/client_log_requests`;
|
|
2742
|
+
}
|
|
2743
|
+
parseResponse(data, rawResponse) {
|
|
2744
|
+
const integrations = z75.array(integrationClientLogRequestSchema).parse(data);
|
|
2745
|
+
return this.validateOutput({
|
|
2746
|
+
data: integrations,
|
|
2747
|
+
pagination: responseToPagination18(rawResponse)
|
|
2748
|
+
});
|
|
2749
|
+
}
|
|
2750
|
+
};
|
|
2751
|
+
|
|
2752
|
+
// src/requests/services/justeat/GetIntegrationJustEatDetails.ts
|
|
2753
|
+
import { AbstractApiRequest as AbstractApiRequest70 } from "@deliverart/sdk-js-core";
|
|
2754
|
+
import { z as z76 } from "zod";
|
|
2755
|
+
var getIntegrationJustEatDetailsInputSchema = z76.undefined();
|
|
2756
|
+
var getIntegrationJustEatDetailsResponseSchema = integrationJustEatDetailsSchema;
|
|
2757
|
+
var GetIntegrationJustEatDetails = class extends AbstractApiRequest70 {
|
|
2758
|
+
method = "GET";
|
|
2759
|
+
contentType = "application/json";
|
|
2760
|
+
accept = "application/json";
|
|
2761
|
+
inputSchema = getIntegrationJustEatDetailsInputSchema;
|
|
2762
|
+
outputSchema = getIntegrationJustEatDetailsResponseSchema;
|
|
2763
|
+
querySchema = void 0;
|
|
2764
|
+
headersSchema = void 0;
|
|
2765
|
+
integrationJustEatId;
|
|
2766
|
+
constructor(integrationJustEatId) {
|
|
2767
|
+
super();
|
|
2768
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2769
|
+
}
|
|
2770
|
+
getPath() {
|
|
2771
|
+
return `/integrations/justeat/${this.integrationJustEatId}`;
|
|
2772
|
+
}
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2775
|
+
// src/requests/services/justeat/GetIntegrationJustEatList.ts
|
|
2776
|
+
import { AbstractApiRequest as AbstractApiRequest71 } from "@deliverart/sdk-js-core";
|
|
2777
|
+
import {
|
|
2778
|
+
createPaginatedSchema as createPaginatedSchema19,
|
|
2779
|
+
responseToPagination as responseToPagination19
|
|
2780
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2781
|
+
import { z as z77 } from "zod";
|
|
2782
|
+
var getIntegrationJustEatListQuerySchema = integrationsJustEatQuerySchema.omit({
|
|
2783
|
+
service: true
|
|
2784
|
+
});
|
|
2785
|
+
var getIntegrationJustEatListResponseSchema = createPaginatedSchema19(integrationJustEatSchema);
|
|
2786
|
+
var getIntegrationJustEatListInputSchema = z77.undefined();
|
|
2787
|
+
var GetIntegrationJustEatList = class extends AbstractApiRequest71 {
|
|
2788
|
+
method = "GET";
|
|
2789
|
+
contentType = "application/json";
|
|
2790
|
+
accept = "application/json";
|
|
2791
|
+
inputSchema = getIntegrationJustEatListInputSchema;
|
|
2792
|
+
outputSchema = getIntegrationJustEatListResponseSchema;
|
|
2793
|
+
querySchema = getIntegrationJustEatListQuerySchema;
|
|
2794
|
+
headersSchema = void 0;
|
|
2795
|
+
constructor(options) {
|
|
2796
|
+
super(void 0, options);
|
|
2797
|
+
}
|
|
2798
|
+
getPath() {
|
|
2799
|
+
return "/integrations/justeat";
|
|
2800
|
+
}
|
|
2801
|
+
parseResponse(data, rawResponse) {
|
|
2802
|
+
const integrations = z77.array(integrationJustEatSchema).parse(data);
|
|
2803
|
+
return this.validateOutput({
|
|
2804
|
+
data: integrations,
|
|
2805
|
+
pagination: responseToPagination19(rawResponse)
|
|
2806
|
+
});
|
|
2807
|
+
}
|
|
2808
|
+
};
|
|
2809
|
+
|
|
2810
|
+
// src/requests/services/justeat/GetIntegrationJustEatMenuVersionDetails.ts
|
|
2811
|
+
import { AbstractApiRequest as AbstractApiRequest72 } from "@deliverart/sdk-js-core";
|
|
2812
|
+
import { z as z78 } from "zod";
|
|
2813
|
+
var getIntegrationJustEatMenuVersionDetailsInputSchema = z78.undefined();
|
|
2814
|
+
var getIntegrationJustEatMenuVersionDetailsResponseSchema = menuVersionDetailsSchema;
|
|
2815
|
+
var GetIntegrationJustEatMenuVersionDetails = class extends AbstractApiRequest72 {
|
|
2816
|
+
method = "GET";
|
|
2817
|
+
contentType = "application/json";
|
|
2818
|
+
accept = "application/json";
|
|
2819
|
+
inputSchema = getIntegrationJustEatMenuVersionDetailsInputSchema;
|
|
2820
|
+
outputSchema = getIntegrationJustEatMenuVersionDetailsResponseSchema;
|
|
2821
|
+
querySchema = void 0;
|
|
2822
|
+
headersSchema = void 0;
|
|
2823
|
+
integrationJustEatId;
|
|
2824
|
+
versionId;
|
|
2825
|
+
constructor(integrationJustEatId, versionId) {
|
|
2826
|
+
super();
|
|
2827
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2828
|
+
this.versionId = versionId;
|
|
2829
|
+
}
|
|
2830
|
+
getPath() {
|
|
2831
|
+
return `/integrations/justeat/${this.integrationJustEatId}/menu_versions/${this.versionId}`;
|
|
2832
|
+
}
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2835
|
+
// src/requests/services/justeat/GetIntegrationJustEatMenuVersions.ts
|
|
2836
|
+
import { AbstractApiRequest as AbstractApiRequest73 } from "@deliverart/sdk-js-core";
|
|
2837
|
+
import {
|
|
2838
|
+
createPaginatedSchema as createPaginatedSchema20,
|
|
2839
|
+
responseToPagination as responseToPagination20
|
|
2840
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2841
|
+
import { z as z79 } from "zod";
|
|
2842
|
+
var getIntegrationJustEatMenuVersionsQuerySchema = z79.object({
|
|
2843
|
+
page: z79.number().optional()
|
|
2844
|
+
});
|
|
2845
|
+
var getIntegrationJustEatMenuVersionsResponseSchema = createPaginatedSchema20(menuVersionSchema);
|
|
2846
|
+
var getIntegrationJustEatMenuVersionsInputSchema = z79.undefined();
|
|
2847
|
+
var GetIntegrationJustEatMenuVersions = class extends AbstractApiRequest73 {
|
|
2848
|
+
method = "GET";
|
|
2849
|
+
contentType = "application/json";
|
|
2850
|
+
accept = "application/json";
|
|
2851
|
+
inputSchema = getIntegrationJustEatMenuVersionsInputSchema;
|
|
2852
|
+
outputSchema = getIntegrationJustEatMenuVersionsResponseSchema;
|
|
2853
|
+
querySchema = getIntegrationJustEatMenuVersionsQuerySchema;
|
|
2854
|
+
headersSchema = void 0;
|
|
2855
|
+
integrationJustEatId;
|
|
2856
|
+
constructor(integrationJustEatId, options) {
|
|
2857
|
+
super(void 0, options);
|
|
2858
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2859
|
+
}
|
|
2860
|
+
getPath() {
|
|
2861
|
+
return `/integrations/justeat/${this.integrationJustEatId}/menu_versions`;
|
|
2862
|
+
}
|
|
2863
|
+
parseResponse(data, rawResponse) {
|
|
2864
|
+
const integrations = z79.array(menuVersionSchema).parse(data);
|
|
2865
|
+
return this.validateOutput({
|
|
2866
|
+
data: integrations,
|
|
2867
|
+
pagination: responseToPagination20(rawResponse)
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
|
|
2872
|
+
// src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcessDetails.ts
|
|
2873
|
+
import { AbstractApiRequest as AbstractApiRequest74 } from "@deliverart/sdk-js-core";
|
|
2874
|
+
import { z as z80 } from "zod";
|
|
2875
|
+
var getIntegrationJustEatSyncMenuProcessDetailsInputSchema = z80.undefined();
|
|
2876
|
+
var getIntegrationJustEatSyncMenuProcessDetailsResponseSchema = integrationJustEatSyncMenuProcessDetailsSchema;
|
|
2877
|
+
var GetIntegrationJustEatSyncMenuProcessDetails = class extends AbstractApiRequest74 {
|
|
2878
|
+
method = "GET";
|
|
2879
|
+
contentType = "application/json";
|
|
2880
|
+
accept = "application/json";
|
|
2881
|
+
inputSchema = getIntegrationJustEatSyncMenuProcessDetailsInputSchema;
|
|
2882
|
+
outputSchema = getIntegrationJustEatSyncMenuProcessDetailsResponseSchema;
|
|
2883
|
+
querySchema = void 0;
|
|
2884
|
+
headersSchema = void 0;
|
|
2885
|
+
integrationJustEatId;
|
|
2886
|
+
processId;
|
|
2887
|
+
constructor(integrationJustEatId, processId) {
|
|
2888
|
+
super();
|
|
2889
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2890
|
+
this.processId = processId;
|
|
2891
|
+
}
|
|
2892
|
+
getPath() {
|
|
2893
|
+
return `/integrations/justeat/${this.integrationJustEatId}/sync_menu_processes/${this.processId}`;
|
|
2894
|
+
}
|
|
2895
|
+
};
|
|
2896
|
+
|
|
2897
|
+
// src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcesses.ts
|
|
2898
|
+
import { AbstractApiRequest as AbstractApiRequest75 } from "@deliverart/sdk-js-core";
|
|
2899
|
+
import {
|
|
2900
|
+
createPaginatedSchema as createPaginatedSchema21,
|
|
2901
|
+
responseToPagination as responseToPagination21
|
|
2902
|
+
} from "@deliverart/sdk-js-global-types";
|
|
2903
|
+
import { z as z81 } from "zod";
|
|
2904
|
+
var getIntegrationJustEatSyncMenuProcessesQuerySchema = z81.object({
|
|
2905
|
+
page: z81.number().optional()
|
|
2906
|
+
});
|
|
2907
|
+
var getIntegrationJustEatSyncMenuProcessesResponseSchema = createPaginatedSchema21(
|
|
2908
|
+
integrationJustEatSyncMenuProcessSchema
|
|
2909
|
+
);
|
|
2910
|
+
var getIntegrationJustEatSyncMenuProcessesInputSchema = z81.undefined();
|
|
2911
|
+
var GetIntegrationJustEatSyncMenuProcesses = class extends AbstractApiRequest75 {
|
|
2912
|
+
method = "GET";
|
|
2913
|
+
contentType = "application/json";
|
|
2914
|
+
accept = "application/json";
|
|
2915
|
+
inputSchema = getIntegrationJustEatSyncMenuProcessesInputSchema;
|
|
2916
|
+
outputSchema = getIntegrationJustEatSyncMenuProcessesResponseSchema;
|
|
2917
|
+
querySchema = getIntegrationJustEatSyncMenuProcessesQuerySchema;
|
|
2918
|
+
headersSchema = void 0;
|
|
2919
|
+
integrationJustEatId;
|
|
2920
|
+
constructor(integrationJustEatId, options) {
|
|
2921
|
+
super(void 0, options);
|
|
2922
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2923
|
+
}
|
|
2924
|
+
getPath() {
|
|
2925
|
+
return `/integrations/justeat/${this.integrationJustEatId}/sync_menu_processes`;
|
|
2926
|
+
}
|
|
2927
|
+
parseResponse(data, rawResponse) {
|
|
2928
|
+
const integrations = z81.array(integrationJustEatSyncMenuProcessSchema).parse(data);
|
|
2929
|
+
return this.validateOutput({
|
|
2930
|
+
data: integrations,
|
|
2931
|
+
pagination: responseToPagination21(rawResponse)
|
|
2932
|
+
});
|
|
2933
|
+
}
|
|
2934
|
+
};
|
|
2935
|
+
|
|
2936
|
+
// src/requests/services/justeat/IntegrationJustEatSyncMenu.ts
|
|
2937
|
+
import { AbstractApiRequest as AbstractApiRequest76 } from "@deliverart/sdk-js-core";
|
|
2938
|
+
import { z as z82 } from "zod";
|
|
2939
|
+
var integrationJustEatSyncMenuInputSchema = z82.undefined();
|
|
2940
|
+
var integrationJustEatSyncMenuResponseSchema = z82.undefined();
|
|
2941
|
+
var IntegrationJustEatSyncMenu = class extends AbstractApiRequest76 {
|
|
2942
|
+
method = "POST";
|
|
2943
|
+
contentType = "application/json";
|
|
2944
|
+
accept = "application/json";
|
|
2945
|
+
inputSchema = integrationJustEatSyncMenuInputSchema;
|
|
2946
|
+
outputSchema = integrationJustEatSyncMenuResponseSchema;
|
|
2947
|
+
querySchema = void 0;
|
|
2948
|
+
headersSchema = void 0;
|
|
2949
|
+
integrationJustEatId;
|
|
2950
|
+
constructor(integrationJustEatId) {
|
|
2951
|
+
super();
|
|
2952
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2953
|
+
}
|
|
2954
|
+
getPath() {
|
|
2955
|
+
return `/integrations/justeat/${this.integrationJustEatId}/sync/menu`;
|
|
2956
|
+
}
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
// src/requests/services/justeat/IntegrationJustEatSyncOpeningTimes.ts
|
|
2960
|
+
import { AbstractApiRequest as AbstractApiRequest77 } from "@deliverart/sdk-js-core";
|
|
2961
|
+
import { z as z83 } from "zod";
|
|
2962
|
+
var integrationJustEatSyncOpeningHoursInputSchema = z83.undefined();
|
|
2963
|
+
var integrationJustEatSyncOpeningHoursResponseSchema = z83.undefined();
|
|
2964
|
+
var IntegrationJustEatSyncOpeningTimes = class extends AbstractApiRequest77 {
|
|
2965
|
+
method = "POST";
|
|
2966
|
+
contentType = "application/json";
|
|
2967
|
+
accept = "application/json";
|
|
2968
|
+
inputSchema = integrationJustEatSyncOpeningHoursInputSchema;
|
|
2969
|
+
outputSchema = integrationJustEatSyncOpeningHoursResponseSchema;
|
|
2970
|
+
querySchema = void 0;
|
|
2971
|
+
headersSchema = void 0;
|
|
2972
|
+
integrationJustEatId;
|
|
2973
|
+
constructor(integrationJustEatId) {
|
|
2974
|
+
super();
|
|
2975
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2976
|
+
}
|
|
2977
|
+
getPath() {
|
|
2978
|
+
return `/integrations/justeat/${this.integrationJustEatId}/sync/opening_times`;
|
|
2979
|
+
}
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2982
|
+
// src/requests/services/justeat/UpdateIntegrationJustEat.ts
|
|
2983
|
+
import { AbstractApiRequest as AbstractApiRequest78 } from "@deliverart/sdk-js-core";
|
|
2984
|
+
var updateIntegrationJustEatInputSchema = integrationJustEatEditableFieldsSchema;
|
|
2985
|
+
var updateIntegrationJustEatResponseSchema = integrationJustEatDetailsSchema;
|
|
2986
|
+
var UpdateIntegrationJustEat = class extends AbstractApiRequest78 {
|
|
2987
|
+
method = "PATCH";
|
|
2988
|
+
contentType = "application/merge-patch+json";
|
|
2989
|
+
accept = "application/json";
|
|
2990
|
+
inputSchema = updateIntegrationJustEatInputSchema;
|
|
2991
|
+
outputSchema = updateIntegrationJustEatResponseSchema;
|
|
2992
|
+
querySchema = void 0;
|
|
2993
|
+
headersSchema = void 0;
|
|
2994
|
+
integrationJustEatId;
|
|
2995
|
+
constructor(integrationJustEatId, input) {
|
|
2996
|
+
super(input);
|
|
2997
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
2998
|
+
}
|
|
2999
|
+
getPath() {
|
|
3000
|
+
return `/integrations/justeat/${this.integrationJustEatId}`;
|
|
3001
|
+
}
|
|
3002
|
+
};
|
|
3003
|
+
|
|
3004
|
+
// src/requests/services/justeat/UpdateIntegrationJustEatRestaurantStatus.ts
|
|
3005
|
+
import { AbstractApiRequest as AbstractApiRequest79 } from "@deliverart/sdk-js-core";
|
|
3006
|
+
import { z as z84 } from "zod";
|
|
3007
|
+
var updateIntegrationJustEatRestaurantStatusInputSchema = z84.object({
|
|
3008
|
+
status: integrationJustEatRestaurantStatusSchema
|
|
3009
|
+
});
|
|
3010
|
+
var updateIntegrationJustEatRestaurantStatusResponseSchema = integrationJustEatDetailsSchema;
|
|
3011
|
+
var UpdateIntegrationJustEatRestaurantStatus = class extends AbstractApiRequest79 {
|
|
3012
|
+
method = "POST";
|
|
3013
|
+
contentType = "application/json";
|
|
3014
|
+
accept = "application/json";
|
|
3015
|
+
inputSchema = updateIntegrationJustEatRestaurantStatusInputSchema;
|
|
3016
|
+
outputSchema = updateIntegrationJustEatRestaurantStatusResponseSchema;
|
|
3017
|
+
querySchema = void 0;
|
|
3018
|
+
headersSchema = void 0;
|
|
3019
|
+
integrationJustEatId;
|
|
3020
|
+
constructor(integrationJustEatId, input) {
|
|
3021
|
+
super(input);
|
|
3022
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
3023
|
+
}
|
|
3024
|
+
getPath() {
|
|
3025
|
+
return `/integrations/justeat/${this.integrationJustEatId}/restaurant/status`;
|
|
3026
|
+
}
|
|
3027
|
+
};
|
|
3028
|
+
|
|
3029
|
+
// src/requests/UpdateIntegration.ts
|
|
3030
|
+
import { AbstractApiRequest as AbstractApiRequest80 } from "@deliverart/sdk-js-core";
|
|
3031
|
+
var updateIntegrationInputSchema = writableIntegrationSchema.partial();
|
|
3032
|
+
var updateIntegrationResponseSchema = integrationDetailsSchema;
|
|
3033
|
+
var UpdateIntegration = class extends AbstractApiRequest80 {
|
|
3034
|
+
method = "PATCH";
|
|
3035
|
+
contentType = "application/merge-patch+json";
|
|
3036
|
+
accept = "application/json";
|
|
3037
|
+
inputSchema = updateIntegrationInputSchema;
|
|
3038
|
+
outputSchema = updateIntegrationResponseSchema;
|
|
3039
|
+
querySchema = void 0;
|
|
3040
|
+
headersSchema = void 0;
|
|
3041
|
+
integrationId;
|
|
3042
|
+
constructor(integrationId, input) {
|
|
3043
|
+
super(input);
|
|
3044
|
+
this.integrationId = integrationId;
|
|
3045
|
+
}
|
|
3046
|
+
getPath() {
|
|
3047
|
+
return `/integrations/${this.integrationId}`;
|
|
3048
|
+
}
|
|
3049
|
+
};
|
|
3050
|
+
export {
|
|
3051
|
+
ActivateIntegrationActivationRequest,
|
|
3052
|
+
AnnotateIntegrationActivationRequest,
|
|
3053
|
+
CancelIntegrationCancellationRequest,
|
|
3054
|
+
CreateIntegrationActivationRequest,
|
|
3055
|
+
CreateIntegrationCancellationRequest,
|
|
3056
|
+
CreateIntegrationCassaInCloud,
|
|
3057
|
+
CreateIntegrationDeliveroo,
|
|
3058
|
+
CreateIntegrationGlovo,
|
|
3059
|
+
CreateIntegrationJustEat,
|
|
3060
|
+
DeleteIntegration,
|
|
3061
|
+
DeleteIntegrationActivationRequest,
|
|
3062
|
+
DeleteIntegrationCancellationRequest,
|
|
3063
|
+
DeleteIntegrationCassaInCloud,
|
|
3064
|
+
DeleteIntegrationDeliveroo,
|
|
3065
|
+
DeleteIntegrationGlovo,
|
|
3066
|
+
DeleteIntegrationJustEat,
|
|
3067
|
+
GetIntegrationActivationRequestDetails,
|
|
3068
|
+
GetIntegrationActivationRequests,
|
|
3069
|
+
GetIntegrationCancellationRequestDetails,
|
|
3070
|
+
GetIntegrationCancellationRequests,
|
|
3071
|
+
GetIntegrationCassaInCloudClientLogRequestDetails,
|
|
3072
|
+
GetIntegrationCassaInCloudClientLogRequests,
|
|
3073
|
+
GetIntegrationCassaInCloudDetails,
|
|
3074
|
+
GetIntegrationCassaInCloudList,
|
|
3075
|
+
GetIntegrationCassaInCloudSyncMenuProcessDetails,
|
|
3076
|
+
GetIntegrationCassaInCloudSyncMenuProcesses,
|
|
3077
|
+
GetIntegrationCassaInCloudWebHookEventDetails,
|
|
3078
|
+
GetIntegrationCassaInCloudWebHookEvents,
|
|
3079
|
+
GetIntegrationDeliverooClientLogRequestDetails,
|
|
3080
|
+
GetIntegrationDeliverooClientLogRequests,
|
|
3081
|
+
GetIntegrationDeliverooDetails,
|
|
3082
|
+
GetIntegrationDeliverooList,
|
|
3083
|
+
GetIntegrationDeliverooMenuVersionDetails,
|
|
3084
|
+
GetIntegrationDeliverooMenuVersions,
|
|
3085
|
+
GetIntegrationDeliverooSyncMenuProcessDetails,
|
|
3086
|
+
GetIntegrationDeliverooSyncMenuProcesses,
|
|
3087
|
+
GetIntegrationDeliverooWebhookEventDetails,
|
|
3088
|
+
GetIntegrationDeliverooWebhookEvents,
|
|
3089
|
+
GetIntegrationDetails,
|
|
3090
|
+
GetIntegrationGlovoClientLogRequestDetails,
|
|
3091
|
+
GetIntegrationGlovoClientLogRequests,
|
|
3092
|
+
GetIntegrationGlovoDetails,
|
|
3093
|
+
GetIntegrationGlovoList,
|
|
3094
|
+
GetIntegrationGlovoMenuUpdateDetails,
|
|
3095
|
+
GetIntegrationGlovoMenuUpdates,
|
|
3096
|
+
GetIntegrationGlovoMenuVersionDetails,
|
|
3097
|
+
GetIntegrationGlovoMenuVersions,
|
|
3098
|
+
GetIntegrationGlovoWebhookEventDetails,
|
|
3099
|
+
GetIntegrationGlovoWebhookEvents,
|
|
3100
|
+
GetIntegrationJustEatClientLogRequestDetails,
|
|
3101
|
+
GetIntegrationJustEatClientLogRequests,
|
|
3102
|
+
GetIntegrationJustEatDetails,
|
|
3103
|
+
GetIntegrationJustEatList,
|
|
3104
|
+
GetIntegrationJustEatMenuVersionDetails,
|
|
3105
|
+
GetIntegrationJustEatMenuVersions,
|
|
3106
|
+
GetIntegrationJustEatSyncMenuProcessDetails,
|
|
3107
|
+
GetIntegrationJustEatSyncMenuProcesses,
|
|
3108
|
+
GetIntegrations,
|
|
3109
|
+
IntegrationCassaInCloudSyncCustomers,
|
|
3110
|
+
IntegrationCassaInCloudSyncOrganizations,
|
|
3111
|
+
IntegrationCassaInCloudSyncProducts,
|
|
3112
|
+
IntegrationCassaInCloudSyncSalesModes,
|
|
3113
|
+
IntegrationCassaInCloudSyncStock,
|
|
3114
|
+
IntegrationCassaInCloudSyncTimetables,
|
|
3115
|
+
IntegrationDeliverooSyncMenu,
|
|
3116
|
+
IntegrationDeliverooSyncOpeningHours,
|
|
3117
|
+
IntegrationGlovoSyncMenu,
|
|
3118
|
+
IntegrationJustEatSyncMenu,
|
|
3119
|
+
IntegrationJustEatSyncOpeningTimes,
|
|
3120
|
+
RespondIntegrationActivationRequest,
|
|
3121
|
+
SendIntegrationActivationRequestToPartner,
|
|
3122
|
+
UpdateIntegration,
|
|
3123
|
+
UpdateIntegrationActivationRequest,
|
|
3124
|
+
UpdateIntegrationCassaInCloud,
|
|
3125
|
+
UpdateIntegrationDeliveroo,
|
|
3126
|
+
UpdateIntegrationDeliverooSiteStatus,
|
|
3127
|
+
UpdateIntegrationGlovo,
|
|
3128
|
+
UpdateIntegrationGlovoStoreStatus,
|
|
3129
|
+
UpdateIntegrationJustEat,
|
|
3130
|
+
UpdateIntegrationJustEatRestaurantStatus,
|
|
3131
|
+
activatableIntegrationBaseSchema,
|
|
3132
|
+
activatableIntegrationHealthStatusSchema,
|
|
3133
|
+
activatableIntegrationHealthStatuses,
|
|
3134
|
+
activatableIntegrationSchema,
|
|
3135
|
+
activatableIntegrationStatusSchema,
|
|
3136
|
+
activatableIntegrationStatuses,
|
|
3137
|
+
activateIntegrationActivationRequestInputSchema,
|
|
3138
|
+
activateIntegrationActivationRequestResponseSchema,
|
|
3139
|
+
annotateIntegrationActivationRequestInputSchema,
|
|
3140
|
+
annotateIntegrationActivationRequestResponseSchema,
|
|
3141
|
+
cancelIntegrationCancellationRequestInputSchema,
|
|
3142
|
+
cancelIntegrationCancellationRequestResponseSchema,
|
|
3143
|
+
clientLogRequestQuerySchema,
|
|
3144
|
+
createIntegrationActivationRequestInputSchema,
|
|
3145
|
+
createIntegrationActivationRequestResponseSchema,
|
|
3146
|
+
createIntegrationCancellationRequestInputSchema,
|
|
3147
|
+
createIntegrationCancellationRequestResponseSchema,
|
|
3148
|
+
createIntegrationCassaInCloudInputSchema,
|
|
3149
|
+
createIntegrationCassaInCloudResponseSchema,
|
|
3150
|
+
createIntegrationDeliverooInputSchema,
|
|
3151
|
+
createIntegrationDeliverooResponseSchema,
|
|
3152
|
+
createIntegrationGlovoInputSchema,
|
|
3153
|
+
createIntegrationGlovoResponseSchema,
|
|
3154
|
+
createIntegrationJustEatInputSchema,
|
|
3155
|
+
createIntegrationJustEatResponseSchema,
|
|
3156
|
+
deleteIntegrationActivationRequestInputSchema,
|
|
3157
|
+
deleteIntegrationActivationRequestResponseSchema,
|
|
3158
|
+
deleteIntegrationCancellationRequestInputSchema,
|
|
3159
|
+
deleteIntegrationCancellationRequestResponseSchema,
|
|
3160
|
+
deleteIntegrationCassaInCloudInputSchema,
|
|
3161
|
+
deleteIntegrationCassaInCloudResponseSchema,
|
|
3162
|
+
deleteIntegrationDeliverooInputSchema,
|
|
3163
|
+
deleteIntegrationDeliverooResponseSchema,
|
|
3164
|
+
deleteIntegrationGlovoInputSchema,
|
|
3165
|
+
deleteIntegrationGlovoResponseSchema,
|
|
3166
|
+
deleteIntegrationInputSchema,
|
|
3167
|
+
deleteIntegrationJustEatInputSchema,
|
|
3168
|
+
deleteIntegrationJustEatResponseSchema,
|
|
3169
|
+
deleteIntegrationResponseSchema,
|
|
3170
|
+
getIntegrationActivationRequestDetailsInputSchema,
|
|
3171
|
+
getIntegrationActivationRequestDetailsResponseSchema,
|
|
3172
|
+
getIntegrationActivationRequestsInputSchema,
|
|
3173
|
+
getIntegrationActivationRequestsQuerySchema,
|
|
3174
|
+
getIntegrationActivationRequestsResponseSchema,
|
|
3175
|
+
getIntegrationCancellationRequestDetailsInputSchema,
|
|
3176
|
+
getIntegrationCancellationRequestDetailsResponseSchema,
|
|
3177
|
+
getIntegrationCancellationRequestsInputSchema,
|
|
3178
|
+
getIntegrationCancellationRequestsQuerySchema,
|
|
3179
|
+
getIntegrationCancellationRequestsResponseSchema,
|
|
3180
|
+
getIntegrationCassaInCloudClientLogRequestDetailsInputSchema,
|
|
3181
|
+
getIntegrationCassaInCloudClientLogRequestDetailsResponseSchema,
|
|
3182
|
+
getIntegrationCassaInCloudClientLogRequestsInputSchema,
|
|
3183
|
+
getIntegrationCassaInCloudClientLogRequestsQuerySchema,
|
|
3184
|
+
getIntegrationCassaInCloudClientLogRequestsResponseSchema,
|
|
3185
|
+
getIntegrationCassaInCloudDetailsInputSchema,
|
|
3186
|
+
getIntegrationCassaInCloudDetailsResponseSchema,
|
|
3187
|
+
getIntegrationCassaInCloudListInputSchema,
|
|
3188
|
+
getIntegrationCassaInCloudListQuerySchema,
|
|
3189
|
+
getIntegrationCassaInCloudListResponseSchema,
|
|
3190
|
+
getIntegrationCassaInCloudSyncMenuProcessDetailsInputSchema,
|
|
3191
|
+
getIntegrationCassaInCloudSyncMenuProcessDetailsResponseSchema,
|
|
3192
|
+
getIntegrationCassaInCloudSyncMenuProcessesInputSchema,
|
|
3193
|
+
getIntegrationCassaInCloudSyncMenuProcessesQuerySchema,
|
|
3194
|
+
getIntegrationCassaInCloudSyncMenuProcessesResponseSchema,
|
|
3195
|
+
getIntegrationCassaInCloudWebHookEventDetailsInputSchema,
|
|
3196
|
+
getIntegrationCassaInCloudWebHookEventDetailsResponseSchema,
|
|
3197
|
+
getIntegrationCassaInCloudWebHookEventsInputSchema,
|
|
3198
|
+
getIntegrationCassaInCloudWebHookEventsQuerySchema,
|
|
3199
|
+
getIntegrationCassaInCloudWebHookEventsResponseSchema,
|
|
3200
|
+
getIntegrationDeliverooClientLogRequestDetailsInputSchema,
|
|
3201
|
+
getIntegrationDeliverooClientLogRequestDetailsResponseSchema,
|
|
3202
|
+
getIntegrationDeliverooClientLogRequestsInputSchema,
|
|
3203
|
+
getIntegrationDeliverooClientLogRequestsQuerySchema,
|
|
3204
|
+
getIntegrationDeliverooClientLogRequestsResponseSchema,
|
|
3205
|
+
getIntegrationDeliverooDetailsInputSchema,
|
|
3206
|
+
getIntegrationDeliverooDetailsResponseSchema,
|
|
3207
|
+
getIntegrationDeliverooListInputSchema,
|
|
3208
|
+
getIntegrationDeliverooListQuerySchema,
|
|
3209
|
+
getIntegrationDeliverooListResponseSchema,
|
|
3210
|
+
getIntegrationDeliverooMenuVersionDetailsInputSchema,
|
|
3211
|
+
getIntegrationDeliverooMenuVersionDetailsResponseSchema,
|
|
3212
|
+
getIntegrationDeliverooMenuVersionsInputSchema,
|
|
3213
|
+
getIntegrationDeliverooMenuVersionsQuerySchema,
|
|
3214
|
+
getIntegrationDeliverooMenuVersionsResponseSchema,
|
|
3215
|
+
getIntegrationDeliverooSyncMenuProcessDetailsInputSchema,
|
|
3216
|
+
getIntegrationDeliverooSyncMenuProcessDetailsResponseSchema,
|
|
3217
|
+
getIntegrationDeliverooSyncMenuProcessesInputSchema,
|
|
3218
|
+
getIntegrationDeliverooSyncMenuProcessesQuerySchema,
|
|
3219
|
+
getIntegrationDeliverooSyncMenuProcessesResponseSchema,
|
|
3220
|
+
getIntegrationDeliverooWebhookEventDetailsInputSchema,
|
|
3221
|
+
getIntegrationDeliverooWebhookEventDetailsResponseSchema,
|
|
3222
|
+
getIntegrationDeliverooWebhookEventsInputSchema,
|
|
3223
|
+
getIntegrationDeliverooWebhookEventsQuerySchema,
|
|
3224
|
+
getIntegrationDeliverooWebhookEventsResponseSchema,
|
|
3225
|
+
getIntegrationDetailsInputSchema,
|
|
3226
|
+
getIntegrationDetailsResponseSchema,
|
|
3227
|
+
getIntegrationGlovoClientLogRequestDetailsInputSchema,
|
|
3228
|
+
getIntegrationGlovoClientLogRequestDetailsResponseSchema,
|
|
3229
|
+
getIntegrationGlovoClientLogRequestsInputSchema,
|
|
3230
|
+
getIntegrationGlovoClientLogRequestsQuerySchema,
|
|
3231
|
+
getIntegrationGlovoClientLogRequestsResponseSchema,
|
|
3232
|
+
getIntegrationGlovoDetailsInputSchema,
|
|
3233
|
+
getIntegrationGlovoDetailsResponseSchema,
|
|
3234
|
+
getIntegrationGlovoListInputSchema,
|
|
3235
|
+
getIntegrationGlovoListQuerySchema,
|
|
3236
|
+
getIntegrationGlovoListResponseSchema,
|
|
3237
|
+
getIntegrationGlovoMenuUpdateDetailsInputSchema,
|
|
3238
|
+
getIntegrationGlovoMenuUpdateDetailsResponseSchema,
|
|
3239
|
+
getIntegrationGlovoMenuUpdatesInputSchema,
|
|
3240
|
+
getIntegrationGlovoMenuUpdatesQuerySchema,
|
|
3241
|
+
getIntegrationGlovoMenuUpdatesResponseSchema,
|
|
3242
|
+
getIntegrationGlovoMenuVersionDetailsInputSchema,
|
|
3243
|
+
getIntegrationGlovoMenuVersionDetailsResponseSchema,
|
|
3244
|
+
getIntegrationGlovoMenuVersionsInputSchema,
|
|
3245
|
+
getIntegrationGlovoMenuVersionsQuerySchema,
|
|
3246
|
+
getIntegrationGlovoMenuVersionsResponseSchema,
|
|
3247
|
+
getIntegrationGlovoWebhookEventDetailsInputSchema,
|
|
3248
|
+
getIntegrationGlovoWebhookEventDetailsResponseSchema,
|
|
3249
|
+
getIntegrationGlovoWebhookEventsInputSchema,
|
|
3250
|
+
getIntegrationGlovoWebhookEventsQuerySchema,
|
|
3251
|
+
getIntegrationGlovoWebhookEventsResponseSchema,
|
|
3252
|
+
getIntegrationJustEatClientLogRequestDetailsInputSchema,
|
|
3253
|
+
getIntegrationJustEatClientLogRequestDetailsResponseSchema,
|
|
3254
|
+
getIntegrationJustEatClientLogRequestsInputSchema,
|
|
3255
|
+
getIntegrationJustEatClientLogRequestsQuerySchema,
|
|
3256
|
+
getIntegrationJustEatClientLogRequestsResponseSchema,
|
|
3257
|
+
getIntegrationJustEatDetailsInputSchema,
|
|
3258
|
+
getIntegrationJustEatDetailsResponseSchema,
|
|
3259
|
+
getIntegrationJustEatListInputSchema,
|
|
3260
|
+
getIntegrationJustEatListQuerySchema,
|
|
3261
|
+
getIntegrationJustEatListResponseSchema,
|
|
3262
|
+
getIntegrationJustEatMenuVersionDetailsInputSchema,
|
|
3263
|
+
getIntegrationJustEatMenuVersionDetailsResponseSchema,
|
|
3264
|
+
getIntegrationJustEatMenuVersionsInputSchema,
|
|
3265
|
+
getIntegrationJustEatMenuVersionsQuerySchema,
|
|
3266
|
+
getIntegrationJustEatMenuVersionsResponseSchema,
|
|
3267
|
+
getIntegrationJustEatSyncMenuProcessDetailsInputSchema,
|
|
3268
|
+
getIntegrationJustEatSyncMenuProcessDetailsResponseSchema,
|
|
3269
|
+
getIntegrationJustEatSyncMenuProcessesInputSchema,
|
|
3270
|
+
getIntegrationJustEatSyncMenuProcessesQuerySchema,
|
|
3271
|
+
getIntegrationJustEatSyncMenuProcessesResponseSchema,
|
|
3272
|
+
getIntegrationsInputSchema,
|
|
3273
|
+
getIntegrationsQuerySchema,
|
|
3274
|
+
getIntegrationsResponseSchema,
|
|
3275
|
+
integrationActivationRequestDetailsSchema,
|
|
3276
|
+
integrationActivationRequestSchema,
|
|
3277
|
+
integrationBaseSchema,
|
|
3278
|
+
integrationCancellationRequestDetailsSchema,
|
|
3279
|
+
integrationCancellationRequestNullablePathSchema,
|
|
3280
|
+
integrationCancellationRequestPathSchema,
|
|
3281
|
+
integrationCancellationRequestSchema,
|
|
3282
|
+
integrationCancellationRequestStatusSchema,
|
|
3283
|
+
integrationCancellationRequestStatuses,
|
|
3284
|
+
integrationCassaInCloudDataSchema,
|
|
3285
|
+
integrationCassaInCloudDirectionSchema,
|
|
3286
|
+
integrationCassaInCloudDirections,
|
|
3287
|
+
integrationCassaInCloudNullablePathSchema,
|
|
3288
|
+
integrationCassaInCloudPathSchema,
|
|
3289
|
+
integrationCassaInCloudProductChannelSchema,
|
|
3290
|
+
integrationCassaInCloudProductChannels,
|
|
3291
|
+
integrationCassaInCloudSyncCustomersInputSchema,
|
|
3292
|
+
integrationCassaInCloudSyncCustomersResponseSchema,
|
|
3293
|
+
integrationCassaInCloudSyncMenuErrorLogNullablePathSchema,
|
|
3294
|
+
integrationCassaInCloudSyncMenuErrorLogPathSchema,
|
|
3295
|
+
integrationCassaInCloudSyncOrganizationsInputSchema,
|
|
3296
|
+
integrationCassaInCloudSyncOrganizationsResponseSchema,
|
|
3297
|
+
integrationCassaInCloudSyncProductsInputSchema,
|
|
3298
|
+
integrationCassaInCloudSyncProductsResponseSchema,
|
|
3299
|
+
integrationCassaInCloudSyncSalesModesInputSchema,
|
|
3300
|
+
integrationCassaInCloudSyncSalesModesResponseSchema,
|
|
3301
|
+
integrationCassaInCloudSyncStockInputSchema,
|
|
3302
|
+
integrationCassaInCloudSyncStockResponseSchema,
|
|
3303
|
+
integrationCassaInCloudSyncTimetablesInputSchema,
|
|
3304
|
+
integrationCassaInCloudSyncTimetablesResponseSchema,
|
|
3305
|
+
integrationCassaInCloudWebHookEventEntities,
|
|
3306
|
+
integrationCassaInCloudWebHookEventEntitySchema,
|
|
3307
|
+
integrationCassaInCloudWebHookEventEventSchema,
|
|
3308
|
+
integrationCassaInCloudWebHookEventEvents,
|
|
3309
|
+
integrationClientLogRequestDetailsSchema,
|
|
3310
|
+
integrationClientLogRequestMethodSchema,
|
|
3311
|
+
integrationClientLogRequestMethods,
|
|
3312
|
+
integrationClientLogRequestSchema,
|
|
3313
|
+
integrationDeliverooDataSchema,
|
|
3314
|
+
integrationDeliverooNullablePathSchema,
|
|
3315
|
+
integrationDeliverooPathSchema,
|
|
3316
|
+
integrationDeliverooSiteStatusSchema,
|
|
3317
|
+
integrationDeliverooSiteStatuses,
|
|
3318
|
+
integrationDeliverooSyncMenuInputSchema,
|
|
3319
|
+
integrationDeliverooSyncMenuProcessModeSchema,
|
|
3320
|
+
integrationDeliverooSyncMenuProcessModes,
|
|
3321
|
+
integrationDeliverooSyncMenuResponseSchema,
|
|
3322
|
+
integrationDeliverooSyncOpeningHoursInputSchema,
|
|
3323
|
+
integrationDeliverooSyncOpeningHoursResponseSchema,
|
|
3324
|
+
integrationDeliverooWebhookEventTypeSchema,
|
|
3325
|
+
integrationDeliverooWebhookEventTypes,
|
|
3326
|
+
integrationDeliveryProviderCommonSchema,
|
|
3327
|
+
integrationDetailsFieldsSchema,
|
|
3328
|
+
integrationGlovoDataSchema,
|
|
3329
|
+
integrationGlovoMenuUpdateStatusSchema,
|
|
3330
|
+
integrationGlovoMenuUpdateStatuses,
|
|
3331
|
+
integrationGlovoNullablePathSchema,
|
|
3332
|
+
integrationGlovoPathSchema,
|
|
3333
|
+
integrationGlovoStoreStatusSchema,
|
|
3334
|
+
integrationGlovoStoreStatuses,
|
|
3335
|
+
integrationGlovoSyncMenuInputSchema,
|
|
3336
|
+
integrationGlovoSyncMenuResponseSchema,
|
|
3337
|
+
integrationGlovoWebhookEventTypeSchema,
|
|
3338
|
+
integrationGlovoWebhookEventTypes,
|
|
3339
|
+
integrationJustEatDataSchema,
|
|
3340
|
+
integrationJustEatNullablePathSchema,
|
|
3341
|
+
integrationJustEatPathSchema,
|
|
3342
|
+
integrationJustEatRestaurantStatusSchema,
|
|
3343
|
+
integrationJustEatRestaurantStatuses,
|
|
3344
|
+
integrationJustEatSyncMenuInputSchema,
|
|
3345
|
+
integrationJustEatSyncMenuResponseSchema,
|
|
3346
|
+
integrationJustEatSyncOpeningHoursInputSchema,
|
|
3347
|
+
integrationJustEatSyncOpeningHoursResponseSchema,
|
|
3348
|
+
integrationJustEatSyncTypeSchema,
|
|
3349
|
+
integrationJustEatSyncTypes,
|
|
3350
|
+
integrationNullablePathSchema,
|
|
3351
|
+
integrationPathSchema,
|
|
3352
|
+
integrationPathSchemas,
|
|
3353
|
+
integrationProviderSchema,
|
|
3354
|
+
integrationProviders,
|
|
3355
|
+
integrationServiceDataSchema,
|
|
3356
|
+
integrationServiceSchema,
|
|
3357
|
+
integrationServices,
|
|
3358
|
+
integrationStatusSchema,
|
|
3359
|
+
integrationStatuses,
|
|
3360
|
+
menuVersionDetailsSchema,
|
|
3361
|
+
menuVersionSchema,
|
|
3362
|
+
respondIntegrationActivationRequestInputSchema,
|
|
3363
|
+
respondIntegrationActivationRequestResponseSchema,
|
|
3364
|
+
sendIntegrationActivationRequestToPartnerInputSchema,
|
|
3365
|
+
sendIntegrationActivationRequestToPartnerResponseSchema,
|
|
3366
|
+
updateIntegrationActivationRequestInputSchema,
|
|
3367
|
+
updateIntegrationActivationRequestResponseSchema,
|
|
3368
|
+
updateIntegrationCassaInCloudInputSchema,
|
|
3369
|
+
updateIntegrationCassaInCloudResponseSchema,
|
|
3370
|
+
updateIntegrationDeliverooInputSchema,
|
|
3371
|
+
updateIntegrationDeliverooResponseSchema,
|
|
3372
|
+
updateIntegrationDeliverooSiteStatusInputSchema,
|
|
3373
|
+
updateIntegrationDeliverooSiteStatusResponseSchema,
|
|
3374
|
+
updateIntegrationGlovoInputSchema,
|
|
3375
|
+
updateIntegrationGlovoResponseSchema,
|
|
3376
|
+
updateIntegrationGlovoStoreStatusInputSchema,
|
|
3377
|
+
updateIntegrationGlovoStoreStatusResponseSchema,
|
|
3378
|
+
updateIntegrationInputSchema,
|
|
3379
|
+
updateIntegrationJustEatInputSchema,
|
|
3380
|
+
updateIntegrationJustEatResponseSchema,
|
|
3381
|
+
updateIntegrationJustEatRestaurantStatusInputSchema,
|
|
3382
|
+
updateIntegrationJustEatRestaurantStatusResponseSchema,
|
|
3383
|
+
updateIntegrationResponseSchema,
|
|
3384
|
+
writableIntegrationSchema
|
|
3385
|
+
};
|