@wix/auto_sdk_restaurants_menus 1.0.75 → 1.0.77
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 +1 -1
- package/build/cjs/index.js +27 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +21 -11
- package/build/cjs/index.typings.js +27 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +13 -2
- package/build/cjs/meta.js +27 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +4 -0
- package/build/cjs/schemas.js +7 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +27 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +21 -11
- package/build/es/index.typings.mjs +27 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +13 -2
- package/build/es/meta.mjs +27 -4
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +4 -0
- package/build/es/schemas.mjs +7 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +27 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +21 -11
- package/build/internal/cjs/index.typings.js +27 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +13 -2
- package/build/internal/cjs/meta.js +27 -4
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +4 -0
- package/build/internal/cjs/schemas.js +7 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +27 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +21 -11
- package/build/internal/es/index.typings.mjs +27 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +13 -2
- package/build/internal/es/meta.mjs +27 -4
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +4 -0
- package/build/internal/es/schemas.mjs +7 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -479,6 +479,11 @@ interface Sorting {
|
|
|
479
479
|
fieldName?: string;
|
|
480
480
|
/** Sort order. */
|
|
481
481
|
order?: SortOrderWithLiterals;
|
|
482
|
+
/**
|
|
483
|
+
* Origin point for geo-distance sorting on a GEO field
|
|
484
|
+
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
485
|
+
*/
|
|
486
|
+
origin?: AddressLocation;
|
|
482
487
|
}
|
|
483
488
|
declare enum SortOrder {
|
|
484
489
|
ASC = "ASC",
|
|
@@ -486,6 +491,12 @@ declare enum SortOrder {
|
|
|
486
491
|
}
|
|
487
492
|
/** @enumType */
|
|
488
493
|
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
494
|
+
interface AddressLocation {
|
|
495
|
+
/** Address latitude. */
|
|
496
|
+
latitude?: number | null;
|
|
497
|
+
/** Address longitude. */
|
|
498
|
+
longitude?: number | null;
|
|
499
|
+
}
|
|
489
500
|
interface QueryMenusResponse {
|
|
490
501
|
/** Retrieved menus. */
|
|
491
502
|
menus?: Menu[];
|
|
@@ -612,7 +623,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
612
623
|
/** If present, indicates the action that triggered the event. */
|
|
613
624
|
originatedFrom?: string | null;
|
|
614
625
|
/**
|
|
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
|
|
626
|
+
* 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
627
|
* 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
628
|
*/
|
|
618
629
|
entityEventSequence?: string | null;
|
|
@@ -842,7 +853,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
842
853
|
/** If present, indicates the action that triggered the event. */
|
|
843
854
|
originatedFrom?: string | null;
|
|
844
855
|
/**
|
|
845
|
-
* 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
|
|
856
|
+
* 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.
|
|
846
857
|
* 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.
|
|
847
858
|
*/
|
|
848
859
|
entityEventSequence?: string | null;
|
|
@@ -860,9 +871,7 @@ interface MenuCreatedEnvelope {
|
|
|
860
871
|
entity: Menu;
|
|
861
872
|
metadata: EventMetadata;
|
|
862
873
|
}
|
|
863
|
-
/** @permissionScope
|
|
864
|
-
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
865
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
874
|
+
/** @permissionScope Manage Restaurants - all permissions
|
|
866
875
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
867
876
|
* @permissionId RESTAURANTS.MENU_READ
|
|
868
877
|
* @webhook
|
|
@@ -877,8 +886,6 @@ interface MenuDeletedEnvelope {
|
|
|
877
886
|
}
|
|
878
887
|
/**
|
|
879
888
|
* Triggered when a menu is deleted.
|
|
880
|
-
* @permissionScope Wix Multilingual - Nile Wrapper Domain Events Read
|
|
881
|
-
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
882
889
|
* @permissionScope Manage Restaurants - all permissions
|
|
883
890
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
884
891
|
* @permissionId RESTAURANTS.MENU_READ
|
|
@@ -895,9 +902,7 @@ interface MenuUpdatedEnvelope {
|
|
|
895
902
|
/** @hidden */
|
|
896
903
|
modifiedFields: Record<string, any>;
|
|
897
904
|
}
|
|
898
|
-
/** @permissionScope
|
|
899
|
-
* @permissionScopeId SCOPE.MULTILINGUAL.NILE_WRAPPER_DOMAIN_EVENTS_READ
|
|
900
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
905
|
+
/** @permissionScope Manage Restaurants - all permissions
|
|
901
906
|
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
902
907
|
* @permissionId RESTAURANTS.MENU_READ
|
|
903
908
|
* @webhook
|
|
@@ -1151,6 +1156,11 @@ type MenuQuery = {
|
|
|
1151
1156
|
Sort order.
|
|
1152
1157
|
*/
|
|
1153
1158
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1159
|
+
/**
|
|
1160
|
+
Origin point for geo-distance sorting on a GEO field
|
|
1161
|
+
results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
1162
|
+
*/
|
|
1163
|
+
origin?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['origin'];
|
|
1154
1164
|
}[];
|
|
1155
1165
|
};
|
|
1156
1166
|
declare const utils: {
|
|
@@ -1340,4 +1350,4 @@ interface QueryMenusSiteUrlOptions {
|
|
|
1340
1350
|
query?: CursorQuery;
|
|
1341
1351
|
}
|
|
1342
1352
|
|
|
1343
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, 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 };
|
|
1353
|
+
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 };
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/restaurants-menus-v1-menu-menus.http.ts
|
|
10
10
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
11
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
11
12
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
13
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
14
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
@@ -445,6 +446,15 @@ function listMenus(payload) {
|
|
|
445
446
|
}
|
|
446
447
|
function queryMenus(payload) {
|
|
447
448
|
function __queryMenus({ host }) {
|
|
449
|
+
const serializedData = transformPaths(payload, [
|
|
450
|
+
{
|
|
451
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
452
|
+
paths: [
|
|
453
|
+
{ path: "query.sort.origin.latitude" },
|
|
454
|
+
{ path: "query.sort.origin.longitude" }
|
|
455
|
+
]
|
|
456
|
+
}
|
|
457
|
+
]);
|
|
448
458
|
const metadata = {
|
|
449
459
|
entityFqdn: "wix.restaurants.menus.v1.menu",
|
|
450
460
|
method: "POST",
|
|
@@ -455,10 +465,10 @@ function queryMenus(payload) {
|
|
|
455
465
|
},
|
|
456
466
|
url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
|
|
457
467
|
protoPath: "/v1/menus/query",
|
|
458
|
-
data:
|
|
468
|
+
data: serializedData,
|
|
459
469
|
host
|
|
460
470
|
}),
|
|
461
|
-
data:
|
|
471
|
+
data: serializedData,
|
|
462
472
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
463
473
|
{
|
|
464
474
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -646,6 +656,15 @@ function getMenuSiteUrl(payload) {
|
|
|
646
656
|
}
|
|
647
657
|
function queryMenusSiteUrl(payload) {
|
|
648
658
|
function __queryMenusSiteUrl({ host }) {
|
|
659
|
+
const serializedData = transformPaths(payload, [
|
|
660
|
+
{
|
|
661
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
662
|
+
paths: [
|
|
663
|
+
{ path: "query.sort.origin.latitude" },
|
|
664
|
+
{ path: "query.sort.origin.longitude" }
|
|
665
|
+
]
|
|
666
|
+
}
|
|
667
|
+
]);
|
|
649
668
|
const metadata = {
|
|
650
669
|
entityFqdn: "wix.restaurants.menus.v1.menu",
|
|
651
670
|
method: "POST",
|
|
@@ -655,9 +674,13 @@ function queryMenusSiteUrl(payload) {
|
|
|
655
674
|
optInTransformResponse: true
|
|
656
675
|
},
|
|
657
676
|
url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaurantsMenusSiteUrlUrl(
|
|
658
|
-
{
|
|
677
|
+
{
|
|
678
|
+
protoPath: "/v1/menus-site-url/menus/query",
|
|
679
|
+
data: serializedData,
|
|
680
|
+
host
|
|
681
|
+
}
|
|
659
682
|
),
|
|
660
|
-
data:
|
|
683
|
+
data: serializedData
|
|
661
684
|
};
|
|
662
685
|
return metadata;
|
|
663
686
|
}
|