@wix/auto_sdk_restaurants_sections 1.0.39 → 1.0.41
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.js +30 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +30 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +423 -1
- package/build/cjs/meta.js +70 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +30 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +423 -1
- package/build/es/meta.mjs +66 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +30 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +30 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +423 -1
- package/build/internal/cjs/meta.js +70 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +30 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +30 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +423 -1
- package/build/internal/es/meta.mjs +66 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -83,6 +83,122 @@ interface ExtendedFields {
|
|
|
83
83
|
*/
|
|
84
84
|
namespaces?: Record<string, Record<string, any>>;
|
|
85
85
|
}
|
|
86
|
+
interface OrderSettings {
|
|
87
|
+
availability?: Availability;
|
|
88
|
+
}
|
|
89
|
+
interface Availability extends AvailabilityAvailabilityTypeOptionsOneOf {
|
|
90
|
+
/** Settings for availability on a weekly schedule. */
|
|
91
|
+
weeklyScheduleOptions?: WeeklyScheduleOptions;
|
|
92
|
+
/** Settings for availability within a time range. */
|
|
93
|
+
timestampRangesOptions?: TimestampRangesOptions;
|
|
94
|
+
/** Availability type. */
|
|
95
|
+
type?: AvailabilityTypeWithLiterals;
|
|
96
|
+
/**
|
|
97
|
+
* Time zone in [Time Zone Database](https://www.iana.org/time-zones) format.
|
|
98
|
+
* @readonly
|
|
99
|
+
* @maxLength 50
|
|
100
|
+
*/
|
|
101
|
+
timeZone?: string | null;
|
|
102
|
+
}
|
|
103
|
+
/** @oneof */
|
|
104
|
+
interface AvailabilityAvailabilityTypeOptionsOneOf {
|
|
105
|
+
/** Settings for availability on a weekly schedule. */
|
|
106
|
+
weeklyScheduleOptions?: WeeklyScheduleOptions;
|
|
107
|
+
/** Settings for availability within a time range. */
|
|
108
|
+
timestampRangesOptions?: TimestampRangesOptions;
|
|
109
|
+
}
|
|
110
|
+
declare enum AvailabilityType {
|
|
111
|
+
/** Missing type due to an error. */
|
|
112
|
+
UNSPECIFIED_AVAILABILITY_OPTION = "UNSPECIFIED_AVAILABILITY_OPTION",
|
|
113
|
+
/** Available all the time. */
|
|
114
|
+
ALWAYS_AVAILABLE = "ALWAYS_AVAILABLE",
|
|
115
|
+
/** Available on specific days and times throughout the week. */
|
|
116
|
+
WEEKLY_SCHEDULE = "WEEKLY_SCHEDULE",
|
|
117
|
+
/** Available during a specific time range. */
|
|
118
|
+
TIMESTAMP_RANGES = "TIMESTAMP_RANGES"
|
|
119
|
+
}
|
|
120
|
+
/** @enumType */
|
|
121
|
+
type AvailabilityTypeWithLiterals = AvailabilityType | 'UNSPECIFIED_AVAILABILITY_OPTION' | 'ALWAYS_AVAILABLE' | 'WEEKLY_SCHEDULE' | 'TIMESTAMP_RANGES';
|
|
122
|
+
interface WeeklyScheduleOptions {
|
|
123
|
+
/**
|
|
124
|
+
* List of available time ranges for specific days of the week.
|
|
125
|
+
* @maxSize 7
|
|
126
|
+
*/
|
|
127
|
+
availableTimes?: DayOfWeekAvailability[];
|
|
128
|
+
}
|
|
129
|
+
interface DayOfWeekAvailability {
|
|
130
|
+
/** The day of week this availability relates to. */
|
|
131
|
+
dayOfWeek?: DayOfWeekWithLiterals;
|
|
132
|
+
/** A list of time ranges during which the fulfillment should be available. */
|
|
133
|
+
timeRanges?: TimeOfDayRange[];
|
|
134
|
+
}
|
|
135
|
+
declare enum DayOfWeek {
|
|
136
|
+
/** Monday. */
|
|
137
|
+
MON = "MON",
|
|
138
|
+
/** Tuesday. */
|
|
139
|
+
TUE = "TUE",
|
|
140
|
+
/** Wednesday. */
|
|
141
|
+
WED = "WED",
|
|
142
|
+
/** Thursday. */
|
|
143
|
+
THU = "THU",
|
|
144
|
+
/** Friday. */
|
|
145
|
+
FRI = "FRI",
|
|
146
|
+
/** Saturday. */
|
|
147
|
+
SAT = "SAT",
|
|
148
|
+
/** Sunday. */
|
|
149
|
+
SUN = "SUN"
|
|
150
|
+
}
|
|
151
|
+
/** @enumType */
|
|
152
|
+
type DayOfWeekWithLiterals = DayOfWeek | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | 'SUN';
|
|
153
|
+
interface TimeOfDayRange {
|
|
154
|
+
/** The start time in time of day representation. */
|
|
155
|
+
startTime?: TimeOfDay;
|
|
156
|
+
/** The end time in time of day representation. */
|
|
157
|
+
endTime?: TimeOfDay;
|
|
158
|
+
}
|
|
159
|
+
interface TimeOfDay {
|
|
160
|
+
/**
|
|
161
|
+
* Hours. <br />
|
|
162
|
+
* Min: `0`. <br />
|
|
163
|
+
* Max: `23`.
|
|
164
|
+
*/
|
|
165
|
+
hours?: number;
|
|
166
|
+
/**
|
|
167
|
+
* Minutes. <br />
|
|
168
|
+
* Min: `0`. <br />
|
|
169
|
+
* Max: `23`.
|
|
170
|
+
*/
|
|
171
|
+
minutes?: number;
|
|
172
|
+
}
|
|
173
|
+
interface TimestampRangesOptions {
|
|
174
|
+
/**
|
|
175
|
+
* List of available time ranges.
|
|
176
|
+
* @maxSize 50
|
|
177
|
+
*/
|
|
178
|
+
ranges?: AvailableRange[];
|
|
179
|
+
}
|
|
180
|
+
interface AvailableRange {
|
|
181
|
+
/** The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */
|
|
182
|
+
startTime?: Date | null;
|
|
183
|
+
/** The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */
|
|
184
|
+
endTime?: Date | null;
|
|
185
|
+
}
|
|
186
|
+
interface ExternalReferenceInfo {
|
|
187
|
+
/**
|
|
188
|
+
* ID of the external integrator app\system associated with this object.
|
|
189
|
+
* @format GUID
|
|
190
|
+
*/
|
|
191
|
+
externalAppId?: string | null;
|
|
192
|
+
/**
|
|
193
|
+
* Reference to an external resource ID. Used to link this object to a specific entity in an external system.
|
|
194
|
+
* @maxLength 100
|
|
195
|
+
*/
|
|
196
|
+
externalEntityId?: string | null;
|
|
197
|
+
/** Last time this section was synced with the external app. */
|
|
198
|
+
lastSyncDate?: Date | null;
|
|
199
|
+
/** Whether the connection to the external system is currently active. */
|
|
200
|
+
connected?: boolean | null;
|
|
201
|
+
}
|
|
86
202
|
interface DuplicateSectionRequest {
|
|
87
203
|
/**
|
|
88
204
|
* ID of the section to be duplicated.
|
|
@@ -112,6 +228,130 @@ interface DuplicateSectionResponse {
|
|
|
112
228
|
*/
|
|
113
229
|
sectionId?: string[];
|
|
114
230
|
}
|
|
231
|
+
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
232
|
+
/**
|
|
233
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
234
|
+
* @format GUID
|
|
235
|
+
*/
|
|
236
|
+
metaSiteId?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
239
|
+
* @format GUID
|
|
240
|
+
*/
|
|
241
|
+
siteId?: string;
|
|
242
|
+
/** Invalidate by App */
|
|
243
|
+
app?: App;
|
|
244
|
+
/** Invalidate by page id */
|
|
245
|
+
page?: Page;
|
|
246
|
+
/** Invalidate by URI path */
|
|
247
|
+
uri?: URI;
|
|
248
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
249
|
+
file?: File;
|
|
250
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
251
|
+
customTag?: CustomTag;
|
|
252
|
+
/**
|
|
253
|
+
* tell us why you're invalidating the cache. You don't need to add your app name
|
|
254
|
+
* @maxLength 256
|
|
255
|
+
*/
|
|
256
|
+
reason?: string | null;
|
|
257
|
+
/** Is local DS */
|
|
258
|
+
localDc?: boolean;
|
|
259
|
+
hardPurge?: boolean;
|
|
260
|
+
}
|
|
261
|
+
/** @oneof */
|
|
262
|
+
interface InvalidateCacheGetByOneOf {
|
|
263
|
+
/**
|
|
264
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
265
|
+
* @format GUID
|
|
266
|
+
*/
|
|
267
|
+
metaSiteId?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
270
|
+
* @format GUID
|
|
271
|
+
*/
|
|
272
|
+
siteId?: string;
|
|
273
|
+
/** Invalidate by App */
|
|
274
|
+
app?: App;
|
|
275
|
+
/** Invalidate by page id */
|
|
276
|
+
page?: Page;
|
|
277
|
+
/** Invalidate by URI path */
|
|
278
|
+
uri?: URI;
|
|
279
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
280
|
+
file?: File;
|
|
281
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
282
|
+
customTag?: CustomTag;
|
|
283
|
+
}
|
|
284
|
+
interface App {
|
|
285
|
+
/**
|
|
286
|
+
* The AppDefId
|
|
287
|
+
* @minLength 1
|
|
288
|
+
*/
|
|
289
|
+
appDefId?: string;
|
|
290
|
+
/**
|
|
291
|
+
* The instance Id
|
|
292
|
+
* @format GUID
|
|
293
|
+
*/
|
|
294
|
+
instanceId?: string;
|
|
295
|
+
}
|
|
296
|
+
interface Page {
|
|
297
|
+
/**
|
|
298
|
+
* the msid the page is on
|
|
299
|
+
* @format GUID
|
|
300
|
+
*/
|
|
301
|
+
metaSiteId?: string;
|
|
302
|
+
/**
|
|
303
|
+
* Invalidate by Page ID
|
|
304
|
+
* @minLength 1
|
|
305
|
+
*/
|
|
306
|
+
pageId?: string;
|
|
307
|
+
}
|
|
308
|
+
interface URI {
|
|
309
|
+
/**
|
|
310
|
+
* the msid the URI is on
|
|
311
|
+
* @format GUID
|
|
312
|
+
*/
|
|
313
|
+
metaSiteId?: string;
|
|
314
|
+
/**
|
|
315
|
+
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
|
316
|
+
* @minLength 1
|
|
317
|
+
*/
|
|
318
|
+
uriPath?: string;
|
|
319
|
+
}
|
|
320
|
+
interface File {
|
|
321
|
+
/**
|
|
322
|
+
* the msid the file is related to
|
|
323
|
+
* @format GUID
|
|
324
|
+
*/
|
|
325
|
+
metaSiteId?: string;
|
|
326
|
+
/**
|
|
327
|
+
* Invalidate by filename (for media files such as PDFs)
|
|
328
|
+
* @minLength 1
|
|
329
|
+
* @maxLength 256
|
|
330
|
+
*/
|
|
331
|
+
fileName?: string;
|
|
332
|
+
}
|
|
333
|
+
interface CustomTag {
|
|
334
|
+
/**
|
|
335
|
+
* the msid the tag is related to
|
|
336
|
+
* @format GUID
|
|
337
|
+
*/
|
|
338
|
+
metaSiteId?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Tag to invalidate by
|
|
341
|
+
* @minLength 1
|
|
342
|
+
* @maxLength 256
|
|
343
|
+
*/
|
|
344
|
+
tag?: string;
|
|
345
|
+
}
|
|
346
|
+
interface DeleteLocationIdFromItems {
|
|
347
|
+
/** @format GUID */
|
|
348
|
+
businessLocationId?: string;
|
|
349
|
+
/**
|
|
350
|
+
* @format GUID
|
|
351
|
+
* @maxSize 1000
|
|
352
|
+
*/
|
|
353
|
+
itemIds?: string[];
|
|
354
|
+
}
|
|
115
355
|
interface CreateSectionRequest {
|
|
116
356
|
/** Section details. */
|
|
117
357
|
section: Section;
|
|
@@ -343,6 +583,188 @@ interface BulkDeleteSectionResult {
|
|
|
343
583
|
/** Metadata for deleted sections. */
|
|
344
584
|
itemMetadata?: ItemMetadata;
|
|
345
585
|
}
|
|
586
|
+
interface CloneSectionsRequest {
|
|
587
|
+
/**
|
|
588
|
+
* The MetaSiteId to clone from.
|
|
589
|
+
* @format GUID
|
|
590
|
+
*/
|
|
591
|
+
metaSiteId?: string;
|
|
592
|
+
}
|
|
593
|
+
interface CloneSectionsResponse {
|
|
594
|
+
}
|
|
595
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
596
|
+
createdEvent?: EntityCreatedEvent;
|
|
597
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
598
|
+
deletedEvent?: EntityDeletedEvent;
|
|
599
|
+
actionEvent?: ActionEvent;
|
|
600
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
601
|
+
id?: string;
|
|
602
|
+
/**
|
|
603
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
604
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
605
|
+
*/
|
|
606
|
+
entityFqdn?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
609
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
610
|
+
*/
|
|
611
|
+
slug?: string;
|
|
612
|
+
/** ID of the entity associated with the event. */
|
|
613
|
+
entityId?: string;
|
|
614
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
615
|
+
eventTime?: Date | null;
|
|
616
|
+
/**
|
|
617
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
618
|
+
* (for example, GDPR).
|
|
619
|
+
*/
|
|
620
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
621
|
+
/** If present, indicates the action that triggered the event. */
|
|
622
|
+
originatedFrom?: string | null;
|
|
623
|
+
/**
|
|
624
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
625
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
626
|
+
*/
|
|
627
|
+
entityEventSequence?: string | null;
|
|
628
|
+
}
|
|
629
|
+
/** @oneof */
|
|
630
|
+
interface DomainEventBodyOneOf {
|
|
631
|
+
createdEvent?: EntityCreatedEvent;
|
|
632
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
633
|
+
deletedEvent?: EntityDeletedEvent;
|
|
634
|
+
actionEvent?: ActionEvent;
|
|
635
|
+
}
|
|
636
|
+
interface EntityCreatedEvent {
|
|
637
|
+
entityAsJson?: string;
|
|
638
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
639
|
+
restoreInfo?: RestoreInfo;
|
|
640
|
+
}
|
|
641
|
+
interface RestoreInfo {
|
|
642
|
+
deletedDate?: Date | null;
|
|
643
|
+
}
|
|
644
|
+
interface EntityUpdatedEvent {
|
|
645
|
+
/**
|
|
646
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
647
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
648
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
649
|
+
*/
|
|
650
|
+
currentEntityAsJson?: string;
|
|
651
|
+
}
|
|
652
|
+
interface EntityDeletedEvent {
|
|
653
|
+
/** Entity that was deleted. */
|
|
654
|
+
deletedEntityAsJson?: string | null;
|
|
655
|
+
}
|
|
656
|
+
interface ActionEvent {
|
|
657
|
+
bodyAsJson?: string;
|
|
658
|
+
}
|
|
659
|
+
interface Empty {
|
|
660
|
+
}
|
|
661
|
+
interface BulkUpdateBusinessLocationIdRequest {
|
|
662
|
+
/**
|
|
663
|
+
* section ids
|
|
664
|
+
* @format GUID
|
|
665
|
+
* @minSize 1
|
|
666
|
+
* @maxSize 100
|
|
667
|
+
*/
|
|
668
|
+
sectionIds?: string[];
|
|
669
|
+
/**
|
|
670
|
+
* Business Location Id.
|
|
671
|
+
* @format GUID
|
|
672
|
+
*/
|
|
673
|
+
businessLocationId?: string | null;
|
|
674
|
+
}
|
|
675
|
+
interface BulkUpdateBusinessLocationIdResponse {
|
|
676
|
+
/**
|
|
677
|
+
* Information about the updated sections.
|
|
678
|
+
* @minSize 1
|
|
679
|
+
* @maxSize 100
|
|
680
|
+
*/
|
|
681
|
+
results?: BulkItemResult[];
|
|
682
|
+
}
|
|
683
|
+
interface BulkItemResult {
|
|
684
|
+
/** Metadata for item update. */
|
|
685
|
+
itemMetadata?: ItemMetadata;
|
|
686
|
+
}
|
|
687
|
+
interface SyncContentToMultilingualRequest {
|
|
688
|
+
/**
|
|
689
|
+
* MetaSite ID
|
|
690
|
+
* @format GUID
|
|
691
|
+
*/
|
|
692
|
+
metaSiteId?: string;
|
|
693
|
+
}
|
|
694
|
+
interface SyncContentToMultilingualResponse {
|
|
695
|
+
}
|
|
696
|
+
interface MessageEnvelope {
|
|
697
|
+
/**
|
|
698
|
+
* App instance ID.
|
|
699
|
+
* @format GUID
|
|
700
|
+
*/
|
|
701
|
+
instanceId?: string | null;
|
|
702
|
+
/**
|
|
703
|
+
* Event type.
|
|
704
|
+
* @maxLength 150
|
|
705
|
+
*/
|
|
706
|
+
eventType?: string;
|
|
707
|
+
/** The identification type and identity data. */
|
|
708
|
+
identity?: IdentificationData;
|
|
709
|
+
/** Stringify payload. */
|
|
710
|
+
data?: string;
|
|
711
|
+
}
|
|
712
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
713
|
+
/**
|
|
714
|
+
* ID of a site visitor that has not logged in to the site.
|
|
715
|
+
* @format GUID
|
|
716
|
+
*/
|
|
717
|
+
anonymousVisitorId?: string;
|
|
718
|
+
/**
|
|
719
|
+
* ID of a site visitor that has logged in to the site.
|
|
720
|
+
* @format GUID
|
|
721
|
+
*/
|
|
722
|
+
memberId?: string;
|
|
723
|
+
/**
|
|
724
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
725
|
+
* @format GUID
|
|
726
|
+
*/
|
|
727
|
+
wixUserId?: string;
|
|
728
|
+
/**
|
|
729
|
+
* ID of an app.
|
|
730
|
+
* @format GUID
|
|
731
|
+
*/
|
|
732
|
+
appId?: string;
|
|
733
|
+
/** @readonly */
|
|
734
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
735
|
+
}
|
|
736
|
+
/** @oneof */
|
|
737
|
+
interface IdentificationDataIdOneOf {
|
|
738
|
+
/**
|
|
739
|
+
* ID of a site visitor that has not logged in to the site.
|
|
740
|
+
* @format GUID
|
|
741
|
+
*/
|
|
742
|
+
anonymousVisitorId?: string;
|
|
743
|
+
/**
|
|
744
|
+
* ID of a site visitor that has logged in to the site.
|
|
745
|
+
* @format GUID
|
|
746
|
+
*/
|
|
747
|
+
memberId?: string;
|
|
748
|
+
/**
|
|
749
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
750
|
+
* @format GUID
|
|
751
|
+
*/
|
|
752
|
+
wixUserId?: string;
|
|
753
|
+
/**
|
|
754
|
+
* ID of an app.
|
|
755
|
+
* @format GUID
|
|
756
|
+
*/
|
|
757
|
+
appId?: string;
|
|
758
|
+
}
|
|
759
|
+
declare enum WebhookIdentityType {
|
|
760
|
+
UNKNOWN = "UNKNOWN",
|
|
761
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
762
|
+
MEMBER = "MEMBER",
|
|
763
|
+
WIX_USER = "WIX_USER",
|
|
764
|
+
APP = "APP"
|
|
765
|
+
}
|
|
766
|
+
/** @enumType */
|
|
767
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
346
768
|
|
|
347
769
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
348
770
|
getUrl: (context: any) => string;
|
|
@@ -373,4 +795,4 @@ declare function deleteSection(): __PublicMethodMetaInfo<'DELETE', {
|
|
|
373
795
|
}, DeleteSectionRequest$1, DeleteSectionRequest, DeleteSectionResponse$1, DeleteSectionResponse>;
|
|
374
796
|
declare function bulkDeleteSections(): __PublicMethodMetaInfo<'DELETE', {}, BulkDeleteSectionsRequest$1, BulkDeleteSectionsRequest, BulkDeleteSectionsResponse$1, BulkDeleteSectionsResponse>;
|
|
375
797
|
|
|
376
|
-
export { type __PublicMethodMetaInfo, bulkCreateSections, bulkDeleteSections, bulkUpdateSection, createSection, deleteSection, duplicateSection, getSection, listSections, querySections, updateSection };
|
|
798
|
+
export { type ActionEvent as ActionEventOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type AvailabilityAvailabilityTypeOptionsOneOf as AvailabilityAvailabilityTypeOptionsOneOfOriginal, type Availability as AvailabilityOriginal, AvailabilityType as AvailabilityTypeOriginal, type AvailabilityTypeWithLiterals as AvailabilityTypeWithLiteralsOriginal, type AvailableRange as AvailableRangeOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateSectionResult as BulkCreateSectionResultOriginal, type BulkCreateSectionsRequest as BulkCreateSectionsRequestOriginal, type BulkCreateSectionsResponse as BulkCreateSectionsResponseOriginal, type BulkDeleteSectionResult as BulkDeleteSectionResultOriginal, type BulkDeleteSectionsRequest as BulkDeleteSectionsRequestOriginal, type BulkDeleteSectionsResponse as BulkDeleteSectionsResponseOriginal, type BulkItemResult as BulkItemResultOriginal, type BulkSectionResult as BulkSectionResultOriginal, type BulkUpdateBusinessLocationIdRequest as BulkUpdateBusinessLocationIdRequestOriginal, type BulkUpdateBusinessLocationIdResponse as BulkUpdateBusinessLocationIdResponseOriginal, type BulkUpdateSectionRequest as BulkUpdateSectionRequestOriginal, type BulkUpdateSectionResponse as BulkUpdateSectionResponseOriginal, type CloneSectionsRequest as CloneSectionsRequestOriginal, type CloneSectionsResponse as CloneSectionsResponseOriginal, type CreateSectionRequest as CreateSectionRequestOriginal, type CreateSectionResponse as CreateSectionResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DayOfWeekAvailability as DayOfWeekAvailabilityOriginal, DayOfWeek as DayOfWeekOriginal, type DayOfWeekWithLiterals as DayOfWeekWithLiteralsOriginal, type DeleteLocationIdFromItems as DeleteLocationIdFromItemsOriginal, type DeleteSectionRequest as DeleteSectionRequestOriginal, type DeleteSectionResponse as DeleteSectionResponseOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateSectionRequest as DuplicateSectionRequestOriginal, type DuplicateSectionResponse as DuplicateSectionResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReferenceInfo as ExternalReferenceInfoOriginal, type File as FileOriginal, type GetSectionRequest as GetSectionRequestOriginal, type GetSectionResponse as GetSectionResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type ListSectionsRequest as ListSectionsRequestOriginal, type ListSectionsResponse as ListSectionsResponseOriginal, type MaskedSection as MaskedSectionOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type OrderSettings as OrderSettingsOriginal, type Page as PageOriginal, type QuerySectionsRequest as QuerySectionsRequestOriginal, type QuerySectionsResponse as QuerySectionsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type Section as SectionOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncContentToMultilingualRequest as SyncContentToMultilingualRequestOriginal, type SyncContentToMultilingualResponse as SyncContentToMultilingualResponseOriginal, type TimeOfDay as TimeOfDayOriginal, type TimeOfDayRange as TimeOfDayRangeOriginal, type TimestampRangesOptions as TimestampRangesOptionsOriginal, type URI as URIOriginal, type UpdateSectionRequest as UpdateSectionRequestOriginal, type UpdateSectionResponse as UpdateSectionResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type WeeklyScheduleOptions as WeeklyScheduleOptionsOriginal, type __PublicMethodMetaInfo, bulkCreateSections, bulkDeleteSections, bulkUpdateSection, createSection, deleteSection, duplicateSection, getSection, listSections, querySections, updateSection };
|
package/build/es/meta.mjs
CHANGED
|
@@ -203,6 +203,9 @@ function duplicateSection(payload) {
|
|
|
203
203
|
method: "POST",
|
|
204
204
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection",
|
|
205
205
|
packageName: PACKAGE_NAME,
|
|
206
|
+
migrationOptions: {
|
|
207
|
+
optInTransformResponse: true
|
|
208
|
+
},
|
|
206
209
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(
|
|
207
210
|
{ protoPath: "/v1/sections/{id}/duplicate", data: payload, host }
|
|
208
211
|
),
|
|
@@ -237,6 +240,9 @@ function createSection(payload) {
|
|
|
237
240
|
method: "POST",
|
|
238
241
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection",
|
|
239
242
|
packageName: PACKAGE_NAME,
|
|
243
|
+
migrationOptions: {
|
|
244
|
+
optInTransformResponse: true
|
|
245
|
+
},
|
|
240
246
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
241
247
|
{ protoPath: "/v1/sections", data: serializedData, host }
|
|
242
248
|
),
|
|
@@ -289,6 +295,9 @@ function bulkCreateSections(payload) {
|
|
|
289
295
|
method: "POST",
|
|
290
296
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections",
|
|
291
297
|
packageName: PACKAGE_NAME,
|
|
298
|
+
migrationOptions: {
|
|
299
|
+
optInTransformResponse: true
|
|
300
|
+
},
|
|
292
301
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
293
302
|
{ protoPath: "/v1/bulk/sections/create", data: serializedData, host }
|
|
294
303
|
),
|
|
@@ -323,6 +332,9 @@ function getSection(payload) {
|
|
|
323
332
|
method: "GET",
|
|
324
333
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection",
|
|
325
334
|
packageName: PACKAGE_NAME,
|
|
335
|
+
migrationOptions: {
|
|
336
|
+
optInTransformResponse: true
|
|
337
|
+
},
|
|
326
338
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
327
339
|
{ protoPath: "/v1/sections/{sectionId}", data: payload, host }
|
|
328
340
|
),
|
|
@@ -357,6 +369,9 @@ function listSections(payload) {
|
|
|
357
369
|
method: "GET",
|
|
358
370
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections",
|
|
359
371
|
packageName: PACKAGE_NAME,
|
|
372
|
+
migrationOptions: {
|
|
373
|
+
optInTransformResponse: true
|
|
374
|
+
},
|
|
360
375
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
361
376
|
{ protoPath: "/v1/sections", data: payload, host }
|
|
362
377
|
),
|
|
@@ -391,6 +406,9 @@ function querySections(payload) {
|
|
|
391
406
|
method: "POST",
|
|
392
407
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections",
|
|
393
408
|
packageName: PACKAGE_NAME,
|
|
409
|
+
migrationOptions: {
|
|
410
|
+
optInTransformResponse: true
|
|
411
|
+
},
|
|
394
412
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
395
413
|
{ protoPath: "/v1/sections/query", data: payload, host }
|
|
396
414
|
),
|
|
@@ -447,6 +465,9 @@ function updateSection(payload) {
|
|
|
447
465
|
method: "PATCH",
|
|
448
466
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection",
|
|
449
467
|
packageName: PACKAGE_NAME,
|
|
468
|
+
migrationOptions: {
|
|
469
|
+
optInTransformResponse: true
|
|
470
|
+
},
|
|
450
471
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
451
472
|
{ protoPath: "/v1/sections/{section.id}", data: serializedData, host }
|
|
452
473
|
),
|
|
@@ -503,6 +524,9 @@ function bulkUpdateSection(payload) {
|
|
|
503
524
|
method: "POST",
|
|
504
525
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection",
|
|
505
526
|
packageName: PACKAGE_NAME,
|
|
527
|
+
migrationOptions: {
|
|
528
|
+
optInTransformResponse: true
|
|
529
|
+
},
|
|
506
530
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
507
531
|
{ protoPath: "/v1/bulk/sections/update", data: serializedData, host }
|
|
508
532
|
),
|
|
@@ -537,6 +561,9 @@ function deleteSection(payload) {
|
|
|
537
561
|
method: "DELETE",
|
|
538
562
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection",
|
|
539
563
|
packageName: PACKAGE_NAME,
|
|
564
|
+
migrationOptions: {
|
|
565
|
+
optInTransformResponse: true
|
|
566
|
+
},
|
|
540
567
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
541
568
|
{ protoPath: "/v1/sections/{sectionId}", data: payload, host }
|
|
542
569
|
),
|
|
@@ -553,6 +580,9 @@ function bulkDeleteSections(payload) {
|
|
|
553
580
|
method: "DELETE",
|
|
554
581
|
methodFqn: "com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections",
|
|
555
582
|
packageName: PACKAGE_NAME,
|
|
583
|
+
migrationOptions: {
|
|
584
|
+
optInTransformResponse: true
|
|
585
|
+
},
|
|
556
586
|
url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(
|
|
557
587
|
{ protoPath: "/v1/bulk/sections/delete", data: payload, host }
|
|
558
588
|
),
|
|
@@ -563,6 +593,38 @@ function bulkDeleteSections(payload) {
|
|
|
563
593
|
return __bulkDeleteSections;
|
|
564
594
|
}
|
|
565
595
|
|
|
596
|
+
// src/restaurants-menus-v1-section-sections.types.ts
|
|
597
|
+
var AvailabilityType = /* @__PURE__ */ ((AvailabilityType2) => {
|
|
598
|
+
AvailabilityType2["UNSPECIFIED_AVAILABILITY_OPTION"] = "UNSPECIFIED_AVAILABILITY_OPTION";
|
|
599
|
+
AvailabilityType2["ALWAYS_AVAILABLE"] = "ALWAYS_AVAILABLE";
|
|
600
|
+
AvailabilityType2["WEEKLY_SCHEDULE"] = "WEEKLY_SCHEDULE";
|
|
601
|
+
AvailabilityType2["TIMESTAMP_RANGES"] = "TIMESTAMP_RANGES";
|
|
602
|
+
return AvailabilityType2;
|
|
603
|
+
})(AvailabilityType || {});
|
|
604
|
+
var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
605
|
+
DayOfWeek2["MON"] = "MON";
|
|
606
|
+
DayOfWeek2["TUE"] = "TUE";
|
|
607
|
+
DayOfWeek2["WED"] = "WED";
|
|
608
|
+
DayOfWeek2["THU"] = "THU";
|
|
609
|
+
DayOfWeek2["FRI"] = "FRI";
|
|
610
|
+
DayOfWeek2["SAT"] = "SAT";
|
|
611
|
+
DayOfWeek2["SUN"] = "SUN";
|
|
612
|
+
return DayOfWeek2;
|
|
613
|
+
})(DayOfWeek || {});
|
|
614
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
615
|
+
SortOrder2["ASC"] = "ASC";
|
|
616
|
+
SortOrder2["DESC"] = "DESC";
|
|
617
|
+
return SortOrder2;
|
|
618
|
+
})(SortOrder || {});
|
|
619
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
620
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
621
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
622
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
623
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
624
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
625
|
+
return WebhookIdentityType2;
|
|
626
|
+
})(WebhookIdentityType || {});
|
|
627
|
+
|
|
566
628
|
// src/restaurants-menus-v1-section-sections.meta.ts
|
|
567
629
|
function duplicateSection2() {
|
|
568
630
|
const payload = { id: ":id" };
|
|
@@ -745,6 +807,10 @@ function bulkDeleteSections2() {
|
|
|
745
807
|
};
|
|
746
808
|
}
|
|
747
809
|
export {
|
|
810
|
+
AvailabilityType as AvailabilityTypeOriginal,
|
|
811
|
+
DayOfWeek as DayOfWeekOriginal,
|
|
812
|
+
SortOrder as SortOrderOriginal,
|
|
813
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
748
814
|
bulkCreateSections2 as bulkCreateSections,
|
|
749
815
|
bulkDeleteSections2 as bulkDeleteSections,
|
|
750
816
|
bulkUpdateSection2 as bulkUpdateSection,
|