@wix/auto_sdk_restaurants_fulfillment-methods 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.d.ts +28 -0
  11. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js +41 -0
  12. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js.map +1 -0
  13. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.d.ts +57 -0
  14. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js +602 -0
  15. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js.map +1 -0
  16. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.d.ts +28 -0
  17. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js +218 -0
  18. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js.map +1 -0
  19. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.d.ts +113 -0
  20. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js +173 -0
  21. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js.map +1 -0
  22. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.d.ts +1004 -0
  23. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js +105 -0
  24. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js.map +1 -0
  25. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.d.ts +1387 -0
  26. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js +655 -0
  27. package/build/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.d.ts +28 -0
  39. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js +28 -0
  40. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js.map +1 -0
  41. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.d.ts +57 -0
  42. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js +589 -0
  43. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js.map +1 -0
  44. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.d.ts +28 -0
  45. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js +182 -0
  46. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js.map +1 -0
  47. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.d.ts +113 -0
  48. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js +150 -0
  49. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js.map +1 -0
  50. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.d.ts +1004 -0
  51. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js +102 -0
  52. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js.map +1 -0
  53. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.d.ts +1387 -0
  54. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js +619 -0
  55. package/build/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.d.ts +28 -0
  66. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js +41 -0
  67. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js.map +1 -0
  68. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.d.ts +57 -0
  69. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js +602 -0
  70. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js.map +1 -0
  71. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.d.ts +28 -0
  72. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js +218 -0
  73. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js.map +1 -0
  74. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.d.ts +113 -0
  75. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js +173 -0
  76. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js.map +1 -0
  77. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.d.ts +1004 -0
  78. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js +105 -0
  79. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js.map +1 -0
  80. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.d.ts +1387 -0
  81. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js +655 -0
  82. package/build/internal/cjs/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.d.ts +28 -0
  93. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js +28 -0
  94. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.context.js.map +1 -0
  95. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.d.ts +57 -0
  96. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js +589 -0
  97. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.http.js.map +1 -0
  98. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.d.ts +28 -0
  99. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js +182 -0
  100. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.meta.js.map +1 -0
  101. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.d.ts +113 -0
  102. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js +150 -0
  103. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.public.js.map +1 -0
  104. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.d.ts +1004 -0
  105. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js +102 -0
  106. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.types.js.map +1 -0
  107. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.d.ts +1387 -0
  108. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js +619 -0
  109. package/build/internal/es/src/restaurants-v1-fulfillment-method-fulfillment-methods.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1004 @@
