@wix/auto_sdk_restaurants_menus 1.0.69 → 1.0.71
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 +18 -18
- package/build/cjs/index.js +86 -86
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +224 -224
- package/build/cjs/index.typings.js +59 -59
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +183 -183
- package/build/cjs/meta.js +44 -44
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +12 -12
- package/build/cjs/schemas.js +16 -16
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +18 -18
- package/build/es/index.mjs +86 -86
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +224 -224
- package/build/es/index.typings.mjs +59 -59
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +183 -183
- package/build/es/meta.mjs +44 -44
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +12 -12
- package/build/es/schemas.mjs +16 -16
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -18
- package/build/internal/cjs/index.js +86 -86
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +224 -224
- package/build/internal/cjs/index.typings.js +59 -59
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +183 -183
- package/build/internal/cjs/meta.js +44 -44
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +12 -12
- package/build/internal/cjs/schemas.js +16 -16
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +18 -18
- package/build/internal/es/index.mjs +86 -86
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +224 -224
- package/build/internal/es/index.typings.mjs +59 -59
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +183 -183
- package/build/internal/es/meta.mjs +44 -44
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +12 -12
- package/build/internal/es/schemas.mjs +16 -16
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateMenuRequest as CreateMenuRequest$1, CreateMenuResponse as CreateMenuResponse$1, BulkCreateMenusRequest as BulkCreateMenusRequest$1, BulkCreateMenusResponse as BulkCreateMenusResponse$1, GetMenuRequest as GetMenuRequest$1, GetMenuResponse as GetMenuResponse$1, ListMenusRequest as ListMenusRequest$1, ListMenusResponse as ListMenusResponse$1, QueryMenusRequest as QueryMenusRequest$1, QueryMenusResponse as QueryMenusResponse$1, UpdateMenuRequest as UpdateMenuRequest$1, UpdateMenuResponse as UpdateMenuResponse$1, BulkUpdateMenuRequest as BulkUpdateMenuRequest$1, BulkUpdateMenuResponse as BulkUpdateMenuResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeleteMenuRequest as DeleteMenuRequest$1, DeleteMenuResponse as DeleteMenuResponse$1,
|
|
1
|
+
import { DuplicateMenuRequest as DuplicateMenuRequest$1, DuplicateMenuResponse as DuplicateMenuResponse$1, CreateMenuRequest as CreateMenuRequest$1, CreateMenuResponse as CreateMenuResponse$1, BulkCreateMenusRequest as BulkCreateMenusRequest$1, BulkCreateMenusResponse as BulkCreateMenusResponse$1, GetMenuRequest as GetMenuRequest$1, GetMenuResponse as GetMenuResponse$1, ListMenusRequest as ListMenusRequest$1, ListMenusResponse as ListMenusResponse$1, QueryMenusRequest as QueryMenusRequest$1, QueryMenusResponse as QueryMenusResponse$1, UpdateMenuRequest as UpdateMenuRequest$1, UpdateMenuResponse as UpdateMenuResponse$1, BulkUpdateMenuRequest as BulkUpdateMenuRequest$1, BulkUpdateMenuResponse as BulkUpdateMenuResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeleteMenuRequest as DeleteMenuRequest$1, DeleteMenuResponse as DeleteMenuResponse$1, GetMenuSiteUrlRequest as GetMenuSiteUrlRequest$1, GetMenuSiteUrlResponse as GetMenuSiteUrlResponse$1, QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponse$1 } from './index.typings.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
interface Menu {
|
|
@@ -164,6 +164,185 @@ interface ExternalReferenceInfo {
|
|
|
164
164
|
/** Whether the connection to the external system is currently active. */
|
|
165
165
|
connected?: boolean | null;
|
|
166
166
|
}
|
|
167
|
+
interface DuplicateMenuRequest {
|
|
168
|
+
/**
|
|
169
|
+
* Menu id to be duplicated.
|
|
170
|
+
* @format GUID
|
|
171
|
+
*/
|
|
172
|
+
id: string;
|
|
173
|
+
/**
|
|
174
|
+
* Business location ids to duplicate the menu to.
|
|
175
|
+
* @format GUID
|
|
176
|
+
* @maxSize 100
|
|
177
|
+
*/
|
|
178
|
+
businessLocationIds?: string[] | null;
|
|
179
|
+
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
180
|
+
duplicateSubEntities?: boolean | null;
|
|
181
|
+
/**
|
|
182
|
+
* The new name of the duplicated menu.
|
|
183
|
+
* @maxLength 500
|
|
184
|
+
*/
|
|
185
|
+
menuName?: string | null;
|
|
186
|
+
}
|
|
187
|
+
interface DuplicateMenuResponse {
|
|
188
|
+
/** @format GUID */
|
|
189
|
+
menuIds?: string[];
|
|
190
|
+
}
|
|
191
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
192
|
+
createdEvent?: EntityCreatedEvent;
|
|
193
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
194
|
+
deletedEvent?: EntityDeletedEvent;
|
|
195
|
+
actionEvent?: ActionEvent;
|
|
196
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
197
|
+
id?: string;
|
|
198
|
+
/**
|
|
199
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
200
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
201
|
+
*/
|
|
202
|
+
entityFqdn?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
205
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
206
|
+
*/
|
|
207
|
+
slug?: string;
|
|
208
|
+
/** ID of the entity associated with the event. */
|
|
209
|
+
entityId?: string;
|
|
210
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
211
|
+
eventTime?: Date | null;
|
|
212
|
+
/**
|
|
213
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
214
|
+
* (for example, GDPR).
|
|
215
|
+
*/
|
|
216
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
217
|
+
/** If present, indicates the action that triggered the event. */
|
|
218
|
+
originatedFrom?: string | null;
|
|
219
|
+
/**
|
|
220
|
+
* 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.
|
|
221
|
+
* 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.
|
|
222
|
+
*/
|
|
223
|
+
entityEventSequence?: string | null;
|
|
224
|
+
}
|
|
225
|
+
/** @oneof */
|
|
226
|
+
interface DomainEventBodyOneOf {
|
|
227
|
+
createdEvent?: EntityCreatedEvent;
|
|
228
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
229
|
+
deletedEvent?: EntityDeletedEvent;
|
|
230
|
+
actionEvent?: ActionEvent;
|
|
231
|
+
}
|
|
232
|
+
interface EntityCreatedEvent {
|
|
233
|
+
entityAsJson?: string;
|
|
234
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
235
|
+
restoreInfo?: RestoreInfo;
|
|
236
|
+
}
|
|
237
|
+
interface RestoreInfo {
|
|
238
|
+
deletedDate?: Date | null;
|
|
239
|
+
}
|
|
240
|
+
interface EntityUpdatedEvent {
|
|
241
|
+
/**
|
|
242
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
243
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
244
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
245
|
+
*/
|
|
246
|
+
currentEntityAsJson?: string;
|
|
247
|
+
}
|
|
248
|
+
interface EntityDeletedEvent {
|
|
249
|
+
/** Entity that was deleted. */
|
|
250
|
+
deletedEntityAsJson?: string | null;
|
|
251
|
+
}
|
|
252
|
+
interface ActionEvent {
|
|
253
|
+
bodyAsJson?: string;
|
|
254
|
+
}
|
|
255
|
+
interface MessageEnvelope {
|
|
256
|
+
/**
|
|
257
|
+
* App instance ID.
|
|
258
|
+
* @format GUID
|
|
259
|
+
*/
|
|
260
|
+
instanceId?: string | null;
|
|
261
|
+
/**
|
|
262
|
+
* Event type.
|
|
263
|
+
* @maxLength 150
|
|
264
|
+
*/
|
|
265
|
+
eventType?: string;
|
|
266
|
+
/** The identification type and identity data. */
|
|
267
|
+
identity?: IdentificationData;
|
|
268
|
+
/** Stringify payload. */
|
|
269
|
+
data?: string;
|
|
270
|
+
/** Details related to the account */
|
|
271
|
+
accountInfo?: AccountInfo;
|
|
272
|
+
}
|
|
273
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
274
|
+
/**
|
|
275
|
+
* ID of a site visitor that has not logged in to the site.
|
|
276
|
+
* @format GUID
|
|
277
|
+
*/
|
|
278
|
+
anonymousVisitorId?: string;
|
|
279
|
+
/**
|
|
280
|
+
* ID of a site visitor that has logged in to the site.
|
|
281
|
+
* @format GUID
|
|
282
|
+
*/
|
|
283
|
+
memberId?: string;
|
|
284
|
+
/**
|
|
285
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
286
|
+
* @format GUID
|
|
287
|
+
*/
|
|
288
|
+
wixUserId?: string;
|
|
289
|
+
/**
|
|
290
|
+
* ID of an app.
|
|
291
|
+
* @format GUID
|
|
292
|
+
*/
|
|
293
|
+
appId?: string;
|
|
294
|
+
/** @readonly */
|
|
295
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
296
|
+
}
|
|
297
|
+
/** @oneof */
|
|
298
|
+
interface IdentificationDataIdOneOf {
|
|
299
|
+
/**
|
|
300
|
+
* ID of a site visitor that has not logged in to the site.
|
|
301
|
+
* @format GUID
|
|
302
|
+
*/
|
|
303
|
+
anonymousVisitorId?: string;
|
|
304
|
+
/**
|
|
305
|
+
* ID of a site visitor that has logged in to the site.
|
|
306
|
+
* @format GUID
|
|
307
|
+
*/
|
|
308
|
+
memberId?: string;
|
|
309
|
+
/**
|
|
310
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
311
|
+
* @format GUID
|
|
312
|
+
*/
|
|
313
|
+
wixUserId?: string;
|
|
314
|
+
/**
|
|
315
|
+
* ID of an app.
|
|
316
|
+
* @format GUID
|
|
317
|
+
*/
|
|
318
|
+
appId?: string;
|
|
319
|
+
}
|
|
320
|
+
declare enum WebhookIdentityType {
|
|
321
|
+
UNKNOWN = "UNKNOWN",
|
|
322
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
323
|
+
MEMBER = "MEMBER",
|
|
324
|
+
WIX_USER = "WIX_USER",
|
|
325
|
+
APP = "APP"
|
|
326
|
+
}
|
|
327
|
+
/** @enumType */
|
|
328
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
329
|
+
interface AccountInfo {
|
|
330
|
+
/**
|
|
331
|
+
* ID of the Wix account associated with the event.
|
|
332
|
+
* @format GUID
|
|
333
|
+
*/
|
|
334
|
+
accountId?: string | null;
|
|
335
|
+
/**
|
|
336
|
+
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
337
|
+
* @format GUID
|
|
338
|
+
*/
|
|
339
|
+
parentAccountId?: string | null;
|
|
340
|
+
/**
|
|
341
|
+
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
342
|
+
* @format GUID
|
|
343
|
+
*/
|
|
344
|
+
siteId?: string | null;
|
|
345
|
+
}
|
|
167
346
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
168
347
|
/**
|
|
169
348
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -583,70 +762,6 @@ interface CloneMenusRequest {
|
|
|
583
762
|
}
|
|
584
763
|
interface CloneMenusResponse {
|
|
585
764
|
}
|
|
586
|
-
interface DomainEvent extends DomainEventBodyOneOf {
|
|
587
|
-
createdEvent?: EntityCreatedEvent;
|
|
588
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
589
|
-
deletedEvent?: EntityDeletedEvent;
|
|
590
|
-
actionEvent?: ActionEvent;
|
|
591
|
-
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
592
|
-
id?: string;
|
|
593
|
-
/**
|
|
594
|
-
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
595
|
-
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
596
|
-
*/
|
|
597
|
-
entityFqdn?: string;
|
|
598
|
-
/**
|
|
599
|
-
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
600
|
-
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
601
|
-
*/
|
|
602
|
-
slug?: string;
|
|
603
|
-
/** ID of the entity associated with the event. */
|
|
604
|
-
entityId?: string;
|
|
605
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
606
|
-
eventTime?: Date | null;
|
|
607
|
-
/**
|
|
608
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
609
|
-
* (for example, GDPR).
|
|
610
|
-
*/
|
|
611
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
612
|
-
/** If present, indicates the action that triggered the event. */
|
|
613
|
-
originatedFrom?: string | null;
|
|
614
|
-
/**
|
|
615
|
-
* 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.
|
|
616
|
-
* 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.
|
|
617
|
-
*/
|
|
618
|
-
entityEventSequence?: string | null;
|
|
619
|
-
}
|
|
620
|
-
/** @oneof */
|
|
621
|
-
interface DomainEventBodyOneOf {
|
|
622
|
-
createdEvent?: EntityCreatedEvent;
|
|
623
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
624
|
-
deletedEvent?: EntityDeletedEvent;
|
|
625
|
-
actionEvent?: ActionEvent;
|
|
626
|
-
}
|
|
627
|
-
interface EntityCreatedEvent {
|
|
628
|
-
entityAsJson?: string;
|
|
629
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
630
|
-
restoreInfo?: RestoreInfo;
|
|
631
|
-
}
|
|
632
|
-
interface RestoreInfo {
|
|
633
|
-
deletedDate?: Date | null;
|
|
634
|
-
}
|
|
635
|
-
interface EntityUpdatedEvent {
|
|
636
|
-
/**
|
|
637
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
638
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
639
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
640
|
-
*/
|
|
641
|
-
currentEntityAsJson?: string;
|
|
642
|
-
}
|
|
643
|
-
interface EntityDeletedEvent {
|
|
644
|
-
/** Entity that was deleted. */
|
|
645
|
-
deletedEntityAsJson?: string | null;
|
|
646
|
-
}
|
|
647
|
-
interface ActionEvent {
|
|
648
|
-
bodyAsJson?: string;
|
|
649
|
-
}
|
|
650
765
|
interface Empty {
|
|
651
766
|
}
|
|
652
767
|
interface SyncContentToMultilingualRequest {
|
|
@@ -658,121 +773,6 @@ interface SyncContentToMultilingualRequest {
|
|
|
658
773
|
}
|
|
659
774
|
interface SyncContentToMultilingualResponse {
|
|
660
775
|
}
|
|
661
|
-
interface MessageEnvelope {
|
|
662
|
-
/**
|
|
663
|
-
* App instance ID.
|
|
664
|
-
* @format GUID
|
|
665
|
-
*/
|
|
666
|
-
instanceId?: string | null;
|
|
667
|
-
/**
|
|
668
|
-
* Event type.
|
|
669
|
-
* @maxLength 150
|
|
670
|
-
*/
|
|
671
|
-
eventType?: string;
|
|
672
|
-
/** The identification type and identity data. */
|
|
673
|
-
identity?: IdentificationData;
|
|
674
|
-
/** Stringify payload. */
|
|
675
|
-
data?: string;
|
|
676
|
-
/** Details related to the account */
|
|
677
|
-
accountInfo?: AccountInfo;
|
|
678
|
-
}
|
|
679
|
-
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
680
|
-
/**
|
|
681
|
-
* ID of a site visitor that has not logged in to the site.
|
|
682
|
-
* @format GUID
|
|
683
|
-
*/
|
|
684
|
-
anonymousVisitorId?: string;
|
|
685
|
-
/**
|
|
686
|
-
* ID of a site visitor that has logged in to the site.
|
|
687
|
-
* @format GUID
|
|
688
|
-
*/
|
|
689
|
-
memberId?: string;
|
|
690
|
-
/**
|
|
691
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
692
|
-
* @format GUID
|
|
693
|
-
*/
|
|
694
|
-
wixUserId?: string;
|
|
695
|
-
/**
|
|
696
|
-
* ID of an app.
|
|
697
|
-
* @format GUID
|
|
698
|
-
*/
|
|
699
|
-
appId?: string;
|
|
700
|
-
/** @readonly */
|
|
701
|
-
identityType?: WebhookIdentityTypeWithLiterals;
|
|
702
|
-
}
|
|
703
|
-
/** @oneof */
|
|
704
|
-
interface IdentificationDataIdOneOf {
|
|
705
|
-
/**
|
|
706
|
-
* ID of a site visitor that has not logged in to the site.
|
|
707
|
-
* @format GUID
|
|
708
|
-
*/
|
|
709
|
-
anonymousVisitorId?: string;
|
|
710
|
-
/**
|
|
711
|
-
* ID of a site visitor that has logged in to the site.
|
|
712
|
-
* @format GUID
|
|
713
|
-
*/
|
|
714
|
-
memberId?: string;
|
|
715
|
-
/**
|
|
716
|
-
* ID of a Wix user (site owner, contributor, etc.).
|
|
717
|
-
* @format GUID
|
|
718
|
-
*/
|
|
719
|
-
wixUserId?: string;
|
|
720
|
-
/**
|
|
721
|
-
* ID of an app.
|
|
722
|
-
* @format GUID
|
|
723
|
-
*/
|
|
724
|
-
appId?: string;
|
|
725
|
-
}
|
|
726
|
-
declare enum WebhookIdentityType {
|
|
727
|
-
UNKNOWN = "UNKNOWN",
|
|
728
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
729
|
-
MEMBER = "MEMBER",
|
|
730
|
-
WIX_USER = "WIX_USER",
|
|
731
|
-
APP = "APP"
|
|
732
|
-
}
|
|
733
|
-
/** @enumType */
|
|
734
|
-
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
735
|
-
interface AccountInfo {
|
|
736
|
-
/**
|
|
737
|
-
* ID of the Wix account associated with the event.
|
|
738
|
-
* @format GUID
|
|
739
|
-
*/
|
|
740
|
-
accountId?: string | null;
|
|
741
|
-
/**
|
|
742
|
-
* ID of the parent Wix account. Only included when accountId belongs to a child account.
|
|
743
|
-
* @format GUID
|
|
744
|
-
*/
|
|
745
|
-
parentAccountId?: string | null;
|
|
746
|
-
/**
|
|
747
|
-
* ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
|
|
748
|
-
* @format GUID
|
|
749
|
-
*/
|
|
750
|
-
siteId?: string | null;
|
|
751
|
-
}
|
|
752
|
-
interface DuplicateMenuRequest {
|
|
753
|
-
/**
|
|
754
|
-
* Menu id to be duplicated.
|
|
755
|
-
* @format GUID
|
|
756
|
-
*/
|
|
757
|
-
id: string;
|
|
758
|
-
/**
|
|
759
|
-
* Business location ids to duplicate the menu to.
|
|
760
|
-
* @format GUID
|
|
761
|
-
* @maxSize 100
|
|
762
|
-
*/
|
|
763
|
-
businessLocationIds?: string[] | null;
|
|
764
|
-
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
765
|
-
duplicateSubEntities?: boolean | null;
|
|
766
|
-
/**
|
|
767
|
-
* The new name of the duplicated menu.
|
|
768
|
-
* @maxLength 500
|
|
769
|
-
*/
|
|
770
|
-
menuName?: string | null;
|
|
771
|
-
}
|
|
772
|
-
interface DuplicateMenuResponse {
|
|
773
|
-
/** @format GUID */
|
|
774
|
-
menuIds?: string[];
|
|
775
|
-
}
|
|
776
776
|
interface GetMenuSiteUrlRequest {
|
|
777
777
|
/**
|
|
778
778
|
* Menu ID.
|
|
@@ -814,6 +814,9 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
|
|
|
814
814
|
__responseType: Q;
|
|
815
815
|
__originalResponseType: R;
|
|
816
816
|
};
|
|
817
|
+
declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
|
|
818
|
+
id: string;
|
|
819
|
+
}, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
|
|
817
820
|
declare function createMenu(): __PublicMethodMetaInfo<'POST', {}, CreateMenuRequest$1, CreateMenuRequest, CreateMenuResponse$1, CreateMenuResponse>;
|
|
818
821
|
declare function bulkCreateMenus(): __PublicMethodMetaInfo<'POST', {}, BulkCreateMenusRequest$1, BulkCreateMenusRequest, BulkCreateMenusResponse$1, BulkCreateMenusResponse>;
|
|
819
822
|
declare function getMenu(): __PublicMethodMetaInfo<'GET', {
|
|
@@ -831,9 +834,6 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
|
|
|
831
834
|
declare function deleteMenu(): __PublicMethodMetaInfo<'DELETE', {
|
|
832
835
|
menuId: string;
|
|
833
836
|
}, DeleteMenuRequest$1, DeleteMenuRequest, DeleteMenuResponse$1, DeleteMenuResponse>;
|
|
834
|
-
declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
|
|
835
|
-
id: string;
|
|
836
|
-
}, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
|
|
837
837
|
declare function getMenuSiteUrl(): __PublicMethodMetaInfo<'GET', {
|
|
838
838
|
id: string;
|
|
839
839
|
}, GetMenuSiteUrlRequest$1, GetMenuSiteUrlRequest, GetMenuSiteUrlResponse$1, GetMenuSiteUrlResponse>;
|
package/build/cjs/meta.js
CHANGED
|
@@ -139,7 +139,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaura
|
|
|
139
139
|
};
|
|
140
140
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
|
|
143
143
|
const domainToMappings = {
|
|
144
144
|
"manage._base_domain_": [
|
|
145
145
|
{
|
|
@@ -234,7 +234,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaur
|
|
|
234
234
|
};
|
|
235
235
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
|
|
238
238
|
const domainToMappings = {
|
|
239
239
|
"manage._base_domain_": [
|
|
240
240
|
{
|
|
@@ -330,6 +330,25 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
|
|
|
330
330
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
331
331
|
}
|
|
332
332
|
var PACKAGE_NAME = "@wix/auto_sdk_restaurants_menus";
|
|
333
|
+
function duplicateMenu(payload) {
|
|
334
|
+
function __duplicateMenu({ host }) {
|
|
335
|
+
const metadata = {
|
|
336
|
+
entityFqdn: "wix.restaurants.menus.v1.menu",
|
|
337
|
+
method: "POST",
|
|
338
|
+
methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
|
|
339
|
+
packageName: PACKAGE_NAME,
|
|
340
|
+
migrationOptions: {
|
|
341
|
+
optInTransformResponse: true
|
|
342
|
+
},
|
|
343
|
+
url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
|
|
344
|
+
{ protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
|
|
345
|
+
),
|
|
346
|
+
data: payload
|
|
347
|
+
};
|
|
348
|
+
return metadata;
|
|
349
|
+
}
|
|
350
|
+
return __duplicateMenu;
|
|
351
|
+
}
|
|
333
352
|
function createMenu(payload) {
|
|
334
353
|
function __createMenu({ host }) {
|
|
335
354
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -637,25 +656,6 @@ function deleteMenu(payload) {
|
|
|
637
656
|
}
|
|
638
657
|
return __deleteMenu;
|
|
639
658
|
}
|
|
640
|
-
function duplicateMenu(payload) {
|
|
641
|
-
function __duplicateMenu({ host }) {
|
|
642
|
-
const metadata = {
|
|
643
|
-
entityFqdn: "wix.restaurants.menus.v1.menu",
|
|
644
|
-
method: "POST",
|
|
645
|
-
methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
|
|
646
|
-
packageName: PACKAGE_NAME,
|
|
647
|
-
migrationOptions: {
|
|
648
|
-
optInTransformResponse: true
|
|
649
|
-
},
|
|
650
|
-
url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
|
|
651
|
-
{ protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
|
|
652
|
-
),
|
|
653
|
-
data: payload
|
|
654
|
-
};
|
|
655
|
-
return metadata;
|
|
656
|
-
}
|
|
657
|
-
return __duplicateMenu;
|
|
658
|
-
}
|
|
659
659
|
function getMenuSiteUrl(payload) {
|
|
660
660
|
function __getMenuSiteUrl({ host }) {
|
|
661
661
|
const metadata = {
|
|
@@ -696,11 +696,6 @@ function queryMenusSiteUrl(payload) {
|
|
|
696
696
|
}
|
|
697
697
|
|
|
698
698
|
// src/restaurants-menus-v1-menu-menus.types.ts
|
|
699
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
700
|
-
SortOrder2["ASC"] = "ASC";
|
|
701
|
-
SortOrder2["DESC"] = "DESC";
|
|
702
|
-
return SortOrder2;
|
|
703
|
-
})(SortOrder || {});
|
|
704
699
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
705
700
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
706
701
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -709,8 +704,31 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
709
704
|
WebhookIdentityType2["APP"] = "APP";
|
|
710
705
|
return WebhookIdentityType2;
|
|
711
706
|
})(WebhookIdentityType || {});
|
|
707
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
708
|
+
SortOrder2["ASC"] = "ASC";
|
|
709
|
+
SortOrder2["DESC"] = "DESC";
|
|
710
|
+
return SortOrder2;
|
|
711
|
+
})(SortOrder || {});
|
|
712
712
|
|
|
713
713
|
// src/restaurants-menus-v1-menu-menus.meta.ts
|
|
714
|
+
function duplicateMenu2() {
|
|
715
|
+
const payload = { id: ":id" };
|
|
716
|
+
const getRequestOptions = duplicateMenu(payload);
|
|
717
|
+
const getUrl = (context) => {
|
|
718
|
+
const { url } = getRequestOptions(context);
|
|
719
|
+
return url;
|
|
720
|
+
};
|
|
721
|
+
return {
|
|
722
|
+
getUrl,
|
|
723
|
+
httpMethod: "POST",
|
|
724
|
+
path: "/v1/menus/{id}/duplicate",
|
|
725
|
+
pathParams: { id: "id" },
|
|
726
|
+
__requestType: null,
|
|
727
|
+
__originalRequestType: null,
|
|
728
|
+
__responseType: null,
|
|
729
|
+
__originalResponseType: null
|
|
730
|
+
};
|
|
731
|
+
}
|
|
714
732
|
function createMenu2() {
|
|
715
733
|
const payload = {};
|
|
716
734
|
const getRequestOptions = createMenu(payload);
|
|
@@ -873,24 +891,6 @@ function deleteMenu2() {
|
|
|
873
891
|
__originalResponseType: null
|
|
874
892
|
};
|
|
875
893
|
}
|
|
876
|
-
function duplicateMenu2() {
|
|
877
|
-
const payload = { id: ":id" };
|
|
878
|
-
const getRequestOptions = duplicateMenu(payload);
|
|
879
|
-
const getUrl = (context) => {
|
|
880
|
-
const { url } = getRequestOptions(context);
|
|
881
|
-
return url;
|
|
882
|
-
};
|
|
883
|
-
return {
|
|
884
|
-
getUrl,
|
|
885
|
-
httpMethod: "POST",
|
|
886
|
-
path: "/v1/menus/{id}/duplicate",
|
|
887
|
-
pathParams: { id: "id" },
|
|
888
|
-
__requestType: null,
|
|
889
|
-
__originalRequestType: null,
|
|
890
|
-
__responseType: null,
|
|
891
|
-
__originalResponseType: null
|
|
892
|
-
};
|
|
893
|
-
}
|
|
894
894
|
function getMenuSiteUrl2() {
|
|
895
895
|
const payload = { id: ":id" };
|
|
896
896
|
const getRequestOptions = getMenuSiteUrl(payload);
|