@deliverart/sdk-js-integration-types 2.47.0 → 2.48.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 +9 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.cts +129 -119
- package/dist/index.d.ts +129 -119
- package/dist/index.js +5 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -265,19 +265,19 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
265
265
|
service: z.ZodLiteral<"tilby">;
|
|
266
266
|
data: z.ZodOptional<z.ZodObject<{
|
|
267
267
|
apiToken: z.ZodString;
|
|
268
|
-
webhookEmail: z.
|
|
269
|
-
xClient: z.
|
|
270
|
-
defaultSellerId: z.
|
|
271
|
-
defaultSellerName: z.
|
|
272
|
-
autoPrintOrder: z.
|
|
273
|
-
deliverartChannelName: z.
|
|
274
|
-
defaultPaymentMethodId: z.
|
|
275
|
-
defaultPaymentMethodName: z.
|
|
276
|
-
defaultPaymentMethodTypeId: z.
|
|
277
|
-
defaultPaymentMethodTypeName: z.
|
|
278
|
-
defaultStockLocationId: z.
|
|
279
|
-
syncSettings: z.
|
|
280
|
-
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.
|
|
268
|
+
webhookEmail: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
269
|
+
xClient: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
270
|
+
defaultSellerId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
271
|
+
defaultSellerName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
272
|
+
autoPrintOrder: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>, unknown>;
|
|
273
|
+
deliverartChannelName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
274
|
+
defaultPaymentMethodId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
275
|
+
defaultPaymentMethodName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
276
|
+
defaultPaymentMethodTypeId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
277
|
+
defaultPaymentMethodTypeName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
278
|
+
defaultStockLocationId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
279
|
+
syncSettings: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
280
|
+
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
281
281
|
stripe: "stripe";
|
|
282
282
|
bank_transfer: "bank_transfer";
|
|
283
283
|
cash: "cash";
|
|
@@ -289,7 +289,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
289
289
|
name: z.ZodString;
|
|
290
290
|
typeId: z.ZodNumber;
|
|
291
291
|
typeName: z.ZodString;
|
|
292
|
-
}, z.core.$strict
|
|
292
|
+
}, z.core.$strict>>, unknown>>>;
|
|
293
293
|
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
294
294
|
application: "application";
|
|
295
295
|
ecommerce: "ecommerce";
|
|
@@ -319,7 +319,9 @@ 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
|
-
|
|
322
|
+
respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
323
|
+
removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
324
|
+
}, z.core.$strip>>, unknown>;
|
|
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>>>>;
|
|
325
327
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -367,17 +369,17 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
367
369
|
collection: "collection";
|
|
368
370
|
}>, z.ZodLiteral<"take_away">]>, z.ZodTransform<"delivery" | "collection", "delivery" | "collection" | "take_away">>>;
|
|
369
371
|
minOrderValue: z.ZodCoercedNumber<unknown>;
|
|
370
|
-
displayName: z.
|
|
371
|
-
tagline: z.
|
|
372
|
-
menuViewMode: z.
|
|
372
|
+
displayName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
373
|
+
tagline: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
374
|
+
menuViewMode: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
373
375
|
editorial: "editorial";
|
|
374
376
|
compact: "compact";
|
|
375
377
|
visual_grid: "visual_grid";
|
|
376
|
-
}
|
|
378
|
+
}>>, unknown>;
|
|
377
379
|
showProductImages: z.ZodOptional<z.ZodBoolean>;
|
|
378
|
-
logo: z.
|
|
379
|
-
heroImage: z.
|
|
380
|
-
theme: z.
|
|
380
|
+
logo: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
381
|
+
heroImage: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
382
|
+
theme: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
381
383
|
primary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
384
|
accent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
383
385
|
background: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -396,7 +398,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
396
398
|
nunito_sans: "nunito_sans";
|
|
397
399
|
playfair_display: "playfair_display";
|
|
398
400
|
}>>>;
|
|
399
|
-
}, z.core.$loose
|
|
401
|
+
}, z.core.$loose>>, unknown>;
|
|
400
402
|
}, z.core.$strip>>;
|
|
401
403
|
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>>>>;
|
|
402
404
|
message: z.ZodNullable<z.ZodString>;
|
|
@@ -441,7 +443,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
441
443
|
restaurants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
442
444
|
name: z.ZodString;
|
|
443
445
|
platformRestaurantId: z.ZodString;
|
|
444
|
-
platformChainId: z.
|
|
446
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
445
447
|
salesModeId: z.ZodString;
|
|
446
448
|
categoryId: z.ZodString;
|
|
447
449
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -473,7 +475,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
473
475
|
}, z.core.$strip>, z.ZodObject<{
|
|
474
476
|
name: z.ZodString;
|
|
475
477
|
platformRestaurantId: z.ZodString;
|
|
476
|
-
platformChainId: z.
|
|
478
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
477
479
|
salesModeId: z.ZodString;
|
|
478
480
|
categoryId: z.ZodString;
|
|
479
481
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -505,7 +507,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
505
507
|
}, z.core.$strip>, z.ZodObject<{
|
|
506
508
|
name: z.ZodString;
|
|
507
509
|
platformRestaurantId: z.ZodString;
|
|
508
|
-
platformChainId: z.
|
|
510
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
509
511
|
salesModeId: z.ZodString;
|
|
510
512
|
categoryId: z.ZodString;
|
|
511
513
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -535,7 +537,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
535
537
|
}, z.core.$strip>, z.ZodObject<{
|
|
536
538
|
name: z.ZodString;
|
|
537
539
|
platformRestaurantId: z.ZodString;
|
|
538
|
-
platformChainId: z.
|
|
540
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
539
541
|
salesModeId: z.ZodString;
|
|
540
542
|
categoryId: z.ZodString;
|
|
541
543
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -565,7 +567,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
565
567
|
}, z.core.$strip>, z.ZodObject<{
|
|
566
568
|
name: z.ZodString;
|
|
567
569
|
platformRestaurantId: z.ZodString;
|
|
568
|
-
platformChainId: z.
|
|
570
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
569
571
|
salesModeId: z.ZodString;
|
|
570
572
|
categoryId: z.ZodString;
|
|
571
573
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -592,7 +594,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
592
594
|
password: z.ZodString;
|
|
593
595
|
chain_code: z.ZodString;
|
|
594
596
|
remote_id: z.ZodString;
|
|
595
|
-
webhook_token: z.
|
|
597
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
596
598
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
597
599
|
}, z.core.$strict>>>;
|
|
598
600
|
}, z.core.$strip>], "platform">>;
|
|
@@ -603,7 +605,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
603
605
|
restaurants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
604
606
|
name: z.ZodString;
|
|
605
607
|
platformRestaurantId: z.ZodString;
|
|
606
|
-
platformChainId: z.
|
|
608
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
607
609
|
salesModeId: z.ZodString;
|
|
608
610
|
categoryId: z.ZodString;
|
|
609
611
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -635,7 +637,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
635
637
|
}, z.core.$strip>, z.ZodObject<{
|
|
636
638
|
name: z.ZodString;
|
|
637
639
|
platformRestaurantId: z.ZodString;
|
|
638
|
-
platformChainId: z.
|
|
640
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
639
641
|
salesModeId: z.ZodString;
|
|
640
642
|
categoryId: z.ZodString;
|
|
641
643
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -667,7 +669,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
667
669
|
}, z.core.$strip>, z.ZodObject<{
|
|
668
670
|
name: z.ZodString;
|
|
669
671
|
platformRestaurantId: z.ZodString;
|
|
670
|
-
platformChainId: z.
|
|
672
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
671
673
|
salesModeId: z.ZodString;
|
|
672
674
|
categoryId: z.ZodString;
|
|
673
675
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -697,7 +699,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
697
699
|
}, z.core.$strip>, z.ZodObject<{
|
|
698
700
|
name: z.ZodString;
|
|
699
701
|
platformRestaurantId: z.ZodString;
|
|
700
|
-
platformChainId: z.
|
|
702
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
701
703
|
salesModeId: z.ZodString;
|
|
702
704
|
categoryId: z.ZodString;
|
|
703
705
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -727,7 +729,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
727
729
|
}, z.core.$strip>, z.ZodObject<{
|
|
728
730
|
name: z.ZodString;
|
|
729
731
|
platformRestaurantId: z.ZodString;
|
|
730
|
-
platformChainId: z.
|
|
732
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
731
733
|
salesModeId: z.ZodString;
|
|
732
734
|
categoryId: z.ZodString;
|
|
733
735
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -754,7 +756,7 @@ declare const activatableIntegrationSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
754
756
|
password: z.ZodString;
|
|
755
757
|
chain_code: z.ZodString;
|
|
756
758
|
remote_id: z.ZodString;
|
|
757
|
-
webhook_token: z.
|
|
759
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
758
760
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
759
761
|
}, z.core.$strict>>>;
|
|
760
762
|
}, z.core.$strip>], "platform">>;
|
|
@@ -837,19 +839,19 @@ declare const integrationCassaInCloudDataSchema: z.ZodObject<{
|
|
|
837
839
|
type IntegrationCassaInCloudData = z.infer<typeof integrationCassaInCloudDataSchema>;
|
|
838
840
|
declare const integrationTilbyDataSchema: z.ZodObject<{
|
|
839
841
|
apiToken: z.ZodString;
|
|
840
|
-
webhookEmail: z.
|
|
841
|
-
xClient: z.
|
|
842
|
-
defaultSellerId: z.
|
|
843
|
-
defaultSellerName: z.
|
|
844
|
-
autoPrintOrder: z.
|
|
845
|
-
deliverartChannelName: z.
|
|
846
|
-
defaultPaymentMethodId: z.
|
|
847
|
-
defaultPaymentMethodName: z.
|
|
848
|
-
defaultPaymentMethodTypeId: z.
|
|
849
|
-
defaultPaymentMethodTypeName: z.
|
|
850
|
-
defaultStockLocationId: z.
|
|
851
|
-
syncSettings: z.
|
|
852
|
-
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.
|
|
842
|
+
webhookEmail: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
843
|
+
xClient: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
844
|
+
defaultSellerId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
845
|
+
defaultSellerName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
846
|
+
autoPrintOrder: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>, unknown>;
|
|
847
|
+
deliverartChannelName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
848
|
+
defaultPaymentMethodId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
849
|
+
defaultPaymentMethodName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
850
|
+
defaultPaymentMethodTypeId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
851
|
+
defaultPaymentMethodTypeName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
852
|
+
defaultStockLocationId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
853
|
+
syncSettings: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
854
|
+
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
853
855
|
stripe: "stripe";
|
|
854
856
|
bank_transfer: "bank_transfer";
|
|
855
857
|
cash: "cash";
|
|
@@ -861,7 +863,7 @@ declare const integrationTilbyDataSchema: z.ZodObject<{
|
|
|
861
863
|
name: z.ZodString;
|
|
862
864
|
typeId: z.ZodNumber;
|
|
863
865
|
typeName: z.ZodString;
|
|
864
|
-
}, z.core.$strict
|
|
866
|
+
}, z.core.$strict>>, unknown>>>;
|
|
865
867
|
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
866
868
|
application: "application";
|
|
867
869
|
ecommerce: "ecommerce";
|
|
@@ -891,7 +893,9 @@ 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>>;
|
|
894
|
-
|
|
896
|
+
respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
897
|
+
removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
898
|
+
}, z.core.$strip>>, unknown>;
|
|
895
899
|
}, z.core.$strip>;
|
|
896
900
|
type IntegrationTilbyData = z.infer<typeof integrationTilbyDataSchema>;
|
|
897
901
|
declare const integrationEcommerceDataSchema: z.ZodObject<{
|
|
@@ -901,17 +905,17 @@ declare const integrationEcommerceDataSchema: z.ZodObject<{
|
|
|
901
905
|
collection: "collection";
|
|
902
906
|
}>, z.ZodLiteral<"take_away">]>, z.ZodTransform<"delivery" | "collection", "delivery" | "collection" | "take_away">>>;
|
|
903
907
|
minOrderValue: z.ZodCoercedNumber<unknown>;
|
|
904
|
-
displayName: z.
|
|
905
|
-
tagline: z.
|
|
906
|
-
menuViewMode: z.
|
|
908
|
+
displayName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
909
|
+
tagline: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
910
|
+
menuViewMode: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
907
911
|
editorial: "editorial";
|
|
908
912
|
compact: "compact";
|
|
909
913
|
visual_grid: "visual_grid";
|
|
910
|
-
}
|
|
914
|
+
}>>, unknown>;
|
|
911
915
|
showProductImages: z.ZodOptional<z.ZodBoolean>;
|
|
912
|
-
logo: z.
|
|
913
|
-
heroImage: z.
|
|
914
|
-
theme: z.
|
|
916
|
+
logo: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
917
|
+
heroImage: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
918
|
+
theme: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
915
919
|
primary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
916
920
|
accent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
917
921
|
background: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -930,7 +934,7 @@ declare const integrationEcommerceDataSchema: z.ZodObject<{
|
|
|
930
934
|
nunito_sans: "nunito_sans";
|
|
931
935
|
playfair_display: "playfair_display";
|
|
932
936
|
}>>>;
|
|
933
|
-
}, z.core.$loose
|
|
937
|
+
}, z.core.$loose>>, unknown>;
|
|
934
938
|
}, z.core.$strip>;
|
|
935
939
|
type IntegrationEcommerceData = z.infer<typeof integrationEcommerceDataSchema>;
|
|
936
940
|
declare const integrationElephantPlatformSchema: z.ZodEnum<{
|
|
@@ -970,7 +974,7 @@ declare const integrationElephantYemeksepetiAuthenticationSchema: z.ZodObject<{
|
|
|
970
974
|
password: z.ZodString;
|
|
971
975
|
chain_code: z.ZodString;
|
|
972
976
|
remote_id: z.ZodString;
|
|
973
|
-
webhook_token: z.
|
|
977
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
974
978
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
975
979
|
}, z.core.$strict>;
|
|
976
980
|
declare const integrationElephantRestaurantAuthenticationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -998,14 +1002,14 @@ declare const integrationElephantRestaurantAuthenticationSchema: z.ZodUnion<read
|
|
|
998
1002
|
password: z.ZodString;
|
|
999
1003
|
chain_code: z.ZodString;
|
|
1000
1004
|
remote_id: z.ZodString;
|
|
1001
|
-
webhook_token: z.
|
|
1005
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1002
1006
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
1003
1007
|
}, z.core.$strict>]>;
|
|
1004
1008
|
type IntegrationElephantRestaurantAuthentication = z.infer<typeof integrationElephantRestaurantAuthenticationSchema>;
|
|
1005
1009
|
declare const integrationElephantRestaurantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1006
1010
|
name: z.ZodString;
|
|
1007
1011
|
platformRestaurantId: z.ZodString;
|
|
1008
|
-
platformChainId: z.
|
|
1012
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1009
1013
|
salesModeId: z.ZodString;
|
|
1010
1014
|
categoryId: z.ZodString;
|
|
1011
1015
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1037,7 +1041,7 @@ declare const integrationElephantRestaurantDataSchema: z.ZodDiscriminatedUnion<[
|
|
|
1037
1041
|
}, z.core.$strip>, z.ZodObject<{
|
|
1038
1042
|
name: z.ZodString;
|
|
1039
1043
|
platformRestaurantId: z.ZodString;
|
|
1040
|
-
platformChainId: z.
|
|
1044
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1041
1045
|
salesModeId: z.ZodString;
|
|
1042
1046
|
categoryId: z.ZodString;
|
|
1043
1047
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1069,7 +1073,7 @@ declare const integrationElephantRestaurantDataSchema: z.ZodDiscriminatedUnion<[
|
|
|
1069
1073
|
}, z.core.$strip>, z.ZodObject<{
|
|
1070
1074
|
name: z.ZodString;
|
|
1071
1075
|
platformRestaurantId: z.ZodString;
|
|
1072
|
-
platformChainId: z.
|
|
1076
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1073
1077
|
salesModeId: z.ZodString;
|
|
1074
1078
|
categoryId: z.ZodString;
|
|
1075
1079
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1099,7 +1103,7 @@ declare const integrationElephantRestaurantDataSchema: z.ZodDiscriminatedUnion<[
|
|
|
1099
1103
|
}, z.core.$strip>, z.ZodObject<{
|
|
1100
1104
|
name: z.ZodString;
|
|
1101
1105
|
platformRestaurantId: z.ZodString;
|
|
1102
|
-
platformChainId: z.
|
|
1106
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1103
1107
|
salesModeId: z.ZodString;
|
|
1104
1108
|
categoryId: z.ZodString;
|
|
1105
1109
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1129,7 +1133,7 @@ declare const integrationElephantRestaurantDataSchema: z.ZodDiscriminatedUnion<[
|
|
|
1129
1133
|
}, z.core.$strip>, z.ZodObject<{
|
|
1130
1134
|
name: z.ZodString;
|
|
1131
1135
|
platformRestaurantId: z.ZodString;
|
|
1132
|
-
platformChainId: z.
|
|
1136
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1133
1137
|
salesModeId: z.ZodString;
|
|
1134
1138
|
categoryId: z.ZodString;
|
|
1135
1139
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1156,7 +1160,7 @@ declare const integrationElephantRestaurantDataSchema: z.ZodDiscriminatedUnion<[
|
|
|
1156
1160
|
password: z.ZodString;
|
|
1157
1161
|
chain_code: z.ZodString;
|
|
1158
1162
|
remote_id: z.ZodString;
|
|
1159
|
-
webhook_token: z.
|
|
1163
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1160
1164
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
1161
1165
|
}, z.core.$strict>>>;
|
|
1162
1166
|
}, z.core.$strip>], "platform">;
|
|
@@ -1165,7 +1169,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1165
1169
|
restaurants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1166
1170
|
name: z.ZodString;
|
|
1167
1171
|
platformRestaurantId: z.ZodString;
|
|
1168
|
-
platformChainId: z.
|
|
1172
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1169
1173
|
salesModeId: z.ZodString;
|
|
1170
1174
|
categoryId: z.ZodString;
|
|
1171
1175
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1197,7 +1201,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1197
1201
|
}, z.core.$strip>, z.ZodObject<{
|
|
1198
1202
|
name: z.ZodString;
|
|
1199
1203
|
platformRestaurantId: z.ZodString;
|
|
1200
|
-
platformChainId: z.
|
|
1204
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1201
1205
|
salesModeId: z.ZodString;
|
|
1202
1206
|
categoryId: z.ZodString;
|
|
1203
1207
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1229,7 +1233,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1229
1233
|
}, z.core.$strip>, z.ZodObject<{
|
|
1230
1234
|
name: z.ZodString;
|
|
1231
1235
|
platformRestaurantId: z.ZodString;
|
|
1232
|
-
platformChainId: z.
|
|
1236
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1233
1237
|
salesModeId: z.ZodString;
|
|
1234
1238
|
categoryId: z.ZodString;
|
|
1235
1239
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1259,7 +1263,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1259
1263
|
}, z.core.$strip>, z.ZodObject<{
|
|
1260
1264
|
name: z.ZodString;
|
|
1261
1265
|
platformRestaurantId: z.ZodString;
|
|
1262
|
-
platformChainId: z.
|
|
1266
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1263
1267
|
salesModeId: z.ZodString;
|
|
1264
1268
|
categoryId: z.ZodString;
|
|
1265
1269
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1289,7 +1293,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1289
1293
|
}, z.core.$strip>, z.ZodObject<{
|
|
1290
1294
|
name: z.ZodString;
|
|
1291
1295
|
platformRestaurantId: z.ZodString;
|
|
1292
|
-
platformChainId: z.
|
|
1296
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1293
1297
|
salesModeId: z.ZodString;
|
|
1294
1298
|
categoryId: z.ZodString;
|
|
1295
1299
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1316,7 +1320,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1316
1320
|
password: z.ZodString;
|
|
1317
1321
|
chain_code: z.ZodString;
|
|
1318
1322
|
remote_id: z.ZodString;
|
|
1319
|
-
webhook_token: z.
|
|
1323
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1320
1324
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
1321
1325
|
}, z.core.$strict>>>;
|
|
1322
1326
|
}, z.core.$strip>], "platform">>;
|
|
@@ -1327,7 +1331,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1327
1331
|
restaurants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1328
1332
|
name: z.ZodString;
|
|
1329
1333
|
platformRestaurantId: z.ZodString;
|
|
1330
|
-
platformChainId: z.
|
|
1334
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1331
1335
|
salesModeId: z.ZodString;
|
|
1332
1336
|
categoryId: z.ZodString;
|
|
1333
1337
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1359,7 +1363,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1359
1363
|
}, z.core.$strip>, z.ZodObject<{
|
|
1360
1364
|
name: z.ZodString;
|
|
1361
1365
|
platformRestaurantId: z.ZodString;
|
|
1362
|
-
platformChainId: z.
|
|
1366
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1363
1367
|
salesModeId: z.ZodString;
|
|
1364
1368
|
categoryId: z.ZodString;
|
|
1365
1369
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1391,7 +1395,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1391
1395
|
}, z.core.$strip>, z.ZodObject<{
|
|
1392
1396
|
name: z.ZodString;
|
|
1393
1397
|
platformRestaurantId: z.ZodString;
|
|
1394
|
-
platformChainId: z.
|
|
1398
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1395
1399
|
salesModeId: z.ZodString;
|
|
1396
1400
|
categoryId: z.ZodString;
|
|
1397
1401
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1421,7 +1425,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1421
1425
|
}, z.core.$strip>, z.ZodObject<{
|
|
1422
1426
|
name: z.ZodString;
|
|
1423
1427
|
platformRestaurantId: z.ZodString;
|
|
1424
|
-
platformChainId: z.
|
|
1428
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1425
1429
|
salesModeId: z.ZodString;
|
|
1426
1430
|
categoryId: z.ZodString;
|
|
1427
1431
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1451,7 +1455,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1451
1455
|
}, z.core.$strip>, z.ZodObject<{
|
|
1452
1456
|
name: z.ZodString;
|
|
1453
1457
|
platformRestaurantId: z.ZodString;
|
|
1454
|
-
platformChainId: z.
|
|
1458
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1455
1459
|
salesModeId: z.ZodString;
|
|
1456
1460
|
categoryId: z.ZodString;
|
|
1457
1461
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1478,7 +1482,7 @@ declare const integrationElephantDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1478
1482
|
password: z.ZodString;
|
|
1479
1483
|
chain_code: z.ZodString;
|
|
1480
1484
|
remote_id: z.ZodString;
|
|
1481
|
-
webhook_token: z.
|
|
1485
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1482
1486
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
1483
1487
|
}, z.core.$strict>>>;
|
|
1484
1488
|
}, z.core.$strip>], "platform">>;
|
|
@@ -1529,19 +1533,19 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1529
1533
|
service: z.ZodLiteral<"tilby">;
|
|
1530
1534
|
data: z.ZodObject<{
|
|
1531
1535
|
apiToken: z.ZodString;
|
|
1532
|
-
webhookEmail: z.
|
|
1533
|
-
xClient: z.
|
|
1534
|
-
defaultSellerId: z.
|
|
1535
|
-
defaultSellerName: z.
|
|
1536
|
-
autoPrintOrder: z.
|
|
1537
|
-
deliverartChannelName: z.
|
|
1538
|
-
defaultPaymentMethodId: z.
|
|
1539
|
-
defaultPaymentMethodName: z.
|
|
1540
|
-
defaultPaymentMethodTypeId: z.
|
|
1541
|
-
defaultPaymentMethodTypeName: z.
|
|
1542
|
-
defaultStockLocationId: z.
|
|
1543
|
-
syncSettings: z.
|
|
1544
|
-
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.
|
|
1536
|
+
webhookEmail: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1537
|
+
xClient: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1538
|
+
defaultSellerId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1539
|
+
defaultSellerName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1540
|
+
autoPrintOrder: z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>, unknown>;
|
|
1541
|
+
deliverartChannelName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1542
|
+
defaultPaymentMethodId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1543
|
+
defaultPaymentMethodName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1544
|
+
defaultPaymentMethodTypeId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1545
|
+
defaultPaymentMethodTypeName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1546
|
+
defaultStockLocationId: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
|
|
1547
|
+
syncSettings: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
1548
|
+
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
1545
1549
|
stripe: "stripe";
|
|
1546
1550
|
bank_transfer: "bank_transfer";
|
|
1547
1551
|
cash: "cash";
|
|
@@ -1553,7 +1557,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1553
1557
|
name: z.ZodString;
|
|
1554
1558
|
typeId: z.ZodNumber;
|
|
1555
1559
|
typeName: z.ZodString;
|
|
1556
|
-
}, z.core.$strict
|
|
1560
|
+
}, z.core.$strict>>, unknown>>>;
|
|
1557
1561
|
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1558
1562
|
application: "application";
|
|
1559
1563
|
ecommerce: "ecommerce";
|
|
@@ -1583,7 +1587,9 @@ 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>>;
|
|
1586
|
-
|
|
1590
|
+
respectDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1591
|
+
removeProductsWithoutDeliverartChannel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1592
|
+
}, z.core.$strip>>, unknown>;
|
|
1587
1593
|
}, z.core.$strip>;
|
|
1588
1594
|
}, z.core.$strip>, z.ZodObject<{
|
|
1589
1595
|
service: z.ZodLiteral<"ecommerce">;
|
|
@@ -1594,17 +1600,17 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1594
1600
|
collection: "collection";
|
|
1595
1601
|
}>, z.ZodLiteral<"take_away">]>, z.ZodTransform<"delivery" | "collection", "delivery" | "collection" | "take_away">>>;
|
|
1596
1602
|
minOrderValue: z.ZodCoercedNumber<unknown>;
|
|
1597
|
-
displayName: z.
|
|
1598
|
-
tagline: z.
|
|
1599
|
-
menuViewMode: z.
|
|
1603
|
+
displayName: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1604
|
+
tagline: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1605
|
+
menuViewMode: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
1600
1606
|
editorial: "editorial";
|
|
1601
1607
|
compact: "compact";
|
|
1602
1608
|
visual_grid: "visual_grid";
|
|
1603
|
-
}
|
|
1609
|
+
}>>, unknown>;
|
|
1604
1610
|
showProductImages: z.ZodOptional<z.ZodBoolean>;
|
|
1605
|
-
logo: z.
|
|
1606
|
-
heroImage: z.
|
|
1607
|
-
theme: z.
|
|
1611
|
+
logo: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1612
|
+
heroImage: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1613
|
+
theme: z.ZodPreprocess<z.ZodOptional<z.ZodObject<{
|
|
1608
1614
|
primary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1609
1615
|
accent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1610
1616
|
background: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1623,7 +1629,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1623
1629
|
nunito_sans: "nunito_sans";
|
|
1624
1630
|
playfair_display: "playfair_display";
|
|
1625
1631
|
}>>>;
|
|
1626
|
-
}, z.core.$loose
|
|
1632
|
+
}, z.core.$loose>>, unknown>;
|
|
1627
1633
|
}, z.core.$strip>;
|
|
1628
1634
|
}, z.core.$strip>, z.ZodObject<{
|
|
1629
1635
|
service: z.ZodLiteral<"elephant">;
|
|
@@ -1631,7 +1637,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1631
1637
|
restaurants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1632
1638
|
name: z.ZodString;
|
|
1633
1639
|
platformRestaurantId: z.ZodString;
|
|
1634
|
-
platformChainId: z.
|
|
1640
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1635
1641
|
salesModeId: z.ZodString;
|
|
1636
1642
|
categoryId: z.ZodString;
|
|
1637
1643
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1663,7 +1669,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1663
1669
|
}, z.core.$strip>, z.ZodObject<{
|
|
1664
1670
|
name: z.ZodString;
|
|
1665
1671
|
platformRestaurantId: z.ZodString;
|
|
1666
|
-
platformChainId: z.
|
|
1672
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1667
1673
|
salesModeId: z.ZodString;
|
|
1668
1674
|
categoryId: z.ZodString;
|
|
1669
1675
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1695,7 +1701,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1695
1701
|
}, z.core.$strip>, z.ZodObject<{
|
|
1696
1702
|
name: z.ZodString;
|
|
1697
1703
|
platformRestaurantId: z.ZodString;
|
|
1698
|
-
platformChainId: z.
|
|
1704
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1699
1705
|
salesModeId: z.ZodString;
|
|
1700
1706
|
categoryId: z.ZodString;
|
|
1701
1707
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1725,7 +1731,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1725
1731
|
}, z.core.$strip>, z.ZodObject<{
|
|
1726
1732
|
name: z.ZodString;
|
|
1727
1733
|
platformRestaurantId: z.ZodString;
|
|
1728
|
-
platformChainId: z.
|
|
1734
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1729
1735
|
salesModeId: z.ZodString;
|
|
1730
1736
|
categoryId: z.ZodString;
|
|
1731
1737
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1755,7 +1761,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1755
1761
|
}, z.core.$strip>, z.ZodObject<{
|
|
1756
1762
|
name: z.ZodString;
|
|
1757
1763
|
platformRestaurantId: z.ZodString;
|
|
1758
|
-
platformChainId: z.
|
|
1764
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1759
1765
|
salesModeId: z.ZodString;
|
|
1760
1766
|
categoryId: z.ZodString;
|
|
1761
1767
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1782,7 +1788,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1782
1788
|
password: z.ZodString;
|
|
1783
1789
|
chain_code: z.ZodString;
|
|
1784
1790
|
remote_id: z.ZodString;
|
|
1785
|
-
webhook_token: z.
|
|
1791
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1786
1792
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
1787
1793
|
}, z.core.$strict>>>;
|
|
1788
1794
|
}, z.core.$strip>], "platform">>;
|
|
@@ -1793,7 +1799,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1793
1799
|
restaurants: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1794
1800
|
name: z.ZodString;
|
|
1795
1801
|
platformRestaurantId: z.ZodString;
|
|
1796
|
-
platformChainId: z.
|
|
1802
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1797
1803
|
salesModeId: z.ZodString;
|
|
1798
1804
|
categoryId: z.ZodString;
|
|
1799
1805
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1825,7 +1831,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1825
1831
|
}, z.core.$strip>, z.ZodObject<{
|
|
1826
1832
|
name: z.ZodString;
|
|
1827
1833
|
platformRestaurantId: z.ZodString;
|
|
1828
|
-
platformChainId: z.
|
|
1834
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1829
1835
|
salesModeId: z.ZodString;
|
|
1830
1836
|
categoryId: z.ZodString;
|
|
1831
1837
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1857,7 +1863,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1857
1863
|
}, z.core.$strip>, z.ZodObject<{
|
|
1858
1864
|
name: z.ZodString;
|
|
1859
1865
|
platformRestaurantId: z.ZodString;
|
|
1860
|
-
platformChainId: z.
|
|
1866
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1861
1867
|
salesModeId: z.ZodString;
|
|
1862
1868
|
categoryId: z.ZodString;
|
|
1863
1869
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1887,7 +1893,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1887
1893
|
}, z.core.$strip>, z.ZodObject<{
|
|
1888
1894
|
name: z.ZodString;
|
|
1889
1895
|
platformRestaurantId: z.ZodString;
|
|
1890
|
-
platformChainId: z.
|
|
1896
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1891
1897
|
salesModeId: z.ZodString;
|
|
1892
1898
|
categoryId: z.ZodString;
|
|
1893
1899
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1917,7 +1923,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1917
1923
|
}, z.core.$strip>, z.ZodObject<{
|
|
1918
1924
|
name: z.ZodString;
|
|
1919
1925
|
platformRestaurantId: z.ZodString;
|
|
1920
|
-
platformChainId: z.
|
|
1926
|
+
platformChainId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1921
1927
|
salesModeId: z.ZodString;
|
|
1922
1928
|
categoryId: z.ZodString;
|
|
1923
1929
|
defaultTaxRate: z.ZodCoercedNumber<unknown>;
|
|
@@ -1944,7 +1950,7 @@ declare const integrationServiceDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1944
1950
|
password: z.ZodString;
|
|
1945
1951
|
chain_code: z.ZodString;
|
|
1946
1952
|
remote_id: z.ZodString;
|
|
1947
|
-
webhook_token: z.
|
|
1953
|
+
webhook_token: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
|
|
1948
1954
|
base_url: z.ZodOptional<z.ZodURL>;
|
|
1949
1955
|
}, z.core.$strict>>>;
|
|
1950
1956
|
}, z.core.$strip>], "platform">>;
|
|
@@ -1983,7 +1989,7 @@ declare const integrationTilbyPaymentMappingSchema: z.ZodObject<{
|
|
|
1983
1989
|
typeName: z.ZodString;
|
|
1984
1990
|
}, z.core.$strict>;
|
|
1985
1991
|
type IntegrationTilbyPaymentMapping = z.infer<typeof integrationTilbyPaymentMappingSchema>;
|
|
1986
|
-
declare const integrationTilbyPaymentMappingsSchema: z.
|
|
1992
|
+
declare const integrationTilbyPaymentMappingsSchema: z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
1987
1993
|
stripe: "stripe";
|
|
1988
1994
|
bank_transfer: "bank_transfer";
|
|
1989
1995
|
cash: "cash";
|
|
@@ -1995,9 +2001,9 @@ declare const integrationTilbyPaymentMappingsSchema: z.ZodPipe<z.ZodTransform<un
|
|
|
1995
2001
|
name: z.ZodString;
|
|
1996
2002
|
typeId: z.ZodNumber;
|
|
1997
2003
|
typeName: z.ZodString;
|
|
1998
|
-
}, z.core.$strict
|
|
2004
|
+
}, z.core.$strict>>, unknown>;
|
|
1999
2005
|
declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
2000
|
-
paymentMethodMappings: z.ZodDefault<z.
|
|
2006
|
+
paymentMethodMappings: z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
2001
2007
|
stripe: "stripe";
|
|
2002
2008
|
bank_transfer: "bank_transfer";
|
|
2003
2009
|
cash: "cash";
|
|
@@ -2009,7 +2015,7 @@ declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
|
2009
2015
|
name: z.ZodString;
|
|
2010
2016
|
typeId: z.ZodNumber;
|
|
2011
2017
|
typeName: z.ZodString;
|
|
2012
|
-
}, z.core.$strict
|
|
2018
|
+
}, z.core.$strict>>, unknown>>;
|
|
2013
2019
|
newMenuItemChannels: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2014
2020
|
application: "application";
|
|
2015
2021
|
ecommerce: "ecommerce";
|
|
@@ -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>;
|
|
@@ -2043,7 +2051,7 @@ declare const integrationTilbySyncSettingsSchema: z.ZodObject<{
|
|
|
2043
2051
|
}, z.core.$strip>;
|
|
2044
2052
|
type IntegrationTilbySyncSettings = z.infer<typeof integrationTilbySyncSettingsSchema>;
|
|
2045
2053
|
declare const integrationTilbyEditableSyncSettingsSchema: z.ZodObject<{
|
|
2046
|
-
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.
|
|
2054
|
+
paymentMethodMappings: z.ZodOptional<z.ZodDefault<z.ZodPreprocess<z.ZodRecord<z.ZodEnum<{
|
|
2047
2055
|
stripe: "stripe";
|
|
2048
2056
|
bank_transfer: "bank_transfer";
|
|
2049
2057
|
cash: "cash";
|
|
@@ -2055,7 +2063,7 @@ declare const integrationTilbyEditableSyncSettingsSchema: z.ZodObject<{
|
|
|
2055
2063
|
name: z.ZodString;
|
|
2056
2064
|
typeId: z.ZodNumber;
|
|
2057
2065
|
typeName: z.ZodString;
|
|
2058
|
-
}, z.core.$strict
|
|
2066
|
+
}, z.core.$strict>>, unknown>>>;
|
|
2059
2067
|
newMenuItemChannels: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2060
2068
|
application: "application";
|
|
2061
2069
|
ecommerce: "ecommerce";
|
|
@@ -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
|
|