@deliverart/sdk-js-integration 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +129 -21
- package/dist/index.d.cts +208 -13
- package/dist/index.d.ts +208 -13
- package/dist/index.js +123 -22
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -11721,11 +11721,12 @@ var integrationDeliverooSyncMenuProcessesQuerySchema = external_exports.object({
|
|
|
11721
11721
|
var integrationDeliverooWebhookEventSchema = external_exports.object({
|
|
11722
11722
|
id: external_exports.string(),
|
|
11723
11723
|
event: integrationDeliverooWebhookEventTypeSchema,
|
|
11724
|
-
body: external_exports.any(),
|
|
11725
11724
|
createdAt: datetimeSchema5
|
|
11726
11725
|
});
|
|
11727
11726
|
var integrationDeliverooWebhookEventDetailsSchema = integrationDeliverooWebhookEventSchema.extend({
|
|
11728
|
-
integration: integrationDeliverooIriSchema
|
|
11727
|
+
integration: integrationDeliverooIriSchema,
|
|
11728
|
+
bodyFilePath: external_exports.string(),
|
|
11729
|
+
bodyContentUrl: external_exports.url()
|
|
11729
11730
|
});
|
|
11730
11731
|
var integrationDeliverooWebhookEventsQueryParamsSchema = external_exports.object({
|
|
11731
11732
|
"order[createdAt]": sortDirSchema3.optional(),
|
|
@@ -11792,11 +11793,12 @@ var integrationsGlovoQuerySchema = external_exports.object({
|
|
|
11792
11793
|
var integrationGlovoWebhookEventSchema = external_exports.object({
|
|
11793
11794
|
id: external_exports.string(),
|
|
11794
11795
|
event: integrationGlovoWebhookEventTypeSchema,
|
|
11795
|
-
body: external_exports.any(),
|
|
11796
11796
|
createdAt: datetimeSchema6
|
|
11797
11797
|
});
|
|
11798
11798
|
var integrationGlovoWebhookEventDetailsSchema = integrationGlovoWebhookEventSchema.extend({
|
|
11799
|
-
integration: integrationGlovoIriSchema
|
|
11799
|
+
integration: integrationGlovoIriSchema,
|
|
11800
|
+
bodyFilePath: external_exports.string(),
|
|
11801
|
+
bodyContentUrl: external_exports.url()
|
|
11800
11802
|
});
|
|
11801
11803
|
var integrationGlovoWebhookEventsQueryParamsSchema = external_exports.object({
|
|
11802
11804
|
"order[createdAt]": sortDirSchema4.optional(),
|
|
@@ -11854,6 +11856,7 @@ import {
|
|
|
11854
11856
|
sortDirSchema as sortDirSchema5,
|
|
11855
11857
|
timestampsFilterSchema as timestampsFilterSchema4
|
|
11856
11858
|
} from "@deliverart/sdk-js-global-types";
|
|
11859
|
+
import { orderNullableIriSchema } from "@deliverart/sdk-js-order";
|
|
11857
11860
|
var integrationJustEatSchema = integrationBaseSchema.omit({ service: true, errors: true }).extend(integrationDeliveryProviderCommonSchema.shape).extend({
|
|
11858
11861
|
syncType: integrationJustEatSyncTypeSchema,
|
|
11859
11862
|
defaultLanguage: external_exports.string(),
|
|
@@ -11927,6 +11930,37 @@ var integrationJustEatSyncMenuProcessesQuerySchema = external_exports.object({
|
|
|
11927
11930
|
"order[createdAt]": sortDirSchema5.optional(),
|
|
11928
11931
|
page: external_exports.coerce.number().optional()
|
|
11929
11932
|
});
|
|
11933
|
+
var integrationJustEatOrderSchema = external_exports.object({
|
|
11934
|
+
id: external_exports.string(),
|
|
11935
|
+
order: orderNullableIriSchema,
|
|
11936
|
+
justEatOrderId: external_exports.string(),
|
|
11937
|
+
error: external_exports.any().nullable(),
|
|
11938
|
+
cancellationReason: external_exports.string().nullable(),
|
|
11939
|
+
justEatThirdPartyOrderReferenceId: external_exports.string().nullable(),
|
|
11940
|
+
createdAt: datetimeSchema7,
|
|
11941
|
+
processedAt: datetimeSchema7.nullable(),
|
|
11942
|
+
cancelledAt: datetimeSchema7.nullable()
|
|
11943
|
+
});
|
|
11944
|
+
var integrationJustEatOrderDetailsSchema = integrationJustEatOrderSchema.extend({
|
|
11945
|
+
integration: integrationJustEatIriSchema,
|
|
11946
|
+
bodyFilePath: external_exports.string(),
|
|
11947
|
+
bodyContentUrl: external_exports.url()
|
|
11948
|
+
});
|
|
11949
|
+
var integrationJustEatOrdersQueryParamsSchema = external_exports.object({
|
|
11950
|
+
"order[createdAt]": sortDirSchema5.optional(),
|
|
11951
|
+
"order[processedAt]": sortDirSchema5.optional(),
|
|
11952
|
+
justEatOrderId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11953
|
+
justEatThirdPartyOrderReferenceId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11954
|
+
"createdAt[before]": external_exports.string().optional(),
|
|
11955
|
+
"createdAt[strictly_before]": external_exports.string().optional(),
|
|
11956
|
+
"createdAt[after]": external_exports.string().optional(),
|
|
11957
|
+
"createdAt[strictly_after]": external_exports.string().optional(),
|
|
11958
|
+
"processedAt[before]": external_exports.string().optional(),
|
|
11959
|
+
"processedAt[strictly_before]": external_exports.string().optional(),
|
|
11960
|
+
"processedAt[after]": external_exports.string().optional(),
|
|
11961
|
+
"processedAt[strictly_after]": external_exports.string().optional(),
|
|
11962
|
+
page: external_exports.coerce.number().optional()
|
|
11963
|
+
});
|
|
11930
11964
|
|
|
11931
11965
|
// src/integration-schemas.ts
|
|
11932
11966
|
var integrationSchema = external_exports.discriminatedUnion("service", [
|
|
@@ -13949,11 +13983,68 @@ var GetIntegrationJustEatMenuVersions = class extends AbstractApiRequest75 {
|
|
|
13949
13983
|
}
|
|
13950
13984
|
};
|
|
13951
13985
|
|
|
13952
|
-
// src/requests/services/justeat/
|
|
13986
|
+
// src/requests/services/justeat/GetIntegrationJustEatOrderDetails.ts
|
|
13953
13987
|
import { AbstractApiRequest as AbstractApiRequest76 } from "@deliverart/sdk-js-core";
|
|
13988
|
+
var getIntegrationJustEatOrderDetailsInputSchema = external_exports.undefined();
|
|
13989
|
+
var getIntegrationJustEatOrderDetailsResponseSchema = integrationJustEatOrderDetailsSchema;
|
|
13990
|
+
var GetIntegrationJustEatOrderDetails = class extends AbstractApiRequest76 {
|
|
13991
|
+
constructor(integrationJustEatId, orderId) {
|
|
13992
|
+
super(void 0);
|
|
13993
|
+
this.method = "GET";
|
|
13994
|
+
this.contentType = "application/json";
|
|
13995
|
+
this.accept = "application/json";
|
|
13996
|
+
this.inputSchema = getIntegrationJustEatOrderDetailsInputSchema;
|
|
13997
|
+
this.outputSchema = getIntegrationJustEatOrderDetailsResponseSchema;
|
|
13998
|
+
this.querySchema = void 0;
|
|
13999
|
+
this.headersSchema = void 0;
|
|
14000
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
14001
|
+
this.orderId = orderId;
|
|
14002
|
+
}
|
|
14003
|
+
getPath() {
|
|
14004
|
+
return `/integrations/justeat/${this.integrationJustEatId}/orders/${this.orderId}`;
|
|
14005
|
+
}
|
|
14006
|
+
};
|
|
14007
|
+
|
|
14008
|
+
// src/requests/services/justeat/GetIntegrationJustEatOrders.ts
|
|
14009
|
+
import { AbstractApiRequest as AbstractApiRequest77 } from "@deliverart/sdk-js-core";
|
|
14010
|
+
import {
|
|
14011
|
+
createPaginatedSchema as createPaginatedSchema21,
|
|
14012
|
+
responseToPagination as responseToPagination21
|
|
14013
|
+
} from "@deliverart/sdk-js-global-types";
|
|
14014
|
+
var getIntegrationJustEatOrdersQuerySchema = integrationJustEatOrdersQueryParamsSchema;
|
|
14015
|
+
var getIntegrationJustEatOrdersInputSchema = external_exports.undefined();
|
|
14016
|
+
var getIntegrationJustEatOrdersResponseSchema = createPaginatedSchema21(
|
|
14017
|
+
integrationJustEatOrderSchema
|
|
14018
|
+
);
|
|
14019
|
+
var GetIntegrationJustEatOrders = class extends AbstractApiRequest77 {
|
|
14020
|
+
constructor(integrationJustEatId, options) {
|
|
14021
|
+
super(void 0, options);
|
|
14022
|
+
this.method = "GET";
|
|
14023
|
+
this.contentType = "application/json";
|
|
14024
|
+
this.accept = "application/json";
|
|
14025
|
+
this.inputSchema = getIntegrationJustEatOrdersInputSchema;
|
|
14026
|
+
this.outputSchema = getIntegrationJustEatOrdersResponseSchema;
|
|
14027
|
+
this.querySchema = getIntegrationJustEatOrdersQuerySchema;
|
|
14028
|
+
this.headersSchema = void 0;
|
|
14029
|
+
this.integrationJustEatId = integrationJustEatId;
|
|
14030
|
+
}
|
|
14031
|
+
getPath() {
|
|
14032
|
+
return `/integrations/justeat/${this.integrationJustEatId}/orders`;
|
|
14033
|
+
}
|
|
14034
|
+
parseResponse(data, rawResponse) {
|
|
14035
|
+
const integrations = external_exports.array(integrationJustEatOrderSchema).parse(data);
|
|
14036
|
+
return this.validateOutput({
|
|
14037
|
+
data: integrations,
|
|
14038
|
+
pagination: responseToPagination21(rawResponse)
|
|
14039
|
+
});
|
|
14040
|
+
}
|
|
14041
|
+
};
|
|
14042
|
+
|
|
14043
|
+
// src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcessDetails.ts
|
|
14044
|
+
import { AbstractApiRequest as AbstractApiRequest78 } from "@deliverart/sdk-js-core";
|
|
13954
14045
|
var getIntegrationJustEatSyncMenuProcessDetailsInputSchema = external_exports.undefined();
|
|
13955
14046
|
var getIntegrationJustEatSyncMenuProcessDetailsResponseSchema = integrationJustEatSyncMenuProcessDetailsSchema;
|
|
13956
|
-
var GetIntegrationJustEatSyncMenuProcessDetails = class extends
|
|
14047
|
+
var GetIntegrationJustEatSyncMenuProcessDetails = class extends AbstractApiRequest78 {
|
|
13957
14048
|
constructor(integrationJustEatId, processId) {
|
|
13958
14049
|
super(void 0);
|
|
13959
14050
|
this.method = "GET";
|
|
@@ -13972,19 +14063,19 @@ var GetIntegrationJustEatSyncMenuProcessDetails = class extends AbstractApiReque
|
|
|
13972
14063
|
};
|
|
13973
14064
|
|
|
13974
14065
|
// src/requests/services/justeat/GetIntegrationJustEatSyncMenuProcesses.ts
|
|
13975
|
-
import { AbstractApiRequest as
|
|
14066
|
+
import { AbstractApiRequest as AbstractApiRequest79 } from "@deliverart/sdk-js-core";
|
|
13976
14067
|
import {
|
|
13977
|
-
createPaginatedSchema as
|
|
13978
|
-
responseToPagination as
|
|
14068
|
+
createPaginatedSchema as createPaginatedSchema22,
|
|
14069
|
+
responseToPagination as responseToPagination22
|
|
13979
14070
|
} from "@deliverart/sdk-js-global-types";
|
|
13980
14071
|
var getIntegrationJustEatSyncMenuProcessesQuerySchema = external_exports.object({
|
|
13981
14072
|
page: external_exports.coerce.number().optional()
|
|
13982
14073
|
});
|
|
13983
14074
|
var getIntegrationJustEatSyncMenuProcessesInputSchema = external_exports.undefined();
|
|
13984
|
-
var getIntegrationJustEatSyncMenuProcessesResponseSchema =
|
|
14075
|
+
var getIntegrationJustEatSyncMenuProcessesResponseSchema = createPaginatedSchema22(
|
|
13985
14076
|
integrationJustEatSyncMenuProcessSchema
|
|
13986
14077
|
);
|
|
13987
|
-
var GetIntegrationJustEatSyncMenuProcesses = class extends
|
|
14078
|
+
var GetIntegrationJustEatSyncMenuProcesses = class extends AbstractApiRequest79 {
|
|
13988
14079
|
constructor(integrationJustEatId, options) {
|
|
13989
14080
|
super(void 0, options);
|
|
13990
14081
|
this.method = "GET";
|
|
@@ -14003,16 +14094,16 @@ var GetIntegrationJustEatSyncMenuProcesses = class extends AbstractApiRequest77
|
|
|
14003
14094
|
const integrations = external_exports.array(integrationJustEatSyncMenuProcessSchema).parse(data);
|
|
14004
14095
|
return this.validateOutput({
|
|
14005
14096
|
data: integrations,
|
|
14006
|
-
pagination:
|
|
14097
|
+
pagination: responseToPagination22(rawResponse)
|
|
14007
14098
|
});
|
|
14008
14099
|
}
|
|
14009
14100
|
};
|
|
14010
14101
|
|
|
14011
14102
|
// src/requests/services/justeat/IntegrationJustEatSyncMenu.ts
|
|
14012
|
-
import { AbstractApiRequest as
|
|
14103
|
+
import { AbstractApiRequest as AbstractApiRequest80 } from "@deliverart/sdk-js-core";
|
|
14013
14104
|
var integrationJustEatSyncMenuInputSchema = external_exports.undefined();
|
|
14014
14105
|
var integrationJustEatSyncMenuResponseSchema = external_exports.undefined();
|
|
14015
|
-
var IntegrationJustEatSyncMenu = class extends
|
|
14106
|
+
var IntegrationJustEatSyncMenu = class extends AbstractApiRequest80 {
|
|
14016
14107
|
constructor(integrationJustEatId) {
|
|
14017
14108
|
super(void 0);
|
|
14018
14109
|
this.method = "POST";
|
|
@@ -14030,10 +14121,10 @@ var IntegrationJustEatSyncMenu = class extends AbstractApiRequest78 {
|
|
|
14030
14121
|
};
|
|
14031
14122
|
|
|
14032
14123
|
// src/requests/services/justeat/IntegrationJustEatSyncOpeningTimes.ts
|
|
14033
|
-
import { AbstractApiRequest as
|
|
14124
|
+
import { AbstractApiRequest as AbstractApiRequest81 } from "@deliverart/sdk-js-core";
|
|
14034
14125
|
var integrationJustEatSyncOpeningHoursInputSchema = external_exports.undefined();
|
|
14035
14126
|
var integrationJustEatSyncOpeningHoursResponseSchema = external_exports.undefined();
|
|
14036
|
-
var IntegrationJustEatSyncOpeningTimes = class extends
|
|
14127
|
+
var IntegrationJustEatSyncOpeningTimes = class extends AbstractApiRequest81 {
|
|
14037
14128
|
constructor(integrationJustEatId) {
|
|
14038
14129
|
super(void 0);
|
|
14039
14130
|
this.method = "POST";
|
|
@@ -14051,10 +14142,10 @@ var IntegrationJustEatSyncOpeningTimes = class extends AbstractApiRequest79 {
|
|
|
14051
14142
|
};
|
|
14052
14143
|
|
|
14053
14144
|
// src/requests/services/justeat/UpdateIntegrationJustEat.ts
|
|
14054
|
-
import { AbstractApiRequest as
|
|
14145
|
+
import { AbstractApiRequest as AbstractApiRequest82 } from "@deliverart/sdk-js-core";
|
|
14055
14146
|
var updateIntegrationJustEatInputSchema = integrationJustEatEditableFieldsSchema.partial();
|
|
14056
14147
|
var updateIntegrationJustEatResponseSchema = integrationJustEatDetailsSchema;
|
|
14057
|
-
var UpdateIntegrationJustEat = class extends
|
|
14148
|
+
var UpdateIntegrationJustEat = class extends AbstractApiRequest82 {
|
|
14058
14149
|
constructor(integrationJustEatId, input) {
|
|
14059
14150
|
super(input);
|
|
14060
14151
|
this.method = "PATCH";
|
|
@@ -14072,12 +14163,12 @@ var UpdateIntegrationJustEat = class extends AbstractApiRequest80 {
|
|
|
14072
14163
|
};
|
|
14073
14164
|
|
|
14074
14165
|
// src/requests/services/justeat/UpdateIntegrationJustEatRestaurantStatus.ts
|
|
14075
|
-
import { AbstractApiRequest as
|
|
14166
|
+
import { AbstractApiRequest as AbstractApiRequest83 } from "@deliverart/sdk-js-core";
|
|
14076
14167
|
var updateIntegrationJustEatRestaurantStatusInputSchema = external_exports.object({
|
|
14077
14168
|
status: integrationJustEatRestaurantStatusSchema
|
|
14078
14169
|
});
|
|
14079
14170
|
var updateIntegrationJustEatRestaurantStatusResponseSchema = integrationJustEatDetailsSchema;
|
|
14080
|
-
var UpdateIntegrationJustEatRestaurantStatus = class extends
|
|
14171
|
+
var UpdateIntegrationJustEatRestaurantStatus = class extends AbstractApiRequest83 {
|
|
14081
14172
|
constructor(integrationJustEatId, input) {
|
|
14082
14173
|
super(input);
|
|
14083
14174
|
this.method = "POST";
|
|
@@ -14095,10 +14186,10 @@ var UpdateIntegrationJustEatRestaurantStatus = class extends AbstractApiRequest8
|
|
|
14095
14186
|
};
|
|
14096
14187
|
|
|
14097
14188
|
// src/requests/UpdateIntegration.ts
|
|
14098
|
-
import { AbstractApiRequest as
|
|
14189
|
+
import { AbstractApiRequest as AbstractApiRequest84 } from "@deliverart/sdk-js-core";
|
|
14099
14190
|
var updateIntegrationInputSchema = writableIntegrationSchema.partial();
|
|
14100
14191
|
var updateIntegrationResponseSchema = integrationDetailsSchema;
|
|
14101
|
-
var UpdateIntegration = class extends
|
|
14192
|
+
var UpdateIntegration = class extends AbstractApiRequest84 {
|
|
14102
14193
|
constructor(integrationId, input) {
|
|
14103
14194
|
super(input);
|
|
14104
14195
|
this.method = "PATCH";
|
|
@@ -14171,6 +14262,8 @@ export {
|
|
|
14171
14262
|
GetIntegrationJustEatList,
|
|
14172
14263
|
GetIntegrationJustEatMenuVersionDetails,
|
|
14173
14264
|
GetIntegrationJustEatMenuVersions,
|
|
14265
|
+
GetIntegrationJustEatOrderDetails,
|
|
14266
|
+
GetIntegrationJustEatOrders,
|
|
14174
14267
|
GetIntegrationJustEatSyncMenuProcessDetails,
|
|
14175
14268
|
GetIntegrationJustEatSyncMenuProcesses,
|
|
14176
14269
|
GetIntegrations,
|
|
@@ -14336,6 +14429,11 @@ export {
|
|
|
14336
14429
|
getIntegrationJustEatMenuVersionsInputSchema,
|
|
14337
14430
|
getIntegrationJustEatMenuVersionsQuerySchema,
|
|
14338
14431
|
getIntegrationJustEatMenuVersionsResponseSchema,
|
|
14432
|
+
getIntegrationJustEatOrderDetailsInputSchema,
|
|
14433
|
+
getIntegrationJustEatOrderDetailsResponseSchema,
|
|
14434
|
+
getIntegrationJustEatOrdersInputSchema,
|
|
14435
|
+
getIntegrationJustEatOrdersQuerySchema,
|
|
14436
|
+
getIntegrationJustEatOrdersResponseSchema,
|
|
14339
14437
|
getIntegrationJustEatSyncMenuProcessDetailsInputSchema,
|
|
14340
14438
|
getIntegrationJustEatSyncMenuProcessDetailsResponseSchema,
|
|
14341
14439
|
getIntegrationJustEatSyncMenuProcessesInputSchema,
|
|
@@ -14453,6 +14551,9 @@ export {
|
|
|
14453
14551
|
integrationJustEatMenuVersionIriSchema,
|
|
14454
14552
|
integrationJustEatMenuVersionNullableIriSchema,
|
|
14455
14553
|
integrationJustEatNullableIriSchema,
|
|
14554
|
+
integrationJustEatOrderDetailsSchema,
|
|
14555
|
+
integrationJustEatOrderSchema,
|
|
14556
|
+
integrationJustEatOrdersQueryParamsSchema,
|
|
14456
14557
|
integrationJustEatRestaurantStatusSchema,
|
|
14457
14558
|
integrationJustEatRestaurantStatuses,
|
|
14458
14559
|
integrationJustEatSchema,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deliverart/sdk-js-integration",
|
|
3
3
|
"description": "Deliverart JavaScript SDK for Integration Management",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,11 +18,12 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@deliverart/sdk-js-core": "2.3.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.3.7",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.3.7",
|
|
23
|
+
"@deliverart/sdk-js-image": "2.3.7",
|
|
24
|
+
"@deliverart/sdk-js-order": "2.3.7",
|
|
25
|
+
"@deliverart/sdk-js-point-of-sale": "2.3.7",
|
|
26
|
+
"@deliverart/sdk-js-sales-mode": "2.3.7"
|
|
26
27
|
},
|
|
27
28
|
"publishConfig": {
|
|
28
29
|
"access": "public"
|