@wix/auto_sdk_online-programs_sections 1.0.11 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +10 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +62 -35
- package/build/cjs/index.typings.js +10 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -8
- package/build/cjs/meta.js +0 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +628 -0
- package/build/cjs/schemas.js +876 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +8 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +62 -35
- package/build/es/index.typings.mjs +8 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -8
- package/build/es/meta.mjs +0 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +628 -0
- package/build/es/schemas.mjs +818 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +10 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +62 -35
- package/build/internal/cjs/index.typings.js +10 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +8 -8
- package/build/internal/cjs/meta.js +0 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +628 -0
- package/build/internal/cjs/schemas.js +876 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +8 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +62 -35
- package/build/internal/es/index.typings.mjs +8 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +8 -8
- package/build/internal/es/meta.mjs +0 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +628 -0
- package/build/internal/es/schemas.mjs +818 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/online-programs-v3-section-sections.universal.ts","../../src/online-programs-v3-section-sections.http.ts"],"sourcesContent":["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 {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixOnlineProgramsV3Section from './online-programs-v3-section-sections.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Section {\n /**\n * Program Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Represents the time this Section was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Section was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Program Id to which this section is assigned to.\n * @format GUID\n * @readonly\n */\n programId?: string;\n /** title, description and media content. */\n description?: Description;\n /** is this section published yet? */\n state?: StateWithLiterals;\n /**\n * number of program steps in this section.\n * @readonly\n */\n oldTotalSteps?: number;\n /**\n * number of program steps in this section.\n * @readonly\n */\n totalSteps?: number | null;\n /** should we open this section as a trial content even though the owning program isn't purchased yet? */\n trialSection?: boolean;\n /** field for manual ordering of sections */\n ordering?: number;\n /**\n * open after defined number of days passed.\n * @max 5000\n */\n delayInDays?: number;\n /** extensible field */\n extendedFields?: ExtendedFields;\n}\n\nexport interface Description extends DescriptionMediaOneOf {\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n image?: string;\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n video?: string;\n /** @maxLength 500 */\n title?: string;\n /** @maxLength 10000000 */\n details?: string | null;\n}\n\n/** @oneof */\nexport interface DescriptionMediaOneOf {\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n image?: string;\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n video?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /** Video format for example, mp4, hls. */\n format?: string;\n}\n\nexport enum State {\n /** invalid default state. */\n UNKNOWN_STATE = 'UNKNOWN_STATE',\n /** the section isn't ready to be shown to participants. */\n DRAFT = 'DRAFT',\n /** this content is visible to participants. */\n PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'UNKNOWN_STATE' | 'DRAFT' | 'PUBLISHED';\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 UpdateDocumentsEvent\n extends UpdateDocumentsEventOperationOneOf {\n /** insert/update documents */\n update?: DocumentUpdateOperation;\n /** delete by document ids */\n deleteByIds?: DeleteByIdsOperation;\n /** delete documents matching filter */\n deleteByFilter?: DeleteByFilterOperation;\n /** update documents matching filter */\n updateByFilter?: UpdateByFilterOperation;\n /** update only existing documents */\n updateExisting?: UpdateExistingOperation;\n /**\n * application which owns documents\n * @minLength 2\n */\n appDefId?: string | null;\n /**\n * type of the documents\n * @minLength 2\n */\n documentType?: string | null;\n /**\n * language of the documents\n * @minLength 2\n */\n language?: string | null;\n /**\n * site documents belong to\n * @minLength 2\n */\n msId?: string | null;\n}\n\n/** @oneof */\nexport interface UpdateDocumentsEventOperationOneOf {\n /** insert/update documents */\n update?: DocumentUpdateOperation;\n /** delete by document ids */\n deleteByIds?: DeleteByIdsOperation;\n /** delete documents matching filter */\n deleteByFilter?: DeleteByFilterOperation;\n /** update documents matching filter */\n updateByFilter?: UpdateByFilterOperation;\n /** update only existing documents */\n updateExisting?: UpdateExistingOperation;\n}\n\nexport interface DocumentUpdateOperation {\n /** documents to index or update */\n documents?: IndexDocument[];\n}\n\nexport interface IndexDocument {\n /** data bag with non-searchable fields (url, image) */\n payload?: DocumentPayload;\n /** what type of users should documents be visible to */\n exposure?: EnumWithLiterals;\n /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */\n document?: Record<string, any> | null;\n /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */\n permittedMemberGroups?: string[];\n /** if true SEO is disabled for this document */\n seoHidden?: boolean | null;\n /** if true the page is a lightbox popup */\n isPopup?: boolean | null;\n}\n\nexport interface DocumentPayload {\n /** url of the page representing the document */\n url?: string | null;\n /** image which represents the document */\n documentImage?: DocumentImage;\n}\n\nexport interface DocumentImage {\n /** the name of the image */\n name?: string;\n /** the width of the image */\n width?: number;\n /** the height of the image */\n height?: number;\n}\n\nexport enum Enum {\n /** Default value. Means that permission not set */\n UNKNOWN = 'UNKNOWN',\n /** Protected exposure. Exposed to members and owners */\n PROTECTED = 'PROTECTED',\n /** Private exposure. Exposed to owners */\n PRIVATE = 'PRIVATE',\n /** Public exposure. Visible to everyone */\n PUBLIC = 'PUBLIC',\n /** Used for partial updates, to state that exposure is not changing */\n UNCHANGED = 'UNCHANGED',\n /** Protected to members of permitted groups and owners */\n GROUP_PROTECTED = 'GROUP_PROTECTED',\n}\n\n/** @enumType */\nexport type EnumWithLiterals =\n | Enum\n | 'UNKNOWN'\n | 'PROTECTED'\n | 'PRIVATE'\n | 'PUBLIC'\n | 'UNCHANGED'\n | 'GROUP_PROTECTED';\n\nexport interface DeleteByIdsOperation {\n /** ids of the documents to delete */\n documentIds?: string[];\n}\n\nexport interface DeleteByFilterOperation {\n /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */\n filter?: Record<string, any> | null;\n}\n\nexport interface UpdateByFilterOperation {\n /** documents matching this filter will be updated */\n filter?: Record<string, any> | null;\n /** partial document to apply */\n document?: IndexDocument;\n}\n\nexport interface UpdateExistingOperation {\n /** documents to update */\n documents?: IndexDocument[];\n}\n\nexport interface SectionUpdated {\n /** Section before update. */\n previous?: Section;\n /** Section after update. */\n current?: Section;\n}\n\nexport interface SectionDeleted {\n /** Full section that was deleted */\n section?: Section;\n}\n\nexport interface SectionCloned {\n /** Section which was used as a prototype for cloning. */\n prototype?: Section;\n /** Result of section cloning. */\n cloned?: Section;\n}\n\nexport interface SectionMoved {\n /**\n * Moved section id\n * @format GUID\n */\n sectionId?: string;\n /** section position */\n newSectionPositionRank?: number;\n}\n\nexport interface SectionPublished {\n /**\n * Published section id\n * @format GUID\n */\n sectionId?: string;\n}\n\nexport interface CreateSectionRequest {\n /** Section to be created. */\n section: Section;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n /** not implemented, invalid default value. */\n UNKNOWN_REQUESTED_FIELD = 'UNKNOWN_REQUESTED_FIELD',\n /** return total number of steps in this section. */\n TOTAL_STEPS = 'TOTAL_STEPS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELD'\n | 'TOTAL_STEPS';\n\nexport interface CreateSectionResponse {\n /** The created Section. */\n section?: Section;\n}\n\nexport interface BulkCreateSectionRequest {\n /**\n * List of sections you want to create\n * @minSize 1\n * @maxSize 100\n */\n sections: Section[];\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface BulkCreateSectionResponse {\n /** bulk results */\n results?: BulkSectionResult[];\n /** bulk metadata */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkSectionResult {\n /** item metadata */\n itemMetadata?: ItemMetadata;\n /** created section */\n item?: Section;\n /** indicator whether it was create or update */\n action?: BulkActionTypeWithLiterals;\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 enum BulkActionType {\n UNKNOWN_ACTION_TYPE = 'UNKNOWN_ACTION_TYPE',\n INSERT = 'INSERT',\n UPDATE = 'UPDATE',\n DELETE = 'DELETE',\n}\n\n/** @enumType */\nexport type BulkActionTypeWithLiterals =\n | BulkActionType\n | 'UNKNOWN_ACTION_TYPE'\n | 'INSERT'\n | 'UPDATE'\n | 'DELETE';\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 BulkCreateSectionMigrationRequest {\n /**\n * List of sections you want to create\n * @minSize 1\n * @maxSize 100\n */\n sections: Section[];\n}\n\nexport interface BulkCreateSectionMigrationResponse {\n /** bulk results */\n results?: BulkSectionResult[];\n /** bulk metadata */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface GetSectionRequest {\n /**\n * ID of the Section to retrieve.\n * @format GUID\n */\n sectionId: string;\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum DescriptionFieldSet {\n STANDARD = 'STANDARD',\n EXTENDED = 'EXTENDED',\n}\n\n/** @enumType */\nexport type DescriptionFieldSetWithLiterals =\n | DescriptionFieldSet\n | 'STANDARD'\n | 'EXTENDED';\n\nexport interface GetSectionResponse {\n /** The requested Section. */\n section?: Section;\n}\n\nexport interface UpdateSectionRequest {\n /** Section to be updated, may be partial. */\n section?: Section;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateSectionResponse {\n /** Updated Section. */\n section?: Section;\n}\n\nexport interface DeleteSectionRequest {\n /**\n * Id of the Section to delete.\n * @format GUID\n */\n sectionId: string;\n}\n\nexport interface DeleteSectionResponse {}\n\nexport interface DeleteAllProgramSectionsRequest {\n /**\n * Program id to delete sections from\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface DeleteAllProgramSectionsResponse {\n /** Total count of sections in the program */\n sectionsTotal?: number;\n /** Count of successfully deleted sections */\n successfulCount?: number;\n /** Count of sections that failed to be deleted */\n failedCount?: number;\n}\n\nexport interface QuerySectionsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Program id to query sections\n * @maxLength 36\n */\n programId?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\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 CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QuerySectionsResponse {\n /** List of Sections. */\n sections?: Section[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ListSectionsRequest {\n /**\n * Program id to list sections\n * @format GUID\n */\n programId: string;\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface ListSectionsResponse {\n /**\n * sections\n * @maxSize 1000\n */\n sections?: Section[];\n}\n\nexport interface CloneSectionRequest {\n /**\n * Section to clone\n * @format GUID\n */\n sectionId: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface CloneSectionResponse {\n /** cloned section */\n section?: Section;\n}\n\nexport interface MoveSectionRequest {\n /**\n * Section to move\n * @format GUID\n */\n sectionId?: string;\n /**\n * change section position to be after the specified section. If empty insert in the \"0\" position.\n * @format GUID\n */\n afterSectionId?: string | null;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface MoveSectionResponse {\n /** updated section which was moved */\n section?: Section;\n}\n\nexport interface PublishSectionRequest {\n /**\n * Section to publish\n * @format GUID\n */\n sectionId?: string;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface PublishSectionResponse {\n /** Published section */\n section?: Section;\n}\n\nexport interface BulkCloneSectionRequest {\n /**\n * id of program which was cloned\n * @format GUID\n */\n prototypeProgramId?: string;\n /**\n * id of program created after clone\n * @format GUID\n */\n clonedProgramId?: string;\n}\n\nexport interface BulkCloneSectionResponse {\n /**\n * id of program which was cloned\n * @format GUID\n */\n prototypeProgramId?: string;\n /**\n * id of program created after clone\n * @format GUID\n */\n clonedProgramId?: string;\n /** mapping of original to cloned section ids */\n prototypeIdToClonedId?: Record<string, string>;\n}\n\nexport interface RestoreSectionFromTrashRequest {\n /**\n * section id to restore\n * @format GUID\n */\n sectionId?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface RestoreSectionFromTrashResponse {\n /** restored section */\n section?: Section;\n}\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 SearchIndexingNotification {\n /** new state of indexing for the site specified in ms_id */\n indexState?: SearchIndexingNotificationStateWithLiterals;\n /** type of the document the notification is targeted for. Applies to all types if not provided */\n documentType?: string | null;\n /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */\n language?: string | null;\n /**\n * site for which notification is targeted\n * @minLength 2\n */\n msId?: string | null;\n}\n\nexport enum SearchIndexingNotificationState {\n /** default state */\n Unknown = 'Unknown',\n /** metasite does not require site search indexing */\n Off = 'Off',\n /** metasite requires site search indexing */\n On = 'On',\n}\n\n/** @enumType */\nexport type SearchIndexingNotificationStateWithLiterals =\n | SearchIndexingNotificationState\n | 'Unknown'\n | 'Off'\n | 'On';\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Creates a Section.\n * @param section - Section to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField section\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @returns The created Section.\n * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection\n */\nexport async function createSection(\n section: Section,\n options?: CreateSectionOptions\n): Promise<\n NonNullablePaths<\n Section,\n | `programId`\n | `description.title`\n | `state`\n | `oldTotalSteps`\n | `trialSection`\n | `ordering`\n | `delayInDays`,\n 3\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 section: section,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { section: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['section', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateSectionOptions {\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Bulk Section creation.\n * @param sections - List of sections you want to create\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection\n */\nexport async function bulkCreateSection(\n sections: Section[],\n options?: BulkCreateSectionOptions\n): Promise<\n NonNullablePaths<\n BulkCreateSectionResponse,\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.programId`\n | `results.${number}.item.description.title`\n | `results.${number}.item.state`\n | `results.${number}.item.oldTotalSteps`\n | `results.${number}.item.trialSection`\n | `results.${number}.item.ordering`\n | `results.${number}.item.delayInDays`\n | `results.${number}.action`\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 fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Section.bulkCreateSection(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: [{ path: 'results.item.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sections: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['sections', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateSectionOptions {\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Bulk Section creation for migration.\n * @param sections - List of sections you want to create\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration\n */\nexport async function bulkCreateSectionMigration(\n sections: Section[]\n): Promise<\n NonNullablePaths<\n BulkCreateSectionMigrationResponse,\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.programId`\n | `results.${number}.item.description.title`\n | `results.${number}.item.state`\n | `results.${number}.item.oldTotalSteps`\n | `results.${number}.item.trialSection`\n | `results.${number}.item.ordering`\n | `results.${number}.item.delayInDays`\n | `results.${number}.action`\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 = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ sections: sections }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Section.bulkCreateSectionMigration(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: [{ path: 'results.item.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sections: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['sections']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a Section.\n * @param sectionId - ID of the Section to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId ONLINE_PROGRAMS.SECTION_READ\n * @applicableIdentity APP\n * @returns The requested Section.\n * @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection\n */\nexport async function getSection(\n sectionId: string,\n options?: GetSectionOptions\n): Promise<\n NonNullablePaths<\n Section,\n | `programId`\n | `description.title`\n | `state`\n | `oldTotalSteps`\n | `trialSection`\n | `ordering`\n | `delayInDays`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n descriptionFieldSet: options?.descriptionFieldSet,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionId: '$[0]',\n descriptionFieldSet: '$[1].descriptionFieldSet',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['sectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSectionOptions {\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates a Section.\n * @param _id - Program Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField options.section.revision\n * @permissionId ONLINE_PROGRAMS.SECTION_UPDATE\n * @applicableIdentity APP\n * @returns Updated Section.\n * @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection\n */\nexport async function updateSection(\n _id: string,\n options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>\n): Promise<\n NonNullablePaths<\n Section,\n | `programId`\n | `description.title`\n | `state`\n | `oldTotalSteps`\n | `trialSection`\n | `ordering`\n | `delayInDays`,\n 3\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 section: { ...options?.section, id: _id },\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { section: '$[1].section' },\n explicitPathsToArguments: {\n 'section.id': '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSectionOptions {\n section: {\n /**\n * Program Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Represents the time this Section was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Section was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Program Id to which this section is assigned to.\n * @format GUID\n * @readonly\n */\n programId?: string;\n /** title, description and media content. */\n description?: Description;\n /** is this section published yet? */\n state?: StateWithLiterals;\n /**\n * number of program steps in this section.\n * @readonly\n */\n oldTotalSteps?: number;\n /**\n * number of program steps in this section.\n * @readonly\n */\n totalSteps?: number | null;\n /** should we open this section as a trial content even though the owning program isn't purchased yet? */\n trialSection?: boolean;\n /** field for manual ordering of sections */\n ordering?: number;\n /**\n * open after defined number of days passed.\n * @max 5000\n */\n delayInDays?: number;\n /** extensible field */\n extendedFields?: ExtendedFields;\n };\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Deletes a Section.\n * Deleting a Section permanently removes them from the Section List.\n * @param sectionId - Id of the Section to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId ONLINE_PROGRAMS.SECTION_DELETE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.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 = ambassadorWixOnlineProgramsV3Section.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 * Retrieves a list of Sections, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Sections can be returned per request.\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.SECTION_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections\n */\nexport function querySections(\n options?: QuerySectionsOptions\n): SectionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] 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 = ambassadorWixOnlineProgramsV3Section.querySections({\n ...payload,\n ...(options ?? {}),\n });\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, options] as [\n QuerySectionsRequest['query'],\n QuerySectionsOptions\n ];\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: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'sections.description.video' }],\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\nexport interface QuerySectionsOptions {\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;\n /**\n * Program id to query sections\n * @maxLength 36\n */\n programId?: string | undefined;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[] | undefined;\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: '_id' | 'programId' | 'trialSection' | 'delayInDays',\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: (propertyName: '_id', value: any) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id', value: any) => SectionsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<'_id' | '_createdDate' | 'ordering' | 'delayInDays'>\n ) => SectionsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<'_id' | '_createdDate' | 'ordering' | 'delayInDays'>\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 * @hidden\n * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections\n * @requiredField query\n */\nexport async function typedQuerySections(\n query: SectionQuery,\n options?: QuerySectionsOptions\n): Promise<\n NonNullablePaths<\n QuerySectionsResponse,\n | `sections`\n | `sections.${number}.programId`\n | `sections.${number}.description.title`\n | `sections.${number}.state`\n | `sections.${number}.oldTotalSteps`\n | `sections.${number}.trialSection`\n | `sections.${number}.ordering`\n | `sections.${number}.delayInDays`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.querySections(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: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SectionQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['programId'];\n operators: ['$eq'];\n sort: 'NONE';\n },\n {\n fields: ['delayInDays'];\n operators: ['$eq'];\n sort: 'BOTH';\n },\n {\n fields: ['_createdDate'];\n operators: [];\n sort: 'BOTH';\n },\n {\n fields: ['trialSection'];\n operators: ['$eq'];\n sort: 'NONE';\n },\n {\n fields: ['_id'];\n operators: ['$eq', '$in', '$ne', '$nin'];\n sort: 'BOTH';\n },\n {\n fields: ['ordering'];\n operators: [];\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Section,\n SectionQuerySpec\n>;\nexport type SectionQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\n/**\n * List sections per program id\n * @param programId - Program id to list sections\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.SECTION_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections\n */\nexport async function listSections(\n programId: string,\n options?: ListSectionsOptions\n): Promise<\n NonNullablePaths<\n ListSectionsResponse,\n | `sections`\n | `sections.${number}.programId`\n | `sections.${number}.description.title`\n | `sections.${number}.state`\n | `sections.${number}.oldTotalSteps`\n | `sections.${number}.trialSection`\n | `sections.${number}.ordering`\n | `sections.${number}.delayInDays`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n programId: programId,\n descriptionFieldSet: options?.descriptionFieldSet,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n programId: '$[0]',\n descriptionFieldSet: '$[1].descriptionFieldSet',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['programId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListSectionsOptions {\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Clones section with specified id\n * @param sectionId - Section to clone\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection\n */\nexport async function cloneSection(\n sectionId: string,\n options?: CloneSectionOptions\n): Promise<\n NonNullablePaths<\n CloneSectionResponse,\n | `section.programId`\n | `section.description.title`\n | `section.state`\n | `section.oldTotalSteps`\n | `section.trialSection`\n | `section.ordering`\n | `section.delayInDays`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.cloneSection(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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sectionId: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['sectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CloneSectionOptions {\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Places section after specified one or inserts it in the beginning\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.SECTION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection\n */\nexport async function moveSection(\n options?: MoveSectionOptions\n): Promise<\n NonNullablePaths<\n MoveSectionResponse,\n | `section.programId`\n | `section.description.title`\n | `section.state`\n | `section.oldTotalSteps`\n | `section.trialSection`\n | `section.ordering`\n | `section.delayInDays`,\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 sectionId: options?.sectionId,\n afterSectionId: options?.afterSectionId,\n revision: options?.revision,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.moveSection(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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionId: '$[0].sectionId',\n afterSectionId: '$[0].afterSectionId',\n revision: '$[0].revision',\n fields: '$[0].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface MoveSectionOptions {\n /**\n * Section to move\n * @format GUID\n */\n sectionId?: string;\n /**\n * change section position to be after the specified section. If empty insert in the \"0\" position.\n * @format GUID\n */\n afterSectionId?: string | null;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Publishes section\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.SECTION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.PublishSection\n */\nexport async function publishSection(\n options?: PublishSectionOptions\n): Promise<\n NonNullablePaths<\n PublishSectionResponse,\n | `section.programId`\n | `section.description.title`\n | `section.state`\n | `section.oldTotalSteps`\n | `section.trialSection`\n | `section.ordering`\n | `section.delayInDays`,\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 sectionId: options?.sectionId,\n revision: options?.revision,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.publishSection(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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionId: '$[0].sectionId',\n revision: '$[0].revision',\n fields: '$[0].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PublishSectionOptions {\n /**\n * Section to publish\n * @format GUID\n */\n sectionId?: string;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_sections';\n\n/** Creates a Section. */\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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n { path: 'section.description.video.resolutions.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n { path: 'section.description.video.resolutions.poster.focalPoint.x' },\n { path: 'section.description.video.resolutions.poster.focalPoint.y' },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.CreateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSection;\n}\n\n/** Bulk Section creation. */\nexport function bulkCreateSection(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n { path: 'sections.description.video.resolutions.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/bulk/sections/create',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'results.item.description.video.urlExpirationDate' },\n {\n path: 'results.item.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.ordering' },\n { path: 'results.item.description.image.focalPoint.x' },\n { path: 'results.item.description.image.focalPoint.y' },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'results.item.description.video.posters.focalPoint.x' },\n { path: 'results.item.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSection;\n}\n\n/** Bulk Section creation for migration. */\nexport function bulkCreateSectionMigration(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateSectionMigration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n { path: 'sections.description.video.resolutions.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/bulk/sections/create/migration',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'results.item.description.video.urlExpirationDate' },\n {\n path: 'results.item.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.ordering' },\n { path: 'results.item.description.image.focalPoint.x' },\n { path: 'results.item.description.image.focalPoint.y' },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'results.item.description.video.posters.focalPoint.x' },\n { path: 'results.item.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSectionMigration;\n}\n\n/** Retrieves a Section. */\nexport function getSection(payload: object): RequestOptionsFactory<any> {\n function __getSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'GET' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.GetSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{sectionId}',\n data: payload,\n 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSection;\n}\n\n/** Updates a Section. */\nexport function updateSection(payload: object): RequestOptionsFactory<any> {\n function __updateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n { path: 'section.description.video.resolutions.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n { path: 'section.description.video.resolutions.poster.focalPoint.x' },\n { path: 'section.description.video.resolutions.poster.focalPoint.y' },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'PATCH' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.UpdateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{section.id}',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSection;\n}\n\n/**\n * Deletes a Section.\n * Deleting a Section permanently removes them from the Section List.\n */\nexport function deleteSection(payload: object): RequestOptionsFactory<any> {\n function __deleteSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'DELETE' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.DeleteSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{sectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSection;\n}\n\n/**\n * Retrieves a list of Sections, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Sections can be returned per request.\n */\nexport function querySections(payload: object): RequestOptionsFactory<any> {\n function __querySections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.QuerySections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/query',\n data: payload,\n 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.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySections;\n}\n\n/** List sections per program id */\nexport function listSections(payload: object): RequestOptionsFactory<any> {\n function __listSections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'GET' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.ListSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections',\n data: payload,\n 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.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listSections;\n}\n\n/** Clones section with specified id */\nexport function cloneSection(payload: object): RequestOptionsFactory<any> {\n function __cloneSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.CloneSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{sectionId}/clone',\n data: payload,\n host,\n }),\n data: 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cloneSection;\n}\n\n/** Places section after specified one or inserts it in the beginning */\nexport function moveSection(payload: object): RequestOptionsFactory<any> {\n function __moveSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'PATCH' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.MoveSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/move',\n data: payload,\n host,\n }),\n data: 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __moveSection;\n}\n\n/** Publishes section */\nexport function publishSection(payload: object): RequestOptionsFactory<any> {\n function __publishSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.onlineprograms.sections.v3.SectionsService.PublishSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/publish',\n data: payload,\n host,\n }),\n data: 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __publishSection;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,yBAAyB;AAAA,MACvB;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,qBAAqB;AAAA,MACnB;AAAA,QACE,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;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AA8BA,eAAsBmB,gBACpB,SAaA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD,WAAW,SAAS;AAAA,IACpB,UAAU,SAAS;AAAA,IACnB,QAAQ,SAAS;AAAA,EACnB,CAAC;AAED,QAAM,UAA+C,eAAe,OAAO;AAE3E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,WAAO;AAAA,MACLnB,gBAAe,OAAO,MAAM;AAAA,QAC1B;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAAA,QAC/C;AAAA,QACA;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAAA,QAC/C;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,WAAW;AAAA,UACX,UAAU;AAAA,UACV,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","State","Enum","RequestedFields","BulkActionType","DescriptionFieldSet","SortOrder","SearchIndexingNotificationState","WebhookIdentityType","createSection","bulkCreateSection","bulkCreateSectionMigration","getSection","updateSection","deleteSection","querySections","listSections","cloneSection","moveSection","publishSection"]}
|
|
1
|
+
{"version":3,"sources":["../../src/online-programs-v3-section-sections.universal.ts","../../src/online-programs-v3-section-sections.http.ts"],"sourcesContent":["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 {\n HttpClient,\n HttpResponse,\n NonNullablePaths,\n QuerySpec,\n Query as QuerySdkType,\n} from '@wix/sdk-types';\nimport * as ambassadorWixOnlineProgramsV3Section from './online-programs-v3-section-sections.http.js';\n// @ts-ignore\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { createQueryUtils } from '@wix/sdk-runtime/query-builder-utils';\n\nexport interface Section {\n /**\n * Program Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Represents the time this Section was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Section was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Program Id to which this section is assigned to.\n * @format GUID\n * @readonly\n */\n programId?: string;\n /** title, description and media content. */\n description?: Description;\n /** is this section published yet? */\n state?: StateWithLiterals;\n /**\n * number of program steps in this section.\n * @readonly\n */\n oldTotalSteps?: number;\n /**\n * number of program steps in this section.\n * @readonly\n */\n totalSteps?: number | null;\n /** should we open this section as a trial content even though the owning program isn't purchased yet? */\n trialSection?: boolean;\n /** field for manual ordering of sections */\n ordering?: number;\n /**\n * open after defined number of days passed.\n * @max 5000\n */\n delayInDays?: number;\n /** extensible field */\n extendedFields?: ExtendedFields;\n}\n\nexport interface Description extends DescriptionMediaOneOf {\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n image?: string;\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n video?: string;\n /** @maxLength 500 */\n title?: string;\n /** @maxLength 10000000 */\n details?: string | null;\n}\n\n/** @oneof */\nexport interface DescriptionMediaOneOf {\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n image?: string;\n /**\n * @deprecated\n * @targetRemovalDate 2025-05-10\n */\n video?: string;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface VideoResolution {\n /** Video URL. */\n url?: string;\n /** Video height. */\n height?: number;\n /** Video width. */\n width?: number;\n /** Video format for example, mp4, hls. */\n format?: string;\n}\n\nexport enum State {\n /** the section isn't ready to be shown to participants. */\n DRAFT = 'DRAFT',\n /** this content is visible to participants. */\n PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'DRAFT' | 'PUBLISHED';\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 UpdateDocumentsEvent\n extends UpdateDocumentsEventOperationOneOf {\n /** insert/update documents */\n update?: DocumentUpdateOperation;\n /** delete by document ids */\n deleteByIds?: DeleteByIdsOperation;\n /** delete documents matching filter */\n deleteByFilter?: DeleteByFilterOperation;\n /** update documents matching filter */\n updateByFilter?: UpdateByFilterOperation;\n /** update only existing documents */\n updateExisting?: UpdateExistingOperation;\n /**\n * application which owns documents\n * @minLength 2\n */\n appDefId?: string | null;\n /**\n * type of the documents\n * @minLength 2\n */\n documentType?: string | null;\n /**\n * language of the documents\n * @minLength 2\n */\n language?: string | null;\n /**\n * site documents belong to\n * @minLength 2\n */\n msId?: string | null;\n}\n\n/** @oneof */\nexport interface UpdateDocumentsEventOperationOneOf {\n /** insert/update documents */\n update?: DocumentUpdateOperation;\n /** delete by document ids */\n deleteByIds?: DeleteByIdsOperation;\n /** delete documents matching filter */\n deleteByFilter?: DeleteByFilterOperation;\n /** update documents matching filter */\n updateByFilter?: UpdateByFilterOperation;\n /** update only existing documents */\n updateExisting?: UpdateExistingOperation;\n}\n\nexport interface DocumentUpdateOperation {\n /** documents to index or update */\n documents?: IndexDocument[];\n}\n\nexport interface IndexDocument {\n /** data bag with non-searchable fields (url, image) */\n payload?: DocumentPayload;\n /** what type of users should documents be visible to */\n exposure?: EnumWithLiterals;\n /** document with mandatory fields (id, title, description) and with fields specific to the type of the document */\n document?: Record<string, any> | null;\n /** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */\n permittedMemberGroups?: string[];\n /** if true SEO is disabled for this document */\n seoHidden?: boolean | null;\n /** if true the page is a lightbox popup */\n isPopup?: boolean | null;\n}\n\nexport interface DocumentPayload {\n /** url of the page representing the document */\n url?: string | null;\n /** image which represents the document */\n documentImage?: DocumentImage;\n}\n\nexport interface DocumentImage {\n /** the name of the image */\n name?: string;\n /** the width of the image */\n width?: number;\n /** the height of the image */\n height?: number;\n}\n\nexport enum Enum {\n /** Default value. Means that permission not set */\n UNKNOWN = 'UNKNOWN',\n /** Protected exposure. Exposed to members and owners */\n PROTECTED = 'PROTECTED',\n /** Private exposure. Exposed to owners */\n PRIVATE = 'PRIVATE',\n /** Public exposure. Visible to everyone */\n PUBLIC = 'PUBLIC',\n /** Used for partial updates, to state that exposure is not changing */\n UNCHANGED = 'UNCHANGED',\n /** Protected to members of permitted groups and owners */\n GROUP_PROTECTED = 'GROUP_PROTECTED',\n}\n\n/** @enumType */\nexport type EnumWithLiterals =\n | Enum\n | 'UNKNOWN'\n | 'PROTECTED'\n | 'PRIVATE'\n | 'PUBLIC'\n | 'UNCHANGED'\n | 'GROUP_PROTECTED';\n\nexport interface DeleteByIdsOperation {\n /** ids of the documents to delete */\n documentIds?: string[];\n}\n\nexport interface DeleteByFilterOperation {\n /** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */\n filter?: Record<string, any> | null;\n}\n\nexport interface UpdateByFilterOperation {\n /** documents matching this filter will be updated */\n filter?: Record<string, any> | null;\n /** partial document to apply */\n document?: IndexDocument;\n}\n\nexport interface UpdateExistingOperation {\n /** documents to update */\n documents?: IndexDocument[];\n}\n\nexport interface SectionUpdated {\n /** Section before update. */\n previous?: Section;\n /** Section after update. */\n current?: Section;\n}\n\nexport interface SectionDeleted {\n /** Full section that was deleted */\n section?: Section;\n}\n\nexport interface SectionCloned {\n /** Section which was used as a prototype for cloning. */\n prototype?: Section;\n /** Result of section cloning. */\n cloned?: Section;\n}\n\nexport interface SectionMoved {\n /**\n * Moved section id\n * @format GUID\n */\n sectionId?: string;\n /** section position */\n newSectionPositionRank?: number;\n}\n\nexport interface SectionPublished {\n /**\n * Published section id\n * @format GUID\n */\n sectionId?: string;\n}\n\nexport interface CreateSectionRequest {\n /** Section to be created. */\n section: Section;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n /** return total number of steps in this section. */\n TOTAL_STEPS = 'TOTAL_STEPS',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals = RequestedFields | 'TOTAL_STEPS';\n\nexport interface CreateSectionResponse {\n /** The created Section. */\n section?: Section;\n}\n\nexport interface BulkCreateSectionRequest {\n /**\n * List of sections you want to create\n * @minSize 1\n * @maxSize 100\n */\n sections: Section[];\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface BulkCreateSectionResponse {\n /** bulk results */\n results?: BulkSectionResult[];\n /** bulk metadata */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkSectionResult {\n /** item metadata */\n itemMetadata?: ItemMetadata;\n /** created section */\n item?: Section;\n /** indicator whether it was create or update */\n action?: BulkActionTypeWithLiterals;\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 enum BulkActionType {\n UNKNOWN_ACTION_TYPE = 'UNKNOWN_ACTION_TYPE',\n INSERT = 'INSERT',\n UPDATE = 'UPDATE',\n DELETE = 'DELETE',\n}\n\n/** @enumType */\nexport type BulkActionTypeWithLiterals =\n | BulkActionType\n | 'UNKNOWN_ACTION_TYPE'\n | 'INSERT'\n | 'UPDATE'\n | 'DELETE';\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 BulkCreateSectionMigrationRequest {\n /**\n * List of sections you want to create\n * @minSize 1\n * @maxSize 100\n */\n sections: Section[];\n}\n\nexport interface BulkCreateSectionMigrationResponse {\n /** bulk results */\n results?: BulkSectionResult[];\n /** bulk metadata */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface GetSectionRequest {\n /**\n * ID of the Section to retrieve.\n * @format GUID\n */\n sectionId: string;\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport enum DescriptionFieldSet {\n STANDARD = 'STANDARD',\n EXTENDED = 'EXTENDED',\n}\n\n/** @enumType */\nexport type DescriptionFieldSetWithLiterals =\n | DescriptionFieldSet\n | 'STANDARD'\n | 'EXTENDED';\n\nexport interface GetSectionResponse {\n /** The requested Section. */\n section?: Section;\n}\n\nexport interface UpdateSectionRequest {\n /** Section to be updated, may be partial. */\n section?: Section;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface UpdateSectionResponse {\n /** Updated Section. */\n section?: Section;\n}\n\nexport interface DeleteSectionRequest {\n /**\n * Id of the Section to delete.\n * @format GUID\n */\n sectionId: string;\n}\n\nexport interface DeleteSectionResponse {}\n\nexport interface DeleteAllProgramSectionsRequest {\n /**\n * Program id to delete sections from\n * @format GUID\n */\n programId?: string;\n}\n\nexport interface DeleteAllProgramSectionsResponse {\n /** Total count of sections in the program */\n sectionsTotal?: number;\n /** Count of successfully deleted sections */\n successfulCount?: number;\n /** Count of sections that failed to be deleted */\n failedCount?: number;\n}\n\nexport interface QuerySectionsRequest {\n /** WQL expression. */\n query?: CursorQuery;\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Program id to query sections. Not used anymore. Deprecated in favor of query filter param.\n * @deprecated\n * @replacedBy wix.common.CursorQuery\n * @targetRemovalDate 2026-06-30\n */\n programId?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\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 CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QuerySectionsResponse {\n /** List of Sections. */\n sections?: Section[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface ListSectionsRequest {\n /**\n * Program id to list sections\n * @format GUID\n */\n programId: string;\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface ListSectionsResponse {\n /**\n * sections\n * @maxSize 1000\n */\n sections?: Section[];\n}\n\nexport interface CloneSectionRequest {\n /**\n * Section to clone\n * @format GUID\n */\n sectionId: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface CloneSectionResponse {\n /** cloned section */\n section?: Section;\n}\n\nexport interface MoveSectionRequest {\n /**\n * Section to move\n * @format GUID\n */\n sectionId?: string;\n /**\n * change section position to be after the specified section. If empty insert in the \"0\" position.\n * @format GUID\n */\n afterSectionId?: string | null;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface MoveSectionResponse {\n /** updated section which was moved */\n section?: Section;\n}\n\nexport interface PublishSectionRequest {\n /**\n * Section to publish\n * @format GUID\n */\n sectionId?: string;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface PublishSectionResponse {\n /** Published section */\n section?: Section;\n}\n\nexport interface BulkCloneSectionRequest {\n /**\n * id of program which was cloned\n * @format GUID\n */\n prototypeProgramId?: string;\n /**\n * id of program created after clone\n * @format GUID\n */\n clonedProgramId?: string;\n}\n\nexport interface BulkCloneSectionResponse {\n /**\n * id of program which was cloned\n * @format GUID\n */\n prototypeProgramId?: string;\n /**\n * id of program created after clone\n * @format GUID\n */\n clonedProgramId?: string;\n /** mapping of original to cloned section ids */\n prototypeIdToClonedId?: Record<string, string>;\n}\n\nexport interface RestoreSectionFromTrashRequest {\n /**\n * section id to restore\n * @format GUID\n */\n sectionId?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\nexport interface RestoreSectionFromTrashResponse {\n /** restored section */\n section?: Section;\n}\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 SearchIndexingNotification {\n /** new state of indexing for the site specified in ms_id */\n indexState?: SearchIndexingNotificationStateWithLiterals;\n /** type of the document the notification is targeted for. Applies to all types if not provided */\n documentType?: string | null;\n /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */\n language?: string | null;\n /**\n * site for which notification is targeted\n * @minLength 2\n */\n msId?: string | null;\n}\n\nexport enum SearchIndexingNotificationState {\n /** default state */\n Unknown = 'Unknown',\n /** metasite does not require site search indexing */\n Off = 'Off',\n /** metasite requires site search indexing */\n On = 'On',\n}\n\n/** @enumType */\nexport type SearchIndexingNotificationStateWithLiterals =\n | SearchIndexingNotificationState\n | 'Unknown'\n | 'Off'\n | 'On';\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 /** Details related to the account */\n accountInfo?: AccountInfo;\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 AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/**\n * Creates a Section.\n * @param section - Section to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField section\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @returns The created Section.\n * @fqn wix.onlineprograms.sections.v3.SectionsService.CreateSection\n */\nexport async function createSection(\n section: Section,\n options?: CreateSectionOptions\n): Promise<\n NonNullablePaths<\n Section,\n | `programId`\n | `description.title`\n | `state`\n | `oldTotalSteps`\n | `trialSection`\n | `ordering`\n | `delayInDays`,\n 3\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 section: section,\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { section: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['section', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateSectionOptions {\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Bulk Section creation.\n * @param sections - List of sections you want to create\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection\n */\nexport async function bulkCreateSection(\n sections: Section[],\n options?: BulkCreateSectionOptions\n): Promise<\n NonNullablePaths<\n BulkCreateSectionResponse,\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.programId`\n | `results.${number}.item.description.title`\n | `results.${number}.item.state`\n | `results.${number}.item.oldTotalSteps`\n | `results.${number}.item.trialSection`\n | `results.${number}.item.ordering`\n | `results.${number}.item.delayInDays`\n | `results.${number}.action`\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 fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Section.bulkCreateSection(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: [{ path: 'results.item.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sections: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['sections', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateSectionOptions {\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Bulk Section creation for migration.\n * @param sections - List of sections you want to create\n * @public\n * @documentationMaturity preview\n * @requiredField sections\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration\n */\nexport async function bulkCreateSectionMigration(\n sections: Section[]\n): Promise<\n NonNullablePaths<\n BulkCreateSectionMigrationResponse,\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.programId`\n | `results.${number}.item.description.title`\n | `results.${number}.item.state`\n | `results.${number}.item.oldTotalSteps`\n | `results.${number}.item.trialSection`\n | `results.${number}.item.ordering`\n | `results.${number}.item.delayInDays`\n | `results.${number}.action`\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 = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ sections: sections }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Section.bulkCreateSectionMigration(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: [{ path: 'results.item.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'results.item.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sections: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['sections']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a Section.\n * @param sectionId - ID of the Section to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId ONLINE_PROGRAMS.SECTION_READ\n * @applicableIdentity APP\n * @returns The requested Section.\n * @fqn wix.onlineprograms.sections.v3.SectionsService.GetSection\n */\nexport async function getSection(\n sectionId: string,\n options?: GetSectionOptions\n): Promise<\n NonNullablePaths<\n Section,\n | `programId`\n | `description.title`\n | `state`\n | `oldTotalSteps`\n | `trialSection`\n | `ordering`\n | `delayInDays`,\n 3\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n descriptionFieldSet: options?.descriptionFieldSet,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionId: '$[0]',\n descriptionFieldSet: '$[1].descriptionFieldSet',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['sectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetSectionOptions {\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Updates a Section.\n * @param _id - Program Section ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField options.section.revision\n * @permissionId ONLINE_PROGRAMS.SECTION_UPDATE\n * @applicableIdentity APP\n * @returns Updated Section.\n * @fqn wix.onlineprograms.sections.v3.SectionsService.UpdateSection\n */\nexport async function updateSection(\n _id: string,\n options?: NonNullablePaths<UpdateSectionOptions, `section.revision`, 3>\n): Promise<\n NonNullablePaths<\n Section,\n | `programId`\n | `description.title`\n | `state`\n | `oldTotalSteps`\n | `trialSection`\n | `ordering`\n | `delayInDays`,\n 3\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 section: { ...options?.section, id: _id },\n fields: options?.fields,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )?.section!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { section: '$[1].section' },\n explicitPathsToArguments: {\n 'section.id': '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateSectionOptions {\n section?: {\n /**\n * Program Section ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of an item. Each time the item is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * Represents the time this Section was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Section was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Program Id to which this section is assigned to.\n * @format GUID\n * @readonly\n */\n programId?: string;\n /** title, description and media content. */\n description?: Description;\n /** is this section published yet? */\n state?: StateWithLiterals;\n /**\n * number of program steps in this section.\n * @readonly\n */\n oldTotalSteps?: number;\n /**\n * number of program steps in this section.\n * @readonly\n */\n totalSteps?: number | null;\n /** should we open this section as a trial content even though the owning program isn't purchased yet? */\n trialSection?: boolean;\n /** field for manual ordering of sections */\n ordering?: number;\n /**\n * open after defined number of days passed.\n * @max 5000\n */\n delayInDays?: number;\n /** extensible field */\n extendedFields?: ExtendedFields;\n };\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Deletes a Section.\n * Deleting a Section permanently removes them from the Section List.\n * @param sectionId - Id of the Section to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId ONLINE_PROGRAMS.SECTION_DELETE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.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 = ambassadorWixOnlineProgramsV3Section.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 * Retrieves a list of Sections, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Sections can be returned per request.\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.SECTION_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections\n */\nexport function querySections(\n options?: QuerySectionsOptions\n): SectionsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] 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 = ambassadorWixOnlineProgramsV3Section.querySections({\n ...payload,\n ...(options ?? {}),\n });\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, options] as [\n QuerySectionsRequest['query'],\n QuerySectionsOptions\n ];\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: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'sections.description.video' }],\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\nexport interface QuerySectionsOptions {\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals | undefined;\n /**\n * Program id to query sections. Not used anymore. Deprecated in favor of query filter param.\n * @deprecated\n * @replacedBy wix.common.CursorQuery\n * @targetRemovalDate 2026-06-30\n */\n programId?: string | undefined;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[] | undefined;\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 | 'programId'\n | 'state'\n | 'trialSection'\n | 'delayInDays',\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: '_id' | 'state' | 'trialSection' | 'delayInDays',\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: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id' | 'delayInDays', value: any) => SectionsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id' | 'delayInDays', value: any) => 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: (propertyName: '_id', value: string) => 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: (\n propertyName: '_id' | 'state' | 'trialSection' | 'delayInDays',\n value: any[]\n ) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'state' | 'trialSection' | 'delayInDays',\n value: any\n ) => SectionsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'state' | 'trialSection' | 'delayInDays',\n value: boolean\n ) => SectionsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n | '_id'\n | '_createdDate'\n | 'state'\n | 'trialSection'\n | 'ordering'\n | 'delayInDays'\n >\n ) => SectionsQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n | '_id'\n | '_createdDate'\n | 'state'\n | 'trialSection'\n | 'ordering'\n | 'delayInDays'\n >\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 * @hidden\n * @fqn wix.onlineprograms.sections.v3.SectionsService.QuerySections\n * @requiredField query\n */\nexport async function typedQuerySections(\n query: SectionQuery,\n options?: QuerySectionsOptions\n): Promise<\n NonNullablePaths<\n QuerySectionsResponse,\n | `sections`\n | `sections.${number}.programId`\n | `sections.${number}.description.title`\n | `sections.${number}.state`\n | `sections.${number}.oldTotalSteps`\n | `sections.${number}.trialSection`\n | `sections.${number}.ordering`\n | `sections.${number}.delayInDays`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: query,\n ...options,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.querySections(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: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['query', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface SectionQuerySpec extends QuerySpec {\n paging: 'cursor';\n wql: [\n {\n fields: ['programId'];\n operators: ['$eq'];\n sort: 'NONE';\n },\n {\n fields: ['_id', 'delayInDays', 'state', 'trialSection'];\n operators: '*';\n sort: 'BOTH';\n },\n {\n fields: ['_createdDate', 'ordering'];\n operators: [];\n sort: 'BOTH';\n }\n ];\n}\n\nexport type CommonQueryWithEntityContext = QuerySdkType<\n Section,\n SectionQuerySpec\n>;\nexport type SectionQuery = {\n /** \n Cursor paging options.\n\n Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging). \n */\n cursorPaging?: {\n /** \n Maximum number of items to return in the results. \n @max: 100 \n */\n limit?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit']\n | null;\n /** \n Pointer to the next or previous page in the list of results.\n\n Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n Not relevant for the first request. \n @maxLength: 16000 \n */\n cursor?:\n | NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters). \n */\n filter?: CommonQueryWithEntityContext['filter'] | null;\n /** \n Sort object.\n\n Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting). \n @maxSize: 5 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonQueryWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];\n }[];\n};\n\nexport const utils = {\n query: {\n ...createQueryUtils<Section, SectionQuerySpec, SectionQuery>(),\n },\n};\n\n/**\n * List sections per program id\n * @param programId - Program id to list sections\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.SECTION_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.ListSections\n */\nexport async function listSections(\n programId: string,\n options?: ListSectionsOptions\n): Promise<\n NonNullablePaths<\n ListSectionsResponse,\n | `sections`\n | `sections.${number}.programId`\n | `sections.${number}.description.title`\n | `sections.${number}.state`\n | `sections.${number}.oldTotalSteps`\n | `sections.${number}.trialSection`\n | `sections.${number}.ordering`\n | `sections.${number}.delayInDays`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n programId: programId,\n descriptionFieldSet: options?.descriptionFieldSet,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.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: [{ path: 'sections.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'sections.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n programId: '$[0]',\n descriptionFieldSet: '$[1].descriptionFieldSet',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['programId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListSectionsOptions {\n /** Whenever to return description only with title or with details as well */\n descriptionFieldSet?: DescriptionFieldSetWithLiterals;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Clones section with specified id\n * @param sectionId - Section to clone\n * @public\n * @documentationMaturity preview\n * @requiredField sectionId\n * @permissionId ONLINE_PROGRAMS.SECTION_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.CloneSection\n */\nexport async function cloneSection(\n sectionId: string,\n options?: CloneSectionOptions\n): Promise<\n NonNullablePaths<\n CloneSectionResponse,\n | `section.programId`\n | `section.description.title`\n | `section.state`\n | `section.oldTotalSteps`\n | `section.trialSection`\n | `section.ordering`\n | `section.delayInDays`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n sectionId: sectionId,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.cloneSection(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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { sectionId: '$[0]', fields: '$[1].fields' },\n singleArgumentUnchanged: false,\n },\n ['sectionId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CloneSectionOptions {\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Places section after specified one or inserts it in the beginning\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.SECTION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.MoveSection\n */\nexport async function moveSection(\n options?: MoveSectionOptions\n): Promise<\n NonNullablePaths<\n MoveSectionResponse,\n | `section.programId`\n | `section.description.title`\n | `section.state`\n | `section.oldTotalSteps`\n | `section.trialSection`\n | `section.ordering`\n | `section.delayInDays`,\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 sectionId: options?.sectionId,\n afterSectionId: options?.afterSectionId,\n revision: options?.revision,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.moveSection(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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionId: '$[0].sectionId',\n afterSectionId: '$[0].afterSectionId',\n revision: '$[0].revision',\n fields: '$[0].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface MoveSectionOptions {\n /**\n * Section to move\n * @format GUID\n */\n sectionId?: string;\n /**\n * change section position to be after the specified section. If empty insert in the \"0\" position.\n * @format GUID\n */\n afterSectionId?: string | null;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n\n/**\n * Publishes section\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.SECTION_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.sections.v3.SectionsService.PublishSection\n */\nexport async function publishSection(\n options?: PublishSectionOptions\n): Promise<\n NonNullablePaths<\n PublishSectionResponse,\n | `section.programId`\n | `section.description.title`\n | `section.state`\n | `section.oldTotalSteps`\n | `section.trialSection`\n | `section.ordering`\n | `section.delayInDays`,\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 sectionId: options?.sectionId,\n revision: options?.revision,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Section.publishSection(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: [{ path: 'section.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'section.description.video' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n sectionId: '$[0].sectionId',\n revision: '$[0].revision',\n fields: '$[0].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface PublishSectionOptions {\n /**\n * Section to publish\n * @format GUID\n */\n sectionId?: string;\n /** section revision */\n revision?: string;\n /**\n * Predefined sets of fields to return.\n * @maxSize 1\n */\n fields?: RequestedFieldsWithLiterals[];\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\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 resolveWixOnlineprogramsSectionsV3SectionsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'bo._base_domain_': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/program-sections-service',\n destPath: '',\n },\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/program-sections-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_sections';\n\n/** Creates a Section. */\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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n { path: 'section.description.video.resolutions.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n { path: 'section.description.video.resolutions.poster.focalPoint.x' },\n { path: 'section.description.video.resolutions.poster.focalPoint.y' },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.CreateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createSection;\n}\n\n/** Bulk Section creation. */\nexport function bulkCreateSection(payload: object): RequestOptionsFactory<any> {\n function __bulkCreateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n { path: 'sections.description.video.resolutions.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.sections.v3.SectionsService.BulkCreateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/bulk/sections/create',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'results.item.description.video.urlExpirationDate' },\n {\n path: 'results.item.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.ordering' },\n { path: 'results.item.description.image.focalPoint.x' },\n { path: 'results.item.description.image.focalPoint.y' },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'results.item.description.video.posters.focalPoint.x' },\n { path: 'results.item.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSection;\n}\n\n/** Bulk Section creation for migration. */\nexport function bulkCreateSectionMigration(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateSectionMigration({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'sections.createdDate' },\n { path: 'sections.updatedDate' },\n { path: 'sections.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n { path: 'sections.description.video.resolutions.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.sections.v3.SectionsService.BulkCreateSectionMigration',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/bulk/sections/create/migration',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'results.item.description.video.urlExpirationDate' },\n {\n path: 'results.item.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'results.item.description.video.posters.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'results.item.ordering' },\n { path: 'results.item.description.image.focalPoint.x' },\n { path: 'results.item.description.image.focalPoint.y' },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'results.item.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'results.item.description.video.posters.focalPoint.x' },\n { path: 'results.item.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateSectionMigration;\n}\n\n/** Retrieves a Section. */\nexport function getSection(payload: object): RequestOptionsFactory<any> {\n function __getSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'GET' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.GetSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{sectionId}',\n data: payload,\n 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getSection;\n}\n\n/** Updates a Section. */\nexport function updateSection(payload: object): RequestOptionsFactory<any> {\n function __updateSection({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'section.createdDate' },\n { path: 'section.updatedDate' },\n { path: 'section.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n { path: 'section.description.video.resolutions.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n { path: 'section.description.video.resolutions.poster.focalPoint.x' },\n { path: 'section.description.video.resolutions.poster.focalPoint.y' },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'PATCH' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.UpdateSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{section.id}',\n data: serializedData,\n 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateSection;\n}\n\n/**\n * Deletes a Section.\n * Deleting a Section permanently removes them from the Section List.\n */\nexport function deleteSection(payload: object): RequestOptionsFactory<any> {\n function __deleteSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'DELETE' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.DeleteSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{sectionId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteSection;\n}\n\n/**\n * Retrieves a list of Sections, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 Sections can be returned per request.\n */\nexport function querySections(payload: object): RequestOptionsFactory<any> {\n function __querySections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.QuerySections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/query',\n data: payload,\n 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.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __querySections;\n}\n\n/** List sections per program id */\nexport function listSections(payload: object): RequestOptionsFactory<any> {\n function __listSections({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'GET' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.ListSections',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections',\n data: payload,\n 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.description.image.urlExpirationDate' },\n { path: 'sections.description.video.urlExpirationDate' },\n {\n path: 'sections.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'sections.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'sections.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'sections.ordering' },\n { path: 'sections.description.image.focalPoint.x' },\n { path: 'sections.description.image.focalPoint.y' },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'sections.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'sections.description.video.posters.focalPoint.x' },\n { path: 'sections.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listSections;\n}\n\n/** Clones section with specified id */\nexport function cloneSection(payload: object): RequestOptionsFactory<any> {\n function __cloneSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.CloneSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/{sectionId}/clone',\n data: payload,\n host,\n }),\n data: 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __cloneSection;\n}\n\n/** Places section after specified one or inserts it in the beginning */\nexport function moveSection(payload: object): RequestOptionsFactory<any> {\n function __moveSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'PATCH' as any,\n methodFqn: 'wix.onlineprograms.sections.v3.SectionsService.MoveSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/move',\n data: payload,\n host,\n }),\n data: 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __moveSection;\n}\n\n/** Publishes section */\nexport function publishSection(payload: object): RequestOptionsFactory<any> {\n function __publishSection({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.section',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.onlineprograms.sections.v3.SectionsService.PublishSection',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsSectionsV3SectionsServiceUrl({\n protoPath: '/v3/sections/publish',\n data: payload,\n host,\n }),\n data: 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.description.image.urlExpirationDate' },\n { path: 'section.description.video.urlExpirationDate' },\n {\n path: 'section.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'section.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'section.description.video.posters.urlExpirationDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'section.ordering' },\n { path: 'section.description.image.focalPoint.x' },\n { path: 'section.description.image.focalPoint.y' },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'section.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'section.description.video.posters.focalPoint.x' },\n { path: 'section.description.video.posters.focalPoint.y' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __publishSection;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;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AC/C;AAAA,QACA;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAAA,QAC/C;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,WAAW;AAAA,UACX,UAAU;AAAA,UACV,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","State","Enum","RequestedFields","BulkActionType","DescriptionFieldSet","SortOrder","SearchIndexingNotificationState","WebhookIdentityType","createSection","bulkCreateSection","bulkCreateSectionMigration","getSection","updateSection","deleteSection","querySections","listSections","cloneSection","moveSection","publishSection"]}
|