1
+ /** A Fulfillment Method represents a way in which a restaurant can provide orders to its customers. */
2
+ export interface FulfillmentMethod extends FulfillmentMethodMethodOptionsOneOf {
3
+ /** Data specific for pickup fulfillment method. */
4
+ pickupOptions?: PickupInfo;
5
+ /** Data specific for delivery fulfillment method. */
6
+ deliveryOptions?: DeliveryInfo;
7
+ /**
8
+ * Fulfillment method ID.
9
+ * @readonly
10
+ */
11
+ id?: string | null;
12
+ /**
13
+ * 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.
14
+ * @readonly
15
+ */
16
+ revision?: string | null;
17
+ /**
18
+ * Date and time the fulfillment method was created.
19
+ * @readonly
20
+ */
21
+ createdDate?: Date | null;
22
+ /**
23
+ * Date and time the fulfillment method was last updated.
24
+ * @readonly
25
+ */
26
+ updatedDate?: Date | null;
27
+ /** Type of fulfillment method. */
28
+ type?: FulfillmentMethodType;
29
+ /** Fulfillment method name. */
30
+ name?: string | null;
31
+ /** Whether the fulfillment method is enabled. */
32
+ enabled?: boolean | null;
33
+ /** Fee for using this fulfillment method. */
34
+ fee?: string | null;
35
+ /** Availability of this fulfillment method. */
36
+ availability?: Availability;
37
+ /** Minimum order price to qualify for using this fulfillment method. */
38
+ minOrderPrice?: string | null;
39
+ }
40
+ /** @oneof */
41
+ export interface FulfillmentMethodMethodOptionsOneOf {
42
+ /** Data specific for pickup fulfillment method. */
43
+ pickupOptions?: PickupInfo;
44
+ /** Data specific for delivery fulfillment method. */
45
+ deliveryOptions?: DeliveryInfo;
46
+ }
47
+ export declare enum FulfillmentMethodType {
48
+ /** Unknown fulfillment type. */
49
+ UNKNOWN_FULFILLMENT_TYPE = "UNKNOWN_FULFILLMENT_TYPE",
50
+ /** The customer must pick up the order from the restaurant. */
51
+ PICKUP = "PICKUP",
52
+ /** The restaurant, or someone on behalf of the restaurant, must deliver the order to the customer. */
53
+ DELIVERY = "DELIVERY"
54
+ }
55
+ export interface PickupInfo {
56
+ /** Instructions for the pickup. */
57
+ instructions?: string | null;
58
+ /**
59
+ * Pickup address.
60
+ *
61
+ * This is set to the address of the restaurant.
62
+ * @readonly
63
+ */
64
+ address?: CommonAddress;
65
+ }
66
+ /** Physical address */
67
+ export interface CommonAddress extends CommonAddressStreetOneOf {
68
+ /** Street name and number. */
69
+ streetAddress?: StreetAddress;
70
+ /** Main address line, usually street and number as free text. */
71
+ addressLine?: string | null;
72
+ /** Country code. */
73
+ country?: string | null;
74
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
75
+ subdivision?: string | null;
76
+ /** City name. */
77
+ city?: string | null;
78
+ /** Zip/postal code. */
79
+ postalCode?: string | null;
80
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
81
+ addressLine2?: string | null;
82
+ }
83
+ /** @oneof */
84
+ export interface CommonAddressStreetOneOf {
85
+ /** Street name and number. */
86
+ streetAddress?: StreetAddress;
87
+ /** Main address line, usually street and number as free text. */
88
+ addressLine?: string | null;
89
+ }
90
+ export interface StreetAddress {
91
+ /** Street number. */
92
+ number?: string;
93
+ /** Street name. */
94
+ name?: string;
95
+ }
96
+ export interface AddressLocation {
97
+ /** Address latitude. */
98
+ latitude?: number | null;
99
+ /** Address longitude. */
100
+ longitude?: number | null;
101
+ }
102
+ export interface Subdivision {
103
+ /** Short subdivision code. */
104
+ code?: string;
105
+ /** Subdivision full name. */
106
+ name?: string;
107
+ }
108
+ export declare enum SubdivisionType {
109
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
110
+ /** State */
111
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
112
+ /** County */
113
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
114
+ /** City/town */
115
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
116
+ /** Neighborhood/quarter */
117
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
118
+ /** Street/block */
119
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
120
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
121
+ COUNTRY = "COUNTRY"
122
+ }
123
+ export interface DeliveryInfo {
124
+ /** Estimated delivery time in minutes. */
125
+ deliveryTimeInMinutes?: number | null;
126
+ /**
127
+ * Threshold for offering free delivery.
128
+ * If the order price exceeds this threshold, the delivery fee is waived.
129
+ */
130
+ freeDeliveryThreshold?: string | null;
131
+ /** Delivery area supported by this delivery fulfillment method. */
132
+ deliveryArea?: DeliveryArea;
133
+ /**
134
+ * Delivery provider app id.
135
+ * @readonly
136
+ */
137
+ deliveryProviderAppId?: string | null;
138
+ /** Pickup instructions for couriers. */
139
+ courierPickupInstructions?: string | null;
140
+ }
141
+ export interface DeliveryArea extends DeliveryAreaAreaOptionsOneOf {
142
+ /** Settings for a radius delivery area. */
143
+ radiusOptions?: Radius;
144
+ /** Settings for a postal code delivery area. */
145
+ postalCodeOptions?: PostalCode;
146
+ /** Settings for a custom delivery area. */
147
+ customOptions?: CustomArea;
148
+ /** Type of delivery area. */
149
+ type?: Type;
150
+ }
151
+ /** @oneof */
152
+ export interface DeliveryAreaAreaOptionsOneOf {
153
+ /** Settings for a radius delivery area. */
154
+ radiusOptions?: Radius;
155
+ /** Settings for a postal code delivery area. */
156
+ postalCodeOptions?: PostalCode;
157
+ /** Settings for a custom delivery area. */
158
+ customOptions?: CustomArea;
159
+ }
160
+ export declare enum Type {
161
+ /** Unknown delivery area type. */
162
+ UNKNOWN_DELIVERY_AREA = "UNKNOWN_DELIVERY_AREA",
163
+ /** Delivery area defined by a radius around the restaurant's address. */
164
+ RADIUS = "RADIUS",
165
+ /** Delivery area defined by a list of postal codes. */
166
+ POSTAL_CODE = "POSTAL_CODE",
167
+ /** Delivery area defined by a custom polygon. */
168
+ CUSTOM = "CUSTOM",
169
+ /** Delivery area that is determined by the provider. Setting this option, you must also provide `delivery_provider_app_id`. */
170
+ PROVIDER_DEFINED = "PROVIDER_DEFINED"
171
+ }
172
+ export interface Radius {
173
+ /**
174
+ * Radius value.
175
+ * The unit of the radius is specified in the `unit` field.
176
+ * __Deprecated.__ Use `maxDistance` instead.
177
+ * This property will be removed on {{Feb 18}}, {{2025}}.
178
+ * @deprecated
179
+ * @replacedBy max_distance
180
+ * @targetRemovalDate 2025-02-18
181
+ */
182
+ value?: string | null;
183
+ /**
184
+ * Minimum distance value.
185
+ * The unit of the radius is specified in the `unit` field.
186
+ */
187
+ minDistance?: string | null;
188
+ /**
189
+ * Maximum distance value.
190
+ * The unit of the radius is specified in the `unit` field.
191
+ */
192
+ maxDistance?: string | null;
193
+ /**
194
+ * Address at the center of the circle.
195
+ * @readonly
196
+ */
197
+ centerPointAddress?: CommonAddress;
198
+ /** Unit of measurement of the radius. */
199
+ unit?: Unit;
200
+ }
201
+ export declare enum Unit {
202
+ /** Unknown unit. */
203
+ UNKNOWN_UNIT = "UNKNOWN_UNIT",
204
+ /** Miles. */
205
+ MILES = "MILES",
206
+ /** Kilometers. */
207
+ KILOMETERS = "KILOMETERS"
208
+ }
209
+ export interface PostalCode {
210
+ /**
211
+ * Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
212
+ * @readonly
213
+ */
214
+ countryCode?: string | null;
215
+ /**
216
+ * List of postal codes and postal code regexes. For example, `10001`, `10002` or `1000*`.
217
+ * A postal code regex will enable you to define a range of postal codes using an asterisk (*).
218
+ * For example, to include the postal codes in the range of `10001`-`10009`, use `1000*`.
219
+ */
220
+ postalCodes?: string[] | null;
221
+ }
222
+ export interface CustomArea {
223
+ /** Geocodes of the polygon defining the delivery area. */
224
+ geocodes?: AddressLocation[];
225
+ }
226
+ export interface Availability {
227
+ /** A list of availability times for the days of the week. */
228
+ availableTimes?: DayOfWeekAvailability[];
229
+ /**
230
+ * The timezone in which the availability times are given.
231
+ * @readonly
232
+ */
233
+ timeZone?: string | null;
234
+ }
235
+ export interface DayOfWeekAvailability {
236
+ /** The day of week this availability relates to. */
237
+ dayOfWeek?: EntitiesDayOfWeek;
238
+ /** A list of time ranges during which the fulfillment should be available. */
239
+ timeRanges?: TimeOfDayRange[];
240
+ }
241
+ export declare enum EntitiesDayOfWeek {
242
+ /** Monday. */
243
+ MON = "MON",
244
+ /** Tuesday. */
245
+ TUE = "TUE",
246
+ /** Wednesday. */
247
+ WED = "WED",
248
+ /** Thursday. */
249
+ THU = "THU",
250
+ /** Friday. */
251
+ FRI = "FRI",
252
+ /** Saturday. */
253
+ SAT = "SAT",
254
+ /** Sunday. */
255
+ SUN = "SUN"
256
+ }
257
+ export interface TimeOfDayRange {
258
+ /** The start time in time of day representation. */
259
+ startTime?: TimeOfDay;
260
+ /** The end time in time of day representation. */
261
+ endTime?: TimeOfDay;
262
+ }
263
+ export interface TimeOfDay {
264
+ /**
265
+ * Hours. <br />
266
+ * Min: `0`. <br />
267
+ * Max: `23`.
268
+ */
269
+ hours?: number;
270
+ /**
271
+ * Minutes. <br />
272
+ * Min: `0`. <br />
273
+ * Max: `23`.
274
+ */
275
+ minutes?: number;
276
+ }
277
+ export interface DomainEvent extends DomainEventBodyOneOf {
278
+ createdEvent?: EntityCreatedEvent;
279
+ updatedEvent?: EntityUpdatedEvent;
280
+ deletedEvent?: EntityDeletedEvent;
281
+ actionEvent?: ActionEvent;
282
+ /**
283
+ * Unique event ID.
284
+ * Allows clients to ignore duplicate webhooks.
285
+ */
286
+ id?: string;
287
+ /**
288
+ * Assumes actions are also always typed to an entity_type
289
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
290
+ */
291
+ entityFqdn?: string;
292
+ /**
293
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
294
+ * This is although the created/updated/deleted notion is duplication of the oneof types
295
+ * Example: created/updated/deleted/started/completed/email_opened
296
+ */
297
+ slug?: string;
298
+ /** ID of the entity associated with the event. */
299
+ entityId?: string;
300
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
301
+ eventTime?: Date | null;
302
+ /**
303
+ * Whether the event was triggered as a result of a privacy regulation application
304
+ * (for example, GDPR).
305
+ */
306
+ triggeredByAnonymizeRequest?: boolean | null;
307
+ /** If present, indicates the action that triggered the event. */
308
+ originatedFrom?: string | null;
309
+ /**
310
+ * A sequence number defining the order of updates to the underlying entity.
311
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
312
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
313
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
314
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
315
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
316
+ */
317
+ entityEventSequence?: string | null;
318
+ }
319
+ /** @oneof */
320
+ export interface DomainEventBodyOneOf {
321
+ createdEvent?: EntityCreatedEvent;
322
+ updatedEvent?: EntityUpdatedEvent;
323
+ deletedEvent?: EntityDeletedEvent;
324
+ actionEvent?: ActionEvent;
325
+ }
326
+ export interface EntityCreatedEvent {
327
+ entityAsJson?: string;
328
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
329
+ restoreInfo?: RestoreInfo;
330
+ }
331
+ export interface RestoreInfo {
332
+ deletedDate?: Date | null;
333
+ }
334
+ export interface EntityUpdatedEvent {
335
+ /**
336
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
337
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
338
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
339
+ */
340
+ currentEntityAsJson?: string;
341
+ }
342
+ export interface EntityDeletedEvent {
343
+ /** Entity that was deleted */
344
+ deletedEntityAsJson?: string | null;
345
+ }
346
+ export interface ActionEvent {
347
+ bodyAsJson?: string;
348
+ }
349
+ export interface MessageEnvelope {
350
+ /** App instance ID. */
351
+ instanceId?: string | null;
352
+ /** Event type. */
353
+ eventType?: string;
354
+ /** The identification type and identity data. */
355
+ identity?: IdentificationData;
356
+ /** Stringify payload. */
357
+ data?: string;
358
+ }
359
+ export interface IdentificationData extends IdentificationDataIdOneOf {
360
+ /** ID of a site visitor that has not logged in to the site. */
361
+ anonymousVisitorId?: string;
362
+ /** ID of a site visitor that has logged in to the site. */
363
+ memberId?: string;
364
+ /** ID of a Wix user (site owner, contributor, etc.). */
365
+ wixUserId?: string;
366
+ /** ID of an app. */
367
+ appId?: string;
368
+ /** @readonly */
369
+ identityType?: WebhookIdentityType;
370
+ }
371
+ /** @oneof */
372
+ export interface IdentificationDataIdOneOf {
373
+ /** ID of a site visitor that has not logged in to the site. */
374
+ anonymousVisitorId?: string;
375
+ /** ID of a site visitor that has logged in to the site. */
376
+ memberId?: string;
377
+ /** ID of a Wix user (site owner, contributor, etc.). */
378
+ wixUserId?: string;
379
+ /** ID of an app. */
380
+ appId?: string;
381
+ }
382
+ export declare enum WebhookIdentityType {
383
+ UNKNOWN = "UNKNOWN",
384
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
385
+ MEMBER = "MEMBER",
386
+ WIX_USER = "WIX_USER",
387
+ APP = "APP"
388
+ }
389
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
390
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
391
+ metaSiteId?: string;
392
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
393
+ siteId?: string;
394
+ /** Invalidate by App */
395
+ app?: App;
396
+ /** Invalidate by page id */
397
+ page?: Page;
398
+ /** Invalidate by URI path */
399
+ uri?: URI;
400
+ /** Invalidate by file (for media files such as PDFs) */
401
+ file?: File;
402
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
403
+ reason?: string | null;
404
+ /** Is local DS */
405
+ localDc?: boolean;
406
+ hardPurge?: boolean;
407
+ }
408
+ /** @oneof */
409
+ export interface InvalidateCacheGetByOneOf {
410
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
411
+ metaSiteId?: string;
412
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
413
+ siteId?: string;
414
+ /** Invalidate by App */
415
+ app?: App;
416
+ /** Invalidate by page id */
417
+ page?: Page;
418
+ /** Invalidate by URI path */
419
+ uri?: URI;
420
+ /** Invalidate by file (for media files such as PDFs) */
421
+ file?: File;
422
+ }
423
+ export interface App {
424
+ /** The AppDefId */
425
+ appDefId?: string;
426
+ /** The instance Id */
427
+ instanceId?: string;
428
+ }
429
+ export interface Page {
430
+ /** the msid the page is on */
431
+ metaSiteId?: string;
432
+ /** Invalidate by Page ID */
433
+ pageId?: string;
434
+ }
435
+ export interface URI {
436
+ /** the msid the URI is on */
437
+ metaSiteId?: string;
438
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
439
+ uriPath?: string;
440
+ }
441
+ export interface File {
442
+ /** the msid the file is related to */
443
+ metaSiteId?: string;
444
+ /** Invalidate by filename (for media files such as PDFs) */
445
+ fileName?: string;
446
+ }
447
+ export interface CreateFulfillmentMethodRequest {
448
+ /** Fulfillment method to create. */
449
+ fulfillmentMethod: FulfillmentMethod;
450
+ }
451
+ export interface CreateFulfillmentMethodResponse {
452
+ /** The created fulfillment method. */
453
+ fulfillmentMethod?: FulfillmentMethod;
454
+ }
455
+ export interface BulkCreateFulfillmentMethodsRequest {
456
+ /** Fulfillment methods to create. */
457
+ fulfillmentMethods?: FulfillmentMethod[];
458
+ /** If true, the created entities will be returned. */
459
+ returnEntity?: boolean;
460
+ }
461
+ export interface BulkCreateFulfillmentMethodsResponse {
462
+ /** Information about the created fulfillment method. */
463
+ results?: BulkCreateFulfillmentMethodResult[];
464
+ /** Metadata for the API call. */
465
+ bulkActionMetadata?: BulkActionMetadata;
466
+ }
467
+ export interface BulkCreateFulfillmentMethodResult {
468
+ /** Metadata for fulfillment method creation. */
469
+ itemMetadata?: ItemMetadata;
470
+ /** Created fulfillment method. */
471
+ fulfillmentMethod?: FulfillmentMethod;
472
+ }
473
+ export interface ItemMetadata {
474
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
475
+ id?: string | null;
476
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
477
+ originalIndex?: number;
478
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
479
+ success?: boolean;
480
+ /** Details about the error in case of failure. */
481
+ error?: ApplicationError;
482
+ }
483
+ export interface ApplicationError {
484
+ /** Error code. */
485
+ code?: string;
486
+ /** Description of the error. */
487
+ description?: string;
488
+ /** Data related to the error. */
489
+ data?: Record<string, any> | null;
490
+ }
491
+ export interface BulkActionMetadata {
492
+ /** Number of items that were successfully processed. */
493
+ totalSuccesses?: number;
494
+ /** Number of items that couldn't be processed. */
495
+ totalFailures?: number;
496
+ /** Number of failures without details because detailed failure threshold was exceeded. */
497
+ undetailedFailures?: number;
498
+ }
499
+ export interface GetFulfillmentMethodRequest {
500
+ /** The ID of the fulfillment method to retrieve. */
501
+ fulfillmentMethodId: string;
502
+ }
503
+ export interface GetFulfillmentMethodResponse {
504
+ /** The retrieved fulfillment method. */
505
+ fulfillmentMethod?: FulfillmentMethod;
506
+ }
507
+ export interface UpdateFulfillmentMethodRequest {
508
+ /**
509
+ * Fulfillment method to update.
510
+ * The fulfillment method update may be partial with the use of `field_mask`.
511
+ */
512
+ fulfillmentMethod: FulfillmentMethod;
513
+ }
514
+ export interface UpdateFulfillmentMethodResponse {
515
+ /** The updated fulfillment method. */
516
+ fulfillmentMethod?: FulfillmentMethod;
517
+ }
518
+ export interface DeleteFulfillmentMethodRequest {
519
+ /** The ID of the fulfillment method to delete. */
520
+ fulfillmentMethodId: string;
521
+ }
522
+ export interface DeleteFulfillmentMethodResponse {
523
+ }
524
+ export interface QueryFulfillmentMethodsRequest {
525
+ /** The query by which to select fulfillment methods. */
526
+ query?: CursorQuery;
527
+ }
528
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
529
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
530
+ cursorPaging?: CursorPaging;
531
+ /**
532
+ * Filter object in the following format:
533
+ * `"filter" : {
534
+ * "fieldName1": "value1",
535
+ * "fieldName2":{"$operator":"value2"}
536
+ * }`
537
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
538
+ */
539
+ filter?: Record<string, any> | null;
540
+ /**
541
+ * Sort object in the following format:
542
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
543
+ */
544
+ sort?: Sorting[];
545
+ }
546
+ /** @oneof */
547
+ export interface CursorQueryPagingMethodOneOf {
548
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
549
+ cursorPaging?: CursorPaging;
550
+ }
551
+ export interface Sorting {
552
+ /** Name of the field to sort by. */
553
+ fieldName?: string;
554
+ /** Sort order. */
555
+ order?: SortOrder;
556
+ }
557
+ export declare enum SortOrder {
558
+ ASC = "ASC",
559
+ DESC = "DESC"
560
+ }
561
+ export interface CursorPaging {
562
+ /** Maximum number of items to return in the results. */
563
+ limit?: number | null;
564
+ /**
565
+ * Pointer to the next or previous page in the list of results.
566
+ *
567
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
568
+ * Not relevant for the first request.
569
+ */
570
+ cursor?: string | null;
571
+ }
572
+ export interface QueryFulfillmentMethodsResponse {
573
+ /** The retrieved fulfillment methods. */
574
+ fulfillmentMethods?: FulfillmentMethod[];
575
+ /** The metadata of the paginated results. */
576
+ pagingMetadata?: CursorPagingMetadata;
577
+ }
578
+ export interface CursorPagingMetadata {
579
+ /** Number of items returned in the response. */
580
+ count?: number | null;
581
+ /** Cursor strings that point to the next page, previous page, or both. */
582
+ cursors?: Cursors;
583
+ /**
584
+ * Whether there are more pages to retrieve following the current page.
585
+ *
586
+ * + `true`: Another page of results can be retrieved.
587
+ * + `false`: This is the last page.
588
+ */
589
+ hasNext?: boolean | null;
590
+ }
591
+ export interface Cursors {
592
+ /** Cursor string pointing to the next page in the list of results. */
593
+ next?: string | null;
594
+ /** Cursor pointing to the previous page in the list of results. */
595
+ prev?: string | null;
596
+ }
597
+ export interface ListFulfillmentMethodsRequest {
598
+ /** Cursor paging */
599
+ cursorPaging?: CursorPaging;
600
+ }
601
+ export interface ListFulfillmentMethodsResponse {
602
+ /** The retrieved fulfillment methods. */
603
+ fulfillmentMethods?: FulfillmentMethod[];
604
+ /** The metadata of the paginated results. */
605
+ pagingMetadata?: CursorPagingMetadata;
606
+ }
607
+ export interface ListAvailableFulfillmentMethodsForAddressRequest {
608
+ /** The address by which to filter delivery fulfillment methods. */
609
+ address?: CommonAddress;
610
+ /** Cursor paging */
611
+ cursorPaging?: CursorPaging;
612
+ /** If provided, only fulfillment methods with the given IDs will be returned. */
613
+ fulfillmentMethodIds?: string[];
614
+ }
615
+ export interface ListAvailableFulfillmentMethodsForAddressResponse {
616
+ /** The retrieved fulfillment methods. */
617
+ fulfillmentMethods?: FulfillmentMethod[];
618
+ /** The metadata of the paginated results. */
619
+ pagingMetadata?: CursorPagingMetadata;
620
+ }
621
+ export interface ListActiveFulfillmentMethodsRequest {
622
+ /** Only fulfillment methods with the given IDs will be returned. */
623
+ fulfillmentMethodIds?: string[];
624
+ /** Cursor paging */
625
+ cursorPaging?: CursorPaging;
626
+ }
627
+ export interface ListActiveFulfillmentMethodsResponse {
628
+ /** The enabled fulfillment methods. */
629
+ fulfillmentMethods?: FulfillmentMethod[];
630
+ /** The metadata of the paginated results. */
631
+ pagingMetadata?: CursorPagingMetadata;
632
+ }
633
+ export interface GetAccumulatedFulfillmentMethodsAvailabilityRequest {
634
+ /** fulfillment method ids to check availability for. */
635
+ fulfillmentMethodIds?: string[];
636
+ }
637
+ export interface GetAccumulatedFulfillmentMethodsAvailabilityResponse {
638
+ /** The accumulated availability of all fulfillment methods. */
639
+ availability?: Availability;
640
+ /** Fulfillment methods types that accumulate availability. */
641
+ types?: FulfillmentMethodType[];
642
+ }
643
+ export interface GetCombinedMethodAvailabilityRequest {
644
+ /** IDs of fulfillment methods used to determine the combined availability. */
645
+ fulfillmentMethodIds: string[];
646
+ }
647
+ export interface GetCombinedMethodAvailabilityResponse {
648
+ /** The combined availability of the given fulfillment methods. */
649
+ combinedAvailability?: Availability;
650
+ /** Types of fulfillment methods available during at least some the combined availability's `availableTimes`. */
651
+ fulfillmentTypes?: FulfillmentMethodType[];
652
+ }
653
+ export interface GetAggregatedMethodAvailabilityRequest {
654
+ /** IDs of fulfillment methods used to determine the aggregated availability. */
655
+ fulfillmentMethodIds: string[];
656
+ }
657
+ export interface GetAggregatedMethodAvailabilityResponse {
658
+ /** The aggregated availability of the given fulfillment methods. */
659
+ aggregatedAvailability?: Availability;
660
+ /** Types of fulfillment methods available during at least some the aggregated availability's `availableTimes`. */
661
+ fulfillmentTypes?: FulfillmentMethodType[];
662
+ }
663
+ /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
664
+ export interface SitePropertiesNotification {
665
+ /** The site ID for which this update notification applies. */
666
+ metasiteId?: string;
667
+ /** The actual update event. */
668
+ event?: SitePropertiesEvent;
669
+ /** A convenience set of mappings from the MetaSite ID to its constituent services. */
670
+ translations?: Translation[];
671
+ /** Context of the notification */
672
+ changeContext?: ChangeContext;
673
+ }
674
+ /** The actual update event for a particular notification. */
675
+ export interface SitePropertiesEvent {
676
+ /** Version of the site's properties represented by this update. */
677
+ version?: number;
678
+ /** Set of properties that were updated - corresponds to the fields in "properties". */
679
+ fields?: string[];
680
+ /** Updated properties. */
681
+ properties?: Properties;
682
+ }
683
+ export interface Properties {
684
+ /** Site categories. */
685
+ categories?: Categories;
686
+ /** Site locale. */
687
+ locale?: Locale;
688
+ /**
689
+ * Site language.
690
+ *
691
+ * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
692
+ */
693
+ language?: string | null;
694
+ /**
695
+ * Site currency format used to bill customers.
696
+ *
697
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
698
+ */
699
+ paymentCurrency?: string | null;
700
+ /** Timezone in `America/New_York` format. */
701
+ timeZone?: string | null;
702
+ /** Email address. */
703
+ email?: string | null;
704
+ /** Phone number. */
705
+ phone?: string | null;
706
+ /** Fax number. */
707
+ fax?: string | null;
708
+ /** Address. */
709
+ address?: Address;
710
+ /** Site display name. */
711
+ siteDisplayName?: string | null;
712
+ /** Business name. */
713
+ businessName?: string | null;
714
+ /** Path to the site's logo in Wix Media (without Wix Media base URL). */
715
+ logo?: string | null;
716
+ /** Site description. */
717
+ description?: string | null;
718
+ /**
719
+ * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
720
+ *
721
+ * __Note:__ Not supported by Wix Bookings.
722
+ */
723
+ businessSchedule?: BusinessSchedule;
724
+ /** Supported languages of a site and the primary language. */
725
+ multilingual?: Multilingual;
726
+ /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */
727
+ consentPolicy?: ConsentPolicy;
728
+ /**
729
+ * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
730
+ *
731
+ * Site business type.
732
+ */
733
+ businessConfig?: string | null;
734
+ /** External site URL that uses Wix as its headless business solution. */
735
+ externalSiteUrl?: string | null;
736
+ /** Track clicks analytics. */
737
+ trackClicksAnalytics?: boolean;
738
+ }
739
+ export interface Categories {
740
+ /** Primary site category. */
741
+ primary?: string;
742
+ /** Secondary site category. */
743
+ secondary?: string[];
744
+ /** Business Term Id */
745
+ businessTermId?: string | null;
746
+ }
747
+ export interface Locale {
748
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
749
+ languageCode?: string;
750
+ /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
751
+ country?: string;
752
+ }
753
+ export interface Address {
754
+ /** Street name. */
755
+ street?: string;
756
+ /** City name. */
757
+ city?: string;
758
+ /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
759
+ country?: string;
760
+ /** State. */
761
+ state?: string;
762
+ /** Zip or postal code. */
763
+ zip?: string;
764
+ /** Extra information to be displayed in the address. */
765
+ hint?: AddressHint;
766
+ /** Whether this address represents a physical location. */
767
+ isPhysical?: boolean;
768
+ /** Google-formatted version of this address. */
769
+ googleFormattedAddress?: string;
770
+ /** Street number. */
771
+ streetNumber?: string;
772
+ /** Apartment number. */
773
+ apartmentNumber?: string;
774
+ /** Geographic coordinates of location. */
775
+ coordinates?: GeoCoordinates;
776
+ }
777
+ /**
778
+ * Extra information on displayed addresses.
779
+ * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
780
+ * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
781
+ */
782
+ export interface AddressHint {
783
+ /** Extra text displayed next to, or instead of, the actual address. */
784
+ text?: string;
785
+ /** Where the extra text should be displayed. */
786
+ placement?: PlacementType;
787
+ }
788
+ /** Where the extra text should be displayed: before, after or instead of the actual address. */
789
+ export declare enum PlacementType {
790
+ BEFORE = "BEFORE",
791
+ AFTER = "AFTER",
792
+ REPLACE = "REPLACE"
793
+ }
794
+ /** Geocoordinates for a particular address. */
795
+ export interface GeoCoordinates {
796
+ /** Latitude of the location. Must be between -90 and 90. */
797
+ latitude?: number;
798
+ /** Longitude of the location. Must be between -180 and 180. */
799
+ longitude?: number;
800
+ }
801
+ /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
802
+ export interface BusinessSchedule {
803
+ /** Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. */
804
+ periods?: TimePeriod[];
805
+ /** Exceptions to the business's regular hours. The business can be open or closed during the exception. */
806
+ specialHourPeriod?: SpecialHourPeriod[];
807
+ }
808
+ /** Weekly recurring time periods when the business is regularly open or the service is available. */
809
+ export interface TimePeriod {
810
+ /** Day of the week the period starts on. */
811
+ openDay?: DayOfWeek;
812
+ /**
813
+ * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
814
+ * midnight at the end of the specified day.
815
+ */
816
+ openTime?: string;
817
+ /** Day of the week the period ends on. */
818
+ closeDay?: DayOfWeek;
819
+ /**
820
+ * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
821
+ * midnight at the end of the specified day.
822
+ *
823
+ * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
824
+ */
825
+ closeTime?: string;
826
+ }
827
+ /** Enumerates the days of the week. */
828
+ export declare enum DayOfWeek {
829
+ MONDAY = "MONDAY",
830
+ TUESDAY = "TUESDAY",
831
+ WEDNESDAY = "WEDNESDAY",
832
+ THURSDAY = "THURSDAY",
833
+ FRIDAY = "FRIDAY",
834
+ SATURDAY = "SATURDAY",
835
+ SUNDAY = "SUNDAY"
836
+ }
837
+ /** Exception to the business's regular hours. The business can be open or closed during the exception. */
838
+ export interface SpecialHourPeriod {
839
+ /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
840
+ startDate?: string;
841
+ /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
842
+ endDate?: string;
843
+ /**
844
+ * Whether the business is closed (or the service is not available) during the exception.
845
+ *
846
+ * Default: `true`.
847
+ */
848
+ isClosed?: boolean;
849
+ /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
850
+ comment?: string;
851
+ }
852
+ export interface Multilingual {
853
+ /** Supported languages list. */
854
+ supportedLanguages?: SupportedLanguage[];
855
+ /** Whether to redirect to user language. */
856
+ autoRedirect?: boolean;
857
+ }
858
+ export interface SupportedLanguage {
859
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
860
+ languageCode?: string;
861
+ /** Locale. */
862
+ locale?: Locale;
863
+ /** Whether the supported language is the primary language for the site. */
864
+ isPrimary?: boolean;
865
+ /** Language icon. */
866
+ countryCode?: string;
867
+ /** How the language will be resolved. For internal use. */
868
+ resolutionMethod?: ResolutionMethod;
869
+ }
870
+ export declare enum ResolutionMethod {
871
+ QUERY_PARAM = "QUERY_PARAM",
872
+ SUBDOMAIN = "SUBDOMAIN",
873
+ SUBDIRECTORY = "SUBDIRECTORY"
874
+ }
875
+ export interface ConsentPolicy {
876
+ /** Whether the site uses cookies that are essential to site operation. Always `true`. */
877
+ essential?: boolean | null;
878
+ /** Whether the site uses cookies that affect site performance and other functional measurements. */
879
+ functional?: boolean | null;
880
+ /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
881
+ analytics?: boolean | null;
882
+ /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
883
+ advertising?: boolean | null;
884
+ /** CCPA compliance flag. */
885
+ dataToThirdParty?: boolean | null;
886
+ }
887
+ /** A single mapping from the MetaSite ID to a particular service. */
888
+ export interface Translation {
889
+ /** The service type. */
890
+ serviceType?: string;
891
+ /** The application definition ID; this only applies to services of type ThirdPartyApps. */
892
+ appDefId?: string;
893
+ /** The instance ID of the service. */
894
+ instanceId?: string;
895
+ }
896
+ export interface ChangeContext extends ChangeContextPayloadOneOf {
897
+ /** Properties were updated. */
898
+ propertiesChange?: PropertiesChange;
899
+ /** Default properties were created on site creation. */
900
+ siteCreated?: SiteCreated;
901
+ /** Properties were cloned on site cloning. */
902
+ siteCloned?: SiteCloned;
903
+ }
904
+ /** @oneof */
905
+ export interface ChangeContextPayloadOneOf {
906
+ /** Properties were updated. */
907
+ propertiesChange?: PropertiesChange;
908
+ /** Default properties were created on site creation. */
909
+ siteCreated?: SiteCreated;
910
+ /** Properties were cloned on site cloning. */
911
+ siteCloned?: SiteCloned;
912
+ }
913
+ export interface PropertiesChange {
914
+ }
915
+ export interface SiteCreated {
916
+ /** Origin template site id. */
917
+ originTemplateId?: string | null;
918
+ }
919
+ export interface SiteCloned {
920
+ /** Origin site id. */
921
+ originMetaSiteId?: string;
922
+ }
923
+ export interface Empty {
924
+ }
925
+ interface StreetAddressNonNullableFields {
926
+ number: string;
927
+ name: string;
928
+ apt: string;
929
+ }
930
+ interface SubdivisionNonNullableFields {
931
+ code: string;
932
+ name: string;
933
+ type: SubdivisionType;
934
+ }
935
+ interface CommonAddressNonNullableFields {
936
+ streetAddress?: StreetAddressNonNullableFields;
937
+ subdivisions: SubdivisionNonNullableFields[];
938
+ }
939
+ interface PickupInfoNonNullableFields {
940
+ address?: CommonAddressNonNullableFields;
941
+ }
942
+ interface RadiusNonNullableFields {
943
+ centerPointAddress?: CommonAddressNonNullableFields;
944
+ unit: Unit;
945
+ }
946
+ interface DeliveryAreaNonNullableFields {
947
+ radiusOptions?: RadiusNonNullableFields;
948
+ type: Type;
949
+ }
950
+ interface DeliveryInfoNonNullableFields {
951
+ deliveryArea?: DeliveryAreaNonNullableFields;
952
+ }
953
+ interface TimeOfDayNonNullableFields {
954
+ hours: number;
955
+ minutes: number;
956
+ }
957
+ interface TimeOfDayRangeNonNullableFields {
958
+ startTime?: TimeOfDayNonNullableFields;
959
+ endTime?: TimeOfDayNonNullableFields;
960
+ }
961
+ interface DayOfWeekAvailabilityNonNullableFields {
962
+ dayOfWeek: EntitiesDayOfWeek;
963
+ timeRanges: TimeOfDayRangeNonNullableFields[];
964
+ }
965
+ interface AvailabilityNonNullableFields {
966
+ availableTimes: DayOfWeekAvailabilityNonNullableFields[];
967
+ }
968
+ interface FulfillmentMethodNonNullableFields {
969
+ pickupOptions?: PickupInfoNonNullableFields;
970
+ deliveryOptions?: DeliveryInfoNonNullableFields;
971
+ type: FulfillmentMethodType;
972
+ availability?: AvailabilityNonNullableFields;
973
+ }
974
+ export interface CreateFulfillmentMethodResponseNonNullableFields {
975
+ fulfillmentMethod?: FulfillmentMethodNonNullableFields;
976
+ }
977
+ export interface GetFulfillmentMethodResponseNonNullableFields {
978
+ fulfillmentMethod?: FulfillmentMethodNonNullableFields;
979
+ }
980
+ export interface UpdateFulfillmentMethodResponseNonNullableFields {
981
+ fulfillmentMethod?: FulfillmentMethodNonNullableFields;
982
+ }
983
+ export interface QueryFulfillmentMethodsResponseNonNullableFields {
984
+ fulfillmentMethods: FulfillmentMethodNonNullableFields[];
985
+ }
986
+ export interface ListFulfillmentMethodsResponseNonNullableFields {
987
+ fulfillmentMethods: FulfillmentMethodNonNullableFields[];
988
+ }
989
+ export interface ListAvailableFulfillmentMethodsForAddressResponseNonNullableFields {
990
+ fulfillmentMethods: FulfillmentMethodNonNullableFields[];
991
+ }
992
+ export interface GetAccumulatedFulfillmentMethodsAvailabilityResponseNonNullableFields {
993
+ availability?: AvailabilityNonNullableFields;
994
+ types: FulfillmentMethodType[];
995
+ }
996
+ export interface GetCombinedMethodAvailabilityResponseNonNullableFields {
997
+ combinedAvailability?: AvailabilityNonNullableFields;
998
+ fulfillmentTypes: FulfillmentMethodType[];
999
+ }
1000
+ export interface GetAggregatedMethodAvailabilityResponseNonNullableFields {
1001
+ aggregatedAvailability?: AvailabilityNonNullableFields;
1002
+ fulfillmentTypes: FulfillmentMethodType[];
1003
+ }
1004
+ export {};