@wix/auto_sdk_restaurants_sections 1.0.44 → 1.0.45
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.map +1 -1
- package/build/cjs/index.typings.d.ts +0 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +0 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +0 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +0 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +0 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +0 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +0 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../index.ts","../../src/restaurants-menus-v1-section-sections.public.ts","../../src/restaurants-menus-v1-section-sections.universal.ts","../../src/restaurants-menus-v1-section-sections.http.ts","../../src/restaurants-menus-v1-section-sections.context.ts"],"sourcesContent":["export * from './src/restaurants-menus-v1-section-sections.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkCreateSectionsOptions,\n BulkCreateSectionsResponse,\n BulkDeleteSectionsResponse,\n BulkUpdateSectionOptions,\n BulkUpdateSectionResponse,\n DuplicateSectionOptions,\n DuplicateSectionResponse,\n ListSectionsOptions,\n ListSectionsResponse,\n MaskedSection,\n Section,\n SectionCreatedEnvelope,\n SectionDeletedEnvelope,\n SectionUpdatedEnvelope,\n SectionsQueryBuilder,\n UpdateSection,\n bulkCreateSections as universalBulkCreateSections,\n bulkDeleteSections as universalBulkDeleteSections,\n bulkUpdateSection as universalBulkUpdateSection,\n createSection as universalCreateSection,\n deleteSection as universalDeleteSection,\n duplicateSection as universalDuplicateSection,\n getSection as universalGetSection,\n listSections as universalListSections,\n querySections as universalQuerySections,\n updateSection as universalUpdateSection,\n} from './restaurants-menus-v1-section-sections.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/restaurants' };\n\nexport function duplicateSection(\n httpClient: HttpClient\n): DuplicateSectionSignature {\n return (_id: string, options?: DuplicateSectionOptions) =>\n universalDuplicateSection(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DuplicateSectionSignature {\n /**\n * Duplicates a section.\n *\n * You can duplicate a section to the same business location, or to 1 or more different business locations.\n * You can specify whether to also duplicate the section's sub-entities, such as its items.\n * @param - ID of the section to be duplicated.\n */\n (_id: string, options?: DuplicateSectionOptions): Promise<\n NonNullablePaths<DuplicateSectionResponse, `sectionId`, 2>\n >;\n}\n\nexport function createSection(httpClient: HttpClient): CreateSectionSignature {\n return (section: Section) =>\n universalCreateSection(\n section,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSectionSignature {\n /**\n * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a section.\n *\n * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).\n * @param - Section details.\n * @returns Section.\n */\n (section: Section): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n >;\n}\n\nexport function bulkCreateSections(\n httpClient: HttpClient\n): BulkCreateSectionsSignature {\n return (sections: Section[], options?: BulkCreateSectionsOptions) =>\n universalBulkCreateSections(\n sections,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateSectionsSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple sections at once.\n * @param - Sections details.\n */\n (sections: Section[], options?: BulkCreateSectionsOptions): Promise<\n NonNullablePaths<\n BulkCreateSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function getSection(httpClient: HttpClient): GetSectionSignature {\n return (sectionId: string) =>\n universalGetSection(\n sectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a section by ID.\n * @param - Section ID.\n * @returns Section.\n */\n (sectionId: string): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n >;\n}\n\nexport function listSections(httpClient: HttpClient): ListSectionsSignature {\n return (options?: ListSectionsOptions) =>\n universalListSections(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSectionsSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 sections.\n */\n (options?: ListSectionsOptions): Promise<\n NonNullablePaths<\n ListSectionsResponse,\n `sections` | `sections.${number}.name`,\n 4\n >\n >;\n}\n\nexport function querySections(httpClient: HttpClient): QuerySectionsSignature {\n return () =>\n universalQuerySections(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySectionsSignature {\n /**\n * Creates a query to retrieve a list of sections.\n *\n * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.\n *\n * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.\n *\n * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(100)`](/sections/sections-query-builder/limit)\n *\n * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.\n */\n (): SectionsQueryBuilder;\n}\n\nexport function updateSection(httpClient: HttpClient): UpdateSectionSignature {\n return (\n _id: string,\n section: NonNullablePaths<UpdateSection, `revision`, 2>\n ) =>\n universalUpdateSection(\n _id,\n section,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a section.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param - Section ID.\n * @returns Updated section.\n */\n (\n _id: string,\n section: NonNullablePaths<UpdateSection, `revision`, 2>\n ): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n >;\n}\n\nexport function bulkUpdateSection(\n httpClient: HttpClient\n): BulkUpdateSectionSignature {\n return (\n sections: NonNullablePaths<\n MaskedSection,\n `section._id` | `section.revision`,\n 3\n >[],\n options?: BulkUpdateSectionOptions\n ) =>\n universalBulkUpdateSection(\n sections,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple sections at once.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param - Sections to update.\n */\n (\n sections: NonNullablePaths<\n MaskedSection,\n `section._id` | `section.revision`,\n 3\n >[],\n options?: BulkUpdateSectionOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateSectionResponse,\n | `results`\n | `results.${number}.sectionMetadata.originalIndex`\n | `results.${number}.sectionMetadata.success`\n | `results.${number}.sectionMetadata.error.code`\n | `results.${number}.sectionMetadata.error.description`\n | `results.${number}.section.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function deleteSection(httpClient: HttpClient): DeleteSectionSignature {\n return (sectionId: string) =>\n universalDeleteSection(\n sectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a section.\n * @param - Section ID.\n */\n (sectionId: string): Promise<void>;\n}\n\nexport function bulkDeleteSections(\n httpClient: HttpClient\n): BulkDeleteSectionsSignature {\n return (ids: string[]) =>\n universalBulkDeleteSections(\n ids,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteSectionsSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple sections at once.\n * @param - Section IDs.\n */\n (ids: string[]): Promise<\n NonNullablePaths<\n BulkDeleteSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport const onSectionCreated = EventDefinition(\n 'wix.restaurants.menus.v1.section_created',\n true,\n (event: SectionCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'entity.externalReferenceInfo.lastSyncDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.image' },\n { path: 'entity.additionalImages', isRepeated: true },\n ],\n },\n ])\n )\n)<SectionCreatedEnvelope>();\nexport const onSectionDeleted = EventDefinition(\n 'wix.restaurants.menus.v1.section_deleted',\n true,\n (event: SectionDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n {\n path: 'undefined.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'undefined.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'undefined.externalReferenceInfo.lastSyncDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'undefined.image' },\n { path: 'undefined.additionalImages', isRepeated: true },\n ],\n },\n ])\n )\n)<SectionDeletedEnvelope>();\nexport const onSectionUpdated = EventDefinition(\n 'wix.restaurants.menus.v1.section_updated',\n true,\n (event: SectionUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'entity.externalReferenceInfo.lastSyncDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.image' },\n { path: 'entity.additionalImages', isRepeated: true },\n ],\n },\n ])\n )\n)<SectionUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n App,\n ApplicationError,\n Availability,\n AvailabilityAvailabilityTypeOptionsOneOf,\n AvailabilityType,\n AvailableRange,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkCreateSectionResult,\n BulkCreateSectionsOptions,\n BulkCreateSectionsRequest,\n BulkCreateSectionsResponse,\n BulkDeleteSectionResult,\n BulkDeleteSectionsRequest,\n BulkDeleteSectionsResponse,\n BulkItemResult,\n BulkSectionResult,\n BulkUpdateBusinessLocationIdRequest,\n BulkUpdateBusinessLocationIdResponse,\n BulkUpdateSectionOptions,\n BulkUpdateSectionRequest,\n BulkUpdateSectionResponse,\n CloneSectionsRequest,\n CloneSectionsResponse,\n CreateSectionRequest,\n CreateSectionResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomTag,\n DayOfWeek,\n DayOfWeekAvailability,\n DeleteLocationIdFromItems,\n DeleteSectionRequest,\n DeleteSectionResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n DuplicateSectionOptions,\n DuplicateSectionRequest,\n DuplicateSectionResponse,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n ExternalReferenceInfo,\n File,\n GetSectionRequest,\n GetSectionResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n ItemMetadata,\n ListSectionsOptions,\n ListSectionsRequest,\n ListSectionsResponse,\n MaskedSection,\n MessageEnvelope,\n OrderSettings,\n Page,\n QuerySectionsRequest,\n QuerySectionsResponse,\n RestoreInfo,\n Section,\n SectionCreatedEnvelope,\n SectionDeletedEnvelope,\n SectionUpdatedEnvelope,\n SectionsQueryBuilder,\n SectionsQueryResult,\n SortOrder,\n Sorting,\n SyncContentToMultilingualRequest,\n SyncContentToMultilingualResponse,\n TimeOfDay,\n TimeOfDayRange,\n TimestampRangesOptions,\n URI,\n UpdateSection,\n UpdateSectionRequest,\n UpdateSectionResponse,\n WebhookIdentityType,\n WeeklyScheduleOptions,\n} from './restaurants-menus-v1-section-sections.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixRestaurantsMenusV1Section from './restaurants-menus-v1-section-sections.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Section {\n /**\n * Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the section was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the section was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Section name.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Section description.\n * @maxLength 1500\n */\n description?: string | null;\n /** Main section image. */\n image?: string;\n /**\n * Additional section images.\n * @maxSize 100\n */\n additionalImages?: string[];\n /**\n * Item IDs.\n * @format GUID\n * @maxSize 300\n */\n itemIds?: string[];\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /** Whether the section is visible in the menu for site visitors. */\n visible?: boolean | null;\n /**\n * ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this section is available.\n * @format GUID\n * @readonly\n */\n businessLocationId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface OrderSettings {\n availability?: Availability;\n}\n\nexport interface Availability extends AvailabilityAvailabilityTypeOptionsOneOf {\n /** Settings for availability on a weekly schedule. */\n weeklyScheduleOptions?: WeeklyScheduleOptions;\n /** Settings for availability within a time range. */\n timestampRangesOptions?: TimestampRangesOptions;\n /** Availability type. */\n type?: AvailabilityTypeWithLiterals;\n /**\n * Time zone in [Time Zone Database](https://www.iana.org/time-zones) format.\n * @readonly\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface AvailabilityAvailabilityTypeOptionsOneOf {\n /** Settings for availability on a weekly schedule. */\n weeklyScheduleOptions?: WeeklyScheduleOptions;\n /** Settings for availability within a time range. */\n timestampRangesOptions?: TimestampRangesOptions;\n}\n\nexport enum AvailabilityType {\n /** Missing type due to an error. */\n UNSPECIFIED_AVAILABILITY_OPTION = 'UNSPECIFIED_AVAILABILITY_OPTION',\n /** Available all the time. */\n ALWAYS_AVAILABLE = 'ALWAYS_AVAILABLE',\n /** Available on specific days and times throughout the week. */\n WEEKLY_SCHEDULE = 'WEEKLY_SCHEDULE',\n /** Available during a specific time range. */\n TIMESTAMP_RANGES = 'TIMESTAMP_RANGES',\n}\n\n/** @enumType */\nexport type AvailabilityTypeWithLiterals =\n | AvailabilityType\n | 'UNSPECIFIED_AVAILABILITY_OPTION'\n | 'ALWAYS_AVAILABLE'\n | 'WEEKLY_SCHEDULE'\n | 'TIMESTAMP_RANGES';\n\nexport interface WeeklyScheduleOptions {\n /**\n * List of available time ranges for specific days of the week.\n * @maxSize 7\n */\n availableTimes?: DayOfWeekAvailability[];\n}\n\nexport interface DayOfWeekAvailability {\n /** The day of week this availability relates to. */\n dayOfWeek?: DayOfWeekWithLiterals;\n /** A list of time ranges during which the fulfillment should be available. */\n timeRanges?: TimeOfDayRange[];\n}\n\nexport enum DayOfWeek {\n /** Monday. */\n MON = 'MON',\n /** Tuesday. */\n TUE = 'TUE',\n /** Wednesday. */\n WED = 'WED',\n /** Thursday. */\n THU = 'THU',\n /** Friday. */\n FRI = 'FRI',\n /** Saturday. */\n SAT = 'SAT',\n /** Sunday. */\n SUN = 'SUN',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MON'\n | 'TUE'\n | 'WED'\n | 'THU'\n | 'FRI'\n | 'SAT'\n | 'SUN';\n\nexport interface TimeOfDayRange {\n /** The start time in time of day representation. */\n startTime?: TimeOfDay;\n /** The end time in time of day representation. */\n endTime?: TimeOfDay;\n}\n\nexport interface TimeOfDay {\n /**\n * Hours. <br />\n * Min: `0`. <br />\n * Max: `23`.\n */\n hours?: number;\n /**\n * Minutes. <br />\n * Min: `0`. <br />\n * Max: `23`.\n */\n minutes?: number;\n}\n\nexport interface TimestampRangesOptions {\n /**\n * List of available time ranges.\n * @maxSize 50\n */\n ranges?: AvailableRange[];\n}\n\nexport interface AvailableRange {\n /** The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */\n startTime?: Date | null;\n /** The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */\n endTime?: Date | null;\n}\n\nexport interface ExternalReferenceInfo {\n /**\n * ID of the external integrator app\\system associated with this object.\n * @format GUID\n */\n externalAppId?: string | null;\n /**\n * Reference to an external resource ID. Used to link this object to a specific entity in an external system.\n * @maxLength 100\n */\n externalEntityId?: string | null;\n /** Last time this section was synced with the external app. */\n lastSyncDate?: Date | null;\n /** Whether the connection to the external system is currently active. */\n connected?: boolean | null;\n}\n\nexport interface DuplicateSectionRequest {\n /**\n * ID of the section to be duplicated.\n * @format GUID\n */\n _id: string;\n /**\n * Business location IDs to assign to the duplicated section or sections.\n *\n * If you specify one or more IDs, a duplicate is created for each ID, with that ID in its `businessLocationId` field.\n * If you don't specify an ID, one duplicate is created with the same `businessLocationId` as the original section.\n * @format GUID\n * @maxSize 100\n */\n businessLocationIds?: string[] | null;\n /**\n * Whether to duplicate the section's sub-entities, such as its items.\n *\n * Default: `false`\n */\n duplicateSubEntities?: boolean | null;\n}\n\nexport interface DuplicateSectionResponse {\n /**\n * IDs of the newly created sections.\n * @format GUID\n */\n sectionId?: string[];\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface DeleteLocationIdFromItems {\n /** @format GUID */\n businessLocationId?: string;\n /**\n * @format GUID\n * @maxSize 1000\n */\n itemIds?: string[];\n}\n\nexport interface CreateSectionRequest {\n /** Section details. */\n section: Section;\n}\n\nexport interface CreateSectionResponse {\n /** Section. */\n section?: Section;\n}\n\nexport interface BulkCreateSectionsRequest {\n /**\n * Sections details.\n * @maxSize 100\n */\n sections: Section[];\n /** Whether to receive the created sections in the response. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateSectionsResponse {\n /** Information about the created sections. */\n results?: BulkCreateSectionResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateSectionResult {\n /** Metadata for created sections. */\n itemMetadata?: ItemMetadata;\n /** Created section. Only returned if `returnEntity` is set to `true`. */\n item?: Section;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface GetSectionRequest {\n /**\n * Section ID.\n * @format GUID\n */\n sectionId: string;\n}\n\nexport interface GetSectionResponse {\n /** Section. */\n section?: Section;\n}\n\nexport interface ListSectionsRequest {\n /**\n * Section IDs.\n * @format GUID\n * @maxSize 500\n */\n sectionIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n /** Whether to return only sections that are visible to site visitors. */\n onlyVisible?: boolean | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 500\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListSectionsResponse {\n /** Retrieved sections. */\n sections?: Section[];\n /** The metadata of the paginated results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface QuerySectionsRequest {\n /** Query options. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface QuerySectionsResponse {\n /** Retrieved sections. */\n sections?: Section[];\n /** The metadata of the paginated results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface UpdateSectionRequest {\n /** Section update. */\n section: Section;\n}\n\nexport interface UpdateSectionResponse {\n /** Updated section. */\n section?: Section;\n}\n\nexport interface BulkUpdateSectionRequest {\n /**\n * Sections to update.\n * @minSize 1\n * @maxSize 100\n */\n sections: MaskedSection[];\n /** Whether to receive the updated sections in the response. */\n returnEntity?: boolean;\n}\n\nexport interface MaskedSection {\n /** Section update. */\n section?: Section;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\nexport interface BulkUpdateSectionResponse {\n /**\n * Information about the updated sections.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkSectionResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkSectionResult {\n /** Whether to receive the updated sections in the response. */\n sectionMetadata?: ItemMetadata;\n /** Updated section. Only returned if `returnEntity` is set to `true`. */\n section?: Section;\n}\n\nexport interface DeleteSectionRequest {\n /**\n * Section ID.\n * @format GUID\n */\n sectionId: string;\n}\n\nexport interface DeleteSectionResponse {}\n\nexport interface BulkDeleteSectionsRequest {\n /**\n * Section IDs.\n * @format GUID\n */\n ids: string[];\n}\n\nexport interface BulkDeleteSectionsResponse {\n /** Information about the deleted sections. */\n results?: BulkDeleteSectionResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteSectionResult {\n /** Metadata for deleted sections. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface CloneSectionsRequest {\n /**\n * The MetaSiteId to clone from.\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface CloneSectionsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateBusinessLocationIdRequest {\n /**\n * section ids\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n sectionIds?: string[];\n /**\n * Business Location Id.\n * @format GUID\n */\n businessLocationId?: string | null;\n}\n\nexport interface BulkUpdateBusinessLocationIdResponse {\n /**\n * Information about the updated sections.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkItemResult[];\n}\n\nexport interface BulkItemResult {\n /** Metadata for item update. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface SyncContentToMultilingualRequest {\n /**\n * MetaSite ID\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface SyncContentToMultilingualResponse {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface SectionCreatedEnvelope {\n entity: Section;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.SECTION_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.section_created\n * @serviceIdentifier com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onSectionCreated(\n handler: (event: SectionCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SectionDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.SECTION_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.section_deleted\n * @serviceIdentifier com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onSectionDeleted(\n handler: (event: SectionDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SectionUpdatedEnvelope {\n entity: Section;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a section is updated.\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.SECTION_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.section_updated\n * @serviceIdentifier com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onSectionUpdated(\n handler: (event: SectionUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Duplicates a section.\n *\n * You can duplicate a section to the same business location, or to 1 or more different business locations.\n * You can specify whether to also duplicate the section's sub-entities, such as its items.\n * @param _id - ID of the section to be duplicated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId RESTAURANTS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection\n */\nexport async function duplicateSection(\n _id: string,\n options?: DuplicateSectionOptions\n): Promise<NonNullablePaths<DuplicateSectionResponse, `sectionId`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n businessLocationIds: options?.businessLocationIds,\n duplicateSubEntities: options?.duplicateSubEntities,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.duplicateSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n businessLocationIds: '$[1].businessLocationIds',\n duplicateSubEntities: '$[1].duplicateSubEntities',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DuplicateSectionOptions {\n /**\n * Business location IDs to assign to the duplicated section or sections.\n *\n * If you specify one or more IDs, a duplicate is created for each ID, with that ID in its `businessLocationId` field.\n * If you don't specify an ID, one duplicate is created with the same `businessLocationId` as the original section.\n * @format GUID\n * @maxSize 100\n */\n businessLocationIds?: string[] | null;\n /**\n * Whether to duplicate the section's sub-entities, such as its items.\n *\n * Default: `false`\n */\n duplicateSubEntities?: boolean | null;\n}\n\n/**\n * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a section.\n *\n * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).\n * @param section - Section details.\n * @public\n * @documentationMaturity preview\n * @requiredField section\n * @permissionId RESTAURANTS.SECTION_CREATE\n * @applicableIdentity APP\n * @returns Section.\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection\n */\nexport async function createSection(\n section: Section\n): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ section: section }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.createSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { section: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['section']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple sections at once.\n * @param sections - Sections details.\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @permissionId RESTAURANTS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections\n */\nexport async function bulkCreateSections(\n sections: Section[],\n options?: BulkCreateSectionsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n sections: sections,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'sections.image' },\n { path: 'sections.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.bulkCreateSections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.image' },\n { path: 'results.item.additionalImages', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sections: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['sections', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateSectionsOptions {\n /** Whether to receive the created sections in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a section by ID.\n * @param sectionId - Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId RESTAURANTS.SECTION_READ\n * @applicableIdentity APP\n * @returns Section.\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection\n */\nexport async function getSection(\n sectionId: string\n): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n });\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.getSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['sectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 sections.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.SECTION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections\n */\nexport async function listSections(\n options?: ListSectionsOptions\n): Promise<\n NonNullablePaths<\n ListSectionsResponse,\n `sections` | `sections.${number}.name`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionIds: options?.sectionIds,\n paging: options?.paging,\n onlyVisible: options?.onlyVisible,\n });\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.listSections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sections.image' },\n { path: 'sections.additionalImages', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionIds: '$[0].sectionIds',\n paging: '$[0].paging',\n onlyVisible: '$[0].onlyVisible',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListSectionsOptions {\n /**\n * Section IDs.\n * @format GUID\n * @maxSize 500\n */\n sectionIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n /** Whether to return only sections that are visible to site visitors. */\n onlyVisible?: boolean | null;\n}\n\n/**\n * Creates a query to retrieve a list of sections.\n *\n * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.\n *\n * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.\n *\n * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(100)`](/sections/sections-query-builder/limit)\n *\n * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.SECTION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections\n */\nexport function querySections(): SectionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Section,\n 'CURSOR',\n QuerySectionsRequest,\n QuerySectionsResponse\n >({\n func: async (payload: QuerySectionsRequest) => {\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.querySections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySectionsRequest['query']) => {\n const args = [query, {}] as [QuerySectionsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QuerySectionsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sections.image' },\n { path: 'sections.additionalImages', isRepeated: true },\n ],\n },\n ])\n );\n\n return {\n items: transformedData?.sections,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SectionsQueryResult extends QueryCursorResult {\n items: Section[];\n query: SectionsQueryBuilder;\n next: () => Promise<SectionsQueryResult>;\n prev: () => Promise<SectionsQueryResult>;\n}\n\nexport interface SectionsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'description',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'description',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: 'name' | 'description',\n value: string\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: string, value: any[]) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'name' | 'description',\n value: any\n ) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'image' | 'itemIds',\n value: boolean\n ) => SectionsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => SectionsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<SectionsQueryResult>;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a section.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param _id - Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField section\n * @requiredField section.revision\n * @permissionId RESTAURANTS.SECTION_UPDATE\n * @applicableIdentity APP\n * @returns Updated section.\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection\n */\nexport async function updateSection(\n _id: string,\n section: NonNullablePaths<UpdateSection, `revision`, 2>\n): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ section: { ...section, id: _id } }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.updateSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { section: '$[1]' },\n explicitPathsToArguments: { 'section.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'section']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSection {\n /**\n * Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the section was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the section was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Section name.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Section description.\n * @maxLength 1500\n */\n description?: string | null;\n /** Main section image. */\n image?: string;\n /**\n * Additional section images.\n * @maxSize 100\n */\n additionalImages?: string[];\n /**\n * Item IDs.\n * @format GUID\n * @maxSize 300\n */\n itemIds?: string[];\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /** Whether the section is visible in the menu for site visitors. */\n visible?: boolean | null;\n /**\n * ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this section is available.\n * @format GUID\n * @readonly\n */\n businessLocationId?: string | null;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple sections at once.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param sections - Sections to update.\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @requiredField sections.section._id\n * @requiredField sections.section.revision\n * @permissionId RESTAURANTS.SECTION_UPDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection\n */\nexport async function bulkUpdateSection(\n sections: NonNullablePaths<\n MaskedSection,\n `section._id` | `section.revision`,\n 3\n >[],\n options?: BulkUpdateSectionOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateSectionResponse,\n | `results`\n | `results.${number}.sectionMetadata.originalIndex`\n | `results.${number}.sectionMetadata.success`\n | `results.${number}.sectionMetadata.error.code`\n | `results.${number}.sectionMetadata.error.description`\n | `results.${number}.section.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n sections: sections,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'sections.section.image' },\n { path: 'sections.section.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.bulkUpdateSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.section.image' },\n { path: 'results.section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sections: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['sections', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSectionOptions {\n /** Whether to receive the updated sections in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a section.\n * @param sectionId - Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId RESTAURANTS.SECTION_DELETE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection\n */\nexport async function deleteSection(sectionId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n });\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.deleteSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['sectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple sections at once.\n * @param ids - Section IDs.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId RESTAURANTS.SECTION_DELETE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections\n */\nexport async function bulkDeleteSections(\n ids: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.bulkDeleteSections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { ids: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['ids']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/restaurants/menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/restaurants/menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_sections';\n\n/**\n * Duplicates a section.\n *\n * You can duplicate a section to the same business location, or to 1 or more different business locations.\n * You can specify whether to also duplicate the section's sub-entities, such as its items.\n */\nexport function duplicateSection(payload: object): RequestOptionsFactory<any> {\n function __duplicateSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(\n { protoPath: '/v1/sections/{id}/duplicate', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __duplicateSection;\n}\n\n/**\n * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a section.\n *\n * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).\n */\nexport function createSection(payload: object): RequestOptionsFactory<any> {\n function __createSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple sections at once.\n */\nexport function bulkCreateSections(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateSections({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.image.urlExpirationDate' },\n { path: 'sections.additionalImages.urlExpirationDate' },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/bulk/sections/create', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.image.urlExpirationDate' },\n { path: 'results.item.additionalImages.urlExpirationDate' },\n {\n path: 'results.item.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'results.item.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'results.item.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSections;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a section by ID.\n */\nexport function getSection(payload: object): RequestOptionsFactory<any> {\n function __getSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/{sectionId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 sections.\n */\nexport function listSections(payload: object): RequestOptionsFactory<any> {\n function __listSections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.image.urlExpirationDate' },\n { path: 'sections.additionalImages.urlExpirationDate' },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listSections;\n}\n\n/**\n * Creates a query to retrieve a list of sections.\n *\n * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.\n *\n * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.\n *\n * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(100)`](/sections/sections-query-builder/limit)\n *\n * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.\n */\nexport function querySections(payload: object): RequestOptionsFactory<any> {\n function __querySections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.image.urlExpirationDate' },\n { path: 'sections.additionalImages.urlExpirationDate' },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySections;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a section.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n */\nexport function updateSection(payload: object): RequestOptionsFactory<any> {\n function __updateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/{section.id}', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple sections at once.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n */\nexport function bulkUpdateSection(payload: object): RequestOptionsFactory<any> {\n function __bulkUpdateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'sections.mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.section.createdDate' },\n { path: 'sections.section.updatedDate' },\n { path: 'sections.section.image.urlExpirationDate' },\n { path: 'sections.section.additionalImages.urlExpirationDate' },\n {\n path: 'sections.section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/bulk/sections/update', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.section.createdDate' },\n { path: 'results.section.updatedDate' },\n { path: 'results.section.image.urlExpirationDate' },\n { path: 'results.section.additionalImages.urlExpirationDate' },\n {\n path: 'results.section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'results.section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'results.section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a section.\n */\nexport function deleteSection(payload: object): RequestOptionsFactory<any> {\n function __deleteSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/{sectionId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple sections at once.\n */\nexport function bulkDeleteSections(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteSections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/bulk/sections/delete', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __bulkDeleteSections;\n}\n","import {\n duplicateSection as publicDuplicateSection,\n createSection as publicCreateSection,\n bulkCreateSections as publicBulkCreateSections,\n getSection as publicGetSection,\n listSections as publicListSections,\n querySections as publicQuerySections,\n updateSection as publicUpdateSection,\n bulkUpdateSection as publicBulkUpdateSection,\n deleteSection as publicDeleteSection,\n bulkDeleteSections as publicBulkDeleteSections,\n} from './restaurants-menus-v1-section-sections.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onSectionCreated as publicOnSectionCreated } from './restaurants-menus-v1-section-sections.public.js';\nimport { onSectionDeleted as publicOnSectionDeleted } from './restaurants-menus-v1-section-sections.public.js';\nimport { onSectionUpdated as publicOnSectionUpdated } from './restaurants-menus-v1-section-sections.public.js';\n\nexport const duplicateSection: MaybeContext<\n BuildRESTFunction<typeof publicDuplicateSection> &\n typeof publicDuplicateSection\n> = /*#__PURE__*/ createRESTModule(publicDuplicateSection);\nexport const createSection: MaybeContext<\n BuildRESTFunction<typeof publicCreateSection> & typeof publicCreateSection\n> = /*#__PURE__*/ createRESTModule(publicCreateSection);\nexport const bulkCreateSections: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateSections> &\n typeof publicBulkCreateSections\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateSections);\nexport const getSection: MaybeContext<\n BuildRESTFunction<typeof publicGetSection> & typeof publicGetSection\n> = /*#__PURE__*/ createRESTModule(publicGetSection);\nexport const listSections: MaybeContext<\n BuildRESTFunction<typeof publicListSections> & typeof publicListSections\n> = /*#__PURE__*/ createRESTModule(publicListSections);\nexport const querySections: MaybeContext<\n BuildRESTFunction<typeof publicQuerySections> & typeof publicQuerySections\n> = /*#__PURE__*/ createRESTModule(publicQuerySections);\nexport const updateSection: MaybeContext<\n BuildRESTFunction<typeof publicUpdateSection> & typeof publicUpdateSection\n> = /*#__PURE__*/ createRESTModule(publicUpdateSection);\nexport const bulkUpdateSection: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSection> &\n typeof publicBulkUpdateSection\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSection);\nexport const deleteSection: MaybeContext<\n BuildRESTFunction<typeof publicDeleteSection> & typeof publicDeleteSection\n> = /*#__PURE__*/ createRESTModule(publicDeleteSection);\nexport const bulkDeleteSections: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteSections> &\n typeof publicBulkDeleteSections\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteSections);\n/** */\nexport const onSectionCreated: BuildEventDefinition<\n typeof publicOnSectionCreated\n> &\n typeof publicOnSectionCreated = createEventModule(publicOnSectionCreated);\n/** */\nexport const onSectionDeleted: BuildEventDefinition<\n typeof publicOnSectionDeleted\n> &\n typeof publicOnSectionDeleted = createEventModule(publicOnSectionDeleted);\n/**\n * Triggered when a section is updated.\n */\nexport const onSectionUpdated: BuildEventDefinition<\n typeof publicOnSectionUpdated\n> &\n typeof publicOnSectionUpdated = createEventModule(publicOnSectionUpdated);\n\nexport {\n AvailabilityType,\n DayOfWeek,\n SortOrder,\n WebhookIdentityType,\n} from './restaurants-menus-v1-section-sections.universal.js';\nexport {\n Section,\n ExtendedFields,\n OrderSettings,\n Availability,\n AvailabilityAvailabilityTypeOptionsOneOf,\n WeeklyScheduleOptions,\n DayOfWeekAvailability,\n TimeOfDayRange,\n TimeOfDay,\n TimestampRangesOptions,\n AvailableRange,\n ExternalReferenceInfo,\n DuplicateSectionRequest,\n DuplicateSectionResponse,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n DeleteLocationIdFromItems,\n CreateSectionRequest,\n CreateSectionResponse,\n BulkCreateSectionsRequest,\n BulkCreateSectionsResponse,\n BulkCreateSectionResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n GetSectionRequest,\n GetSectionResponse,\n ListSectionsRequest,\n CursorPaging,\n ListSectionsResponse,\n CursorPagingMetadata,\n Cursors,\n QuerySectionsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QuerySectionsResponse,\n UpdateSectionRequest,\n UpdateSectionResponse,\n BulkUpdateSectionRequest,\n MaskedSection,\n BulkUpdateSectionResponse,\n BulkSectionResult,\n DeleteSectionRequest,\n DeleteSectionResponse,\n BulkDeleteSectionsRequest,\n BulkDeleteSectionsResponse,\n BulkDeleteSectionResult,\n CloneSectionsRequest,\n CloneSectionsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n BulkUpdateBusinessLocationIdRequest,\n BulkUpdateBusinessLocationIdResponse,\n BulkItemResult,\n SyncContentToMultilingualRequest,\n SyncContentToMultilingualResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n SectionCreatedEnvelope,\n SectionDeletedEnvelope,\n SectionUpdatedEnvelope,\n DuplicateSectionOptions,\n BulkCreateSectionsOptions,\n ListSectionsOptions,\n SectionsQueryResult,\n SectionsQueryBuilder,\n UpdateSection,\n BulkUpdateSectionOptions,\n} from './restaurants-menus-v1-section-sections.universal.js';\nexport {\n AvailabilityTypeWithLiterals,\n DayOfWeekWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './restaurants-menus-v1-section-sections.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA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B;AAAA,EACA;AAAA,EACA,CAAC,cACC;AAAA,QACE,wCAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA,EAAE,MAAM,4CAA4C;AAAA,UACpD,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAa;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,eAAe;AAAA,UACvB,EAAE,MAAM,2BAA2B,YAAY,KAAK;AAAA,QACtD;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA0B;;;AG1Z1B,IAAAC,uBAAiC;AACjC,sCAAkC;AAU3B,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,cAEK,2DAAiBA,WAAgB;AAC5C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,sBAGK,2DAAiBA,mBAAwB;AAEpD,IAAMC,wBAGqB,mDAAkB,gBAAsB;AAEnE,IAAMC,wBAGqB,mDAAkB,gBAAsB;AAInE,IAAMC,wBAGqB,mDAAkB,gBAAsB;","names":["bulkCreateSections","bulkDeleteSections","bulkUpdateSection","createSection","deleteSection","duplicateSection","getSection","listSections","onSectionCreated","onSectionDeleted","onSectionUpdated","querySections","updateSection","import_rename_all_nested_keys","import_image","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","AvailabilityType","DayOfWeek","SortOrder","WebhookIdentityType","duplicateSection","sdkTransformError","createSection","bulkCreateSections","getSection","listSections","querySections","updateSection","bulkUpdateSection","deleteSection","bulkDeleteSections","duplicateSection","createSection","bulkCreateSections","getSection","listSections","querySections","updateSection","bulkUpdateSection","deleteSection","bulkDeleteSections","import_rest_modules","duplicateSection","createSection","bulkCreateSections","getSection","listSections","querySections","updateSection","bulkUpdateSection","deleteSection","bulkDeleteSections","onSectionCreated","onSectionDeleted","onSectionUpdated"]}
|
|
1
|
+
{"version":3,"sources":["../../index.ts","../../src/restaurants-menus-v1-section-sections.public.ts","../../src/restaurants-menus-v1-section-sections.universal.ts","../../src/restaurants-menus-v1-section-sections.http.ts","../../src/restaurants-menus-v1-section-sections.context.ts"],"sourcesContent":["export * from './src/restaurants-menus-v1-section-sections.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n BulkCreateSectionsOptions,\n BulkCreateSectionsResponse,\n BulkDeleteSectionsResponse,\n BulkUpdateSectionOptions,\n BulkUpdateSectionResponse,\n DuplicateSectionOptions,\n DuplicateSectionResponse,\n ListSectionsOptions,\n ListSectionsResponse,\n MaskedSection,\n Section,\n SectionCreatedEnvelope,\n SectionDeletedEnvelope,\n SectionUpdatedEnvelope,\n SectionsQueryBuilder,\n UpdateSection,\n bulkCreateSections as universalBulkCreateSections,\n bulkDeleteSections as universalBulkDeleteSections,\n bulkUpdateSection as universalBulkUpdateSection,\n createSection as universalCreateSection,\n deleteSection as universalDeleteSection,\n duplicateSection as universalDuplicateSection,\n getSection as universalGetSection,\n listSections as universalListSections,\n querySections as universalQuerySections,\n updateSection as universalUpdateSection,\n} from './restaurants-menus-v1-section-sections.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/restaurants' };\n\nexport function duplicateSection(\n httpClient: HttpClient\n): DuplicateSectionSignature {\n return (_id: string, options?: DuplicateSectionOptions) =>\n universalDuplicateSection(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DuplicateSectionSignature {\n /**\n * Duplicates a section.\n *\n * You can duplicate a section to the same business location, or to 1 or more different business locations.\n * You can specify whether to also duplicate the section's sub-entities, such as its items.\n * @param - ID of the section to be duplicated.\n */\n (_id: string, options?: DuplicateSectionOptions): Promise<\n NonNullablePaths<DuplicateSectionResponse, `sectionId`, 2>\n >;\n}\n\nexport function createSection(httpClient: HttpClient): CreateSectionSignature {\n return (section: Section) =>\n universalCreateSection(\n section,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateSectionSignature {\n /**\n * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a section.\n *\n * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).\n * @param - Section details.\n * @returns Section.\n */\n (section: Section): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n >;\n}\n\nexport function bulkCreateSections(\n httpClient: HttpClient\n): BulkCreateSectionsSignature {\n return (sections: Section[], options?: BulkCreateSectionsOptions) =>\n universalBulkCreateSections(\n sections,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkCreateSectionsSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple sections at once.\n * @param - Sections details.\n */\n (sections: Section[], options?: BulkCreateSectionsOptions): Promise<\n NonNullablePaths<\n BulkCreateSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function getSection(httpClient: HttpClient): GetSectionSignature {\n return (sectionId: string) =>\n universalGetSection(\n sectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a section by ID.\n * @param - Section ID.\n * @returns Section.\n */\n (sectionId: string): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n >;\n}\n\nexport function listSections(httpClient: HttpClient): ListSectionsSignature {\n return (options?: ListSectionsOptions) =>\n universalListSections(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListSectionsSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 sections.\n */\n (options?: ListSectionsOptions): Promise<\n NonNullablePaths<\n ListSectionsResponse,\n `sections` | `sections.${number}.name`,\n 4\n >\n >;\n}\n\nexport function querySections(httpClient: HttpClient): QuerySectionsSignature {\n return () =>\n universalQuerySections(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QuerySectionsSignature {\n /**\n * Creates a query to retrieve a list of sections.\n *\n * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.\n *\n * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.\n *\n * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(100)`](/sections/sections-query-builder/limit)\n *\n * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.\n */\n (): SectionsQueryBuilder;\n}\n\nexport function updateSection(httpClient: HttpClient): UpdateSectionSignature {\n return (\n _id: string,\n section: NonNullablePaths<UpdateSection, `revision`, 2>\n ) =>\n universalUpdateSection(\n _id,\n section,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a section.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param - Section ID.\n * @returns Updated section.\n */\n (\n _id: string,\n section: NonNullablePaths<UpdateSection, `revision`, 2>\n ): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n >;\n}\n\nexport function bulkUpdateSection(\n httpClient: HttpClient\n): BulkUpdateSectionSignature {\n return (\n sections: NonNullablePaths<\n MaskedSection,\n `section._id` | `section.revision`,\n 3\n >[],\n options?: BulkUpdateSectionOptions\n ) =>\n universalBulkUpdateSection(\n sections,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkUpdateSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple sections at once.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param - Sections to update.\n */\n (\n sections: NonNullablePaths<\n MaskedSection,\n `section._id` | `section.revision`,\n 3\n >[],\n options?: BulkUpdateSectionOptions\n ): Promise<\n NonNullablePaths<\n BulkUpdateSectionResponse,\n | `results`\n | `results.${number}.sectionMetadata.originalIndex`\n | `results.${number}.sectionMetadata.success`\n | `results.${number}.sectionMetadata.error.code`\n | `results.${number}.sectionMetadata.error.description`\n | `results.${number}.section.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport function deleteSection(httpClient: HttpClient): DeleteSectionSignature {\n return (sectionId: string) =>\n universalDeleteSection(\n sectionId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteSectionSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a section.\n * @param - Section ID.\n */\n (sectionId: string): Promise<void>;\n}\n\nexport function bulkDeleteSections(\n httpClient: HttpClient\n): BulkDeleteSectionsSignature {\n return (ids: string[]) =>\n universalBulkDeleteSections(\n ids,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface BulkDeleteSectionsSignature {\n /**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple sections at once.\n * @param - Section IDs.\n */\n (ids: string[]): Promise<\n NonNullablePaths<\n BulkDeleteSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n >;\n}\n\nexport const onSectionCreated = EventDefinition(\n 'wix.restaurants.menus.v1.section_created',\n true,\n (event: SectionCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'entity.externalReferenceInfo.lastSyncDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.image' },\n { path: 'entity.additionalImages', isRepeated: true },\n ],\n },\n ])\n )\n)<SectionCreatedEnvelope>();\nexport const onSectionDeleted = EventDefinition(\n 'wix.restaurants.menus.v1.section_deleted',\n true,\n (event: SectionDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n {\n path: 'undefined.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'undefined.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'undefined.externalReferenceInfo.lastSyncDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'undefined.image' },\n { path: 'undefined.additionalImages', isRepeated: true },\n ],\n },\n ])\n )\n)<SectionDeletedEnvelope>();\nexport const onSectionUpdated = EventDefinition(\n 'wix.restaurants.menus.v1.section_updated',\n true,\n (event: SectionUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'entity.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'entity.externalReferenceInfo.lastSyncDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.image' },\n { path: 'entity.additionalImages', isRepeated: true },\n ],\n },\n ])\n )\n)<SectionUpdatedEnvelope>();\n\nexport {\n ActionEvent,\n App,\n ApplicationError,\n Availability,\n AvailabilityAvailabilityTypeOptionsOneOf,\n AvailabilityType,\n AvailableRange,\n BaseEventMetadata,\n BulkActionMetadata,\n BulkCreateSectionResult,\n BulkCreateSectionsOptions,\n BulkCreateSectionsRequest,\n BulkCreateSectionsResponse,\n BulkDeleteSectionResult,\n BulkDeleteSectionsRequest,\n BulkDeleteSectionsResponse,\n BulkItemResult,\n BulkSectionResult,\n BulkUpdateBusinessLocationIdRequest,\n BulkUpdateBusinessLocationIdResponse,\n BulkUpdateSectionOptions,\n BulkUpdateSectionRequest,\n BulkUpdateSectionResponse,\n CloneSectionsRequest,\n CloneSectionsResponse,\n CreateSectionRequest,\n CreateSectionResponse,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomTag,\n DayOfWeek,\n DayOfWeekAvailability,\n DeleteLocationIdFromItems,\n DeleteSectionRequest,\n DeleteSectionResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n DuplicateSectionOptions,\n DuplicateSectionRequest,\n DuplicateSectionResponse,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n ExternalReferenceInfo,\n File,\n GetSectionRequest,\n GetSectionResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n ItemMetadata,\n ListSectionsOptions,\n ListSectionsRequest,\n ListSectionsResponse,\n MaskedSection,\n MessageEnvelope,\n OrderSettings,\n Page,\n QuerySectionsRequest,\n QuerySectionsResponse,\n RestoreInfo,\n Section,\n SectionCreatedEnvelope,\n SectionDeletedEnvelope,\n SectionUpdatedEnvelope,\n SectionsQueryBuilder,\n SectionsQueryResult,\n SortOrder,\n Sorting,\n SyncContentToMultilingualRequest,\n SyncContentToMultilingualResponse,\n TimeOfDay,\n TimeOfDayRange,\n TimestampRangesOptions,\n URI,\n UpdateSection,\n UpdateSectionRequest,\n UpdateSectionResponse,\n WebhookIdentityType,\n WeeklyScheduleOptions,\n} from './restaurants-menus-v1-section-sections.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixRestaurantsMenusV1Section from './restaurants-menus-v1-section-sections.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Section {\n /**\n * Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the section was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the section was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Section name.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Section description.\n * @maxLength 1500\n */\n description?: string | null;\n /** Main section image. */\n image?: string;\n /**\n * Additional section images.\n * @maxSize 100\n */\n additionalImages?: string[];\n /**\n * Item IDs.\n * @format GUID\n * @maxSize 300\n */\n itemIds?: string[];\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /** Whether the section is visible in the menu for site visitors. */\n visible?: boolean | null;\n /**\n * ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this section is available.\n * @format GUID\n * @readonly\n */\n businessLocationId?: string | null;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface OrderSettings {\n availability?: Availability;\n}\n\nexport interface Availability extends AvailabilityAvailabilityTypeOptionsOneOf {\n /** Settings for availability on a weekly schedule. */\n weeklyScheduleOptions?: WeeklyScheduleOptions;\n /** Settings for availability within a time range. */\n timestampRangesOptions?: TimestampRangesOptions;\n /** Availability type. */\n type?: AvailabilityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface AvailabilityAvailabilityTypeOptionsOneOf {\n /** Settings for availability on a weekly schedule. */\n weeklyScheduleOptions?: WeeklyScheduleOptions;\n /** Settings for availability within a time range. */\n timestampRangesOptions?: TimestampRangesOptions;\n}\n\nexport enum AvailabilityType {\n /** Missing type due to an error. */\n UNSPECIFIED_AVAILABILITY_OPTION = 'UNSPECIFIED_AVAILABILITY_OPTION',\n /** Available all the time. */\n ALWAYS_AVAILABLE = 'ALWAYS_AVAILABLE',\n /** Available on specific days and times throughout the week. */\n WEEKLY_SCHEDULE = 'WEEKLY_SCHEDULE',\n /** Available during a specific time range. */\n TIMESTAMP_RANGES = 'TIMESTAMP_RANGES',\n}\n\n/** @enumType */\nexport type AvailabilityTypeWithLiterals =\n | AvailabilityType\n | 'UNSPECIFIED_AVAILABILITY_OPTION'\n | 'ALWAYS_AVAILABLE'\n | 'WEEKLY_SCHEDULE'\n | 'TIMESTAMP_RANGES';\n\nexport interface WeeklyScheduleOptions {\n /**\n * List of available time ranges for specific days of the week.\n * @maxSize 7\n */\n availableTimes?: DayOfWeekAvailability[];\n}\n\nexport interface DayOfWeekAvailability {\n /** The day of week this availability relates to. */\n dayOfWeek?: DayOfWeekWithLiterals;\n /** A list of time ranges during which the fulfillment should be available. */\n timeRanges?: TimeOfDayRange[];\n}\n\nexport enum DayOfWeek {\n /** Monday. */\n MON = 'MON',\n /** Tuesday. */\n TUE = 'TUE',\n /** Wednesday. */\n WED = 'WED',\n /** Thursday. */\n THU = 'THU',\n /** Friday. */\n FRI = 'FRI',\n /** Saturday. */\n SAT = 'SAT',\n /** Sunday. */\n SUN = 'SUN',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MON'\n | 'TUE'\n | 'WED'\n | 'THU'\n | 'FRI'\n | 'SAT'\n | 'SUN';\n\nexport interface TimeOfDayRange {\n /** The start time in time of day representation. */\n startTime?: TimeOfDay;\n /** The end time in time of day representation. */\n endTime?: TimeOfDay;\n}\n\nexport interface TimeOfDay {\n /**\n * Hours. <br />\n * Min: `0`. <br />\n * Max: `23`.\n */\n hours?: number;\n /**\n * Minutes. <br />\n * Min: `0`. <br />\n * Max: `23`.\n */\n minutes?: number;\n}\n\nexport interface TimestampRangesOptions {\n /**\n * List of available time ranges.\n * @maxSize 50\n */\n ranges?: AvailableRange[];\n}\n\nexport interface AvailableRange {\n /** The start time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */\n startTime?: Date | null;\n /** The end time of the availability in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#combined_date_and_time_representations) format. */\n endTime?: Date | null;\n}\n\nexport interface ExternalReferenceInfo {\n /**\n * ID of the external integrator app\\system associated with this object.\n * @format GUID\n */\n externalAppId?: string | null;\n /**\n * Reference to an external resource ID. Used to link this object to a specific entity in an external system.\n * @maxLength 100\n */\n externalEntityId?: string | null;\n /** Last time this section was synced with the external app. */\n lastSyncDate?: Date | null;\n /** Whether the connection to the external system is currently active. */\n connected?: boolean | null;\n}\n\nexport interface DuplicateSectionRequest {\n /**\n * ID of the section to be duplicated.\n * @format GUID\n */\n _id: string;\n /**\n * Business location IDs to assign to the duplicated section or sections.\n *\n * If you specify one or more IDs, a duplicate is created for each ID, with that ID in its `businessLocationId` field.\n * If you don't specify an ID, one duplicate is created with the same `businessLocationId` as the original section.\n * @format GUID\n * @maxSize 100\n */\n businessLocationIds?: string[] | null;\n /**\n * Whether to duplicate the section's sub-entities, such as its items.\n *\n * Default: `false`\n */\n duplicateSubEntities?: boolean | null;\n}\n\nexport interface DuplicateSectionResponse {\n /**\n * IDs of the newly created sections.\n * @format GUID\n */\n sectionId?: string[];\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface DeleteLocationIdFromItems {\n /** @format GUID */\n businessLocationId?: string;\n /**\n * @format GUID\n * @maxSize 1000\n */\n itemIds?: string[];\n}\n\nexport interface CreateSectionRequest {\n /** Section details. */\n section: Section;\n}\n\nexport interface CreateSectionResponse {\n /** Section. */\n section?: Section;\n}\n\nexport interface BulkCreateSectionsRequest {\n /**\n * Sections details.\n * @maxSize 100\n */\n sections: Section[];\n /** Whether to receive the created sections in the response. */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateSectionsResponse {\n /** Information about the created sections. */\n results?: BulkCreateSectionResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkCreateSectionResult {\n /** Metadata for created sections. */\n itemMetadata?: ItemMetadata;\n /** Created section. Only returned if `returnEntity` is set to `true`. */\n item?: Section;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface GetSectionRequest {\n /**\n * Section ID.\n * @format GUID\n */\n sectionId: string;\n}\n\nexport interface GetSectionResponse {\n /** Section. */\n section?: Section;\n}\n\nexport interface ListSectionsRequest {\n /**\n * Section IDs.\n * @format GUID\n * @maxSize 500\n */\n sectionIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n /** Whether to return only sections that are visible to site visitors. */\n onlyVisible?: boolean | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 500\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n */\n cursor?: string | null;\n}\n\nexport interface ListSectionsResponse {\n /** Retrieved sections. */\n sections?: Section[];\n /** The metadata of the paginated results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n cursors?: Cursors;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /** Cursor pointing to next page in the list of results. */\n next?: string | null;\n /** Cursor pointing to previous page in the list of results. */\n prev?: string | null;\n}\n\nexport interface QuerySectionsRequest {\n /** Query options. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** 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`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface QuerySectionsResponse {\n /** Retrieved sections. */\n sections?: Section[];\n /** The metadata of the paginated results. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface UpdateSectionRequest {\n /** Section update. */\n section: Section;\n}\n\nexport interface UpdateSectionResponse {\n /** Updated section. */\n section?: Section;\n}\n\nexport interface BulkUpdateSectionRequest {\n /**\n * Sections to update.\n * @minSize 1\n * @maxSize 100\n */\n sections: MaskedSection[];\n /** Whether to receive the updated sections in the response. */\n returnEntity?: boolean;\n}\n\nexport interface MaskedSection {\n /** Section update. */\n section?: Section;\n /** Explicit list of fields to update. */\n mask?: string[];\n}\n\nexport interface BulkUpdateSectionResponse {\n /**\n * Information about the updated sections.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkSectionResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkSectionResult {\n /** Whether to receive the updated sections in the response. */\n sectionMetadata?: ItemMetadata;\n /** Updated section. Only returned if `returnEntity` is set to `true`. */\n section?: Section;\n}\n\nexport interface DeleteSectionRequest {\n /**\n * Section ID.\n * @format GUID\n */\n sectionId: string;\n}\n\nexport interface DeleteSectionResponse {}\n\nexport interface BulkDeleteSectionsRequest {\n /**\n * Section IDs.\n * @format GUID\n */\n ids: string[];\n}\n\nexport interface BulkDeleteSectionsResponse {\n /** Information about the deleted sections. */\n results?: BulkDeleteSectionResult[];\n /** Metadata for the API call. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteSectionResult {\n /** Metadata for deleted sections. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface CloneSectionsRequest {\n /**\n * The MetaSiteId to clone from.\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface CloneSectionsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface BulkUpdateBusinessLocationIdRequest {\n /**\n * section ids\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n sectionIds?: string[];\n /**\n * Business Location Id.\n * @format GUID\n */\n businessLocationId?: string | null;\n}\n\nexport interface BulkUpdateBusinessLocationIdResponse {\n /**\n * Information about the updated sections.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkItemResult[];\n}\n\nexport interface BulkItemResult {\n /** Metadata for item update. */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface SyncContentToMultilingualRequest {\n /**\n * MetaSite ID\n * @format GUID\n */\n metaSiteId?: string;\n}\n\nexport interface SyncContentToMultilingualResponse {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * 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.\n * 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.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface SectionCreatedEnvelope {\n entity: Section;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.SECTION_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.section_created\n * @serviceIdentifier com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onSectionCreated(\n handler: (event: SectionCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SectionDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.SECTION_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.section_deleted\n * @serviceIdentifier com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onSectionDeleted(\n handler: (event: SectionDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SectionUpdatedEnvelope {\n entity: Section;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a section is updated.\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionId RESTAURANTS.SECTION_READ\n * @webhook\n * @eventType wix.restaurants.menus.v1.section_updated\n * @serviceIdentifier com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onSectionUpdated(\n handler: (event: SectionUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Duplicates a section.\n *\n * You can duplicate a section to the same business location, or to 1 or more different business locations.\n * You can specify whether to also duplicate the section's sub-entities, such as its items.\n * @param _id - ID of the section to be duplicated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId RESTAURANTS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection\n */\nexport async function duplicateSection(\n _id: string,\n options?: DuplicateSectionOptions\n): Promise<NonNullablePaths<DuplicateSectionResponse, `sectionId`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n businessLocationIds: options?.businessLocationIds,\n duplicateSubEntities: options?.duplicateSubEntities,\n });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.duplicateSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n businessLocationIds: '$[1].businessLocationIds',\n duplicateSubEntities: '$[1].duplicateSubEntities',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DuplicateSectionOptions {\n /**\n * Business location IDs to assign to the duplicated section or sections.\n *\n * If you specify one or more IDs, a duplicate is created for each ID, with that ID in its `businessLocationId` field.\n * If you don't specify an ID, one duplicate is created with the same `businessLocationId` as the original section.\n * @format GUID\n * @maxSize 100\n */\n businessLocationIds?: string[] | null;\n /**\n * Whether to duplicate the section's sub-entities, such as its items.\n *\n * Default: `false`\n */\n duplicateSubEntities?: boolean | null;\n}\n\n/**\n * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a section.\n *\n * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).\n * @param section - Section details.\n * @public\n * @documentationMaturity preview\n * @requiredField section\n * @permissionId RESTAURANTS.SECTION_CREATE\n * @applicableIdentity APP\n * @returns Section.\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection\n */\nexport async function createSection(\n section: Section\n): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ section: section }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.createSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { section: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['section']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple sections at once.\n * @param sections - Sections details.\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @permissionId RESTAURANTS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections\n */\nexport async function bulkCreateSections(\n sections: Section[],\n options?: BulkCreateSectionsOptions\n): Promise<\n NonNullablePaths<\n BulkCreateSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n sections: sections,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'sections.image' },\n { path: 'sections.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.bulkCreateSections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.item.image' },\n { path: 'results.item.additionalImages', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sections: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['sections', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateSectionsOptions {\n /** Whether to receive the created sections in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a section by ID.\n * @param sectionId - Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId RESTAURANTS.SECTION_READ\n * @applicableIdentity APP\n * @returns Section.\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection\n */\nexport async function getSection(\n sectionId: string\n): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n });\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.getSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['sectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 sections.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.SECTION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections\n */\nexport async function listSections(\n options?: ListSectionsOptions\n): Promise<\n NonNullablePaths<\n ListSectionsResponse,\n `sections` | `sections.${number}.name`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionIds: options?.sectionIds,\n paging: options?.paging,\n onlyVisible: options?.onlyVisible,\n });\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.listSections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sections.image' },\n { path: 'sections.additionalImages', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionIds: '$[0].sectionIds',\n paging: '$[0].paging',\n onlyVisible: '$[0].onlyVisible',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListSectionsOptions {\n /**\n * Section IDs.\n * @format GUID\n * @maxSize 500\n */\n sectionIds?: string[];\n /** The metadata of the paginated results. */\n paging?: CursorPaging;\n /** Whether to return only sections that are visible to site visitors. */\n onlyVisible?: boolean | null;\n}\n\n/**\n * Creates a query to retrieve a list of sections.\n *\n * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.\n *\n * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.\n *\n * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(100)`](/sections/sections-query-builder/limit)\n *\n * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.\n * @public\n * @documentationMaturity preview\n * @permissionId RESTAURANTS.SECTION_READ\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections\n */\nexport function querySections(): SectionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Section,\n 'CURSOR',\n QuerySectionsRequest,\n QuerySectionsResponse\n >({\n func: async (payload: QuerySectionsRequest) => {\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.querySections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QuerySectionsRequest['query']) => {\n const args = [query, {}] as [QuerySectionsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QuerySectionsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'sections.image' },\n { path: 'sections.additionalImages', isRepeated: true },\n ],\n },\n ])\n );\n\n return {\n items: transformedData?.sections,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface SectionsQueryResult extends QueryCursorResult {\n items: Section[];\n query: SectionsQueryBuilder;\n next: () => Promise<SectionsQueryResult>;\n prev: () => Promise<SectionsQueryResult>;\n}\n\nexport interface SectionsQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'description',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName:\n | '_id'\n | '_createdDate'\n | '_updatedDate'\n | 'name'\n | 'description',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_createdDate' | '_updatedDate',\n value: any\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: 'name' | 'description',\n value: string\n ) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: string, value: any[]) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'name' | 'description',\n value: any\n ) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: 'image' | 'itemIds',\n value: boolean\n ) => SectionsQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => SectionsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<SectionsQueryResult>;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a section.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param _id - Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField section\n * @requiredField section.revision\n * @permissionId RESTAURANTS.SECTION_UPDATE\n * @applicableIdentity APP\n * @returns Updated section.\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection\n */\nexport async function updateSection(\n _id: string,\n section: NonNullablePaths<UpdateSection, `revision`, 2>\n): Promise<\n NonNullablePaths<Section, `name` | `additionalImages` | `itemIds`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ section: { ...section, id: _id } }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.updateSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'section.image' },\n { path: 'section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { section: '$[1]' },\n explicitPathsToArguments: { 'section.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'section']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSection {\n /**\n * Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the section was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the section was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Section name.\n * @minLength 1\n * @maxLength 500\n */\n name?: string;\n /**\n * Section description.\n * @maxLength 1500\n */\n description?: string | null;\n /** Main section image. */\n image?: string;\n /**\n * Additional section images.\n * @maxSize 100\n */\n additionalImages?: string[];\n /**\n * Item IDs.\n * @format GUID\n * @maxSize 300\n */\n itemIds?: string[];\n /** Extended fields. */\n extendedFields?: ExtendedFields;\n /** Whether the section is visible in the menu for site visitors. */\n visible?: boolean | null;\n /**\n * ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this section is available.\n * @format GUID\n * @readonly\n */\n businessLocationId?: string | null;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple sections at once.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n * @param sections - Sections to update.\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @requiredField sections.section._id\n * @requiredField sections.section.revision\n * @permissionId RESTAURANTS.SECTION_UPDATE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection\n */\nexport async function bulkUpdateSection(\n sections: NonNullablePaths<\n MaskedSection,\n `section._id` | `section.revision`,\n 3\n >[],\n options?: BulkUpdateSectionOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateSectionResponse,\n | `results`\n | `results.${number}.sectionMetadata.originalIndex`\n | `results.${number}.sectionMetadata.success`\n | `results.${number}.sectionMetadata.error.code`\n | `results.${number}.sectionMetadata.error.description`\n | `results.${number}.section.name`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n sections: sections,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'sections.section.image' },\n { path: 'sections.section.additionalImages', isRepeated: true },\n ],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.bulkUpdateSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'results.section.image' },\n { path: 'results.section.additionalImages', isRepeated: true },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sections: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['sections', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateSectionOptions {\n /** Whether to receive the updated sections in the response. */\n returnEntity?: boolean;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a section.\n * @param sectionId - Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId RESTAURANTS.SECTION_DELETE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection\n */\nexport async function deleteSection(sectionId: string): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n });\n\n const reqOpts = ambassadorWixRestaurantsMenusV1Section.deleteSection(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sectionId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['sectionId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple sections at once.\n * @param ids - Section IDs.\n * @public\n * @documentationMaturity preview\n * @requiredField ids\n * @permissionId RESTAURANTS.SECTION_DELETE\n * @applicableIdentity APP\n * @fqn com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections\n */\nexport async function bulkDeleteSections(\n ids: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteSectionsResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ ids: ids });\n\n const reqOpts =\n ambassadorWixRestaurantsMenusV1Section.bulkDeleteSections(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { ids: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['ids']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/restaurants/menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/restaurants-menus-section',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/restaurants/menus-section',\n destPath: '',\n },\n {\n srcPath: '/restaurants/menus/v1/bulk/sections',\n destPath: '/v1/bulk/sections',\n },\n {\n srcPath: '/restaurants/menus/v1/sections',\n destPath: '/v1/sections',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/restaurants-menus-section',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_sections';\n\n/**\n * Duplicates a section.\n *\n * You can duplicate a section to the same business location, or to 1 or more different business locations.\n * You can specify whether to also duplicate the section's sub-entities, such as its items.\n */\nexport function duplicateSection(payload: object): RequestOptionsFactory<any> {\n function __duplicateSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.restaurants_duplicate_section.RestaurantsDuplicateSection.DuplicateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsDuplicateSectionRestaurantsDuplicateSectionUrl(\n { protoPath: '/v1/sections/{id}/duplicate', data: payload, host }\n ),\n data: payload,\n };\n\n return metadata;\n }\n\n return __duplicateSection;\n}\n\n/**\n * > **Note:** The Sections API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates a section.\n *\n * To create multiple sections at once, use [Bulk Create Sections](/sections/bulk-create-sections).\n */\nexport function createSection(payload: object): RequestOptionsFactory<any> {\n function __createSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.CreateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Creates multiple sections at once.\n */\nexport function bulkCreateSections(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateSections({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.image.urlExpirationDate' },\n { path: 'sections.additionalImages.urlExpirationDate' },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkCreateSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/bulk/sections/create', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n { path: 'results.item.image.urlExpirationDate' },\n { path: 'results.item.additionalImages.urlExpirationDate' },\n {\n path: 'results.item.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'results.item.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'results.item.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSections;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a section by ID.\n */\nexport function getSection(payload: object): RequestOptionsFactory<any> {\n function __getSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.GetSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/{sectionId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Retrieves a list of up to 500 sections.\n */\nexport function listSections(payload: object): RequestOptionsFactory<any> {\n function __listSections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.ListSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.image.urlExpirationDate' },\n { path: 'sections.additionalImages.urlExpirationDate' },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listSections;\n}\n\n/**\n * Creates a query to retrieve a list of sections.\n *\n * The `querySections()` function builds a query to retrieve a list of sections and returns a `SectionsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the [`find()`](/sections/sections-query-builder/find) function.\n *\n * You can refine the query by chaining `SectionsQueryBuilder` functions onto the query. `SectionsQueryBuilder` functions enable you to filter, sort, and control the results that `querySections()` returns.\n *\n * `querySections()` runs with the following `SectionsQueryBuilder` defaults, which you can override:\n *\n * * [`limit(100)`](/sections/sections-query-builder/limit)\n *\n * The following `SectionsQueryBuilder` functions are supported for `querySections()`. For a full description of the section object, see the object returned for the [`items`](/sections/sections-query-result/items) property in `SectionsQueryResult`.\n */\nexport function querySections(payload: object): RequestOptionsFactory<any> {\n function __querySections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.QuerySections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/query', data: payload, host }\n ),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.image.urlExpirationDate' },\n { path: 'sections.additionalImages.urlExpirationDate' },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySections;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates a section.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n */\nexport function updateSection(payload: object): RequestOptionsFactory<any> {\n function __updateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.UpdateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/{section.id}', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.image.urlExpirationDate' },\n { path: 'section.additionalImages.urlExpirationDate' },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Updates multiple sections at once.\n *\n * Each time a section is updated, its revision increments by 1. The existing revision must be included when updating a section. This ensures you're working with the latest section information, and it prevents unintended overwrites.\n */\nexport function bulkUpdateSection(payload: object): RequestOptionsFactory<any> {\n function __bulkUpdateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'sections.mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.section.createdDate' },\n { path: 'sections.section.updatedDate' },\n { path: 'sections.section.image.urlExpirationDate' },\n { path: 'sections.section.additionalImages.urlExpirationDate' },\n {\n path: 'sections.section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'sections.section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'sections.section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkUpdateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/bulk/sections/update', data: serializedData, host }\n ),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.section.createdDate' },\n { path: 'results.section.updatedDate' },\n { path: 'results.section.image.urlExpirationDate' },\n { path: 'results.section.additionalImages.urlExpirationDate' },\n {\n path: 'results.section.orderSettings.availability.timestampRangesOptions.ranges.startTime',\n },\n {\n path: 'results.section.orderSettings.availability.timestampRangesOptions.ranges.endTime',\n },\n { path: 'results.section.externalReferenceInfo.lastSyncDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes a section.\n */\nexport function deleteSection(payload: object): RequestOptionsFactory<any> {\n function __deleteSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.DeleteSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/sections/{sectionId}', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSection;\n}\n\n/**\n * > **Note:** The Section API only works with the Wix Restaurants Menus (New) app. Make sure you have installed this app from the [Wix App Market](https://www.wix.com/app-market/wix-restaurants-menus-new).\n *\n * Deletes multiple sections at once.\n */\nexport function bulkDeleteSections(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteSections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.restaurants.menus.v1.section',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.restaurants.menus_section.v1.RestaurantsMenusSection.BulkDeleteSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressRestaurantsMenusSectionV1RestaurantsMenusSectionUrl(\n { protoPath: '/v1/bulk/sections/delete', data: payload, host }\n ),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __bulkDeleteSections;\n}\n","import {\n duplicateSection as publicDuplicateSection,\n createSection as publicCreateSection,\n bulkCreateSections as publicBulkCreateSections,\n getSection as publicGetSection,\n listSections as publicListSections,\n querySections as publicQuerySections,\n updateSection as publicUpdateSection,\n bulkUpdateSection as publicBulkUpdateSection,\n deleteSection as publicDeleteSection,\n bulkDeleteSections as publicBulkDeleteSections,\n} from './restaurants-menus-v1-section-sections.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onSectionCreated as publicOnSectionCreated } from './restaurants-menus-v1-section-sections.public.js';\nimport { onSectionDeleted as publicOnSectionDeleted } from './restaurants-menus-v1-section-sections.public.js';\nimport { onSectionUpdated as publicOnSectionUpdated } from './restaurants-menus-v1-section-sections.public.js';\n\nexport const duplicateSection: MaybeContext<\n BuildRESTFunction<typeof publicDuplicateSection> &\n typeof publicDuplicateSection\n> = /*#__PURE__*/ createRESTModule(publicDuplicateSection);\nexport const createSection: MaybeContext<\n BuildRESTFunction<typeof publicCreateSection> & typeof publicCreateSection\n> = /*#__PURE__*/ createRESTModule(publicCreateSection);\nexport const bulkCreateSections: MaybeContext<\n BuildRESTFunction<typeof publicBulkCreateSections> &\n typeof publicBulkCreateSections\n> = /*#__PURE__*/ createRESTModule(publicBulkCreateSections);\nexport const getSection: MaybeContext<\n BuildRESTFunction<typeof publicGetSection> & typeof publicGetSection\n> = /*#__PURE__*/ createRESTModule(publicGetSection);\nexport const listSections: MaybeContext<\n BuildRESTFunction<typeof publicListSections> & typeof publicListSections\n> = /*#__PURE__*/ createRESTModule(publicListSections);\nexport const querySections: MaybeContext<\n BuildRESTFunction<typeof publicQuerySections> & typeof publicQuerySections\n> = /*#__PURE__*/ createRESTModule(publicQuerySections);\nexport const updateSection: MaybeContext<\n BuildRESTFunction<typeof publicUpdateSection> & typeof publicUpdateSection\n> = /*#__PURE__*/ createRESTModule(publicUpdateSection);\nexport const bulkUpdateSection: MaybeContext<\n BuildRESTFunction<typeof publicBulkUpdateSection> &\n typeof publicBulkUpdateSection\n> = /*#__PURE__*/ createRESTModule(publicBulkUpdateSection);\nexport const deleteSection: MaybeContext<\n BuildRESTFunction<typeof publicDeleteSection> & typeof publicDeleteSection\n> = /*#__PURE__*/ createRESTModule(publicDeleteSection);\nexport const bulkDeleteSections: MaybeContext<\n BuildRESTFunction<typeof publicBulkDeleteSections> &\n typeof publicBulkDeleteSections\n> = /*#__PURE__*/ createRESTModule(publicBulkDeleteSections);\n/** */\nexport const onSectionCreated: BuildEventDefinition<\n typeof publicOnSectionCreated\n> &\n typeof publicOnSectionCreated = createEventModule(publicOnSectionCreated);\n/** */\nexport const onSectionDeleted: BuildEventDefinition<\n typeof publicOnSectionDeleted\n> &\n typeof publicOnSectionDeleted = createEventModule(publicOnSectionDeleted);\n/**\n * Triggered when a section is updated.\n */\nexport const onSectionUpdated: BuildEventDefinition<\n typeof publicOnSectionUpdated\n> &\n typeof publicOnSectionUpdated = createEventModule(publicOnSectionUpdated);\n\nexport {\n AvailabilityType,\n DayOfWeek,\n SortOrder,\n WebhookIdentityType,\n} from './restaurants-menus-v1-section-sections.universal.js';\nexport {\n Section,\n ExtendedFields,\n OrderSettings,\n Availability,\n AvailabilityAvailabilityTypeOptionsOneOf,\n WeeklyScheduleOptions,\n DayOfWeekAvailability,\n TimeOfDayRange,\n TimeOfDay,\n TimestampRangesOptions,\n AvailableRange,\n ExternalReferenceInfo,\n DuplicateSectionRequest,\n DuplicateSectionResponse,\n InvalidateCache,\n InvalidateCacheGetByOneOf,\n App,\n Page,\n URI,\n File,\n CustomTag,\n DeleteLocationIdFromItems,\n CreateSectionRequest,\n CreateSectionResponse,\n BulkCreateSectionsRequest,\n BulkCreateSectionsResponse,\n BulkCreateSectionResult,\n ItemMetadata,\n ApplicationError,\n BulkActionMetadata,\n GetSectionRequest,\n GetSectionResponse,\n ListSectionsRequest,\n CursorPaging,\n ListSectionsResponse,\n CursorPagingMetadata,\n Cursors,\n QuerySectionsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Sorting,\n QuerySectionsResponse,\n UpdateSectionRequest,\n UpdateSectionResponse,\n BulkUpdateSectionRequest,\n MaskedSection,\n BulkUpdateSectionResponse,\n BulkSectionResult,\n DeleteSectionRequest,\n DeleteSectionResponse,\n BulkDeleteSectionsRequest,\n BulkDeleteSectionsResponse,\n BulkDeleteSectionResult,\n CloneSectionsRequest,\n CloneSectionsResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n BulkUpdateBusinessLocationIdRequest,\n BulkUpdateBusinessLocationIdResponse,\n BulkItemResult,\n SyncContentToMultilingualRequest,\n SyncContentToMultilingualResponse,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n BaseEventMetadata,\n EventMetadata,\n SectionCreatedEnvelope,\n SectionDeletedEnvelope,\n SectionUpdatedEnvelope,\n DuplicateSectionOptions,\n BulkCreateSectionsOptions,\n ListSectionsOptions,\n SectionsQueryResult,\n SectionsQueryBuilder,\n UpdateSection,\n BulkUpdateSectionOptions,\n} from './restaurants-menus-v1-section-sections.universal.js';\nexport {\n AvailabilityTypeWithLiterals,\n DayOfWeekWithLiterals,\n SortOrderWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './restaurants-menus-v1-section-sections.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sEACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,U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A,IACF,CAAC;AAAA,EACH;AACJ,EAA0B;;;AG1Z1B,IAAAC,uBAAiC;AACjC,sCAAkC;AAU3B,IAAMC,oBAGK,2DAAiBA,iBAAsB;AAClD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,sBAGK,2DAAiBA,mBAAwB;AACpD,IAAMC,cAEK,2DAAiBA,WAAgB;AAC5C,IAAMC,gBAEK,2DAAiBA,aAAkB;AAC9C,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,qBAGK,2DAAiBA,kBAAuB;AACnD,IAAMC,iBAEK,2DAAiBA,cAAmB;AAC/C,IAAMC,sBAGK,2DAAiBA,mBAAwB;AAEpD,IAAMC,wBAGqB,mDAAkB,gBAAsB;AAEnE,IAAMC,wBAGqB,mDAAkB,gBAAsB;AAInE,IAAMC,wBAGqB,mDAAkB,gBAAsB;","names":["bulkCreateSections","bulkDeleteSections","bulkUpdateSection","createSection","deleteSection","duplicateSection","getSection","listSections","onSectionCreated","onSectionDeleted","onSectionUpdated","querySections","updateSection","import_rename_all_nested_keys","import_image","import_timestamp","import_transform_paths","import_timestamp","import_rest_modules","payload","import_image","import_transform_paths","AvailabilityType","DayOfWeek","SortOrder","WebhookIdentityType","duplicateSection","sdkTransformError","createSection","bulkCreateSections","getSection","listSections","querySections","updateSection","bulkUpdateSection","deleteSection","bulkDeleteSections","duplicateSection","createSection","bulkCreateSections","getSection","listSections","querySections","updateSection","bulkUpdateSection","deleteSection","bulkDeleteSections","import_rest_modules","duplicateSection","createSection","bulkCreateSections","getSection","listSections","querySections","updateSection","bulkUpdateSection","deleteSection","bulkDeleteSections","onSectionCreated","onSectionDeleted","onSectionUpdated"]}
|