@deliverart/sdk-js-integration-types 2.46.1 → 2.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,6 +6,15 @@ in editorial and grid layouts. Compact menus remain text-only.
6
6
 
7
7
  Shared integration type and Zod schema package for the DeliverArt JavaScript SDK.
8
8
 
9
+ ## Tilby Product Channels
10
+
11
+ `integrationTilbySyncSettingsSchema` defaults `respectDeliverartChannel` to `true`
12
+ and `removeProductsWithoutDeliverartChannel` to `false`. Filtering suspends
13
+ unassigned products unless local removal is enabled; removal requires a concrete
14
+ Tilby mapping and preserves unmapped manual products. With filtering disabled,
15
+ the removal flag is ignored. Sale availability remains independent.
16
+ The editable schema preserves omitted channel settings in merge patches.
17
+
9
18
  Use this package when another SDK package needs integration enum values, IRI schemas,
10
19
  activatable integration schemas, or service-specific integration data schemas without
11
20
  depending on `@deliverart/sdk-js-integration`.
package/dist/index.cjs CHANGED
@@ -308,6 +308,8 @@ var integrationTilbySyncSettingsSchema = import_zod.z.object({
308
308
  skipSyncProductDescription: import_zod.z.boolean().default(false),
309
309
  skipSyncImages: import_zod.z.boolean().default(false),
310
310
  syncInboundMenu: import_zod.z.boolean().default(true),
311
+ respectDeliverartChannel: import_zod.z.boolean().default(true),
312
+ removeProductsWithoutDeliverartChannel: import_zod.z.boolean().default(false),
311
313
  syncOutboundMenu: import_zod.z.boolean().default(false),
312
314
  syncInboundCustomers: import_zod.z.boolean().default(false),
313
315
  syncOutboundCustomers: import_zod.z.boolean().default(true),
@@ -322,6 +324,9 @@ var integrationTilbySyncSettingsSchema = import_zod.z.object({
322
324
  });
323
325
  var integrationTilbyEditableSyncSettingsSchema = integrationTilbySyncSettingsSchema.omit({
324
326
  allowClosedSaleCreation: true
327
+ }).extend({
328
+ respectDeliverartChannel: import_zod.z.boolean().optional(),
329
+ removeProductsWithoutDeliverartChannel: import_zod.z.boolean().optional()
325
330
  }).partial();
326
331
 
327
332
  // src/types.ts
package/dist/index.d.cts CHANGED
@@ -319,6 +319,8 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
319
319
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
320
320
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
321
321
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
322
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
323
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
322
324
  }, z.core.$strip>>>;
323
325
  }, z.core.$strip>>;
324
326
  integration: z.ZodDefault<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<string> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<string> | null, unknown>>>>;
@@ -891,6 +893,8 @@ declare const integrationTilbyDataSchema: z.ZodObject<{
891
893
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
892
894
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
893
895
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
896
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
897
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
894
898
  }, z.core.$strip>>>;
895
899
  }, z.core.$strip>;
896
900
  type IntegrationTilbyData = z.infer<typeof integrationTilbyDataSchema>;
@@ -1583,6 +1587,8 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1583
1587
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1584
1588
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1585
1589
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1590
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1591
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1586
1592
  }, z.core.$strip>>>;
1587
1593
  }, z.core.$strip>;
1588
1594
  }, z.core.$strip>, z.ZodObject<{
@@ -2029,6 +2035,8 @@ declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
2029
2035
  skipSyncProductDescription: z.ZodDefault<z.ZodBoolean>;
2030
2036
  skipSyncImages: z.ZodDefault<z.ZodBoolean>;
2031
2037
  syncInboundMenu: z.ZodDefault<z.ZodBoolean>;
2038
+ respectDeliverartChannel: z.ZodDefault<z.ZodBoolean>;
2039
+ removeProductsWithoutDeliverartChannel: z.ZodDefault<z.ZodBoolean>;
2032
2040
  syncOutboundMenu: z.ZodDefault<z.ZodBoolean>;
2033
2041
  syncInboundCustomers: z.ZodDefault<z.ZodBoolean>;
2034
2042
  syncOutboundCustomers: z.ZodDefault<z.ZodBoolean>;
@@ -2085,6 +2093,8 @@ declare const integrationTilbyEditableSyncSettingsSchema: z.ZodObject<{
2085
2093
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2086
2094
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2087
2095
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2096
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2097
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2088
2098
  }, z.core.$strip>;
2089
2099
  type IntegrationTilbyEditableSyncSettings = z.infer<typeof integrationTilbyEditableSyncSettingsSchema>;
2090
2100
 
package/dist/index.d.ts CHANGED
@@ -319,6 +319,8 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
319
319
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
320
320
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
321
321
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
322
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
323
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
322
324
  }, z.core.$strip>>>;
