@wix/auto_sdk_restaurants_fulfillment-methods 1.0.67 → 1.0.69
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/build/cjs/index.d.ts +12 -36
- package/build/cjs/index.js +41 -2363
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +6 -3
- package/build/cjs/index.typings.js +13 -2335
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -1
- package/build/es/index.d.mts +12 -36
- package/build/es/index.mjs +41 -2353
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +6 -3
- package/build/es/index.typings.mjs +13 -2325
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -1
- package/build/internal/cjs/index.d.ts +12 -36
- package/build/internal/cjs/index.js +41 -2363
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +6 -3
- package/build/internal/cjs/index.typings.js +13 -2335
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -1
- package/build/internal/es/index.d.mts +12 -36
- package/build/internal/es/index.mjs +41 -2353
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +6 -3
- package/build/internal/es/index.typings.mjs +13 -2325
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __export = (target, all) => {
|
|
9
7
|
for (var name in all)
|
|
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
15
|
}
|
|
18
16
|
return to;
|
|
19
17
|
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
19
|
|
|
30
20
|
// index.ts
|
|
@@ -833,2269 +823,6 @@ function bulkUpdateFulfillmentMethodTagsByFilter(payload) {
|
|
|
833
823
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
834
824
|
var import_address2 = require("@wix/sdk-runtime/transformations/address");
|
|
835
825
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
836
|
-
|
|
837
|
-
// src/restaurants-v1-fulfillment-method-fulfillment-methods.schemas.ts
|
|
838
|
-
var z = __toESM(require("zod"));
|
|
839
|
-
var CreateFulfillmentMethodRequest = z.object({
|
|
840
|
-
fulfillmentMethod: z.intersection(
|
|
841
|
-
z.object({
|
|
842
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
843
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
844
|
-
"Must be a valid GUID"
|
|
845
|
-
).optional().nullable(),
|
|
846
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
847
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
848
|
-
).optional().nullable(),
|
|
849
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
850
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
851
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).optional(),
|
|
852
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
853
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
854
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
855
|
-
availability: z.object({
|
|
856
|
-
availableTimes: z.array(
|
|
857
|
-
z.object({
|
|
858
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).optional(),
|
|
859
|
-
timeRanges: z.array(
|
|
860
|
-
z.object({
|
|
861
|
-
startTime: z.object({
|
|
862
|
-
hours: z.number().int().describe(
|
|
863
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
864
|
-
).optional(),
|
|
865
|
-
minutes: z.number().int().describe(
|
|
866
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
867
|
-
).optional()
|
|
868
|
-
}).describe(
|
|
869
|
-
"The start time in time of day representation."
|
|
870
|
-
).optional(),
|
|
871
|
-
endTime: z.object({
|
|
872
|
-
hours: z.number().int().describe(
|
|
873
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
874
|
-
).optional(),
|
|
875
|
-
minutes: z.number().int().describe(
|
|
876
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
877
|
-
).optional()
|
|
878
|
-
}).describe(
|
|
879
|
-
"The end time in time of day representation."
|
|
880
|
-
).optional()
|
|
881
|
-
})
|
|
882
|
-
).optional()
|
|
883
|
-
})
|
|
884
|
-
).optional(),
|
|
885
|
-
timeZone: z.string().describe(
|
|
886
|
-
"The timezone in which the availability times are given."
|
|
887
|
-
).optional().nullable()
|
|
888
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
889
|
-
minOrderPrice: z.string().describe(
|
|
890
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
891
|
-
).optional().nullable(),
|
|
892
|
-
businessLocationId: z.string().describe(
|
|
893
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
894
|
-
).regex(
|
|
895
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
896
|
-
"Must be a valid GUID"
|
|
897
|
-
).optional().nullable(),
|
|
898
|
-
extendedFields: z.object({
|
|
899
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
900
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
901
|
-
).optional()
|
|
902
|
-
}).describe("Extended fields.").optional(),
|
|
903
|
-
tags: z.object({
|
|
904
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
905
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
906
|
-
).optional(),
|
|
907
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
908
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
909
|
-
).optional()
|
|
910
|
-
}).describe(
|
|
911
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
912
|
-
).optional()
|
|
913
|
-
}),
|
|
914
|
-
z.xor([
|
|
915
|
-
z.object({
|
|
916
|
-
deliveryOptions: z.never().optional(),
|
|
917
|
-
pickupOptions: z.object({
|
|
918
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
919
|
-
address: z.object({
|
|
920
|
-
city: z.string().optional().nullable(),
|
|
921
|
-
subdivision: z.string().optional().nullable(),
|
|
922
|
-
country: z.string().optional().nullable(),
|
|
923
|
-
postalCode: z.string().optional().nullable(),
|
|
924
|
-
addressLine1: z.string().optional().nullable(),
|
|
925
|
-
addressLine2: z.string().optional().nullable()
|
|
926
|
-
}).describe(
|
|
927
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
928
|
-
).optional()
|
|
929
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
930
|
-
}),
|
|
931
|
-
z.object({
|
|
932
|
-
pickupOptions: z.never().optional(),
|
|
933
|
-
deliveryOptions: z.object({
|
|
934
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
935
|
-
freeDeliveryThreshold: z.string().describe(
|
|
936
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
937
|
-
).optional().nullable(),
|
|
938
|
-
deliveryArea: z.intersection(
|
|
939
|
-
z.object({
|
|
940
|
-
type: z.enum([
|
|
941
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
942
|
-
"RADIUS",
|
|
943
|
-
"POSTAL_CODE",
|
|
944
|
-
"CUSTOM",
|
|
945
|
-
"PROVIDER_DEFINED"
|
|
946
|
-
]).optional()
|
|
947
|
-
}),
|
|
948
|
-
z.xor([
|
|
949
|
-
z.object({
|
|
950
|
-
radiusOptions: z.never().optional(),
|
|
951
|
-
postalCodeOptions: z.never().optional(),
|
|
952
|
-
customOptions: z.never().optional()
|
|
953
|
-
}),
|
|
954
|
-
z.object({
|
|
955
|
-
postalCodeOptions: z.never().optional(),
|
|
956
|
-
customOptions: z.never().optional(),
|
|
957
|
-
radiusOptions: z.object({
|
|
958
|
-
minDistance: z.string().describe(
|
|
959
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
960
|
-
).optional().nullable(),
|
|
961
|
-
maxDistance: z.string().describe(
|
|
962
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
963
|
-
).optional().nullable(),
|
|
964
|
-
centerPointAddress: z.object({
|
|
965
|
-
city: z.string().optional().nullable(),
|
|
966
|
-
subdivision: z.string().optional().nullable(),
|
|
967
|
-
country: z.string().optional().nullable(),
|
|
968
|
-
postalCode: z.string().optional().nullable(),
|
|
969
|
-
addressLine1: z.string().optional().nullable(),
|
|
970
|
-
addressLine2: z.string().optional().nullable()
|
|
971
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
972
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
973
|
-
}).describe("Settings for a radius delivery area.")
|
|
974
|
-
}),
|
|
975
|
-
z.object({
|
|
976
|
-
radiusOptions: z.never().optional(),
|
|
977
|
-
customOptions: z.never().optional(),
|
|
978
|
-
postalCodeOptions: z.object({
|
|
979
|
-
countryCode: z.string().describe(
|
|
980
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
981
|
-
).optional().nullable(),
|
|
982
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
983
|
-
}).describe("Settings for a postal code delivery area.")
|
|
984
|
-
}),
|
|
985
|
-
z.object({
|
|
986
|
-
radiusOptions: z.never().optional(),
|
|
987
|
-
postalCodeOptions: z.never().optional(),
|
|
988
|
-
customOptions: z.object({
|
|
989
|
-
geocodes: z.array(
|
|
990
|
-
z.object({
|
|
991
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
992
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
993
|
-
})
|
|
994
|
-
).optional()
|
|
995
|
-
}).describe("Settings for a custom delivery area.")
|
|
996
|
-
})
|
|
997
|
-
])
|
|
998
|
-
).describe(
|
|
999
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
1000
|
-
).optional(),
|
|
1001
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
1002
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1003
|
-
"Must be a valid GUID"
|
|
1004
|
-
).optional().nullable(),
|
|
1005
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
1006
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
1007
|
-
})
|
|
1008
|
-
])
|
|
1009
|
-
).describe("Fulfillment method to create.")
|
|
1010
|
-
});
|
|
1011
|
-
var CreateFulfillmentMethodResponse = z.intersection(
|
|
1012
|
-
z.object({
|
|
1013
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1014
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1015
|
-
"Must be a valid GUID"
|
|
1016
|
-
).optional().nullable(),
|
|
1017
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1018
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
1019
|
-
).optional().nullable(),
|
|
1020
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
1021
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
1022
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
1023
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
1024
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
1025
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
1026
|
-
availability: z.object({
|
|
1027
|
-
availableTimes: z.array(
|
|
1028
|
-
z.object({
|
|
1029
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
1030
|
-
timeRanges: z.array(
|
|
1031
|
-
z.object({
|
|
1032
|
-
startTime: z.object({
|
|
1033
|
-
hours: z.number().int().describe(
|
|
1034
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1035
|
-
).optional(),
|
|
1036
|
-
minutes: z.number().int().describe(
|
|
1037
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1038
|
-
).optional()
|
|
1039
|
-
}).describe("The start time in time of day representation.").optional(),
|
|
1040
|
-
endTime: z.object({
|
|
1041
|
-
hours: z.number().int().describe(
|
|
1042
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1043
|
-
).optional(),
|
|
1044
|
-
minutes: z.number().int().describe(
|
|
1045
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1046
|
-
).optional()
|
|
1047
|
-
}).describe("The end time in time of day representation.").optional()
|
|
1048
|
-
})
|
|
1049
|
-
).optional()
|
|
1050
|
-
})
|
|
1051
|
-
).optional(),
|
|
1052
|
-
timeZone: z.string().describe("The timezone in which the availability times are given.").optional().nullable()
|
|
1053
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
1054
|
-
minOrderPrice: z.string().describe(
|
|
1055
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
1056
|
-
).optional().nullable(),
|
|
1057
|
-
businessLocationId: z.string().describe(
|
|
1058
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
1059
|
-
).regex(
|
|
1060
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1061
|
-
"Must be a valid GUID"
|
|
1062
|
-
).optional().nullable(),
|
|
1063
|
-
extendedFields: z.object({
|
|
1064
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1065
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1066
|
-
).optional()
|
|
1067
|
-
}).describe("Extended fields.").optional(),
|
|
1068
|
-
tags: z.object({
|
|
1069
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1070
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
1071
|
-
).optional(),
|
|
1072
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1073
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
1074
|
-
).optional()
|
|
1075
|
-
}).describe(
|
|
1076
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
1077
|
-
).optional()
|
|
1078
|
-
}),
|
|
1079
|
-
z.xor([
|
|
1080
|
-
z.object({
|
|
1081
|
-
pickupOptions: z.never().optional(),
|
|
1082
|
-
deliveryOptions: z.never().optional()
|
|
1083
|
-
}),
|
|
1084
|
-
z.object({
|
|
1085
|
-
deliveryOptions: z.never().optional(),
|
|
1086
|
-
pickupOptions: z.object({
|
|
1087
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
1088
|
-
address: z.object({
|
|
1089
|
-
city: z.string().optional().nullable(),
|
|
1090
|
-
subdivision: z.string().optional().nullable(),
|
|
1091
|
-
country: z.string().optional().nullable(),
|
|
1092
|
-
postalCode: z.string().optional().nullable(),
|
|
1093
|
-
addressLine1: z.string().optional().nullable(),
|
|
1094
|
-
addressLine2: z.string().optional().nullable()
|
|
1095
|
-
}).describe(
|
|
1096
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
1097
|
-
).optional()
|
|
1098
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
1099
|
-
}),
|
|
1100
|
-
z.object({
|
|
1101
|
-
pickupOptions: z.never().optional(),
|
|
1102
|
-
deliveryOptions: z.object({
|
|
1103
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
1104
|
-
freeDeliveryThreshold: z.string().describe(
|
|
1105
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
1106
|
-
).optional().nullable(),
|
|
1107
|
-
deliveryArea: z.intersection(
|
|
1108
|
-
z.object({
|
|
1109
|
-
type: z.enum([
|
|
1110
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
1111
|
-
"RADIUS",
|
|
1112
|
-
"POSTAL_CODE",
|
|
1113
|
-
"CUSTOM",
|
|
1114
|
-
"PROVIDER_DEFINED"
|
|
1115
|
-
]).describe("Type of delivery area.").optional()
|
|
1116
|
-
}),
|
|
1117
|
-
z.xor([
|
|
1118
|
-
z.object({
|
|
1119
|
-
radiusOptions: z.never().optional(),
|
|
1120
|
-
postalCodeOptions: z.never().optional(),
|
|
1121
|
-
customOptions: z.never().optional()
|
|
1122
|
-
}),
|
|
1123
|
-
z.object({
|
|
1124
|
-
postalCodeOptions: z.never().optional(),
|
|
1125
|
-
customOptions: z.never().optional(),
|
|
1126
|
-
radiusOptions: z.object({
|
|
1127
|
-
minDistance: z.string().describe(
|
|
1128
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1129
|
-
).optional().nullable(),
|
|
1130
|
-
maxDistance: z.string().describe(
|
|
1131
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1132
|
-
).optional().nullable(),
|
|
1133
|
-
centerPointAddress: z.object({
|
|
1134
|
-
city: z.string().optional().nullable(),
|
|
1135
|
-
subdivision: z.string().optional().nullable(),
|
|
1136
|
-
country: z.string().optional().nullable(),
|
|
1137
|
-
postalCode: z.string().optional().nullable(),
|
|
1138
|
-
addressLine1: z.string().optional().nullable(),
|
|
1139
|
-
addressLine2: z.string().optional().nullable()
|
|
1140
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
1141
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
1142
|
-
}).describe("Settings for a radius delivery area.")
|
|
1143
|
-
}),
|
|
1144
|
-
z.object({
|
|
1145
|
-
radiusOptions: z.never().optional(),
|
|
1146
|
-
customOptions: z.never().optional(),
|
|
1147
|
-
postalCodeOptions: z.object({
|
|
1148
|
-
countryCode: z.string().describe(
|
|
1149
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
1150
|
-
).optional().nullable(),
|
|
1151
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
1152
|
-
}).describe("Settings for a postal code delivery area.")
|
|
1153
|
-
}),
|
|
1154
|
-
z.object({
|
|
1155
|
-
radiusOptions: z.never().optional(),
|
|
1156
|
-
postalCodeOptions: z.never().optional(),
|
|
1157
|
-
customOptions: z.object({
|
|
1158
|
-
geocodes: z.array(
|
|
1159
|
-
z.object({
|
|
1160
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
1161
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
1162
|
-
})
|
|
1163
|
-
).optional()
|
|
1164
|
-
}).describe("Settings for a custom delivery area.")
|
|
1165
|
-
})
|
|
1166
|
-
])
|
|
1167
|
-
).describe(
|
|
1168
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
1169
|
-
).optional(),
|
|
1170
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
1171
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1172
|
-
"Must be a valid GUID"
|
|
1173
|
-
).optional().nullable(),
|
|
1174
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
1175
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
1176
|
-
})
|
|
1177
|
-
])
|
|
1178
|
-
);
|
|
1179
|
-
var BulkCreateFulfillmentMethodsRequest = z.object({
|
|
1180
|
-
options: z.object({
|
|
1181
|
-
fulfillmentMethods: z.array(
|
|
1182
|
-
z.intersection(
|
|
1183
|
-
z.object({
|
|
1184
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1185
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1186
|
-
"Must be a valid GUID"
|
|
1187
|
-
).optional().nullable(),
|
|
1188
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1189
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
1190
|
-
).optional().nullable(),
|
|
1191
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
1192
|
-
_updatedDate: z.date().describe(
|
|
1193
|
-
"Date and time the fulfillment method was last updated."
|
|
1194
|
-
).optional().nullable(),
|
|
1195
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).optional(),
|
|
1196
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
1197
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
1198
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
1199
|
-
availability: z.object({
|
|
1200
|
-
availableTimes: z.array(
|
|
1201
|
-
z.object({
|
|
1202
|
-
dayOfWeek: z.enum([
|
|
1203
|
-
"MON",
|
|
1204
|
-
"TUE",
|
|
1205
|
-
"WED",
|
|
1206
|
-
"THU",
|
|
1207
|
-
"FRI",
|
|
1208
|
-
"SAT",
|
|
1209
|
-
"SUN"
|
|
1210
|
-
]).optional(),
|
|
1211
|
-
timeRanges: z.array(
|
|
1212
|
-
z.object({
|
|
1213
|
-
startTime: z.object({
|
|
1214
|
-
hours: z.number().int().describe(
|
|
1215
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1216
|
-
).optional(),
|
|
1217
|
-
minutes: z.number().int().describe(
|
|
1218
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1219
|
-
).optional()
|
|
1220
|
-
}).describe(
|
|
1221
|
-
"The start time in time of day representation."
|
|
1222
|
-
).optional(),
|
|
1223
|
-
endTime: z.object({
|
|
1224
|
-
hours: z.number().int().describe(
|
|
1225
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1226
|
-
).optional(),
|
|
1227
|
-
minutes: z.number().int().describe(
|
|
1228
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1229
|
-
).optional()
|
|
1230
|
-
}).describe(
|
|
1231
|
-
"The end time in time of day representation."
|
|
1232
|
-
).optional()
|
|
1233
|
-
})
|
|
1234
|
-
).optional()
|
|
1235
|
-
})
|
|
1236
|
-
).optional(),
|
|
1237
|
-
timeZone: z.string().describe(
|
|
1238
|
-
"The timezone in which the availability times are given."
|
|
1239
|
-
).optional().nullable()
|
|
1240
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
1241
|
-
minOrderPrice: z.string().describe(
|
|
1242
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
1243
|
-
).optional().nullable(),
|
|
1244
|
-
businessLocationId: z.string().describe(
|
|
1245
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
1246
|
-
).regex(
|
|
1247
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1248
|
-
"Must be a valid GUID"
|
|
1249
|
-
).optional().nullable(),
|
|
1250
|
-
extendedFields: z.object({
|
|
1251
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1252
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1253
|
-
).optional()
|
|
1254
|
-
}).describe("Extended fields.").optional(),
|
|
1255
|
-
tags: z.object({
|
|
1256
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1257
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
1258
|
-
).optional(),
|
|
1259
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1260
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
1261
|
-
).optional()
|
|
1262
|
-
}).describe(
|
|
1263
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
1264
|
-
).optional()
|
|
1265
|
-
}),
|
|
1266
|
-
z.xor([
|
|
1267
|
-
z.object({
|
|
1268
|
-
pickupOptions: z.never().optional(),
|
|
1269
|
-
deliveryOptions: z.never().optional()
|
|
1270
|
-
}),
|
|
1271
|
-
z.object({
|
|
1272
|
-
deliveryOptions: z.never().optional(),
|
|
1273
|
-
pickupOptions: z.object({
|
|
1274
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
1275
|
-
address: z.object({
|
|
1276
|
-
city: z.string().optional().nullable(),
|
|
1277
|
-
subdivision: z.string().optional().nullable(),
|
|
1278
|
-
country: z.string().optional().nullable(),
|
|
1279
|
-
postalCode: z.string().optional().nullable(),
|
|
1280
|
-
addressLine1: z.string().optional().nullable(),
|
|
1281
|
-
addressLine2: z.string().optional().nullable()
|
|
1282
|
-
}).describe(
|
|
1283
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
1284
|
-
).optional()
|
|
1285
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
1286
|
-
}),
|
|
1287
|
-
z.object({
|
|
1288
|
-
pickupOptions: z.never().optional(),
|
|
1289
|
-
deliveryOptions: z.object({
|
|
1290
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
1291
|
-
freeDeliveryThreshold: z.string().describe(
|
|
1292
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
1293
|
-
).optional().nullable(),
|
|
1294
|
-
deliveryArea: z.intersection(
|
|
1295
|
-
z.object({
|
|
1296
|
-
type: z.enum([
|
|
1297
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
1298
|
-
"RADIUS",
|
|
1299
|
-
"POSTAL_CODE",
|
|
1300
|
-
"CUSTOM",
|
|
1301
|
-
"PROVIDER_DEFINED"
|
|
1302
|
-
]).describe("Type of delivery area.").optional()
|
|
1303
|
-
}),
|
|
1304
|
-
z.xor([
|
|
1305
|
-
z.object({
|
|
1306
|
-
radiusOptions: z.never().optional(),
|
|
1307
|
-
postalCodeOptions: z.never().optional(),
|
|
1308
|
-
customOptions: z.never().optional()
|
|
1309
|
-
}),
|
|
1310
|
-
z.object({
|
|
1311
|
-
postalCodeOptions: z.never().optional(),
|
|
1312
|
-
customOptions: z.never().optional(),
|
|
1313
|
-
radiusOptions: z.object({
|
|
1314
|
-
minDistance: z.string().describe(
|
|
1315
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1316
|
-
).optional().nullable(),
|
|
1317
|
-
maxDistance: z.string().describe(
|
|
1318
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1319
|
-
).optional().nullable(),
|
|
1320
|
-
centerPointAddress: z.object({
|
|
1321
|
-
city: z.string().optional().nullable(),
|
|
1322
|
-
subdivision: z.string().optional().nullable(),
|
|
1323
|
-
country: z.string().optional().nullable(),
|
|
1324
|
-
postalCode: z.string().optional().nullable(),
|
|
1325
|
-
addressLine1: z.string().optional().nullable(),
|
|
1326
|
-
addressLine2: z.string().optional().nullable()
|
|
1327
|
-
}).describe(
|
|
1328
|
-
"Address at the center of the circle."
|
|
1329
|
-
).optional(),
|
|
1330
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe(
|
|
1331
|
-
"Unit of measurement of the radius."
|
|
1332
|
-
).optional()
|
|
1333
|
-
}).describe("Settings for a radius delivery area.")
|
|
1334
|
-
}),
|
|
1335
|
-
z.object({
|
|
1336
|
-
radiusOptions: z.never().optional(),
|
|
1337
|
-
customOptions: z.never().optional(),
|
|
1338
|
-
postalCodeOptions: z.object({
|
|
1339
|
-
countryCode: z.string().describe(
|
|
1340
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
1341
|
-
).optional().nullable(),
|
|
1342
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
1343
|
-
}).describe(
|
|
1344
|
-
"Settings for a postal code delivery area."
|
|
1345
|
-
)
|
|
1346
|
-
}),
|
|
1347
|
-
z.object({
|
|
1348
|
-
radiusOptions: z.never().optional(),
|
|
1349
|
-
postalCodeOptions: z.never().optional(),
|
|
1350
|
-
customOptions: z.object({
|
|
1351
|
-
geocodes: z.array(
|
|
1352
|
-
z.object({
|
|
1353
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
1354
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
1355
|
-
})
|
|
1356
|
-
).optional()
|
|
1357
|
-
}).describe("Settings for a custom delivery area.")
|
|
1358
|
-
})
|
|
1359
|
-
])
|
|
1360
|
-
).describe(
|
|
1361
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
1362
|
-
).optional(),
|
|
1363
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
1364
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1365
|
-
"Must be a valid GUID"
|
|
1366
|
-
).optional().nullable(),
|
|
1367
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
1368
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
1369
|
-
})
|
|
1370
|
-
])
|
|
1371
|
-
)
|
|
1372
|
-
).max(100).optional(),
|
|
1373
|
-
returnEntity: z.boolean().describe("If true, the created entities will be returned.").optional()
|
|
1374
|
-
}).optional()
|
|
1375
|
-
});
|
|
1376
|
-
var BulkCreateFulfillmentMethodsResponse = z.object({
|
|
1377
|
-
results: z.array(
|
|
1378
|
-
z.object({
|
|
1379
|
-
itemMetadata: z.object({
|
|
1380
|
-
_id: z.string().describe(
|
|
1381
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
1382
|
-
).optional().nullable(),
|
|
1383
|
-
originalIndex: z.number().int().describe(
|
|
1384
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
1385
|
-
).optional(),
|
|
1386
|
-
success: z.boolean().describe(
|
|
1387
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
1388
|
-
).optional(),
|
|
1389
|
-
error: z.object({
|
|
1390
|
-
code: z.string().describe("Error code.").optional(),
|
|
1391
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
1392
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
1393
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
1394
|
-
}).describe("Metadata for fulfillment method creation.").optional(),
|
|
1395
|
-
fulfillmentMethod: z.intersection(
|
|
1396
|
-
z.object({
|
|
1397
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1398
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1399
|
-
"Must be a valid GUID"
|
|
1400
|
-
).optional().nullable(),
|
|
1401
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1402
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
1403
|
-
).optional().nullable(),
|
|
1404
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
1405
|
-
_updatedDate: z.date().describe(
|
|
1406
|
-
"Date and time the fulfillment method was last updated."
|
|
1407
|
-
).optional().nullable(),
|
|
1408
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
1409
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
1410
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
1411
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
1412
|
-
availability: z.object({
|
|
1413
|
-
availableTimes: z.array(
|
|
1414
|
-
z.object({
|
|
1415
|
-
dayOfWeek: z.enum([
|
|
1416
|
-
"MON",
|
|
1417
|
-
"TUE",
|
|
1418
|
-
"WED",
|
|
1419
|
-
"THU",
|
|
1420
|
-
"FRI",
|
|
1421
|
-
"SAT",
|
|
1422
|
-
"SUN"
|
|
1423
|
-
]).describe(
|
|
1424
|
-
"The day of week this availability relates to."
|
|
1425
|
-
).optional(),
|
|
1426
|
-
timeRanges: z.array(
|
|
1427
|
-
z.object({
|
|
1428
|
-
startTime: z.object({
|
|
1429
|
-
hours: z.number().int().describe(
|
|
1430
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1431
|
-
).optional(),
|
|
1432
|
-
minutes: z.number().int().describe(
|
|
1433
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1434
|
-
).optional()
|
|
1435
|
-
}).describe(
|
|
1436
|
-
"The start time in time of day representation."
|
|
1437
|
-
).optional(),
|
|
1438
|
-
endTime: z.object({
|
|
1439
|
-
hours: z.number().int().describe(
|
|
1440
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1441
|
-
).optional(),
|
|
1442
|
-
minutes: z.number().int().describe(
|
|
1443
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1444
|
-
).optional()
|
|
1445
|
-
}).describe(
|
|
1446
|
-
"The end time in time of day representation."
|
|
1447
|
-
).optional()
|
|
1448
|
-
})
|
|
1449
|
-
).optional()
|
|
1450
|
-
})
|
|
1451
|
-
).optional(),
|
|
1452
|
-
timeZone: z.string().describe(
|
|
1453
|
-
"The timezone in which the availability times are given."
|
|
1454
|
-
).optional().nullable()
|
|
1455
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
1456
|
-
minOrderPrice: z.string().describe(
|
|
1457
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
1458
|
-
).optional().nullable(),
|
|
1459
|
-
businessLocationId: z.string().describe(
|
|
1460
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
1461
|
-
).regex(
|
|
1462
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1463
|
-
"Must be a valid GUID"
|
|
1464
|
-
).optional().nullable(),
|
|
1465
|
-
extendedFields: z.object({
|
|
1466
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1467
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1468
|
-
).optional()
|
|
1469
|
-
}).describe("Extended fields.").optional(),
|
|
1470
|
-
tags: z.object({
|
|
1471
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1472
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
1473
|
-
).optional(),
|
|
1474
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1475
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
1476
|
-
).optional()
|
|
1477
|
-
}).describe(
|
|
1478
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
1479
|
-
).optional()
|
|
1480
|
-
}),
|
|
1481
|
-
z.xor([
|
|
1482
|
-
z.object({
|
|
1483
|
-
pickupOptions: z.never().optional(),
|
|
1484
|
-
deliveryOptions: z.never().optional()
|
|
1485
|
-
}),
|
|
1486
|
-
z.object({
|
|
1487
|
-
deliveryOptions: z.never().optional(),
|
|
1488
|
-
pickupOptions: z.object({
|
|
1489
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
1490
|
-
address: z.object({
|
|
1491
|
-
city: z.string().optional().nullable(),
|
|
1492
|
-
subdivision: z.string().optional().nullable(),
|
|
1493
|
-
country: z.string().optional().nullable(),
|
|
1494
|
-
postalCode: z.string().optional().nullable(),
|
|
1495
|
-
addressLine1: z.string().optional().nullable(),
|
|
1496
|
-
addressLine2: z.string().optional().nullable()
|
|
1497
|
-
}).describe(
|
|
1498
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
1499
|
-
).optional()
|
|
1500
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
1501
|
-
}),
|
|
1502
|
-
z.object({
|
|
1503
|
-
pickupOptions: z.never().optional(),
|
|
1504
|
-
deliveryOptions: z.object({
|
|
1505
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
1506
|
-
freeDeliveryThreshold: z.string().describe(
|
|
1507
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
1508
|
-
).optional().nullable(),
|
|
1509
|
-
deliveryArea: z.intersection(
|
|
1510
|
-
z.object({
|
|
1511
|
-
type: z.enum([
|
|
1512
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
1513
|
-
"RADIUS",
|
|
1514
|
-
"POSTAL_CODE",
|
|
1515
|
-
"CUSTOM",
|
|
1516
|
-
"PROVIDER_DEFINED"
|
|
1517
|
-
]).describe("Type of delivery area.").optional()
|
|
1518
|
-
}),
|
|
1519
|
-
z.xor([
|
|
1520
|
-
z.object({
|
|
1521
|
-
radiusOptions: z.never().optional(),
|
|
1522
|
-
postalCodeOptions: z.never().optional(),
|
|
1523
|
-
customOptions: z.never().optional()
|
|
1524
|
-
}),
|
|
1525
|
-
z.object({
|
|
1526
|
-
postalCodeOptions: z.never().optional(),
|
|
1527
|
-
customOptions: z.never().optional(),
|
|
1528
|
-
radiusOptions: z.object({
|
|
1529
|
-
minDistance: z.string().describe(
|
|
1530
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1531
|
-
).optional().nullable(),
|
|
1532
|
-
maxDistance: z.string().describe(
|
|
1533
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1534
|
-
).optional().nullable(),
|
|
1535
|
-
centerPointAddress: z.object({
|
|
1536
|
-
city: z.string().optional().nullable(),
|
|
1537
|
-
subdivision: z.string().optional().nullable(),
|
|
1538
|
-
country: z.string().optional().nullable(),
|
|
1539
|
-
postalCode: z.string().optional().nullable(),
|
|
1540
|
-
addressLine1: z.string().optional().nullable(),
|
|
1541
|
-
addressLine2: z.string().optional().nullable()
|
|
1542
|
-
}).describe(
|
|
1543
|
-
"Address at the center of the circle."
|
|
1544
|
-
).optional(),
|
|
1545
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe(
|
|
1546
|
-
"Unit of measurement of the radius."
|
|
1547
|
-
).optional()
|
|
1548
|
-
}).describe("Settings for a radius delivery area.")
|
|
1549
|
-
}),
|
|
1550
|
-
z.object({
|
|
1551
|
-
radiusOptions: z.never().optional(),
|
|
1552
|
-
customOptions: z.never().optional(),
|
|
1553
|
-
postalCodeOptions: z.object({
|
|
1554
|
-
countryCode: z.string().describe(
|
|
1555
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
1556
|
-
).optional().nullable(),
|
|
1557
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
1558
|
-
}).describe(
|
|
1559
|
-
"Settings for a postal code delivery area."
|
|
1560
|
-
)
|
|
1561
|
-
}),
|
|
1562
|
-
z.object({
|
|
1563
|
-
radiusOptions: z.never().optional(),
|
|
1564
|
-
postalCodeOptions: z.never().optional(),
|
|
1565
|
-
customOptions: z.object({
|
|
1566
|
-
geocodes: z.array(
|
|
1567
|
-
z.object({
|
|
1568
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
1569
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
1570
|
-
})
|
|
1571
|
-
).optional()
|
|
1572
|
-
}).describe("Settings for a custom delivery area.")
|
|
1573
|
-
})
|
|
1574
|
-
])
|
|
1575
|
-
).describe(
|
|
1576
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
1577
|
-
).optional(),
|
|
1578
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
1579
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1580
|
-
"Must be a valid GUID"
|
|
1581
|
-
).optional().nullable(),
|
|
1582
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
1583
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
1584
|
-
})
|
|
1585
|
-
])
|
|
1586
|
-
).describe("Created fulfillment method.").optional()
|
|
1587
|
-
})
|
|
1588
|
-
).optional(),
|
|
1589
|
-
bulkActionMetadata: z.object({
|
|
1590
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1591
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1592
|
-
undetailedFailures: z.number().int().describe(
|
|
1593
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1594
|
-
).optional()
|
|
1595
|
-
}).describe("Metadata for the API call.").optional()
|
|
1596
|
-
});
|
|
1597
|
-
var GetFulfillmentMethodRequest = z.object({
|
|
1598
|
-
fulfillmentMethodId: z.string().describe("The ID of the fulfillment method to retrieve.").regex(
|
|
1599
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1600
|
-
"Must be a valid GUID"
|
|
1601
|
-
)
|
|
1602
|
-
});
|
|
1603
|
-
var GetFulfillmentMethodResponse = z.intersection(
|
|
1604
|
-
z.object({
|
|
1605
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1606
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1607
|
-
"Must be a valid GUID"
|
|
1608
|
-
).optional().nullable(),
|
|
1609
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1610
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
1611
|
-
).optional().nullable(),
|
|
1612
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
1613
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
1614
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
1615
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
1616
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
1617
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
1618
|
-
availability: z.object({
|
|
1619
|
-
availableTimes: z.array(
|
|
1620
|
-
z.object({
|
|
1621
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
1622
|
-
timeRanges: z.array(
|
|
1623
|
-
z.object({
|
|
1624
|
-
startTime: z.object({
|
|
1625
|
-
hours: z.number().int().describe(
|
|
1626
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1627
|
-
).optional(),
|
|
1628
|
-
minutes: z.number().int().describe(
|
|
1629
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1630
|
-
).optional()
|
|
1631
|
-
}).describe("The start time in time of day representation.").optional(),
|
|
1632
|
-
endTime: z.object({
|
|
1633
|
-
hours: z.number().int().describe(
|
|
1634
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1635
|
-
).optional(),
|
|
1636
|
-
minutes: z.number().int().describe(
|
|
1637
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1638
|
-
).optional()
|
|
1639
|
-
}).describe("The end time in time of day representation.").optional()
|
|
1640
|
-
})
|
|
1641
|
-
).optional()
|
|
1642
|
-
})
|
|
1643
|
-
).optional(),
|
|
1644
|
-
timeZone: z.string().describe("The timezone in which the availability times are given.").optional().nullable()
|
|
1645
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
1646
|
-
minOrderPrice: z.string().describe(
|
|
1647
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
1648
|
-
).optional().nullable(),
|
|
1649
|
-
businessLocationId: z.string().describe(
|
|
1650
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
1651
|
-
).regex(
|
|
1652
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1653
|
-
"Must be a valid GUID"
|
|
1654
|
-
).optional().nullable(),
|
|
1655
|
-
extendedFields: z.object({
|
|
1656
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1657
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1658
|
-
).optional()
|
|
1659
|
-
}).describe("Extended fields.").optional(),
|
|
1660
|
-
tags: z.object({
|
|
1661
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1662
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
1663
|
-
).optional(),
|
|
1664
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1665
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
1666
|
-
).optional()
|
|
1667
|
-
}).describe(
|
|
1668
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
1669
|
-
).optional()
|
|
1670
|
-
}),
|
|
1671
|
-
z.xor([
|
|
1672
|
-
z.object({
|
|
1673
|
-
pickupOptions: z.never().optional(),
|
|
1674
|
-
deliveryOptions: z.never().optional()
|
|
1675
|
-
}),
|
|
1676
|
-
z.object({
|
|
1677
|
-
deliveryOptions: z.never().optional(),
|
|
1678
|
-
pickupOptions: z.object({
|
|
1679
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
1680
|
-
address: z.object({
|
|
1681
|
-
city: z.string().optional().nullable(),
|
|
1682
|
-
subdivision: z.string().optional().nullable(),
|
|
1683
|
-
country: z.string().optional().nullable(),
|
|
1684
|
-
postalCode: z.string().optional().nullable(),
|
|
1685
|
-
addressLine1: z.string().optional().nullable(),
|
|
1686
|
-
addressLine2: z.string().optional().nullable()
|
|
1687
|
-
}).describe(
|
|
1688
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
1689
|
-
).optional()
|
|
1690
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
1691
|
-
}),
|
|
1692
|
-
z.object({
|
|
1693
|
-
pickupOptions: z.never().optional(),
|
|
1694
|
-
deliveryOptions: z.object({
|
|
1695
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
1696
|
-
freeDeliveryThreshold: z.string().describe(
|
|
1697
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
1698
|
-
).optional().nullable(),
|
|
1699
|
-
deliveryArea: z.intersection(
|
|
1700
|
-
z.object({
|
|
1701
|
-
type: z.enum([
|
|
1702
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
1703
|
-
"RADIUS",
|
|
1704
|
-
"POSTAL_CODE",
|
|
1705
|
-
"CUSTOM",
|
|
1706
|
-
"PROVIDER_DEFINED"
|
|
1707
|
-
]).describe("Type of delivery area.").optional()
|
|
1708
|
-
}),
|
|
1709
|
-
z.xor([
|
|
1710
|
-
z.object({
|
|
1711
|
-
radiusOptions: z.never().optional(),
|
|
1712
|
-
postalCodeOptions: z.never().optional(),
|
|
1713
|
-
customOptions: z.never().optional()
|
|
1714
|
-
}),
|
|
1715
|
-
z.object({
|
|
1716
|
-
postalCodeOptions: z.never().optional(),
|
|
1717
|
-
customOptions: z.never().optional(),
|
|
1718
|
-
radiusOptions: z.object({
|
|
1719
|
-
minDistance: z.string().describe(
|
|
1720
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1721
|
-
).optional().nullable(),
|
|
1722
|
-
maxDistance: z.string().describe(
|
|
1723
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1724
|
-
).optional().nullable(),
|
|
1725
|
-
centerPointAddress: z.object({
|
|
1726
|
-
city: z.string().optional().nullable(),
|
|
1727
|
-
subdivision: z.string().optional().nullable(),
|
|
1728
|
-
country: z.string().optional().nullable(),
|
|
1729
|
-
postalCode: z.string().optional().nullable(),
|
|
1730
|
-
addressLine1: z.string().optional().nullable(),
|
|
1731
|
-
addressLine2: z.string().optional().nullable()
|
|
1732
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
1733
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
1734
|
-
}).describe("Settings for a radius delivery area.")
|
|
1735
|
-
}),
|
|
1736
|
-
z.object({
|
|
1737
|
-
radiusOptions: z.never().optional(),
|
|
1738
|
-
customOptions: z.never().optional(),
|
|
1739
|
-
postalCodeOptions: z.object({
|
|
1740
|
-
countryCode: z.string().describe(
|
|
1741
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
1742
|
-
).optional().nullable(),
|
|
1743
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
1744
|
-
}).describe("Settings for a postal code delivery area.")
|
|
1745
|
-
}),
|
|
1746
|
-
z.object({
|
|
1747
|
-
radiusOptions: z.never().optional(),
|
|
1748
|
-
postalCodeOptions: z.never().optional(),
|
|
1749
|
-
customOptions: z.object({
|
|
1750
|
-
geocodes: z.array(
|
|
1751
|
-
z.object({
|
|
1752
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
1753
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
1754
|
-
})
|
|
1755
|
-
).optional()
|
|
1756
|
-
}).describe("Settings for a custom delivery area.")
|
|
1757
|
-
})
|
|
1758
|
-
])
|
|
1759
|
-
).describe(
|
|
1760
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
1761
|
-
).optional(),
|
|
1762
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
1763
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1764
|
-
"Must be a valid GUID"
|
|
1765
|
-
).optional().nullable(),
|
|
1766
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
1767
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
1768
|
-
})
|
|
1769
|
-
])
|
|
1770
|
-
);
|
|
1771
|
-
var UpdateFulfillmentMethodRequest = z.object({
|
|
1772
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1773
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1774
|
-
"Must be a valid GUID"
|
|
1775
|
-
),
|
|
1776
|
-
fulfillmentMethod: z.intersection(
|
|
1777
|
-
z.object({
|
|
1778
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1779
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1780
|
-
"Must be a valid GUID"
|
|
1781
|
-
).optional().nullable(),
|
|
1782
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1783
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
1784
|
-
),
|
|
1785
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
1786
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
1787
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).optional(),
|
|
1788
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
1789
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
1790
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
1791
|
-
availability: z.object({
|
|
1792
|
-
availableTimes: z.array(
|
|
1793
|
-
z.object({
|
|
1794
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).optional(),
|
|
1795
|
-
timeRanges: z.array(
|
|
1796
|
-
z.object({
|
|
1797
|
-
startTime: z.object({
|
|
1798
|
-
hours: z.number().int().describe(
|
|
1799
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1800
|
-
).optional(),
|
|
1801
|
-
minutes: z.number().int().describe(
|
|
1802
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1803
|
-
).optional()
|
|
1804
|
-
}).describe(
|
|
1805
|
-
"The start time in time of day representation."
|
|
1806
|
-
).optional(),
|
|
1807
|
-
endTime: z.object({
|
|
1808
|
-
hours: z.number().int().describe(
|
|
1809
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1810
|
-
).optional(),
|
|
1811
|
-
minutes: z.number().int().describe(
|
|
1812
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1813
|
-
).optional()
|
|
1814
|
-
}).describe(
|
|
1815
|
-
"The end time in time of day representation."
|
|
1816
|
-
).optional()
|
|
1817
|
-
})
|
|
1818
|
-
).optional()
|
|
1819
|
-
})
|
|
1820
|
-
).optional(),
|
|
1821
|
-
timeZone: z.string().describe(
|
|
1822
|
-
"The timezone in which the availability times are given."
|
|
1823
|
-
).optional().nullable()
|
|
1824
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
1825
|
-
minOrderPrice: z.string().describe(
|
|
1826
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
1827
|
-
).optional().nullable(),
|
|
1828
|
-
businessLocationId: z.string().describe(
|
|
1829
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
1830
|
-
).regex(
|
|
1831
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1832
|
-
"Must be a valid GUID"
|
|
1833
|
-
).optional().nullable(),
|
|
1834
|
-
extendedFields: z.object({
|
|
1835
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1836
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1837
|
-
).optional()
|
|
1838
|
-
}).describe("Extended fields.").optional(),
|
|
1839
|
-
tags: z.object({
|
|
1840
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1841
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
1842
|
-
).optional(),
|
|
1843
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
1844
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
1845
|
-
).optional()
|
|
1846
|
-
}).describe(
|
|
1847
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
1848
|
-
).optional()
|
|
1849
|
-
}),
|
|
1850
|
-
z.xor([
|
|
1851
|
-
z.object({
|
|
1852
|
-
pickupOptions: z.never().optional(),
|
|
1853
|
-
deliveryOptions: z.never().optional()
|
|
1854
|
-
}),
|
|
1855
|
-
z.object({
|
|
1856
|
-
deliveryOptions: z.never().optional(),
|
|
1857
|
-
pickupOptions: z.object({
|
|
1858
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
1859
|
-
address: z.object({
|
|
1860
|
-
city: z.string().optional().nullable(),
|
|
1861
|
-
subdivision: z.string().optional().nullable(),
|
|
1862
|
-
country: z.string().optional().nullable(),
|
|
1863
|
-
postalCode: z.string().optional().nullable(),
|
|
1864
|
-
addressLine1: z.string().optional().nullable(),
|
|
1865
|
-
addressLine2: z.string().optional().nullable()
|
|
1866
|
-
}).describe(
|
|
1867
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
1868
|
-
).optional()
|
|
1869
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
1870
|
-
}),
|
|
1871
|
-
z.object({
|
|
1872
|
-
pickupOptions: z.never().optional(),
|
|
1873
|
-
deliveryOptions: z.object({
|
|
1874
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
1875
|
-
freeDeliveryThreshold: z.string().describe(
|
|
1876
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
1877
|
-
).optional().nullable(),
|
|
1878
|
-
deliveryArea: z.intersection(
|
|
1879
|
-
z.object({
|
|
1880
|
-
type: z.enum([
|
|
1881
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
1882
|
-
"RADIUS",
|
|
1883
|
-
"POSTAL_CODE",
|
|
1884
|
-
"CUSTOM",
|
|
1885
|
-
"PROVIDER_DEFINED"
|
|
1886
|
-
]).describe("Type of delivery area.").optional()
|
|
1887
|
-
}),
|
|
1888
|
-
z.xor([
|
|
1889
|
-
z.object({
|
|
1890
|
-
radiusOptions: z.never().optional(),
|
|
1891
|
-
postalCodeOptions: z.never().optional(),
|
|
1892
|
-
customOptions: z.never().optional()
|
|
1893
|
-
}),
|
|
1894
|
-
z.object({
|
|
1895
|
-
postalCodeOptions: z.never().optional(),
|
|
1896
|
-
customOptions: z.never().optional(),
|
|
1897
|
-
radiusOptions: z.object({
|
|
1898
|
-
minDistance: z.string().describe(
|
|
1899
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1900
|
-
).optional().nullable(),
|
|
1901
|
-
maxDistance: z.string().describe(
|
|
1902
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
1903
|
-
).optional().nullable(),
|
|
1904
|
-
centerPointAddress: z.object({
|
|
1905
|
-
city: z.string().optional().nullable(),
|
|
1906
|
-
subdivision: z.string().optional().nullable(),
|
|
1907
|
-
country: z.string().optional().nullable(),
|
|
1908
|
-
postalCode: z.string().optional().nullable(),
|
|
1909
|
-
addressLine1: z.string().optional().nullable(),
|
|
1910
|
-
addressLine2: z.string().optional().nullable()
|
|
1911
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
1912
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
1913
|
-
}).describe("Settings for a radius delivery area.")
|
|
1914
|
-
}),
|
|
1915
|
-
z.object({
|
|
1916
|
-
radiusOptions: z.never().optional(),
|
|
1917
|
-
customOptions: z.never().optional(),
|
|
1918
|
-
postalCodeOptions: z.object({
|
|
1919
|
-
countryCode: z.string().describe(
|
|
1920
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
1921
|
-
).optional().nullable(),
|
|
1922
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
1923
|
-
}).describe("Settings for a postal code delivery area.")
|
|
1924
|
-
}),
|
|
1925
|
-
z.object({
|
|
1926
|
-
radiusOptions: z.never().optional(),
|
|
1927
|
-
postalCodeOptions: z.never().optional(),
|
|
1928
|
-
customOptions: z.object({
|
|
1929
|
-
geocodes: z.array(
|
|
1930
|
-
z.object({
|
|
1931
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
1932
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
1933
|
-
})
|
|
1934
|
-
).optional()
|
|
1935
|
-
}).describe("Settings for a custom delivery area.")
|
|
1936
|
-
})
|
|
1937
|
-
])
|
|
1938
|
-
).describe(
|
|
1939
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
1940
|
-
).optional(),
|
|
1941
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
1942
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1943
|
-
"Must be a valid GUID"
|
|
1944
|
-
).optional().nullable(),
|
|
1945
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
1946
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
1947
|
-
})
|
|
1948
|
-
])
|
|
1949
|
-
).describe("Fulfillment method information to update.")
|
|
1950
|
-
});
|
|
1951
|
-
var UpdateFulfillmentMethodResponse = z.intersection(
|
|
1952
|
-
z.object({
|
|
1953
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
1954
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1955
|
-
"Must be a valid GUID"
|
|
1956
|
-
).optional().nullable(),
|
|
1957
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1958
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
1959
|
-
).optional().nullable(),
|
|
1960
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
1961
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
1962
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
1963
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
1964
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
1965
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
1966
|
-
availability: z.object({
|
|
1967
|
-
availableTimes: z.array(
|
|
1968
|
-
z.object({
|
|
1969
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
1970
|
-
timeRanges: z.array(
|
|
1971
|
-
z.object({
|
|
1972
|
-
startTime: z.object({
|
|
1973
|
-
hours: z.number().int().describe(
|
|
1974
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1975
|
-
).optional(),
|
|
1976
|
-
minutes: z.number().int().describe(
|
|
1977
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1978
|
-
).optional()
|
|
1979
|
-
}).describe("The start time in time of day representation.").optional(),
|
|
1980
|
-
endTime: z.object({
|
|
1981
|
-
hours: z.number().int().describe(
|
|
1982
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1983
|
-
).optional(),
|
|
1984
|
-
minutes: z.number().int().describe(
|
|
1985
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
1986
|
-
).optional()
|
|
1987
|
-
}).describe("The end time in time of day representation.").optional()
|
|
1988
|
-
})
|
|
1989
|
-
).optional()
|
|
1990
|
-
})
|
|
1991
|
-
).optional(),
|
|
1992
|
-
timeZone: z.string().describe("The timezone in which the availability times are given.").optional().nullable()
|
|
1993
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
1994
|
-
minOrderPrice: z.string().describe(
|
|
1995
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
1996
|
-
).optional().nullable(),
|
|
1997
|
-
businessLocationId: z.string().describe(
|
|
1998
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
1999
|
-
).regex(
|
|
2000
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2001
|
-
"Must be a valid GUID"
|
|
2002
|
-
).optional().nullable(),
|
|
2003
|
-
extendedFields: z.object({
|
|
2004
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
2005
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
2006
|
-
).optional()
|
|
2007
|
-
}).describe("Extended fields.").optional(),
|
|
2008
|
-
tags: z.object({
|
|
2009
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2010
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
2011
|
-
).optional(),
|
|
2012
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2013
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
2014
|
-
).optional()
|
|
2015
|
-
}).describe(
|
|
2016
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
2017
|
-
).optional()
|
|
2018
|
-
}),
|
|
2019
|
-
z.xor([
|
|
2020
|
-
z.object({
|
|
2021
|
-
pickupOptions: z.never().optional(),
|
|
2022
|
-
deliveryOptions: z.never().optional()
|
|
2023
|
-
}),
|
|
2024
|
-
z.object({
|
|
2025
|
-
deliveryOptions: z.never().optional(),
|
|
2026
|
-
pickupOptions: z.object({
|
|
2027
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
2028
|
-
address: z.object({
|
|
2029
|
-
city: z.string().optional().nullable(),
|
|
2030
|
-
subdivision: z.string().optional().nullable(),
|
|
2031
|
-
country: z.string().optional().nullable(),
|
|
2032
|
-
postalCode: z.string().optional().nullable(),
|
|
2033
|
-
addressLine1: z.string().optional().nullable(),
|
|
2034
|
-
addressLine2: z.string().optional().nullable()
|
|
2035
|
-
}).describe(
|
|
2036
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
2037
|
-
).optional()
|
|
2038
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
2039
|
-
}),
|
|
2040
|
-
z.object({
|
|
2041
|
-
pickupOptions: z.never().optional(),
|
|
2042
|
-
deliveryOptions: z.object({
|
|
2043
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
2044
|
-
freeDeliveryThreshold: z.string().describe(
|
|
2045
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
2046
|
-
).optional().nullable(),
|
|
2047
|
-
deliveryArea: z.intersection(
|
|
2048
|
-
z.object({
|
|
2049
|
-
type: z.enum([
|
|
2050
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
2051
|
-
"RADIUS",
|
|
2052
|
-
"POSTAL_CODE",
|
|
2053
|
-
"CUSTOM",
|
|
2054
|
-
"PROVIDER_DEFINED"
|
|
2055
|
-
]).describe("Type of delivery area.").optional()
|
|
2056
|
-
}),
|
|
2057
|
-
z.xor([
|
|
2058
|
-
z.object({
|
|
2059
|
-
radiusOptions: z.never().optional(),
|
|
2060
|
-
postalCodeOptions: z.never().optional(),
|
|
2061
|
-
customOptions: z.never().optional()
|
|
2062
|
-
}),
|
|
2063
|
-
z.object({
|
|
2064
|
-
postalCodeOptions: z.never().optional(),
|
|
2065
|
-
customOptions: z.never().optional(),
|
|
2066
|
-
radiusOptions: z.object({
|
|
2067
|
-
minDistance: z.string().describe(
|
|
2068
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2069
|
-
).optional().nullable(),
|
|
2070
|
-
maxDistance: z.string().describe(
|
|
2071
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2072
|
-
).optional().nullable(),
|
|
2073
|
-
centerPointAddress: z.object({
|
|
2074
|
-
city: z.string().optional().nullable(),
|
|
2075
|
-
subdivision: z.string().optional().nullable(),
|
|
2076
|
-
country: z.string().optional().nullable(),
|
|
2077
|
-
postalCode: z.string().optional().nullable(),
|
|
2078
|
-
addressLine1: z.string().optional().nullable(),
|
|
2079
|
-
addressLine2: z.string().optional().nullable()
|
|
2080
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
2081
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
2082
|
-
}).describe("Settings for a radius delivery area.")
|
|
2083
|
-
}),
|
|
2084
|
-
z.object({
|
|
2085
|
-
radiusOptions: z.never().optional(),
|
|
2086
|
-
customOptions: z.never().optional(),
|
|
2087
|
-
postalCodeOptions: z.object({
|
|
2088
|
-
countryCode: z.string().describe(
|
|
2089
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
2090
|
-
).optional().nullable(),
|
|
2091
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
2092
|
-
}).describe("Settings for a postal code delivery area.")
|
|
2093
|
-
}),
|
|
2094
|
-
z.object({
|
|
2095
|
-
radiusOptions: z.never().optional(),
|
|
2096
|
-
postalCodeOptions: z.never().optional(),
|
|
2097
|
-
customOptions: z.object({
|
|
2098
|
-
geocodes: z.array(
|
|
2099
|
-
z.object({
|
|
2100
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2101
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2102
|
-
})
|
|
2103
|
-
).optional()
|
|
2104
|
-
}).describe("Settings for a custom delivery area.")
|
|
2105
|
-
})
|
|
2106
|
-
])
|
|
2107
|
-
).describe(
|
|
2108
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
2109
|
-
).optional(),
|
|
2110
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
2111
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2112
|
-
"Must be a valid GUID"
|
|
2113
|
-
).optional().nullable(),
|
|
2114
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
2115
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
2116
|
-
})
|
|
2117
|
-
])
|
|
2118
|
-
);
|
|
2119
|
-
var DeleteFulfillmentMethodRequest = z.object({
|
|
2120
|
-
fulfillmentMethodId: z.string().describe("The ID of the fulfillment method to delete.").regex(
|
|
2121
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2122
|
-
"Must be a valid GUID"
|
|
2123
|
-
)
|
|
2124
|
-
});
|
|
2125
|
-
var DeleteFulfillmentMethodResponse = z.object({});
|
|
2126
|
-
var QueryFulfillmentMethodsRequest = z.object({
|
|
2127
|
-
query: z.object({
|
|
2128
|
-
filter: z.object({
|
|
2129
|
-
_id: z.object({
|
|
2130
|
-
$eq: z.string(),
|
|
2131
|
-
$exists: z.boolean(),
|
|
2132
|
-
$gt: z.string(),
|
|
2133
|
-
$gte: z.string(),
|
|
2134
|
-
$hasAll: z.array(z.string()),
|
|
2135
|
-
$hasSome: z.array(z.string()),
|
|
2136
|
-
$in: z.array(z.string()),
|
|
2137
|
-
$lt: z.string(),
|
|
2138
|
-
$lte: z.string(),
|
|
2139
|
-
$ne: z.string(),
|
|
2140
|
-
$nin: z.array(z.string()),
|
|
2141
|
-
$startsWith: z.string()
|
|
2142
|
-
}).partial().strict().optional(),
|
|
2143
|
-
_createdDate: z.object({
|
|
2144
|
-
$eq: z.string(),
|
|
2145
|
-
$exists: z.boolean(),
|
|
2146
|
-
$gt: z.string(),
|
|
2147
|
-
$gte: z.string(),
|
|
2148
|
-
$hasAll: z.array(z.string()),
|
|
2149
|
-
$hasSome: z.array(z.string()),
|
|
2150
|
-
$in: z.array(z.string()),
|
|
2151
|
-
$lt: z.string(),
|
|
2152
|
-
$lte: z.string(),
|
|
2153
|
-
$ne: z.string(),
|
|
2154
|
-
$nin: z.array(z.string()),
|
|
2155
|
-
$startsWith: z.string()
|
|
2156
|
-
}).partial().strict().optional(),
|
|
2157
|
-
_updatedDate: z.object({
|
|
2158
|
-
$eq: z.string(),
|
|
2159
|
-
$exists: z.boolean(),
|
|
2160
|
-
$gt: z.string(),
|
|
2161
|
-
$gte: z.string(),
|
|
2162
|
-
$hasAll: z.array(z.string()),
|
|
2163
|
-
$hasSome: z.array(z.string()),
|
|
2164
|
-
$in: z.array(z.string()),
|
|
2165
|
-
$lt: z.string(),
|
|
2166
|
-
$lte: z.string(),
|
|
2167
|
-
$ne: z.string(),
|
|
2168
|
-
$nin: z.array(z.string()),
|
|
2169
|
-
$startsWith: z.string()
|
|
2170
|
-
}).partial().strict().optional(),
|
|
2171
|
-
name: z.object({
|
|
2172
|
-
$eq: z.string(),
|
|
2173
|
-
$exists: z.boolean(),
|
|
2174
|
-
$gt: z.string(),
|
|
2175
|
-
$gte: z.string(),
|
|
2176
|
-
$hasAll: z.array(z.string()),
|
|
2177
|
-
$hasSome: z.array(z.string()),
|
|
2178
|
-
$in: z.array(z.string()),
|
|
2179
|
-
$lt: z.string(),
|
|
2180
|
-
$lte: z.string(),
|
|
2181
|
-
$ne: z.string(),
|
|
2182
|
-
$nin: z.array(z.string()),
|
|
2183
|
-
$startsWith: z.string()
|
|
2184
|
-
}).partial().strict().optional(),
|
|
2185
|
-
enabled: z.object({
|
|
2186
|
-
$eq: z.boolean(),
|
|
2187
|
-
$exists: z.boolean(),
|
|
2188
|
-
$gt: z.boolean(),
|
|
2189
|
-
$gte: z.boolean(),
|
|
2190
|
-
$hasAll: z.array(z.boolean()),
|
|
2191
|
-
$hasSome: z.array(z.boolean()),
|
|
2192
|
-
$in: z.array(z.boolean()),
|
|
2193
|
-
$lt: z.boolean(),
|
|
2194
|
-
$lte: z.boolean(),
|
|
2195
|
-
$ne: z.boolean(),
|
|
2196
|
-
$nin: z.array(z.boolean()),
|
|
2197
|
-
$startsWith: z.string()
|
|
2198
|
-
}).partial().strict().optional(),
|
|
2199
|
-
fee: z.object({
|
|
2200
|
-
$eq: z.string(),
|
|
2201
|
-
$exists: z.boolean(),
|
|
2202
|
-
$gt: z.string(),
|
|
2203
|
-
$gte: z.string(),
|
|
2204
|
-
$hasAll: z.array(z.string()),
|
|
2205
|
-
$hasSome: z.array(z.string()),
|
|
2206
|
-
$in: z.array(z.string()),
|
|
2207
|
-
$lt: z.string(),
|
|
2208
|
-
$lte: z.string(),
|
|
2209
|
-
$ne: z.string(),
|
|
2210
|
-
$nin: z.array(z.string()),
|
|
2211
|
-
$startsWith: z.string()
|
|
2212
|
-
}).partial().strict().optional(),
|
|
2213
|
-
minOrderPrice: z.object({
|
|
2214
|
-
$eq: z.string(),
|
|
2215
|
-
$exists: z.boolean(),
|
|
2216
|
-
$gt: z.string(),
|
|
2217
|
-
$gte: z.string(),
|
|
2218
|
-
$hasAll: z.array(z.string()),
|
|
2219
|
-
$hasSome: z.array(z.string()),
|
|
2220
|
-
$in: z.array(z.string()),
|
|
2221
|
-
$lt: z.string(),
|
|
2222
|
-
$lte: z.string(),
|
|
2223
|
-
$ne: z.string(),
|
|
2224
|
-
$nin: z.array(z.string()),
|
|
2225
|
-
$startsWith: z.string()
|
|
2226
|
-
}).partial().strict().optional(),
|
|
2227
|
-
type: z.object({
|
|
2228
|
-
$eq: z.string(),
|
|
2229
|
-
$exists: z.boolean(),
|
|
2230
|
-
$gt: z.string(),
|
|
2231
|
-
$gte: z.string(),
|
|
2232
|
-
$hasAll: z.array(z.string()),
|
|
2233
|
-
$hasSome: z.array(z.string()),
|
|
2234
|
-
$in: z.array(z.string()),
|
|
2235
|
-
$lt: z.string(),
|
|
2236
|
-
$lte: z.string(),
|
|
2237
|
-
$ne: z.string(),
|
|
2238
|
-
$nin: z.array(z.string()),
|
|
2239
|
-
$startsWith: z.string()
|
|
2240
|
-
}).partial().strict().optional(),
|
|
2241
|
-
$and: z.array(z.any()).optional(),
|
|
2242
|
-
$or: z.array(z.any()).optional(),
|
|
2243
|
-
$not: z.any().optional()
|
|
2244
|
-
}).strict().optional(),
|
|
2245
|
-
sort: z.array(
|
|
2246
|
-
z.object({
|
|
2247
|
-
fieldName: z.enum([
|
|
2248
|
-
"_id",
|
|
2249
|
-
"_createdDate",
|
|
2250
|
-
"_updatedDate",
|
|
2251
|
-
"name",
|
|
2252
|
-
"enabled",
|
|
2253
|
-
"fee",
|
|
2254
|
-
"minOrderPrice",
|
|
2255
|
-
"type"
|
|
2256
|
-
]).optional(),
|
|
2257
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
2258
|
-
})
|
|
2259
|
-
).optional()
|
|
2260
|
-
}).catchall(z.any()).describe("The query by which to select fulfillment methods.")
|
|
2261
|
-
});
|
|
2262
|
-
var QueryFulfillmentMethodsResponse = z.object({
|
|
2263
|
-
fulfillmentMethods: z.array(
|
|
2264
|
-
z.intersection(
|
|
2265
|
-
z.object({
|
|
2266
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
2267
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2268
|
-
"Must be a valid GUID"
|
|
2269
|
-
).optional().nullable(),
|
|
2270
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
2271
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
2272
|
-
).optional().nullable(),
|
|
2273
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
2274
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
2275
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
2276
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
2277
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
2278
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
2279
|
-
availability: z.object({
|
|
2280
|
-
availableTimes: z.array(
|
|
2281
|
-
z.object({
|
|
2282
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
2283
|
-
timeRanges: z.array(
|
|
2284
|
-
z.object({
|
|
2285
|
-
startTime: z.object({
|
|
2286
|
-
hours: z.number().int().describe(
|
|
2287
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2288
|
-
).optional(),
|
|
2289
|
-
minutes: z.number().int().describe(
|
|
2290
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2291
|
-
).optional()
|
|
2292
|
-
}).describe(
|
|
2293
|
-
"The start time in time of day representation."
|
|
2294
|
-
).optional(),
|
|
2295
|
-
endTime: z.object({
|
|
2296
|
-
hours: z.number().int().describe(
|
|
2297
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2298
|
-
).optional(),
|
|
2299
|
-
minutes: z.number().int().describe(
|
|
2300
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2301
|
-
).optional()
|
|
2302
|
-
}).describe(
|
|
2303
|
-
"The end time in time of day representation."
|
|
2304
|
-
).optional()
|
|
2305
|
-
})
|
|
2306
|
-
).optional()
|
|
2307
|
-
})
|
|
2308
|
-
).optional(),
|
|
2309
|
-
timeZone: z.string().describe(
|
|
2310
|
-
"The timezone in which the availability times are given."
|
|
2311
|
-
).optional().nullable()
|
|
2312
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
2313
|
-
minOrderPrice: z.string().describe(
|
|
2314
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
2315
|
-
).optional().nullable(),
|
|
2316
|
-
businessLocationId: z.string().describe(
|
|
2317
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
2318
|
-
).regex(
|
|
2319
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2320
|
-
"Must be a valid GUID"
|
|
2321
|
-
).optional().nullable(),
|
|
2322
|
-
extendedFields: z.object({
|
|
2323
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
2324
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
2325
|
-
).optional()
|
|
2326
|
-
}).describe("Extended fields.").optional(),
|
|
2327
|
-
tags: z.object({
|
|
2328
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2329
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
2330
|
-
).optional(),
|
|
2331
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2332
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
2333
|
-
).optional()
|
|
2334
|
-
}).describe(
|
|
2335
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
2336
|
-
).optional()
|
|
2337
|
-
}),
|
|
2338
|
-
z.xor([
|
|
2339
|
-
z.object({
|
|
2340
|
-
pickupOptions: z.never().optional(),
|
|
2341
|
-
deliveryOptions: z.never().optional()
|
|
2342
|
-
}),
|
|
2343
|
-
z.object({
|
|
2344
|
-
deliveryOptions: z.never().optional(),
|
|
2345
|
-
pickupOptions: z.object({
|
|
2346
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
2347
|
-
address: z.object({
|
|
2348
|
-
city: z.string().optional().nullable(),
|
|
2349
|
-
subdivision: z.string().optional().nullable(),
|
|
2350
|
-
country: z.string().optional().nullable(),
|
|
2351
|
-
postalCode: z.string().optional().nullable(),
|
|
2352
|
-
addressLine1: z.string().optional().nullable(),
|
|
2353
|
-
addressLine2: z.string().optional().nullable()
|
|
2354
|
-
}).describe(
|
|
2355
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
2356
|
-
).optional()
|
|
2357
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
2358
|
-
}),
|
|
2359
|
-
z.object({
|
|
2360
|
-
pickupOptions: z.never().optional(),
|
|
2361
|
-
deliveryOptions: z.object({
|
|
2362
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
2363
|
-
freeDeliveryThreshold: z.string().describe(
|
|
2364
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
2365
|
-
).optional().nullable(),
|
|
2366
|
-
deliveryArea: z.intersection(
|
|
2367
|
-
z.object({
|
|
2368
|
-
type: z.enum([
|
|
2369
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
2370
|
-
"RADIUS",
|
|
2371
|
-
"POSTAL_CODE",
|
|
2372
|
-
"CUSTOM",
|
|
2373
|
-
"PROVIDER_DEFINED"
|
|
2374
|
-
]).describe("Type of delivery area.").optional()
|
|
2375
|
-
}),
|
|
2376
|
-
z.xor([
|
|
2377
|
-
z.object({
|
|
2378
|
-
radiusOptions: z.never().optional(),
|
|
2379
|
-
postalCodeOptions: z.never().optional(),
|
|
2380
|
-
customOptions: z.never().optional()
|
|
2381
|
-
}),
|
|
2382
|
-
z.object({
|
|
2383
|
-
postalCodeOptions: z.never().optional(),
|
|
2384
|
-
customOptions: z.never().optional(),
|
|
2385
|
-
radiusOptions: z.object({
|
|
2386
|
-
minDistance: z.string().describe(
|
|
2387
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2388
|
-
).optional().nullable(),
|
|
2389
|
-
maxDistance: z.string().describe(
|
|
2390
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2391
|
-
).optional().nullable(),
|
|
2392
|
-
centerPointAddress: z.object({
|
|
2393
|
-
city: z.string().optional().nullable(),
|
|
2394
|
-
subdivision: z.string().optional().nullable(),
|
|
2395
|
-
country: z.string().optional().nullable(),
|
|
2396
|
-
postalCode: z.string().optional().nullable(),
|
|
2397
|
-
addressLine1: z.string().optional().nullable(),
|
|
2398
|
-
addressLine2: z.string().optional().nullable()
|
|
2399
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
2400
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
2401
|
-
}).describe("Settings for a radius delivery area.")
|
|
2402
|
-
}),
|
|
2403
|
-
z.object({
|
|
2404
|
-
radiusOptions: z.never().optional(),
|
|
2405
|
-
customOptions: z.never().optional(),
|
|
2406
|
-
postalCodeOptions: z.object({
|
|
2407
|
-
countryCode: z.string().describe(
|
|
2408
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
2409
|
-
).optional().nullable(),
|
|
2410
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
2411
|
-
}).describe(
|
|
2412
|
-
"Settings for a postal code delivery area."
|
|
2413
|
-
)
|
|
2414
|
-
}),
|
|
2415
|
-
z.object({
|
|
2416
|
-
radiusOptions: z.never().optional(),
|
|
2417
|
-
postalCodeOptions: z.never().optional(),
|
|
2418
|
-
customOptions: z.object({
|
|
2419
|
-
geocodes: z.array(
|
|
2420
|
-
z.object({
|
|
2421
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2422
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2423
|
-
})
|
|
2424
|
-
).optional()
|
|
2425
|
-
}).describe("Settings for a custom delivery area.")
|
|
2426
|
-
})
|
|
2427
|
-
])
|
|
2428
|
-
).describe(
|
|
2429
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
2430
|
-
).optional(),
|
|
2431
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
2432
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2433
|
-
"Must be a valid GUID"
|
|
2434
|
-
).optional().nullable(),
|
|
2435
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
2436
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
2437
|
-
})
|
|
2438
|
-
])
|
|
2439
|
-
)
|
|
2440
|
-
).optional(),
|
|
2441
|
-
pagingMetadata: z.object({
|
|
2442
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2443
|
-
cursors: z.object({
|
|
2444
|
-
next: z.string().describe(
|
|
2445
|
-
"Cursor string pointing to the next page in the list of results."
|
|
2446
|
-
).max(16e3).optional().nullable(),
|
|
2447
|
-
prev: z.string().describe(
|
|
2448
|
-
"Cursor pointing to the previous page in the list of results."
|
|
2449
|
-
).max(16e3).optional().nullable()
|
|
2450
|
-
}).describe(
|
|
2451
|
-
"Cursor strings that point to the next page, previous page, or both."
|
|
2452
|
-
).optional(),
|
|
2453
|
-
hasNext: z.boolean().describe(
|
|
2454
|
-
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
2455
|
-
).optional().nullable()
|
|
2456
|
-
}).describe("The metadata of the paginated results.").optional()
|
|
2457
|
-
});
|
|
2458
|
-
var ListFulfillmentMethodsRequest = z.object({
|
|
2459
|
-
options: z.object({
|
|
2460
|
-
cursorPaging: z.object({
|
|
2461
|
-
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
2462
|
-
cursor: z.string().describe(
|
|
2463
|
-
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
2464
|
-
).max(16e3).optional().nullable()
|
|
2465
|
-
}).describe("Cursor paging").optional()
|
|
2466
|
-
}).describe("Options for listing the fulfillment methods.").optional()
|
|
2467
|
-
});
|
|
2468
|
-
var ListFulfillmentMethodsResponse = z.object({
|
|
2469
|
-
fulfillmentMethods: z.array(
|
|
2470
|
-
z.intersection(
|
|
2471
|
-
z.object({
|
|
2472
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
2473
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2474
|
-
"Must be a valid GUID"
|
|
2475
|
-
).optional().nullable(),
|
|
2476
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
2477
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
2478
|
-
).optional().nullable(),
|
|
2479
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
2480
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
2481
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
2482
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
2483
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
2484
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
2485
|
-
availability: z.object({
|
|
2486
|
-
availableTimes: z.array(
|
|
2487
|
-
z.object({
|
|
2488
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
2489
|
-
timeRanges: z.array(
|
|
2490
|
-
z.object({
|
|
2491
|
-
startTime: z.object({
|
|
2492
|
-
hours: z.number().int().describe(
|
|
2493
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2494
|
-
).optional(),
|
|
2495
|
-
minutes: z.number().int().describe(
|
|
2496
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2497
|
-
).optional()
|
|
2498
|
-
}).describe(
|
|
2499
|
-
"The start time in time of day representation."
|
|
2500
|
-
).optional(),
|
|
2501
|
-
endTime: z.object({
|
|
2502
|
-
hours: z.number().int().describe(
|
|
2503
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2504
|
-
).optional(),
|
|
2505
|
-
minutes: z.number().int().describe(
|
|
2506
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2507
|
-
).optional()
|
|
2508
|
-
}).describe(
|
|
2509
|
-
"The end time in time of day representation."
|
|
2510
|
-
).optional()
|
|
2511
|
-
})
|
|
2512
|
-
).optional()
|
|
2513
|
-
})
|
|
2514
|
-
).optional(),
|
|
2515
|
-
timeZone: z.string().describe(
|
|
2516
|
-
"The timezone in which the availability times are given."
|
|
2517
|
-
).optional().nullable()
|
|
2518
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
2519
|
-
minOrderPrice: z.string().describe(
|
|
2520
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
2521
|
-
).optional().nullable(),
|
|
2522
|
-
businessLocationId: z.string().describe(
|
|
2523
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
2524
|
-
).regex(
|
|
2525
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2526
|
-
"Must be a valid GUID"
|
|
2527
|
-
).optional().nullable(),
|
|
2528
|
-
extendedFields: z.object({
|
|
2529
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
2530
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
2531
|
-
).optional()
|
|
2532
|
-
}).describe("Extended fields.").optional(),
|
|
2533
|
-
tags: z.object({
|
|
2534
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2535
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
2536
|
-
).optional(),
|
|
2537
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2538
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
2539
|
-
).optional()
|
|
2540
|
-
}).describe(
|
|
2541
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
2542
|
-
).optional()
|
|
2543
|
-
}),
|
|
2544
|
-
z.xor([
|
|
2545
|
-
z.object({
|
|
2546
|
-
pickupOptions: z.never().optional(),
|
|
2547
|
-
deliveryOptions: z.never().optional()
|
|
2548
|
-
}),
|
|
2549
|
-
z.object({
|
|
2550
|
-
deliveryOptions: z.never().optional(),
|
|
2551
|
-
pickupOptions: z.object({
|
|
2552
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
2553
|
-
address: z.object({
|
|
2554
|
-
city: z.string().optional().nullable(),
|
|
2555
|
-
subdivision: z.string().optional().nullable(),
|
|
2556
|
-
country: z.string().optional().nullable(),
|
|
2557
|
-
postalCode: z.string().optional().nullable(),
|
|
2558
|
-
addressLine1: z.string().optional().nullable(),
|
|
2559
|
-
addressLine2: z.string().optional().nullable()
|
|
2560
|
-
}).describe(
|
|
2561
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
2562
|
-
).optional()
|
|
2563
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
2564
|
-
}),
|
|
2565
|
-
z.object({
|
|
2566
|
-
pickupOptions: z.never().optional(),
|
|
2567
|
-
deliveryOptions: z.object({
|
|
2568
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
2569
|
-
freeDeliveryThreshold: z.string().describe(
|
|
2570
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
2571
|
-
).optional().nullable(),
|
|
2572
|
-
deliveryArea: z.intersection(
|
|
2573
|
-
z.object({
|
|
2574
|
-
type: z.enum([
|
|
2575
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
2576
|
-
"RADIUS",
|
|
2577
|
-
"POSTAL_CODE",
|
|
2578
|
-
"CUSTOM",
|
|
2579
|
-
"PROVIDER_DEFINED"
|
|
2580
|
-
]).describe("Type of delivery area.").optional()
|
|
2581
|
-
}),
|
|
2582
|
-
z.xor([
|
|
2583
|
-
z.object({
|
|
2584
|
-
radiusOptions: z.never().optional(),
|
|
2585
|
-
postalCodeOptions: z.never().optional(),
|
|
2586
|
-
customOptions: z.never().optional()
|
|
2587
|
-
}),
|
|
2588
|
-
z.object({
|
|
2589
|
-
postalCodeOptions: z.never().optional(),
|
|
2590
|
-
customOptions: z.never().optional(),
|
|
2591
|
-
radiusOptions: z.object({
|
|
2592
|
-
minDistance: z.string().describe(
|
|
2593
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2594
|
-
).optional().nullable(),
|
|
2595
|
-
maxDistance: z.string().describe(
|
|
2596
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2597
|
-
).optional().nullable(),
|
|
2598
|
-
centerPointAddress: z.object({
|
|
2599
|
-
city: z.string().optional().nullable(),
|
|
2600
|
-
subdivision: z.string().optional().nullable(),
|
|
2601
|
-
country: z.string().optional().nullable(),
|
|
2602
|
-
postalCode: z.string().optional().nullable(),
|
|
2603
|
-
addressLine1: z.string().optional().nullable(),
|
|
2604
|
-
addressLine2: z.string().optional().nullable()
|
|
2605
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
2606
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
2607
|
-
}).describe("Settings for a radius delivery area.")
|
|
2608
|
-
}),
|
|
2609
|
-
z.object({
|
|
2610
|
-
radiusOptions: z.never().optional(),
|
|
2611
|
-
customOptions: z.never().optional(),
|
|
2612
|
-
postalCodeOptions: z.object({
|
|
2613
|
-
countryCode: z.string().describe(
|
|
2614
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
2615
|
-
).optional().nullable(),
|
|
2616
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
2617
|
-
}).describe(
|
|
2618
|
-
"Settings for a postal code delivery area."
|
|
2619
|
-
)
|
|
2620
|
-
}),
|
|
2621
|
-
z.object({
|
|
2622
|
-
radiusOptions: z.never().optional(),
|
|
2623
|
-
postalCodeOptions: z.never().optional(),
|
|
2624
|
-
customOptions: z.object({
|
|
2625
|
-
geocodes: z.array(
|
|
2626
|
-
z.object({
|
|
2627
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2628
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2629
|
-
})
|
|
2630
|
-
).optional()
|
|
2631
|
-
}).describe("Settings for a custom delivery area.")
|
|
2632
|
-
})
|
|
2633
|
-
])
|
|
2634
|
-
).describe(
|
|
2635
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
2636
|
-
).optional(),
|
|
2637
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
2638
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2639
|
-
"Must be a valid GUID"
|
|
2640
|
-
).optional().nullable(),
|
|
2641
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
2642
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
2643
|
-
})
|
|
2644
|
-
])
|
|
2645
|
-
)
|
|
2646
|
-
).optional(),
|
|
2647
|
-
pagingMetadata: z.object({
|
|
2648
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2649
|
-
cursors: z.object({
|
|
2650
|
-
next: z.string().describe(
|
|
2651
|
-
"Cursor string pointing to the next page in the list of results."
|
|
2652
|
-
).max(16e3).optional().nullable(),
|
|
2653
|
-
prev: z.string().describe(
|
|
2654
|
-
"Cursor pointing to the previous page in the list of results."
|
|
2655
|
-
).max(16e3).optional().nullable()
|
|
2656
|
-
}).describe(
|
|
2657
|
-
"Cursor strings that point to the next page, previous page, or both."
|
|
2658
|
-
).optional(),
|
|
2659
|
-
hasNext: z.boolean().describe(
|
|
2660
|
-
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
2661
|
-
).optional().nullable()
|
|
2662
|
-
}).describe("The metadata of the paginated results.").optional()
|
|
2663
|
-
});
|
|
2664
|
-
var ListAvailableFulfillmentMethodsForAddressRequest = z.object({
|
|
2665
|
-
options: z.object({
|
|
2666
|
-
address: z.intersection(
|
|
2667
|
-
z.object({
|
|
2668
|
-
country: z.string().describe("Country code.").optional().nullable(),
|
|
2669
|
-
subdivision: z.string().describe(
|
|
2670
|
-
"Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)."
|
|
2671
|
-
).optional().nullable(),
|
|
2672
|
-
city: z.string().describe("City name.").optional().nullable(),
|
|
2673
|
-
postalCode: z.string().describe("Zip/postal code.").optional().nullable(),
|
|
2674
|
-
addressLine2: z.string().describe(
|
|
2675
|
-
"Free text providing more detailed address info. Usually contains Apt, Suite, and Floor."
|
|
2676
|
-
).optional().nullable(),
|
|
2677
|
-
formattedAddress: z.string().describe(
|
|
2678
|
-
"A string containing the full address of this location."
|
|
2679
|
-
).optional().nullable(),
|
|
2680
|
-
hint: z.string().describe("Free text to help find the address.").optional().nullable(),
|
|
2681
|
-
geocode: z.object({
|
|
2682
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2683
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2684
|
-
}).describe("Coordinates of the physical address.").optional(),
|
|
2685
|
-
countryFullname: z.string().describe("Country full name.").optional().nullable(),
|
|
2686
|
-
subdivisionFullname: z.string().describe("Subdivision full name.").optional().nullable(),
|
|
2687
|
-
subdivisions: z.array(
|
|
2688
|
-
z.object({
|
|
2689
|
-
code: z.string().describe("Short subdivision code.").optional(),
|
|
2690
|
-
name: z.string().describe("Subdivision full name.").optional()
|
|
2691
|
-
})
|
|
2692
|
-
).max(6).optional()
|
|
2693
|
-
}),
|
|
2694
|
-
z.xor([
|
|
2695
|
-
z.object({
|
|
2696
|
-
streetAddress: z.never().optional(),
|
|
2697
|
-
addressLine: z.never().optional()
|
|
2698
|
-
}),
|
|
2699
|
-
z.object({
|
|
2700
|
-
addressLine: z.never().optional(),
|
|
2701
|
-
streetAddress: z.object({
|
|
2702
|
-
number: z.string().describe("Street number.").optional(),
|
|
2703
|
-
name: z.string().describe("Street name.").optional(),
|
|
2704
|
-
apt: z.string().describe("Apartment number.").optional(),
|
|
2705
|
-
formattedAddressLine: z.string().describe("Optional address line 1").optional().nullable()
|
|
2706
|
-
}).describe("Street name and number.")
|
|
2707
|
-
}),
|
|
2708
|
-
z.object({
|
|
2709
|
-
streetAddress: z.never().optional(),
|
|
2710
|
-
addressLine: z.string().describe(
|
|
2711
|
-
"Main address line, usually street and number as free text."
|
|
2712
|
-
)
|
|
2713
|
-
})
|
|
2714
|
-
])
|
|
2715
|
-
).describe(
|
|
2716
|
-
"The address by which to filter delivery fulfillment methods."
|
|
2717
|
-
).optional(),
|
|
2718
|
-
cursorPaging: z.object({
|
|
2719
|
-
limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
|
|
2720
|
-
cursor: z.string().describe(
|
|
2721
|
-
"Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
2722
|
-
).max(16e3).optional().nullable()
|
|
2723
|
-
}).describe("Cursor paging").optional(),
|
|
2724
|
-
fulfillmentMethodIds: z.array(z.string()).max(500).optional()
|
|
2725
|
-
}).describe("Options for listing the available fulfillment methods.").optional()
|
|
2726
|
-
});
|
|
2727
|
-
var ListAvailableFulfillmentMethodsForAddressResponse = z.object({
|
|
2728
|
-
fulfillmentMethods: z.array(
|
|
2729
|
-
z.intersection(
|
|
2730
|
-
z.object({
|
|
2731
|
-
_id: z.string().describe("Fulfillment method ID.").regex(
|
|
2732
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2733
|
-
"Must be a valid GUID"
|
|
2734
|
-
).optional().nullable(),
|
|
2735
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
2736
|
-
"The current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision."
|
|
2737
|
-
).optional().nullable(),
|
|
2738
|
-
_createdDate: z.date().describe("Date and time the fulfillment method was created.").optional().nullable(),
|
|
2739
|
-
_updatedDate: z.date().describe("Date and time the fulfillment method was last updated.").optional().nullable(),
|
|
2740
|
-
type: z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"]).describe("Type of fulfillment method.").optional(),
|
|
2741
|
-
name: z.string().describe("Fulfillment method name.").min(1).max(30).optional().nullable(),
|
|
2742
|
-
enabled: z.boolean().describe("Whether the fulfillment method is enabled.").optional().nullable(),
|
|
2743
|
-
fee: z.string().describe("Fee for using this fulfillment method.").optional().nullable(),
|
|
2744
|
-
availability: z.object({
|
|
2745
|
-
availableTimes: z.array(
|
|
2746
|
-
z.object({
|
|
2747
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
2748
|
-
timeRanges: z.array(
|
|
2749
|
-
z.object({
|
|
2750
|
-
startTime: z.object({
|
|
2751
|
-
hours: z.number().int().describe(
|
|
2752
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2753
|
-
).optional(),
|
|
2754
|
-
minutes: z.number().int().describe(
|
|
2755
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2756
|
-
).optional()
|
|
2757
|
-
}).describe(
|
|
2758
|
-
"The start time in time of day representation."
|
|
2759
|
-
).optional(),
|
|
2760
|
-
endTime: z.object({
|
|
2761
|
-
hours: z.number().int().describe(
|
|
2762
|
-
"Hours. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2763
|
-
).optional(),
|
|
2764
|
-
minutes: z.number().int().describe(
|
|
2765
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2766
|
-
).optional()
|
|
2767
|
-
}).describe(
|
|
2768
|
-
"The end time in time of day representation."
|
|
2769
|
-
).optional()
|
|
2770
|
-
})
|
|
2771
|
-
).optional()
|
|
2772
|
-
})
|
|
2773
|
-
).optional(),
|
|
2774
|
-
timeZone: z.string().describe(
|
|
2775
|
-
"The timezone in which the availability times are given."
|
|
2776
|
-
).optional().nullable()
|
|
2777
|
-
}).describe("Availability of this fulfillment method.").optional(),
|
|
2778
|
-
minOrderPrice: z.string().describe(
|
|
2779
|
-
"Minimum order price to qualify for using this fulfillment method."
|
|
2780
|
-
).optional().nullable(),
|
|
2781
|
-
businessLocationId: z.string().describe(
|
|
2782
|
-
"Business location ID ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) of the operation this fulfillment method belongs to."
|
|
2783
|
-
).regex(
|
|
2784
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2785
|
-
"Must be a valid GUID"
|
|
2786
|
-
).optional().nullable(),
|
|
2787
|
-
extendedFields: z.object({
|
|
2788
|
-
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
2789
|
-
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
2790
|
-
).optional()
|
|
2791
|
-
}).describe("Extended fields.").optional(),
|
|
2792
|
-
tags: z.object({
|
|
2793
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2794
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
2795
|
-
).optional(),
|
|
2796
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
2797
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
2798
|
-
).optional()
|
|
2799
|
-
}).describe(
|
|
2800
|
-
"Tags used to classify and sort different types of fulfillment methods."
|
|
2801
|
-
).optional()
|
|
2802
|
-
}),
|
|
2803
|
-
z.xor([
|
|
2804
|
-
z.object({
|
|
2805
|
-
pickupOptions: z.never().optional(),
|
|
2806
|
-
deliveryOptions: z.never().optional()
|
|
2807
|
-
}),
|
|
2808
|
-
z.object({
|
|
2809
|
-
deliveryOptions: z.never().optional(),
|
|
2810
|
-
pickupOptions: z.object({
|
|
2811
|
-
instructions: z.string().describe("Instructions for the pickup.").max(250).optional().nullable(),
|
|
2812
|
-
address: z.object({
|
|
2813
|
-
city: z.string().optional().nullable(),
|
|
2814
|
-
subdivision: z.string().optional().nullable(),
|
|
2815
|
-
country: z.string().optional().nullable(),
|
|
2816
|
-
postalCode: z.string().optional().nullable(),
|
|
2817
|
-
addressLine1: z.string().optional().nullable(),
|
|
2818
|
-
addressLine2: z.string().optional().nullable()
|
|
2819
|
-
}).describe(
|
|
2820
|
-
"Pickup address.\n\nThis is set to the address of the restaurant."
|
|
2821
|
-
).optional()
|
|
2822
|
-
}).describe("Data specific for pickup fulfillment method.")
|
|
2823
|
-
}),
|
|
2824
|
-
z.object({
|
|
2825
|
-
pickupOptions: z.never().optional(),
|
|
2826
|
-
deliveryOptions: z.object({
|
|
2827
|
-
deliveryTimeInMinutes: z.number().int().describe("Estimated delivery time in minutes.").min(0).optional().nullable(),
|
|
2828
|
-
freeDeliveryThreshold: z.string().describe(
|
|
2829
|
-
"Threshold for offering free delivery.\nIf the order price exceeds this threshold, the delivery fee is waived."
|
|
2830
|
-
).optional().nullable(),
|
|
2831
|
-
deliveryArea: z.intersection(
|
|
2832
|
-
z.object({
|
|
2833
|
-
type: z.enum([
|
|
2834
|
-
"UNKNOWN_DELIVERY_AREA",
|
|
2835
|
-
"RADIUS",
|
|
2836
|
-
"POSTAL_CODE",
|
|
2837
|
-
"CUSTOM",
|
|
2838
|
-
"PROVIDER_DEFINED"
|
|
2839
|
-
]).describe("Type of delivery area.").optional()
|
|
2840
|
-
}),
|
|
2841
|
-
z.xor([
|
|
2842
|
-
z.object({
|
|
2843
|
-
radiusOptions: z.never().optional(),
|
|
2844
|
-
postalCodeOptions: z.never().optional(),
|
|
2845
|
-
customOptions: z.never().optional()
|
|
2846
|
-
}),
|
|
2847
|
-
z.object({
|
|
2848
|
-
postalCodeOptions: z.never().optional(),
|
|
2849
|
-
customOptions: z.never().optional(),
|
|
2850
|
-
radiusOptions: z.object({
|
|
2851
|
-
minDistance: z.string().describe(
|
|
2852
|
-
"Minimum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2853
|
-
).optional().nullable(),
|
|
2854
|
-
maxDistance: z.string().describe(
|
|
2855
|
-
"Maximum distance value.\nThe unit of the radius is specified in the `unit` field."
|
|
2856
|
-
).optional().nullable(),
|
|
2857
|
-
centerPointAddress: z.object({
|
|
2858
|
-
city: z.string().optional().nullable(),
|
|
2859
|
-
subdivision: z.string().optional().nullable(),
|
|
2860
|
-
country: z.string().optional().nullable(),
|
|
2861
|
-
postalCode: z.string().optional().nullable(),
|
|
2862
|
-
addressLine1: z.string().optional().nullable(),
|
|
2863
|
-
addressLine2: z.string().optional().nullable()
|
|
2864
|
-
}).describe("Address at the center of the circle.").optional(),
|
|
2865
|
-
unit: z.enum(["UNKNOWN_UNIT", "MILES", "KILOMETERS"]).describe("Unit of measurement of the radius.").optional()
|
|
2866
|
-
}).describe("Settings for a radius delivery area.")
|
|
2867
|
-
}),
|
|
2868
|
-
z.object({
|
|
2869
|
-
radiusOptions: z.never().optional(),
|
|
2870
|
-
customOptions: z.never().optional(),
|
|
2871
|
-
postalCodeOptions: z.object({
|
|
2872
|
-
countryCode: z.string().describe(
|
|
2873
|
-
"Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format."
|
|
2874
|
-
).optional().nullable(),
|
|
2875
|
-
postalCodes: z.array(z.string()).max(100).optional()
|
|
2876
|
-
}).describe(
|
|
2877
|
-
"Settings for a postal code delivery area."
|
|
2878
|
-
)
|
|
2879
|
-
}),
|
|
2880
|
-
z.object({
|
|
2881
|
-
radiusOptions: z.never().optional(),
|
|
2882
|
-
postalCodeOptions: z.never().optional(),
|
|
2883
|
-
customOptions: z.object({
|
|
2884
|
-
geocodes: z.array(
|
|
2885
|
-
z.object({
|
|
2886
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2887
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2888
|
-
})
|
|
2889
|
-
).optional()
|
|
2890
|
-
}).describe("Settings for a custom delivery area.")
|
|
2891
|
-
})
|
|
2892
|
-
])
|
|
2893
|
-
).describe(
|
|
2894
|
-
"Delivery area supported by this delivery fulfillment method."
|
|
2895
|
-
).optional(),
|
|
2896
|
-
deliveryProviderAppId: z.string().describe("Delivery provider app id.").regex(
|
|
2897
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2898
|
-
"Must be a valid GUID"
|
|
2899
|
-
).optional().nullable(),
|
|
2900
|
-
courierPickupInstructions: z.string().describe("Pickup instructions for couriers.").max(250).optional().nullable()
|
|
2901
|
-
}).describe("Data specific for delivery fulfillment method.")
|
|
2902
|
-
})
|
|
2903
|
-
])
|
|
2904
|
-
)
|
|
2905
|
-
).optional(),
|
|
2906
|
-
pagingMetadata: z.object({
|
|
2907
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2908
|
-
cursors: z.object({
|
|
2909
|
-
next: z.string().describe(
|
|
2910
|
-
"Cursor string pointing to the next page in the list of results."
|
|
2911
|
-
).max(16e3).optional().nullable(),
|
|
2912
|
-
prev: z.string().describe(
|
|
2913
|
-
"Cursor pointing to the previous page in the list of results."
|
|
2914
|
-
).max(16e3).optional().nullable()
|
|
2915
|
-
}).describe(
|
|
2916
|
-
"Cursor strings that point to the next page, previous page, or both."
|
|
2917
|
-
).optional(),
|
|
2918
|
-
hasNext: z.boolean().describe(
|
|
2919
|
-
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
2920
|
-
).optional().nullable()
|
|
2921
|
-
}).describe("The metadata of the paginated results.").optional()
|
|
2922
|
-
});
|
|
2923
|
-
var GetAccumulatedFulfillmentMethodsAvailabilityRequest = z.object({
|
|
2924
|
-
options: z.object({ fulfillmentMethodIds: z.array(z.string()).max(500).optional() }).optional()
|
|
2925
|
-
});
|
|
2926
|
-
var GetAccumulatedFulfillmentMethodsAvailabilityResponse = z.object({
|
|
2927
|
-
availability: z.object({
|
|
2928
|
-
availableTimes: z.array(
|
|
2929
|
-
z.object({
|
|
2930
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
2931
|
-
timeRanges: z.array(
|
|
2932
|
-
z.object({
|
|
2933
|
-
startTime: z.object({
|
|
2934
|
-
hours: z.number().int().describe("Hours. <br />\nMin: `0`. <br />\nMax: `23`.").optional(),
|
|
2935
|
-
minutes: z.number().int().describe(
|
|
2936
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2937
|
-
).optional()
|
|
2938
|
-
}).describe("The start time in time of day representation.").optional(),
|
|
2939
|
-
endTime: z.object({
|
|
2940
|
-
hours: z.number().int().describe("Hours. <br />\nMin: `0`. <br />\nMax: `23`.").optional(),
|
|
2941
|
-
minutes: z.number().int().describe(
|
|
2942
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2943
|
-
).optional()
|
|
2944
|
-
}).describe("The end time in time of day representation.").optional()
|
|
2945
|
-
})
|
|
2946
|
-
).optional()
|
|
2947
|
-
})
|
|
2948
|
-
).optional(),
|
|
2949
|
-
timeZone: z.string().describe("The timezone in which the availability times are given.").optional().nullable()
|
|
2950
|
-
}).describe("The accumulated availability of all fulfillment methods.").optional(),
|
|
2951
|
-
types: z.array(z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"])).optional()
|
|
2952
|
-
});
|
|
2953
|
-
var GetCombinedMethodAvailabilityRequest = z.object({
|
|
2954
|
-
fulfillmentMethodIds: z.array(z.string()).max(500)
|
|
2955
|
-
});
|
|
2956
|
-
var GetCombinedMethodAvailabilityResponse = z.object({
|
|
2957
|
-
combinedAvailability: z.object({
|
|
2958
|
-
availableTimes: z.array(
|
|
2959
|
-
z.object({
|
|
2960
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
2961
|
-
timeRanges: z.array(
|
|
2962
|
-
z.object({
|
|
2963
|
-
startTime: z.object({
|
|
2964
|
-
hours: z.number().int().describe("Hours. <br />\nMin: `0`. <br />\nMax: `23`.").optional(),
|
|
2965
|
-
minutes: z.number().int().describe(
|
|
2966
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2967
|
-
).optional()
|
|
2968
|
-
}).describe("The start time in time of day representation.").optional(),
|
|
2969
|
-
endTime: z.object({
|
|
2970
|
-
hours: z.number().int().describe("Hours. <br />\nMin: `0`. <br />\nMax: `23`.").optional(),
|
|
2971
|
-
minutes: z.number().int().describe(
|
|
2972
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2973
|
-
).optional()
|
|
2974
|
-
}).describe("The end time in time of day representation.").optional()
|
|
2975
|
-
})
|
|
2976
|
-
).optional()
|
|
2977
|
-
})
|
|
2978
|
-
).optional(),
|
|
2979
|
-
timeZone: z.string().describe("The timezone in which the availability times are given.").optional().nullable()
|
|
2980
|
-
}).describe("The combined availability of the given fulfillment methods.").optional(),
|
|
2981
|
-
fulfillmentTypes: z.array(z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"])).max(100).optional()
|
|
2982
|
-
});
|
|
2983
|
-
var GetAggregatedMethodAvailabilityRequest = z.object({
|
|
2984
|
-
fulfillmentMethodIds: z.array(z.string()).max(500)
|
|
2985
|
-
});
|
|
2986
|
-
var GetAggregatedMethodAvailabilityResponse = z.object({
|
|
2987
|
-
aggregatedAvailability: z.object({
|
|
2988
|
-
availableTimes: z.array(
|
|
2989
|
-
z.object({
|
|
2990
|
-
dayOfWeek: z.enum(["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]).describe("The day of week this availability relates to.").optional(),
|
|
2991
|
-
timeRanges: z.array(
|
|
2992
|
-
z.object({
|
|
2993
|
-
startTime: z.object({
|
|
2994
|
-
hours: z.number().int().describe("Hours. <br />\nMin: `0`. <br />\nMax: `23`.").optional(),
|
|
2995
|
-
minutes: z.number().int().describe(
|
|
2996
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
2997
|
-
).optional()
|
|
2998
|
-
}).describe("The start time in time of day representation.").optional(),
|
|
2999
|
-
endTime: z.object({
|
|
3000
|
-
hours: z.number().int().describe("Hours. <br />\nMin: `0`. <br />\nMax: `23`.").optional(),
|
|
3001
|
-
minutes: z.number().int().describe(
|
|
3002
|
-
"Minutes. <br />\nMin: `0`. <br />\nMax: `23`."
|
|
3003
|
-
).optional()
|
|
3004
|
-
}).describe("The end time in time of day representation.").optional()
|
|
3005
|
-
})
|
|
3006
|
-
).optional()
|
|
3007
|
-
})
|
|
3008
|
-
).optional(),
|
|
3009
|
-
timeZone: z.string().describe("The timezone in which the availability times are given.").optional().nullable()
|
|
3010
|
-
}).describe("The aggregated availability of the given fulfillment methods.").optional(),
|
|
3011
|
-
fulfillmentTypes: z.array(z.enum(["UNKNOWN_FULFILLMENT_TYPE", "PICKUP", "DELIVERY"])).max(100).optional()
|
|
3012
|
-
});
|
|
3013
|
-
var BulkUpdateFulfillmentMethodTagsRequest = z.object({
|
|
3014
|
-
fulfillmentMethodIds: z.array(z.string()).min(1).max(100),
|
|
3015
|
-
options: z.object({
|
|
3016
|
-
assignTags: z.object({
|
|
3017
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3018
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
3019
|
-
).optional(),
|
|
3020
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3021
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
3022
|
-
).optional()
|
|
3023
|
-
}).describe("Tags to assign to the fulfillment methods.").optional(),
|
|
3024
|
-
unassignTags: z.object({
|
|
3025
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3026
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
3027
|
-
).optional(),
|
|
3028
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3029
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
3030
|
-
).optional()
|
|
3031
|
-
}).describe("Tags to unassign from the fulfillment methods.").optional()
|
|
3032
|
-
}).optional()
|
|
3033
|
-
});
|
|
3034
|
-
var BulkUpdateFulfillmentMethodTagsResponse = z.object({
|
|
3035
|
-
results: z.array(
|
|
3036
|
-
z.object({
|
|
3037
|
-
itemMetadata: z.object({
|
|
3038
|
-
_id: z.string().describe(
|
|
3039
|
-
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
3040
|
-
).regex(
|
|
3041
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3042
|
-
"Must be a valid GUID"
|
|
3043
|
-
).optional().nullable(),
|
|
3044
|
-
originalIndex: z.number().int().describe(
|
|
3045
|
-
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
3046
|
-
).optional(),
|
|
3047
|
-
success: z.boolean().describe(
|
|
3048
|
-
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
3049
|
-
).optional(),
|
|
3050
|
-
error: z.object({
|
|
3051
|
-
code: z.string().describe("Error code.").optional(),
|
|
3052
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
3053
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
3054
|
-
}).describe("Details about the error in case of failure.").optional()
|
|
3055
|
-
}).describe("Metadata for the updated fulfillment method.").optional()
|
|
3056
|
-
})
|
|
3057
|
-
).min(1).max(100).optional(),
|
|
3058
|
-
bulkActionMetadata: z.object({
|
|
3059
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
3060
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
3061
|
-
undetailedFailures: z.number().int().describe(
|
|
3062
|
-
"Number of failures without details because detailed failure threshold was exceeded."
|
|
3063
|
-
).optional()
|
|
3064
|
-
}).describe("Metadata for the bulk update.").optional()
|
|
3065
|
-
});
|
|
3066
|
-
var BulkUpdateFulfillmentMethodTagsByFilterRequest = z.object({
|
|
3067
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
3068
|
-
"Filter that determines which fulfillment methods to update tags for."
|
|
3069
|
-
),
|
|
3070
|
-
options: z.object({
|
|
3071
|
-
assignTags: z.object({
|
|
3072
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3073
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
3074
|
-
).optional(),
|
|
3075
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3076
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
3077
|
-
).optional()
|
|
3078
|
-
}).describe("Tags to assign to the fulfillment methods.").optional(),
|
|
3079
|
-
unassignTags: z.object({
|
|
3080
|
-
privateTags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3081
|
-
"Tags that require an additional permission in order to access them, normally not given to site members or visitors."
|
|
3082
|
-
).optional(),
|
|
3083
|
-
tags: z.object({ tagIds: z.array(z.string()).max(100).optional() }).describe(
|
|
3084
|
-
"Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors."
|
|
3085
|
-
).optional()
|
|
3086
|
-
}).describe("Tags to unassign from the fulfillment methods.").optional()
|
|
3087
|
-
}).optional()
|
|
3088
|
-
});
|
|
3089
|
-
var BulkUpdateFulfillmentMethodTagsByFilterResponse = z.object({
|
|
3090
|
-
jobId: z.string().describe(
|
|
3091
|
-
"Job ID. Pass this ID to Get Async Job ([SDK](https://dev.wix.com/docs/sdk/backend-modules/async-jobs/get-async-job) | [REST](https://dev.wix.com/docs/rest/business-management/async-job/get-async-job)) to track the job's status."
|
|
3092
|
-
).regex(
|
|
3093
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3094
|
-
"Must be a valid GUID"
|
|
3095
|
-
).optional()
|
|
3096
|
-
});
|
|
3097
|
-
|
|
3098
|
-
// src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.ts
|
|
3099
826
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
3100
827
|
var FulfillmentMethodType = /* @__PURE__ */ ((FulfillmentMethodType2) => {
|
|
3101
828
|
FulfillmentMethodType2["UNKNOWN_FULFILLMENT_TYPE"] = "UNKNOWN_FULFILLMENT_TYPE";
|
|
@@ -3180,10 +907,7 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
3180
907
|
return ResolutionMethod2;
|
|
3181
908
|
})(ResolutionMethod || {});
|
|
3182
909
|
async function createFulfillmentMethod2(fulfillmentMethod) {
|
|
3183
|
-
const { httpClient, sideEffects
|
|
3184
|
-
if (validateRequestSchema) {
|
|
3185
|
-
CreateFulfillmentMethodRequest.parse({ fulfillmentMethod });
|
|
3186
|
-
}
|
|
910
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3187
911
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
3188
912
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3189
913
|
fulfillmentMethod
|
|
@@ -3237,10 +961,7 @@ async function createFulfillmentMethod2(fulfillmentMethod) {
|
|
|
3237
961
|
}
|
|
3238
962
|
}
|
|
3239
963
|
async function bulkCreateFulfillmentMethods2(options) {
|
|
3240
|
-
const { httpClient, sideEffects
|
|
3241
|
-
if (validateRequestSchema) {
|
|
3242
|
-
BulkCreateFulfillmentMethodsRequest.parse({ options });
|
|
3243
|
-
}
|
|
964
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3244
965
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
3245
966
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3246
967
|
fulfillmentMethods: options?.fulfillmentMethods,
|
|
@@ -3298,10 +1019,7 @@ async function bulkCreateFulfillmentMethods2(options) {
|
|
|
3298
1019
|
}
|
|
3299
1020
|
}
|
|
3300
1021
|
async function getFulfillmentMethod2(fulfillmentMethodId) {
|
|
3301
|
-
const { httpClient, sideEffects
|
|
3302
|
-
if (validateRequestSchema) {
|
|
3303
|
-
GetFulfillmentMethodRequest.parse({ fulfillmentMethodId });
|
|
3304
|
-
}
|
|
1022
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3305
1023
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3306
1024
|
fulfillmentMethodId
|
|
3307
1025
|
});
|
|
@@ -3339,10 +1057,7 @@ async function getFulfillmentMethod2(fulfillmentMethodId) {
|
|
|
3339
1057
|
}
|
|
3340
1058
|
}
|
|
3341
1059
|
async function updateFulfillmentMethod2(_id, fulfillmentMethod) {
|
|
3342
|
-
const { httpClient, sideEffects
|
|
3343
|
-
if (validateRequestSchema) {
|
|
3344
|
-
UpdateFulfillmentMethodRequest.parse({ _id, fulfillmentMethod });
|
|
3345
|
-
}
|
|
1060
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3346
1061
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
3347
1062
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3348
1063
|
fulfillmentMethod: { ...fulfillmentMethod, id: _id }
|
|
@@ -3396,10 +1111,7 @@ async function updateFulfillmentMethod2(_id, fulfillmentMethod) {
|
|
|
3396
1111
|
}
|
|
3397
1112
|
}
|
|
3398
1113
|
async function deleteFulfillmentMethod2(fulfillmentMethodId) {
|
|
3399
|
-
const { httpClient, sideEffects
|
|
3400
|
-
if (validateRequestSchema) {
|
|
3401
|
-
DeleteFulfillmentMethodRequest.parse({ fulfillmentMethodId });
|
|
3402
|
-
}
|
|
1114
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3403
1115
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3404
1116
|
fulfillmentMethodId
|
|
3405
1117
|
});
|
|
@@ -3484,10 +1196,7 @@ function queryFulfillmentMethods2(options) {
|
|
|
3484
1196
|
});
|
|
3485
1197
|
}
|
|
3486
1198
|
async function typedQueryFulfillmentMethods(query, options) {
|
|
3487
|
-
const { httpClient, sideEffects
|
|
3488
|
-
if (validateRequestSchema) {
|
|
3489
|
-
QueryFulfillmentMethodsRequest.parse({ query, options });
|
|
3490
|
-
}
|
|
1199
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3491
1200
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3492
1201
|
query,
|
|
3493
1202
|
...options
|
|
@@ -3533,10 +1242,7 @@ var utils = {
|
|
|
3533
1242
|
}
|
|
3534
1243
|
};
|
|
3535
1244
|
async function listFulfillmentMethods2(options) {
|
|
3536
|
-
const { httpClient, sideEffects
|
|
3537
|
-
if (validateRequestSchema) {
|
|
3538
|
-
ListFulfillmentMethodsRequest.parse({ options });
|
|
3539
|
-
}
|
|
1245
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3540
1246
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
3541
1247
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3542
1248
|
cursorPaging: options?.cursorPaging
|
|
@@ -3582,10 +1288,7 @@ async function listFulfillmentMethods2(options) {
|
|
|
3582
1288
|
}
|
|
3583
1289
|
}
|
|
3584
1290
|
async function listAvailableFulfillmentMethodsForAddress2(options) {
|
|
3585
|
-
const { httpClient, sideEffects
|
|
3586
|
-
if (validateRequestSchema) {
|
|
3587
|
-
ListAvailableFulfillmentMethodsForAddressRequest.parse({ options });
|
|
3588
|
-
}
|
|
1291
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3589
1292
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
3590
1293
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3591
1294
|
address: options?.address,
|
|
@@ -3639,12 +1342,7 @@ async function listAvailableFulfillmentMethodsForAddress2(options) {
|
|
|
3639
1342
|
}
|
|
3640
1343
|
}
|
|
3641
1344
|
async function getAccumulatedFulfillmentMethodsAvailability2(options) {
|
|
3642
|
-
const { httpClient, sideEffects
|
|
3643
|
-
if (validateRequestSchema) {
|
|
3644
|
-
GetAccumulatedFulfillmentMethodsAvailabilityRequest.parse({
|
|
3645
|
-
options
|
|
3646
|
-
});
|
|
3647
|
-
}
|
|
1345
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3648
1346
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3649
1347
|
fulfillmentMethodIds: options?.fulfillmentMethodIds
|
|
3650
1348
|
});
|
|
@@ -3673,10 +1371,7 @@ async function getAccumulatedFulfillmentMethodsAvailability2(options) {
|
|
|
3673
1371
|
}
|
|
3674
1372
|
}
|
|
3675
1373
|
async function getCombinedMethodAvailability2(fulfillmentMethodIds) {
|
|
3676
|
-
const { httpClient, sideEffects
|
|
3677
|
-
if (validateRequestSchema) {
|
|
3678
|
-
GetCombinedMethodAvailabilityRequest.parse({ fulfillmentMethodIds });
|
|
3679
|
-
}
|
|
1374
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3680
1375
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3681
1376
|
fulfillmentMethodIds
|
|
3682
1377
|
});
|
|
@@ -3703,12 +1398,7 @@ async function getCombinedMethodAvailability2(fulfillmentMethodIds) {
|
|
|
3703
1398
|
}
|
|
3704
1399
|
}
|
|
3705
1400
|
async function getAggregatedMethodAvailability2(fulfillmentMethodIds) {
|
|
3706
|
-
const { httpClient, sideEffects
|
|
3707
|
-
if (validateRequestSchema) {
|
|
3708
|
-
GetAggregatedMethodAvailabilityRequest.parse({
|
|
3709
|
-
fulfillmentMethodIds
|
|
3710
|
-
});
|
|
3711
|
-
}
|
|
1401
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
3712
1402
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3713
1403
|
fulfillmentMethodIds
|
|
3714
1404
|
});
|
|
@@ -3735,13 +1425,7 @@ async function getAggregatedMethodAvailability2(fulfillmentMethodIds) {
|
|
|
3735
1425
|
}
|
|
3736
1426
|
}
|
|
3737
1427
|
async function bulkUpdateFulfillmentMethodTags2(fulfillmentMethodIds, options) {
|
|
3738
|
-
const { httpClient, sideEffects
|
|
3739
|
-
if (validateRequestSchema) {
|
|
3740
|
-
BulkUpdateFulfillmentMethodTagsRequest.parse({
|
|
3741
|
-
fulfillmentMethodIds,
|
|
3742
|
-
options
|
|
3743
|
-
});
|
|
3744
|
-
}
|
|
1428
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3745
1429
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3746
1430
|
fulfillmentMethodIds,
|
|
3747
1431
|
assignTags: options?.assignTags,
|
|
@@ -3774,13 +1458,7 @@ async function bulkUpdateFulfillmentMethodTags2(fulfillmentMethodIds, options) {
|
|
|
3774
1458
|
}
|
|
3775
1459
|
}
|
|
3776
1460
|
async function bulkUpdateFulfillmentMethodTagsByFilter2(filter, options) {
|
|
3777
|
-
const { httpClient, sideEffects
|
|
3778
|
-
if (validateRequestSchema) {
|
|
3779
|
-
BulkUpdateFulfillmentMethodTagsByFilterRequest.parse({
|
|
3780
|
-
filter,
|
|
3781
|
-
options
|
|
3782
|
-
});
|
|
3783
|
-
}
|
|
1461
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3784
1462
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3785
1463
|
filter,
|
|
3786
1464
|
assignTags: options?.assignTags,
|
|
@@ -3814,106 +1492,106 @@ async function bulkUpdateFulfillmentMethodTagsByFilter2(filter, options) {
|
|
|
3814
1492
|
}
|
|
3815
1493
|
|
|
3816
1494
|
// src/restaurants-v1-fulfillment-method-fulfillment-methods.public.ts
|
|
3817
|
-
function createFulfillmentMethod3(httpClient
|
|
1495
|
+
function createFulfillmentMethod3(httpClient) {
|
|
3818
1496
|
return (fulfillmentMethod) => createFulfillmentMethod2(
|
|
3819
1497
|
fulfillmentMethod,
|
|
3820
1498
|
// @ts-ignore
|
|
3821
|
-
{ httpClient
|
|
1499
|
+
{ httpClient }
|
|
3822
1500
|
);
|
|
3823
1501
|
}
|
|
3824
|
-
function bulkCreateFulfillmentMethods3(httpClient
|
|
1502
|
+
function bulkCreateFulfillmentMethods3(httpClient) {
|
|
3825
1503
|
return (options) => bulkCreateFulfillmentMethods2(
|
|
3826
1504
|
options,
|
|
3827
1505
|
// @ts-ignore
|
|
3828
|
-
{ httpClient
|
|
1506
|
+
{ httpClient }
|
|
3829
1507
|
);
|
|
3830
1508
|
}
|
|
3831
|
-
function getFulfillmentMethod3(httpClient
|
|
1509
|
+
function getFulfillmentMethod3(httpClient) {
|
|
3832
1510
|
return (fulfillmentMethodId) => getFulfillmentMethod2(
|
|
3833
1511
|
fulfillmentMethodId,
|
|
3834
1512
|
// @ts-ignore
|
|
3835
|
-
{ httpClient
|
|
1513
|
+
{ httpClient }
|
|
3836
1514
|
);
|
|
3837
1515
|
}
|
|
3838
|
-
function updateFulfillmentMethod3(httpClient
|
|
1516
|
+
function updateFulfillmentMethod3(httpClient) {
|
|
3839
1517
|
return (_id, fulfillmentMethod) => updateFulfillmentMethod2(
|
|
3840
1518
|
_id,
|
|
3841
1519
|
fulfillmentMethod,
|
|
3842
1520
|
// @ts-ignore
|
|
3843
|
-
{ httpClient
|
|
1521
|
+
{ httpClient }
|
|
3844
1522
|
);
|
|
3845
1523
|
}
|
|
3846
|
-
function deleteFulfillmentMethod3(httpClient
|
|
1524
|
+
function deleteFulfillmentMethod3(httpClient) {
|
|
3847
1525
|
return (fulfillmentMethodId) => deleteFulfillmentMethod2(
|
|
3848
1526
|
fulfillmentMethodId,
|
|
3849
1527
|
// @ts-ignore
|
|
3850
|
-
{ httpClient
|
|
1528
|
+
{ httpClient }
|
|
3851
1529
|
);
|
|
3852
1530
|
}
|
|
3853
|
-
function queryFulfillmentMethods3(httpClient
|
|
1531
|
+
function queryFulfillmentMethods3(httpClient) {
|
|
3854
1532
|
return (options) => queryFulfillmentMethods2(
|
|
3855
1533
|
options,
|
|
3856
1534
|
// @ts-ignore
|
|
3857
|
-
{ httpClient
|
|
1535
|
+
{ httpClient }
|
|
3858
1536
|
);
|
|
3859
1537
|
}
|
|
3860
|
-
function typedQueryFulfillmentMethods2(httpClient
|
|
1538
|
+
function typedQueryFulfillmentMethods2(httpClient) {
|
|
3861
1539
|
return (query, options) => typedQueryFulfillmentMethods(
|
|
3862
1540
|
query,
|
|
3863
1541
|
options,
|
|
3864
1542
|
// @ts-ignore
|
|
3865
|
-
{ httpClient
|
|
1543
|
+
{ httpClient }
|
|
3866
1544
|
);
|
|
3867
1545
|
}
|
|
3868
|
-
function listFulfillmentMethods3(httpClient
|
|
1546
|
+
function listFulfillmentMethods3(httpClient) {
|
|
3869
1547
|
return (options) => listFulfillmentMethods2(
|
|
3870
1548
|
options,
|
|
3871
1549
|
// @ts-ignore
|
|
3872
|
-
{ httpClient
|
|
1550
|
+
{ httpClient }
|
|
3873
1551
|
);
|
|
3874
1552
|
}
|
|
3875
|
-
function listAvailableFulfillmentMethodsForAddress3(httpClient
|
|
1553
|
+
function listAvailableFulfillmentMethodsForAddress3(httpClient) {
|
|
3876
1554
|
return (options) => listAvailableFulfillmentMethodsForAddress2(
|
|
3877
1555
|
options,
|
|
3878
1556
|
// @ts-ignore
|
|
3879
|
-
{ httpClient
|
|
1557
|
+
{ httpClient }
|
|
3880
1558
|
);
|
|
3881
1559
|
}
|
|
3882
|
-
function getAccumulatedFulfillmentMethodsAvailability3(httpClient
|
|
1560
|
+
function getAccumulatedFulfillmentMethodsAvailability3(httpClient) {
|
|
3883
1561
|
return (options) => getAccumulatedFulfillmentMethodsAvailability2(
|
|
3884
1562
|
options,
|
|
3885
1563
|
// @ts-ignore
|
|
3886
|
-
{ httpClient
|
|
1564
|
+
{ httpClient }
|
|
3887
1565
|
);
|
|
3888
1566
|
}
|
|
3889
|
-
function getCombinedMethodAvailability3(httpClient
|
|
1567
|
+
function getCombinedMethodAvailability3(httpClient) {
|
|
3890
1568
|
return (fulfillmentMethodIds) => getCombinedMethodAvailability2(
|
|
3891
1569
|
fulfillmentMethodIds,
|
|
3892
1570
|
// @ts-ignore
|
|
3893
|
-
{ httpClient
|
|
1571
|
+
{ httpClient }
|
|
3894
1572
|
);
|
|
3895
1573
|
}
|
|
3896
|
-
function getAggregatedMethodAvailability3(httpClient
|
|
1574
|
+
function getAggregatedMethodAvailability3(httpClient) {
|
|
3897
1575
|
return (fulfillmentMethodIds) => getAggregatedMethodAvailability2(
|
|
3898
1576
|
fulfillmentMethodIds,
|
|
3899
1577
|
// @ts-ignore
|
|
3900
|
-
{ httpClient
|
|
1578
|
+
{ httpClient }
|
|
3901
1579
|
);
|
|
3902
1580
|
}
|
|
3903
|
-
function bulkUpdateFulfillmentMethodTags3(httpClient
|
|
1581
|
+
function bulkUpdateFulfillmentMethodTags3(httpClient) {
|
|
3904
1582
|
return (fulfillmentMethodIds, options) => bulkUpdateFulfillmentMethodTags2(
|
|
3905
1583
|
fulfillmentMethodIds,
|
|
3906
1584
|
options,
|
|
3907
1585
|
// @ts-ignore
|
|
3908
|
-
{ httpClient
|
|
1586
|
+
{ httpClient }
|
|
3909
1587
|
);
|
|
3910
1588
|
}
|
|
3911
|
-
function bulkUpdateFulfillmentMethodTagsByFilter3(httpClient
|
|
1589
|
+
function bulkUpdateFulfillmentMethodTagsByFilter3(httpClient) {
|
|
3912
1590
|
return (filter, options) => bulkUpdateFulfillmentMethodTagsByFilter2(
|
|
3913
1591
|
filter,
|
|
3914
1592
|
options,
|
|
3915
1593
|
// @ts-ignore
|
|
3916
|
-
{ httpClient
|
|
1594
|
+
{ httpClient }
|
|
3917
1595
|
);
|
|
3918
1596
|
}
|
|
3919
1597
|
var onFulfillmentMethodCreated = (0, import_sdk_types.EventDefinition)(
|