@wix/auto_sdk_restaurants_menus 1.0.96 → 1.0.98
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 +25 -25
- package/build/cjs/index.js +198 -198
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +283 -177
- package/build/cjs/index.typings.js +173 -173
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +243 -137
- package/build/cjs/meta.js +146 -146
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +25 -25
- package/build/es/index.mjs +198 -198
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +283 -177
- package/build/es/index.typings.mjs +173 -173
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +243 -137
- package/build/es/meta.mjs +146 -146
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +25 -25
- package/build/internal/cjs/index.typings.d.ts +297 -191
- package/build/internal/cjs/meta.d.ts +257 -151
- package/build/internal/es/index.d.mts +25 -25
- package/build/internal/es/index.typings.d.mts +297 -191
- package/build/internal/es/meta.d.mts +257 -151
- package/package.json +3 -3
|
@@ -266,29 +266,193 @@ interface ExternalReferenceInfo {
|
|
|
266
266
|
/** Whether the connection to the external system is currently active. */
|
|
267
267
|
connected?: boolean | null;
|
|
268
268
|
}
|
|
269
|
-
interface
|
|
269
|
+
interface QueryMenuExportRowsRequest {
|
|
270
270
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
271
|
+
* Filter: `{"menuId": "<GUID>"}` or `{"menuId": {"$eq": "<GUID>"}}`, required on the first page; a later page may omit
|
|
272
|
+
* it, and if it sends it, it must name the cursor's menu. Cursor paging only, at most 500 rows
|
|
273
|
+
* per page (default 100); a sort fails with `INVALID_MENU_EXPORT_QUERY`. This is the same wire format as the fed-infra
|
|
274
|
+
* export service's `ExportQueryV2`: filter 1, sort 2, cursor paging 6.
|
|
273
275
|
*/
|
|
274
|
-
|
|
276
|
+
query?: CursorQuery;
|
|
277
|
+
}
|
|
278
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
279
|
+
/** 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`. */
|
|
280
|
+
cursorPaging?: CursorPaging;
|
|
275
281
|
/**
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
282
|
+
* Filter object in the following format:
|
|
283
|
+
* `"filter" : {
|
|
284
|
+
* "fieldName1": "value1",
|
|
285
|
+
* "fieldName2":{"$operator":"value2"}
|
|
286
|
+
* }`
|
|
287
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
279
288
|
*/
|
|
280
|
-
|
|
281
|
-
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
282
|
-
duplicateSubEntities?: boolean | null;
|
|
289
|
+
filter?: Record<string, any> | null;
|
|
283
290
|
/**
|
|
284
|
-
*
|
|
285
|
-
*
|
|
291
|
+
* Sort object in the following format:
|
|
292
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
286
293
|
*/
|
|
287
|
-
|
|
294
|
+
sort?: Sorting[];
|
|
288
295
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
296
|
+
/** @oneof */
|
|
297
|
+
interface CursorQueryPagingMethodOneOf {
|
|
298
|
+
/** 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`. */
|
|
299
|
+
cursorPaging?: CursorPaging;
|
|
300
|
+
}
|
|
301
|
+
interface Sorting {
|
|
302
|
+
/**
|
|
303
|
+
* Name of the field to sort by.
|
|
304
|
+
* @maxLength 512
|
|
305
|
+
*/
|
|
306
|
+
fieldName?: string;
|
|
307
|
+
/** Sort order. */
|
|
308
|
+
order?: SortOrderWithLiterals;
|
|
309
|
+
/**
|
|
310
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
311
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
312
|
+
*/
|
|
313
|
+
origin?: AddressLocation;
|
|
314
|
+
}
|
|
315
|
+
declare enum SortOrder {
|
|
316
|
+
ASC = "ASC",
|
|
317
|
+
DESC = "DESC"
|
|
318
|
+
}
|
|
319
|
+
/** @enumType */
|
|
320
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
321
|
+
interface AddressLocation {
|
|
322
|
+
/** Address latitude. */
|
|
323
|
+
latitude?: number | null;
|
|
324
|
+
/** Address longitude. */
|
|
325
|
+
longitude?: number | null;
|
|
326
|
+
}
|
|
327
|
+
interface CursorPaging {
|
|
328
|
+
/**
|
|
329
|
+
* Number of items to load.
|
|
330
|
+
* @max 500
|
|
331
|
+
*/
|
|
332
|
+
limit?: number | null;
|
|
333
|
+
/**
|
|
334
|
+
* Pointer to the next or previous page in the list of results.
|
|
335
|
+
*
|
|
336
|
+
* You can get the relevant cursor token
|
|
337
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
338
|
+
* Not relevant for the first request.
|
|
339
|
+
*/
|
|
340
|
+
cursor?: string | null;
|
|
341
|
+
}
|
|
342
|
+
interface QueryMenuExportRowsResponse {
|
|
343
|
+
/** The page's rows, in file order. */
|
|
344
|
+
menuExportRows?: MenuExportRow[];
|
|
345
|
+
/** Paging metadata: `cursors.next` is set while rows remain. */
|
|
346
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* One CSV row. Every field is text exactly as written to the file (design-log/001 Q5); unused columns are empty.
|
|
350
|
+
* Free-text limits are the source field's product limit plus one, for the `'` the formula guard can add; `labels` allows
|
|
351
|
+
* 10 names of 50, each doubled at most by escaping, 9 separators and the guard. The other limits bound fixed values.
|
|
352
|
+
*/
|
|
353
|
+
interface MenuExportRow {
|
|
354
|
+
/**
|
|
355
|
+
* `section`, `item`, `variant`, `modifier_group` or `modifier`.
|
|
356
|
+
* @maxLength 20
|
|
357
|
+
*/
|
|
358
|
+
type?: string;
|
|
359
|
+
/**
|
|
360
|
+
* Name of the row's section.
|
|
361
|
+
* @maxLength 501
|
|
362
|
+
*/
|
|
363
|
+
sectionName?: string;
|
|
364
|
+
/**
|
|
365
|
+
* Section description, on section rows.
|
|
366
|
+
* @maxLength 1501
|
|
367
|
+
*/
|
|
368
|
+
sectionDescription?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Item name, on item, variant, modifier group and modifier rows.
|
|
371
|
+
* @maxLength 201
|
|
372
|
+
*/
|
|
373
|
+
itemName?: string;
|
|
374
|
+
/**
|
|
375
|
+
* Item description, on item rows.
|
|
376
|
+
* @maxLength 1501
|
|
377
|
+
*/
|
|
378
|
+
itemDescription?: string;
|
|
379
|
+
/**
|
|
380
|
+
* Price with 2 or 3 decimals, for example `8.50` (a legacy price stored with more decimals is written as stored). On item rows: `MARKET_PRICE` for a market-price item, empty for an
|
|
381
|
+
* item priced by variants, `0.00` for an item without a stored price. On variant and modifier rows: `0.00` without a
|
|
382
|
+
* price or charge. Empty on section and modifier group rows.
|
|
383
|
+
* @maxLength 50
|
|
384
|
+
*/
|
|
385
|
+
price?: string;
|
|
386
|
+
/**
|
|
387
|
+
* The site's payment currency on item, variant and modifier rows. The importer doesn't read it: an imported menu takes
|
|
388
|
+
* the target site's currency.
|
|
389
|
+
* @maxLength 10
|
|
390
|
+
*/
|
|
391
|
+
currency?: string;
|
|
392
|
+
/**
|
|
393
|
+
* The item's label names, `;`-separated, each exactly as the site names it, with `\` and `;` inside a name escaped
|
|
394
|
+
* as `\\` and `\;`.
|
|
395
|
+
* @maxLength 1010
|
|
396
|
+
*/
|
|
397
|
+
labels?: string;
|
|
398
|
+
/**
|
|
399
|
+
* Modifier group name, on modifier group and modifier rows.
|
|
400
|
+
* @maxLength 101
|
|
401
|
+
*/
|
|
402
|
+
modifierGroupName?: string;
|
|
403
|
+
/**
|
|
404
|
+
* `yes` or `no`, on modifier group rows.
|
|
405
|
+
* @maxLength 3
|
|
406
|
+
*/
|
|
407
|
+
modifierRequired?: string;
|
|
408
|
+
/**
|
|
409
|
+
* Minimum selections, on modifier group rows.
|
|
410
|
+
* @maxLength 20
|
|
411
|
+
*/
|
|
412
|
+
modifierMinSelections?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Maximum selections (`0` is unlimited), on modifier group rows.
|
|
415
|
+
* @maxLength 20
|
|
416
|
+
*/
|
|
417
|
+
modifierMaxSelections?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Modifier name, on modifier rows.
|
|
420
|
+
* @maxLength 201
|
|
421
|
+
*/
|
|
422
|
+
modifierName?: string;
|
|
423
|
+
/**
|
|
424
|
+
* `yes` or `no`, on modifier rows.
|
|
425
|
+
* @maxLength 3
|
|
426
|
+
*/
|
|
427
|
+
modifierPreSelected?: string;
|
|
428
|
+
/**
|
|
429
|
+
* Variant name, on variant rows.
|
|
430
|
+
* @maxLength 201
|
|
431
|
+
*/
|
|
432
|
+
variantName?: string;
|
|
433
|
+
/**
|
|
434
|
+
* `yes` or `no` on section and item rows.
|
|
435
|
+
* @maxLength 3
|
|
436
|
+
*/
|
|
437
|
+
visible?: string;
|
|
438
|
+
}
|
|
439
|
+
interface CursorPagingMetadata {
|
|
440
|
+
/** Number of items returned in the response. */
|
|
441
|
+
count?: number | null;
|
|
442
|
+
/** Offset that was requested. */
|
|
443
|
+
cursors?: Cursors;
|
|
444
|
+
/**
|
|
445
|
+
* Indicates if there are more results after the current page.
|
|
446
|
+
* If `true`, another page of results can be retrieved.
|
|
447
|
+
* If `false`, this is the last page.
|
|
448
|
+
*/
|
|
449
|
+
hasNext?: boolean | null;
|
|
450
|
+
}
|
|
451
|
+
interface Cursors {
|
|
452
|
+
/** Cursor pointing to next page in the list of results. */
|
|
453
|
+
next?: string | null;
|
|
454
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
455
|
+
prev?: string | null;
|
|
292
456
|
}
|
|
293
457
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
294
458
|
createdEvent?: EntityCreatedEvent;
|
|
@@ -443,118 +607,6 @@ interface AccountInfo {
|
|
|
443
607
|
*/
|
|
444
608
|
siteId?: string | null;
|
|
445
609
|
}
|
|
446
|
-
interface GetMenuSiteUrlRequest {
|
|
447
|
-
/**
|
|
448
|
-
* Menu ID.
|
|
449
|
-
* @format GUID
|
|
450
|
-
* @readonly
|
|
451
|
-
*/
|
|
452
|
-
_id: string | null;
|
|
453
|
-
}
|
|
454
|
-
interface GetMenuSiteUrlResponse {
|
|
455
|
-
/** Retrieved menuInfo with path url. */
|
|
456
|
-
menuSiteUrl?: MenuSiteUrl;
|
|
457
|
-
}
|
|
458
|
-
interface MenuSiteUrl {
|
|
459
|
-
/**
|
|
460
|
-
* Path URL.
|
|
461
|
-
* @minLength 1
|
|
462
|
-
* @maxLength 1000
|
|
463
|
-
*/
|
|
464
|
-
path?: string;
|
|
465
|
-
}
|
|
466
|
-
interface QueryMenusSiteUrlRequest {
|
|
467
|
-
/** Query options */
|
|
468
|
-
query?: CursorQuery;
|
|
469
|
-
}
|
|
470
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
471
|
-
/** 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`. */
|
|
472
|
-
cursorPaging?: CursorPaging;
|
|
473
|
-
/**
|
|
474
|
-
* Filter object in the following format:
|
|
475
|
-
* `"filter" : {
|
|
476
|
-
* "fieldName1": "value1",
|
|
477
|
-
* "fieldName2":{"$operator":"value2"}
|
|
478
|
-
* }`
|
|
479
|
-
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
480
|
-
*/
|
|
481
|
-
filter?: Record<string, any> | null;
|
|
482
|
-
/**
|
|
483
|
-
* Sort object in the following format:
|
|
484
|
-
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
485
|
-
*/
|
|
486
|
-
sort?: Sorting[];
|
|
487
|
-
}
|
|
488
|
-
/** @oneof */
|
|
489
|
-
interface CursorQueryPagingMethodOneOf {
|
|
490
|
-
/** 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`. */
|
|
491
|
-
cursorPaging?: CursorPaging;
|
|
492
|
-
}
|
|
493
|
-
interface Sorting {
|
|
494
|
-
/**
|
|
495
|
-
* Name of the field to sort by.
|
|
496
|
-
* @maxLength 512
|
|
497
|
-
*/
|
|
498
|
-
fieldName?: string;
|
|
499
|
-
/** Sort order. */
|
|
500
|
-
order?: SortOrderWithLiterals;
|
|
501
|
-
/**
|
|
502
|
-
* Origin point for geo-distance sorting on a GEO field
|
|
503
|
-
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
504
|
-
*/
|
|
505
|
-
origin?: AddressLocation;
|
|
506
|
-
}
|
|
507
|
-
declare enum SortOrder {
|
|
508
|
-
ASC = "ASC",
|
|
509
|
-
DESC = "DESC"
|
|
510
|
-
}
|
|
511
|
-
/** @enumType */
|
|
512
|
-
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
513
|
-
interface AddressLocation {
|
|
514
|
-
/** Address latitude. */
|
|
515
|
-
latitude?: number | null;
|
|
516
|
-
/** Address longitude. */
|
|
517
|
-
longitude?: number | null;
|
|
518
|
-
}
|
|
519
|
-
interface CursorPaging {
|
|
520
|
-
/**
|
|
521
|
-
* Number of items to load.
|
|
522
|
-
* @max 500
|
|
523
|
-
*/
|
|
524
|
-
limit?: number | null;
|
|
525
|
-
/**
|
|
526
|
-
* Pointer to the next or previous page in the list of results.
|
|
527
|
-
*
|
|
528
|
-
* You can get the relevant cursor token
|
|
529
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
530
|
-
* Not relevant for the first request.
|
|
531
|
-
*/
|
|
532
|
-
cursor?: string | null;
|
|
533
|
-
}
|
|
534
|
-
interface QueryMenusSiteUrlResponse {
|
|
535
|
-
/** Retrieved menuInfos with path urls. */
|
|
536
|
-
menuSiteUrls?: MenuSiteUrl[];
|
|
537
|
-
/** The metadata of the paginated results. */
|
|
538
|
-
pagingMetadata?: CursorPagingMetadata;
|
|
539
|
-
}
|
|
540
|
-
interface CursorPagingMetadata {
|
|
541
|
-
/** Number of items returned in the response. */
|
|
542
|
-
count?: number | null;
|
|
543
|
-
/** Offset that was requested. */
|
|
544
|
-
cursors?: Cursors;
|
|
545
|
-
/**
|
|
546
|
-
* Indicates if there are more results after the current page.
|
|
547
|
-
* If `true`, another page of results can be retrieved.
|
|
548
|
-
* If `false`, this is the last page.
|
|
549
|
-
*/
|
|
550
|
-
hasNext?: boolean | null;
|
|
551
|
-
}
|
|
552
|
-
interface Cursors {
|
|
553
|
-
/** Cursor pointing to next page in the list of results. */
|
|
554
|
-
next?: string | null;
|
|
555
|
-
/** Cursor pointing to previous page in the list of results. */
|
|
556
|
-
prev?: string | null;
|
|
557
|
-
}
|
|
558
610
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
559
611
|
/**
|
|
560
612
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -914,6 +966,60 @@ interface SyncContentToMultilingualRequest {
|
|
|
914
966
|
}
|
|
915
967
|
interface SyncContentToMultilingualResponse {
|
|
916
968
|
}
|
|
969
|
+
interface DuplicateMenuRequest {
|
|
970
|
+
/**
|
|
971
|
+
* Menu id to be duplicated.
|
|
972
|
+
* @format GUID
|
|
973
|
+
*/
|
|
974
|
+
_id: string;
|
|
975
|
+
/**
|
|
976
|
+
* Business location ids to duplicate the menu to.
|
|
977
|
+
* @format GUID
|
|
978
|
+
* @maxSize 100
|
|
979
|
+
*/
|
|
980
|
+
businessLocationIds?: string[] | null;
|
|
981
|
+
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
982
|
+
duplicateSubEntities?: boolean | null;
|
|
983
|
+
/**
|
|
984
|
+
* The new name of the duplicated menu.
|
|
985
|
+
* @maxLength 500
|
|
986
|
+
*/
|
|
987
|
+
menuName?: string | null;
|
|
988
|
+
}
|
|
989
|
+
interface DuplicateMenuResponse {
|
|
990
|
+
/** @format GUID */
|
|
991
|
+
menuIds?: string[];
|
|
992
|
+
}
|
|
993
|
+
interface GetMenuSiteUrlRequest {
|
|
994
|
+
/**
|
|
995
|
+
* Menu ID.
|
|
996
|
+
* @format GUID
|
|
997
|
+
* @readonly
|
|
998
|
+
*/
|
|
999
|
+
_id: string | null;
|
|
1000
|
+
}
|
|
1001
|
+
interface GetMenuSiteUrlResponse {
|
|
1002
|
+
/** Retrieved menuInfo with path url. */
|
|
1003
|
+
menuSiteUrl?: MenuSiteUrl;
|
|
1004
|
+
}
|
|
1005
|
+
interface MenuSiteUrl {
|
|
1006
|
+
/**
|
|
1007
|
+
* Path URL.
|
|
1008
|
+
* @minLength 1
|
|
1009
|
+
* @maxLength 1000
|
|
1010
|
+
*/
|
|
1011
|
+
path?: string;
|
|
1012
|
+
}
|
|
1013
|
+
interface QueryMenusSiteUrlRequest {
|
|
1014
|
+
/** Query options */
|
|
1015
|
+
query?: CursorQuery;
|
|
1016
|
+
}
|
|
1017
|
+
interface QueryMenusSiteUrlResponse {
|
|
1018
|
+
/** Retrieved menuInfos with path urls. */
|
|
1019
|
+
menuSiteUrls?: MenuSiteUrl[];
|
|
1020
|
+
/** The metadata of the paginated results. */
|
|
1021
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
1022
|
+
}
|
|
917
1023
|
interface BaseEventMetadata {
|
|
918
1024
|
/**
|
|
919
1025
|
* App instance ID.
|
|
@@ -1013,54 +1119,6 @@ interface MenuDeletedEnvelope {
|
|
|
1013
1119
|
* @documentationMaturity preview
|
|
1014
1120
|
*/
|
|
1015
1121
|
declare function onMenuDeleted(handler: (event: MenuDeletedEnvelope) => void | Promise<void>): void;
|
|
1016
|
-
/** @param _id - Menu id to be duplicated.
|
|
1017
|
-
* @public
|
|
1018
|
-
* @documentationMaturity preview
|
|
1019
|
-
* @requiredField _id
|
|
1020
|
-
* @permissionId RESTAURANTS.MENU_CREATE
|
|
1021
|
-
* @applicableIdentity APP
|
|
1022
|
-
* @fqn com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu
|
|
1023
|
-
*/
|
|
1024
|
-
declare function duplicateMenu(_id: string, options?: DuplicateMenuOptions): Promise<NonNullablePaths<DuplicateMenuResponse, `menuIds`, 0>>;
|
|
1025
|
-
interface DuplicateMenuOptions {
|
|
1026
|
-
/**
|
|
1027
|
-
* Business location ids to duplicate the menu to.
|
|
1028
|
-
* @format GUID
|
|
1029
|
-
* @maxSize 100
|
|
1030
|
-
*/
|
|
1031
|
-
businessLocationIds?: string[] | null;
|
|
1032
|
-
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
1033
|
-
duplicateSubEntities?: boolean | null;
|
|
1034
|
-
/**
|
|
1035
|
-
* The new name of the duplicated menu.
|
|
1036
|
-
* @maxLength 500
|
|
1037
|
-
*/
|
|
1038
|
-
menuName?: string | null;
|
|
1039
|
-
}
|
|
1040
|
-
/**
|
|
1041
|
-
* Get menu details and path URL by menu ID.
|
|
1042
|
-
* @param _id - Menu ID.
|
|
1043
|
-
* @public
|
|
1044
|
-
* @documentationMaturity preview
|
|
1045
|
-
* @requiredField _id
|
|
1046
|
-
* @permissionId RESTAURANTS.MENU_READ
|
|
1047
|
-
* @applicableIdentity APP
|
|
1048
|
-
* @fqn com.wixpress.restaurants.menus_menu.v1.restaurants_menus_site_url.RestaurantsMenusSiteUrl.GetMenuSiteUrl
|
|
1049
|
-
*/
|
|
1050
|
-
declare function getMenuSiteUrl(_id: string): Promise<NonNullablePaths<GetMenuSiteUrlResponse, `menuSiteUrl.path`, 1>>;
|
|
1051
|
-
/**
|
|
1052
|
-
* Query menu details and path URL
|
|
1053
|
-
* @public
|
|
1054
|
-
* @documentationMaturity preview
|
|
1055
|
-
* @permissionId RESTAURANTS.MENU_READ
|
|
1056
|
-
* @applicableIdentity APP
|
|
1057
|
-
* @fqn com.wixpress.restaurants.menus_menu.v1.restaurants_menus_site_url.RestaurantsMenusSiteUrl.QueryMenusSiteUrl
|
|
1058
|
-
*/
|
|
1059
|
-
declare function queryMenusSiteUrl(options?: QueryMenusSiteUrlOptions): Promise<NonNullablePaths<QueryMenusSiteUrlResponse, `menuSiteUrls` | `menuSiteUrls.${number}.path`, 2>>;
|
|
1060
|
-
interface QueryMenusSiteUrlOptions {
|
|
1061
|
-
/** Query options */
|
|
1062
|
-
query?: CursorQuery;
|
|
1063
|
-
}
|
|
1064
1122
|
/**
|
|
1065
1123
|
* > **Note:** The Menus API only works with the Wix Restaurants Menus app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).
|
|
1066
1124
|
*
|
|
@@ -1447,5 +1505,53 @@ interface UpdateExtendedFieldsOptions {
|
|
|
1447
1505
|
* @fqn com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.DeleteMenu
|
|
1448
1506
|
*/
|
|
1449
1507
|
declare function deleteMenu(menuId: string): Promise<void>;
|
|
1508
|
+
/** @param _id - Menu id to be duplicated.
|
|
1509
|
+
* @public
|
|
1510
|
+
* @documentationMaturity preview
|
|
1511
|
+
* @requiredField _id
|
|
1512
|
+
* @permissionId RESTAURANTS.MENU_CREATE
|
|
1513
|
+
* @applicableIdentity APP
|
|
1514
|
+
* @fqn com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu
|
|
1515
|
+
*/
|
|
1516
|
+
declare function duplicateMenu(_id: string, options?: DuplicateMenuOptions): Promise<NonNullablePaths<DuplicateMenuResponse, `menuIds`, 0>>;
|
|
1517
|
+
interface DuplicateMenuOptions {
|
|
1518
|
+
/**
|
|
1519
|
+
* Business location ids to duplicate the menu to.
|
|
1520
|
+
* @format GUID
|
|
1521
|
+
* @maxSize 100
|
|
1522
|
+
*/
|
|
1523
|
+
businessLocationIds?: string[] | null;
|
|
1524
|
+
/** Indicates whether sub-entities (such as items) should be duplicated as well. */
|
|
1525
|
+
duplicateSubEntities?: boolean | null;
|
|
1526
|
+
/**
|
|
1527
|
+
* The new name of the duplicated menu.
|
|
1528
|
+
* @maxLength 500
|
|
1529
|
+
*/
|
|
1530
|
+
menuName?: string | null;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Get menu details and path URL by menu ID.
|
|
1534
|
+
* @param _id - Menu ID.
|
|
1535
|
+
* @public
|
|
1536
|
+
* @documentationMaturity preview
|
|
1537
|
+
* @requiredField _id
|
|
1538
|
+
* @permissionId RESTAURANTS.MENU_READ
|
|
1539
|
+
* @applicableIdentity APP
|
|
1540
|
+
* @fqn com.wixpress.restaurants.menus_menu.v1.restaurants_menus_site_url.RestaurantsMenusSiteUrl.GetMenuSiteUrl
|
|
1541
|
+
*/
|
|
1542
|
+
declare function getMenuSiteUrl(_id: string): Promise<NonNullablePaths<GetMenuSiteUrlResponse, `menuSiteUrl.path`, 1>>;
|
|
1543
|
+
/**
|
|
1544
|
+
* Query menu details and path URL
|
|
1545
|
+
* @public
|
|
1546
|
+
* @documentationMaturity preview
|
|
1547
|
+
* @permissionId RESTAURANTS.MENU_READ
|
|
1548
|
+
* @applicableIdentity APP
|
|
1549
|
+
* @fqn com.wixpress.restaurants.menus_menu.v1.restaurants_menus_site_url.RestaurantsMenusSiteUrl.QueryMenusSiteUrl
|
|
1550
|
+
*/
|
|
1551
|
+
declare function queryMenusSiteUrl(options?: QueryMenusSiteUrlOptions): Promise<NonNullablePaths<QueryMenusSiteUrlResponse, `menuSiteUrls` | `menuSiteUrls.${number}.path`, 2>>;
|
|
1552
|
+
interface QueryMenusSiteUrlOptions {
|
|
1553
|
+
/** Query options */
|
|
1554
|
+
query?: CursorQuery;
|
|
1555
|
+
}
|
|
1450
1556
|
|
|
1451
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type App, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateMenuResult, type BulkCreateMenusOptions, type BulkCreateMenusRequest, type BulkCreateMenusResponse, type BulkMenuResult, type BulkUpdateMenuOptions, type BulkUpdateMenuRequest, type BulkUpdateMenuResponse, type BusinessLocationDetails, type CloneMenusRequest, type CloneMenusResponse, type CommonQueryWithEntityContext, type CreateMenuRequest, type CreateMenuResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type DeleteMenuRequest, type DeleteMenuResponse, type DeleteOrphanSections, type DomainEvent, type DomainEventBodyOneOf, type DuplicateMenuOptions, type DuplicateMenuRequest, type DuplicateMenuResponse, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReferenceInfo, type File, type GetMenuRequest, type GetMenuResponse, type GetMenuSiteUrlRequest, type GetMenuSiteUrlResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type Keyword, type ListMenusOptions, type ListMenusRequest, type ListMenusResponse, type MaskedMenu, type Menu, type MenuCreatedEnvelope, type MenuDeletedEnvelope, type MenuQuery, type MenuQuerySpec, type MenuSiteUrl, type MenuUpdatedEnvelope, type MenusDataCloningCompleted, type MenusQueryBuilder, type MenusQueryResult, type MessageEnvelope, type Page, type Pages, type QueryMenusRequest, type QueryMenusResponse, type QueryMenusSiteUrlOptions, type QueryMenusSiteUrlRequest, type QueryMenusSiteUrlResponse, type RestoreInfo, type RunMenusMultiLocationMigrationRequest, type RunMenusMultiLocationMigrationResponse, type SeoSchema, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncContentToMultilingualRequest, type SyncContentToMultilingualResponse, type Tag, type URI, type URIs, type UpdateBusinessLocationIdRequest, type UpdateBusinessLocationIdResponse, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateMenu, type UpdateMenuRequest, type UpdateMenuResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, onMenuCreated, onMenuDeleted, onMenuUpdated, queryMenus, queryMenusSiteUrl, typedQueryMenus, updateExtendedFields, updateMenu, utils };
|
|
1557
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type App, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkCreateMenuResult, type BulkCreateMenusOptions, type BulkCreateMenusRequest, type BulkCreateMenusResponse, type BulkMenuResult, type BulkUpdateMenuOptions, type BulkUpdateMenuRequest, type BulkUpdateMenuResponse, type BusinessLocationDetails, type CloneMenusRequest, type CloneMenusResponse, type CommonQueryWithEntityContext, type CreateMenuRequest, type CreateMenuResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type DeleteMenuRequest, type DeleteMenuResponse, type DeleteOrphanSections, type DomainEvent, type DomainEventBodyOneOf, type DuplicateMenuOptions, type DuplicateMenuRequest, type DuplicateMenuResponse, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type ExternalReferenceInfo, type File, type GetMenuRequest, type GetMenuResponse, type GetMenuSiteUrlRequest, type GetMenuSiteUrlResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type Keyword, type ListMenusOptions, type ListMenusRequest, type ListMenusResponse, type MaskedMenu, type Menu, type MenuCreatedEnvelope, type MenuDeletedEnvelope, type MenuExportRow, type MenuQuery, type MenuQuerySpec, type MenuSiteUrl, type MenuUpdatedEnvelope, type MenusDataCloningCompleted, type MenusQueryBuilder, type MenusQueryResult, type MessageEnvelope, type Page, type Pages, type QueryMenuExportRowsRequest, type QueryMenuExportRowsResponse, type QueryMenusRequest, type QueryMenusResponse, type QueryMenusSiteUrlOptions, type QueryMenusSiteUrlRequest, type QueryMenusSiteUrlResponse, type RestoreInfo, type RunMenusMultiLocationMigrationRequest, type RunMenusMultiLocationMigrationResponse, type SeoSchema, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, type SyncContentToMultilingualRequest, type SyncContentToMultilingualResponse, type Tag, type URI, type URIs, type UpdateBusinessLocationIdRequest, type UpdateBusinessLocationIdResponse, type UpdateExtendedFieldsOptions, type UpdateExtendedFieldsRequest, type UpdateExtendedFieldsResponse, type UpdateMenu, type UpdateMenuRequest, type UpdateMenuResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, onMenuCreated, onMenuDeleted, onMenuUpdated, queryMenus, queryMenusSiteUrl, typedQueryMenus, updateExtendedFields, updateMenu, utils };
|