323
325
  }, z.core.$strip>>;
324
326
  integration: z.ZodDefault<z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<string> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<string> | null, unknown>>>>;
@@ -891,6 +893,8 @@ declare const integrationTilbyDataSchema: z.ZodObject<{
891
893
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
892
894
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
893
895
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
896
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
897
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
894
898
  }, z.core.$strip>>>;
895
899
  }, z.core.$strip>;
896
900
  type IntegrationTilbyData = z.infer<typeof integrationTilbyDataSchema>;
@@ -1583,6 +1587,8 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
1583
1587
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1584
1588
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1585
1589
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
1590
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1591
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1586
1592
  }, z.core.$strip>>>;
1587
1593
  }, z.core.$strip>;
1588
1594
  }, z.core.$strip>, z.ZodObject<{
@@ -2029,6 +2035,8 @@ declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
2029
2035
  skipSyncProductDescription: z.ZodDefault<z.ZodBoolean>;
2030
2036
  skipSyncImages: z.ZodDefault<z.ZodBoolean>;
2031
2037
  syncInboundMenu: z.ZodDefault<z.ZodBoolean>;
2038
+ respectDeliverartChannel: z.ZodDefault<z.ZodBoolean>;
2039
+ removeProductsWithoutDeliverartChannel: z.ZodDefault<z.ZodBoolean>;
2032
2040
  syncOutboundMenu: z.ZodDefault<z.ZodBoolean>;
2033
2041
  syncInboundCustomers: z.ZodDefault<z.ZodBoolean>;
2034
2042
  syncOutboundCustomers: z.ZodDefault<z.ZodBoolean>;
@@ -2085,6 +2093,8 @@ declare const integrationTilbyEditableSyncSettingsSchema: z.ZodObject<{
2085
2093
  syncOutboundStock: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2086
2094
  syncWebhooks: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2087
2095
  syncClosedSalesOnly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
2096
+ respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2097
+ removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
2088
2098
  }, z.core.$strip>;
2089
2099
  type IntegrationTilbyEditableSyncSettings = z.infer<typeof integrationTilbyEditableSyncSettingsSchema>;
2090
2100
 
package/dist/index.js CHANGED
@@ -39,6 +39,8 @@ var integrationTilbySyncSettingsSchema = z.object({
39
39
  skipSyncProductDescription: z.boolean().default(false),
40
40
  skipSyncImages: z.boolean().default(false),
41
41
  syncInboundMenu: z.boolean().default(true),
42
+ respectDeliverartChannel: z.boolean().default(true),
43
+ removeProductsWithoutDeliverartChannel: z.boolean().default(false),
42
44
  syncOutboundMenu: z.boolean().default(false),
43
45
  syncInboundCustomers: z.boolean().default(false),
44
46
  syncOutboundCustomers: z.boolean().default(true),
@@ -53,6 +55,9 @@ var integrationTilbySyncSettingsSchema = z.object({
53
55
  });
54
56
  var integrationTilbyEditableSyncSettingsSchema = integrationTilbySyncSettingsSchema.omit({
55
57
  allowClosedSaleCreation: true
58
+ }).extend({
59
+ respectDeliverartChannel: z.boolean().optional(),
60
+ removeProductsWithoutDeliverartChannel: z.boolean().optional()
56
61
  }).partial();
57
62
 
58
63
  // src/types.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-integration-types",
3
3
  "description": "Deliverart JavaScript SDK shared integration types and schemas",
4
- "version": "2.46.1",
4
+ "version": "2.48.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -19,10 +19,10 @@
19
19
  ],
20
20
  "dependencies": {
21
21
  "zod": "4.3.5",
22
- "@deliverart/sdk-js-global-types": "2.46.1"
22
+ "@deliverart/sdk-js-global-types": "2.48.0"
23
23
  },
24
24
  "devDependencies": {
25
- "vitest": "4.1.11"
25
+ "vitest": "4.1.12"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"