@deliverart/sdk-js-integration 2.48.0 → 3.0.0-dev.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/README.md +16 -0
- package/dist/index.cjs +31 -22
- package/dist/index.d.cts +3669 -2031
- package/dist/index.d.ts +3669 -2031
- package/dist/index.js +18 -8
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -1255,6 +1255,7 @@ __export(index_exports, {
|
|
|
1255
1255
|
leadIntegrationDetailsSchema: () => leadIntegrationDetailsSchema,
|
|
1256
1256
|
leadIntegrationSchema: () => leadIntegrationSchema,
|
|
1257
1257
|
leadIriSchema: () => leadIriSchema,
|
|
1258
|
+
legacyMigrationProtectionSchema: () => legacyMigrationProtectionSchema,
|
|
1258
1259
|
linkIntegrationEcommerceRegistrationUserInputSchema: () => linkIntegrationEcommerceRegistrationUserInputSchema,
|
|
1259
1260
|
linkIntegrationEcommerceRegistrationUserResponseSchema: () => linkIntegrationEcommerceRegistrationUserResponseSchema,
|
|
1260
1261
|
menuVersionDetailsSchema: () => menuVersionDetailsSchema,
|
|
@@ -1448,6 +1449,7 @@ import {
|
|
|
1448
1449
|
sortDirSchema as sortDirSchema2,
|
|
1449
1450
|
timestampsFilterSchema
|
|
1450
1451
|
} from "@deliverart/sdk-js-global-types";
|
|
1452
|
+
import { providerCredentialSchema } from "@deliverart/sdk-js-integration-types";
|
|
1451
1453
|
import {
|
|
1452
1454
|
menuItemCategoryIriSchema,
|
|
1453
1455
|
menuItemIriSchema,
|
|
@@ -1476,7 +1478,15 @@ var menuVersionSchema = z4.object({
|
|
|
1476
1478
|
var menuVersionDetailsSchema = menuVersionSchema.extend({
|
|
1477
1479
|
integration: types_exports.integrationDetailsIriSchema
|
|
1478
1480
|
});
|
|
1481
|
+
var legacyMigrationProtectionSchema = z4.object({
|
|
1482
|
+
reasonCode: z4.literal("legacy_native_identity_requires_handoff"),
|
|
1483
|
+
pointOfSaleId: z4.string().uuid(),
|
|
1484
|
+
identityChangesAllowed: z4.literal(false),
|
|
1485
|
+
cancellationAllowed: z4.literal(false),
|
|
1486
|
+
deletionAllowed: z4.literal(false)
|
|
1487
|
+
}).strict();
|
|
1479
1488
|
var integrationBaseSchema = z4.object({
|
|
1489
|
+
legacyMigrationProtection: legacyMigrationProtectionSchema.nullable().optional(),
|
|
1480
1490
|
id: z4.string(),
|
|
1481
1491
|
cancellationRequest: integrationCancellationRequestNullableIriSchema,
|
|
1482
1492
|
connectionId: z4.string().nullable(),
|
|
@@ -1686,7 +1696,7 @@ var integrationCassaInCloudSyncTimesSchema = z5.object({
|
|
|
1686
1696
|
});
|
|
1687
1697
|
var integrationCassaInCloudSchema = integrationBaseSchema.omit({ service: true }).extend({
|
|
1688
1698
|
finalized: z5.boolean(),
|
|
1689
|
-
|
|
1699
|
+
apiKeyConfigured: z5.boolean().optional(),
|
|
1690
1700
|
service: types_exports.integrationServiceSchema.extract(["cassa_in_cloud"]),
|
|
1691
1701
|
idSalesPoint: z5.coerce.number().nonnegative(),
|
|
1692
1702
|
locale: z5.string(),
|
|
@@ -1703,7 +1713,6 @@ var integrationCassaInCloudDetailsSchema = integrationCassaInCloudSchema.extend(
|
|
|
1703
1713
|
var integrationsCassaInCloudQuerySchema = z5.object({
|
|
1704
1714
|
"order[createdAt]": sortDirSchema2.optional(),
|
|
1705
1715
|
"order[updatedAt]": sortDirSchema2.optional(),
|
|
1706
|
-
apiKey: exactStringFilterSchema,
|
|
1707
1716
|
idSalesPoint: exactStringFilterSchema,
|
|
1708
1717
|
status: z5.union([types_exports.integrationStatusSchema, z5.array(types_exports.integrationStatusSchema)]).optional(),
|
|
1709
1718
|
connectionId: exactStringFilterSchema,
|
|
@@ -1748,12 +1757,12 @@ var integrationsCassaInCloudQuerySchema = z5.object({
|
|
|
1748
1757
|
page: z5.coerce.number().optional()
|
|
1749
1758
|
}).extend(timestampsFilterSchema.shape);
|
|
1750
1759
|
var integrationCassaInCloudEditableFieldsSchema = integrationCassaInCloudSchema.pick({
|
|
1751
|
-
apiKey: true,
|
|
1752
1760
|
idSalesPoint: true,
|
|
1753
1761
|
syncSettings: true,
|
|
1754
1762
|
locale: true,
|
|
1755
1763
|
provider: true
|
|
1756
1764
|
}).extend({
|
|
1765
|
+
apiKey: providerCredentialSchema("apiKey.required"),
|
|
1757
1766
|
inboundProductChannels: types_exports.integrationCassaInCloudProductChannelSchema.array().optional(),
|
|
1758
1767
|
outboundProductChannels: types_exports.integrationCassaInCloudProductChannelSchema.array().optional(),
|
|
1759
1768
|
productChannels: types_exports.integrationCassaInCloudProductChannelSchema.array().optional().describe(
|
|
@@ -3711,7 +3720,8 @@ import {
|
|
|
3711
3720
|
} from "@deliverart/sdk-js-global-types";
|
|
3712
3721
|
import {
|
|
3713
3722
|
integrationTilbyEditableSyncSettingsSchema,
|
|
3714
|
-
integrationTilbySyncSettingsSchema
|
|
3723
|
+
integrationTilbySyncSettingsSchema,
|
|
3724
|
+
providerCredentialSchema as providerCredentialSchema2
|
|
3715
3725
|
} from "@deliverart/sdk-js-integration-types";
|
|
3716
3726
|
import {
|
|
3717
3727
|
menuItemCategoryNullableIriSchema,
|
|
@@ -3749,6 +3759,7 @@ var integrationTilbySchema = integrationBaseSchema.omit({ service: true }).exten
|
|
|
3749
3759
|
service: types_exports.integrationServiceSchema.extract(["tilby"]),
|
|
3750
3760
|
clientId: z12.string().nullable(),
|
|
3751
3761
|
shopId: z12.coerce.number().nullable(),
|
|
3762
|
+
apiTokenConfigured: z12.boolean().optional(),
|
|
3752
3763
|
shopUuid: z12.string().nullable(),
|
|
3753
3764
|
shopName: z12.string().nullable(),
|
|
3754
3765
|
webhookEmail: z12.string().nullable(),
|
|
@@ -3766,11 +3777,9 @@ var integrationTilbySchema = integrationBaseSchema.omit({ service: true }).exten
|
|
|
3766
3777
|
syncSettings: integrationTilbySyncSettingsSchema,
|
|
3767
3778
|
syncTimes: integrationTilbySyncTimesSchema
|
|
3768
3779
|
});
|
|
3769
|
-
var integrationTilbyDetailsSchema = integrationTilbySchema.extend(
|
|
3770
|
-
apiToken: z12.string()
|
|
3771
|
-
}).extend(integrationDetailsFieldsSchema.shape);
|
|
3780
|
+
var integrationTilbyDetailsSchema = integrationTilbySchema.extend(integrationDetailsFieldsSchema.shape);
|
|
3772
3781
|
var integrationTilbyEditableFieldsSchema = z12.object({
|
|
3773
|
-
apiToken:
|
|
3782
|
+
apiToken: providerCredentialSchema2("apiToken.required"),
|
|
3774
3783
|
webhookEmail: z12.string().email().nullable().default(null),
|
|
3775
3784
|
xClient: z12.string().trim().min(1, "xClient.required").default("deliverart"),
|
|
3776
3785
|
defaultSellerId: z12.coerce.number().nullable().default(null),
|
|
@@ -13199,6 +13208,7 @@ export {
|
|
|
13199
13208
|
leadIntegrationDetailsSchema,
|
|
13200
13209
|
leadIntegrationSchema,
|
|
13201
13210
|
leadIriSchema,
|
|
13211
|
+
legacyMigrationProtectionSchema,
|
|
13202
13212
|
linkIntegrationEcommerceRegistrationUserInputSchema,
|
|
13203
13213
|
linkIntegrationEcommerceRegistrationUserResponseSchema,
|
|
13204
13214
|
menuVersionDetailsSchema,
|
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": "
|
|
4
|
+
"version": "3.0.0-dev.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"zod": "4.
|
|
22
|
-
"@deliverart/sdk-js-api-token": "
|
|
23
|
-
"@deliverart/sdk-js-core": "
|
|
24
|
-
"@deliverart/sdk-js-
|
|
25
|
-
"@deliverart/sdk-js-
|
|
26
|
-
"@deliverart/sdk-js-
|
|
27
|
-
"@deliverart/sdk-js-
|
|
28
|
-
"@deliverart/sdk-js-
|
|
29
|
-
"@deliverart/sdk-js-
|
|
30
|
-
"@deliverart/sdk-js-sales-mode": "
|
|
31
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"zod": "4.6.6",
|
|
22
|
+
"@deliverart/sdk-js-api-token": "3.0.0-dev.1",
|
|
23
|
+
"@deliverart/sdk-js-core": "3.0.0-dev.1",
|
|
24
|
+
"@deliverart/sdk-js-image": "3.0.0-dev.1",
|
|
25
|
+
"@deliverart/sdk-js-integration-types": "3.0.0-dev.1",
|
|
26
|
+
"@deliverart/sdk-js-menu": "3.0.0-dev.1",
|
|
27
|
+
"@deliverart/sdk-js-order": "3.0.0-dev.1",
|
|
28
|
+
"@deliverart/sdk-js-global-types": "3.0.0-dev.1",
|
|
29
|
+
"@deliverart/sdk-js-point-of-sale": "3.0.0-dev.1",
|
|
30
|
+
"@deliverart/sdk-js-sales-mode": "3.0.0-dev.1",
|
|
31
|
+
"@deliverart/sdk-js-customer": "3.0.0-dev.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"vitest": "4.1.12"
|