@wix/auto_sdk_online-programs_programs 1.0.8 → 1.0.10
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 +2 -2
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +1 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -3
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/{online-programs-v3-program-programs.universal-YXMOfctc.d.ts → online-programs-v3-program-programs.universal-Bcd8zstF.d.ts} +4 -2
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +1 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -3
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/{online-programs-v3-program-programs.universal-YXMOfctc.d.mts → online-programs-v3-program-programs.universal-Bcd8zstF.d.mts} +4 -2
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +1 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -3
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/{online-programs-v3-program-programs.universal-DlAnCRAK.d.ts → online-programs-v3-program-programs.universal-EueTKGSR.d.ts} +4 -2
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +1 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -3
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/{online-programs-v3-program-programs.universal-DlAnCRAK.d.mts → online-programs-v3-program-programs.universal-EueTKGSR.d.mts} +4 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../index.typings.ts","../../../src/online-programs-v3-program-programs.universal.ts","../../../src/online-programs-v3-program-programs.http.ts"],"sourcesContent":["import {\n SearchProgramsResponse,\n CursorSearch,\n} from './src/online-programs-v3-program-programs.universal';\n\nexport * from './src/online-programs-v3-program-programs.universal.js';\n\n/** @hidden */\nexport type ProgramSearch = {};\n\n/**\n * Retrieves a list of programs according to search criteria\n * @param search - Query to search programs\n * @public\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms\n */\nexport declare function searchPrograms(\n search: CursorSearch\n): Promise<SearchProgramsResponse>;\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n Search as SearchSdkType,\n NonNullablePaths,\n SearchSpec,\n} from '@wix/sdk-types';\nimport * as ambassadorWixOnlineProgramsV3Program from './online-programs-v3-program-programs.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 { transformSDKPageURLToRESTPageURL } from '@wix/sdk-runtime/transformations/page-url';\nimport { transformRESTPageURLToSDKPageURL } from '@wix/sdk-runtime/transformations/page-url';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Program {\n /**\n * Program ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** @readonly */\n revision?: string | null;\n /** @readonly */\n _createdDate?: Date | null;\n /** @readonly */\n _updatedDate?: Date | null;\n /**\n * current program state / does participant need it?\n * @readonly\n * @deprecated\n * @replacedBy status\n * @targetRemovalDate 2025-10-15\n */\n state?: V3StateWithLiterals;\n /**\n * current program state in v2 format\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * @internal\n * @readonly\n * @deprecated\n * @replacedBy status_updated_date\n * @targetRemovalDate 2025-10-15\n */\n stateUpdatedDate?: Date | null;\n /**\n * date of the last status update\n * @internal\n * @readonly\n */\n statusUpdatedDate?: Date | null;\n /**\n * assigned categories\n * @readonly\n * @format GUID\n * @maxSize 10\n */\n categoryIds?: string[];\n /** general program info. */\n description?: Description;\n /** timeline type -> Self-paced, time-restricted. */\n timeline?: Timeline;\n /** participant limitation, step-completion pace and etc. */\n restrictions?: Restrictions;\n /** single-payment price. */\n price?: Money;\n /** seo settings. */\n seo?: Seo;\n /**\n * rewards to be assigned after reaching some of the program milestones.\n * @maxSize 10\n */\n rewards?: Reward[];\n /**\n * connected social group.\n * @format GUID\n */\n socialGroupId?: string | null;\n /**\n * join flow options.\n * @deprecated\n * @replacedBy restrictions.access_type\n * @targetRemovalDate 2025-10-15\n */\n accessType?: AccessTypeWithLiterals;\n /** extensible field */\n extendedFields?: ExtendedFields;\n /** if true -> invoice is sent to the customer who purchased the program via single payment; else -> payment confirmation email is sent */\n shouldSendInvoice?: boolean;\n /** settings related to video steps in programs */\n videoStepsSettings?: VideoStepsSettings;\n /**\n * number of content entities in program\n * @readonly\n */\n contentSummary?: ContentSummary;\n /**\n * user id of owner, who created this program\n * @format GUID\n * @readonly\n */\n ownerUserId?: string | null;\n}\n\nexport enum V3State {\n /** not published program, visible only on BM */\n DRAFT = 'DRAFT',\n /** program visible regarding to restrictions */\n PUBLISHED = 'PUBLISHED',\n /** program isn't available to join. */\n ENDED = 'ENDED',\n /** closed program. Joins and sections/steps are not available for participants. */\n ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type V3StateWithLiterals =\n | V3State\n | 'DRAFT'\n | 'PUBLISHED'\n | 'ENDED'\n | 'ARCHIVED';\n\nexport enum Status {\n /** unknown state */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** not published program, visible only on BM */\n DRAFT = 'DRAFT',\n /** program visible regarding to restrictions */\n PUBLISHED = 'PUBLISHED',\n /** program isn't available to join. */\n ENDED = 'ENDED',\n /** closed program. Joins and sections/steps are not available for participants. */\n ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'DRAFT'\n | 'PUBLISHED'\n | 'ENDED'\n | 'ARCHIVED';\n\nexport interface Description extends DescriptionMediaOneOf {\n /** WixMedia image */\n image?: string;\n /** WixMedia video */\n video?: string;\n /** @maxLength 150 */\n title?: string;\n /** @maxLength 8000 */\n details?: string | null;\n}\n\n/** @oneof */\nexport interface DescriptionMediaOneOf {\n /** WixMedia image */\n image?: string;\n /** WixMedia video */\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 interface Timeline {\n /** are sections/steps evaluated every day? Or can UoU participate in a self paced mode? */\n selfPaced?: boolean;\n /**\n * everyone starts on this day\n * @format LOCAL_DATE\n */\n startDate?: string | null;\n /** duration of program in days (if applicable). */\n durationInDays?: number | null;\n}\n\nexport interface Restrictions {\n /**\n * limit of active participants in the program.\n * @min 1\n */\n maxParticipants?: number | null;\n /** hide steps in the Pending state. */\n hideFutureSteps?: boolean;\n /** allow participants complete steps in the certain order. */\n resolveStepsInOrder?: boolean;\n /** allow program participants to share their progress in group */\n shareProgress?: boolean;\n /** access restrictions options regarding visibility. */\n accessType?: RestrictionsAccessTypeWithLiterals;\n}\n\nexport enum RestrictionsAccessType {\n /** unknown access type */\n UNKNOWN_ACCESS_TYPE = 'UNKNOWN_ACCESS_TYPE',\n /** join without approvals */\n PUBLIC = 'PUBLIC',\n /** send a join request to the owner and get an approval from him. */\n PRIVATE = 'PRIVATE',\n /** join possible only after owner invite. */\n SECRET = 'SECRET',\n}\n\n/** @enumType */\nexport type RestrictionsAccessTypeWithLiterals =\n | RestrictionsAccessType\n | 'UNKNOWN_ACCESS_TYPE'\n | 'PUBLIC'\n | 'PRIVATE'\n | 'SECRET';\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99).\n * @decimalValue options { gt:0.00, maxScale:3 }\n */\n value?: string;\n /**\n * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n}\n\nexport interface Seo {\n /**\n * program slug expression\n * @format URL_SLUG\n */\n slug?: string;\n /** schema used by Seo team */\n seoData?: SeoSchema;\n /**\n * program url\n * @readonly\n */\n url?: string;\n /**\n * image url from description media\n * @format WEB_URL\n */\n imageUrl?: string | null;\n /**\n * alt text of image\n * @maxLength 1000\n */\n imageAlt?: string;\n /**\n * Approximate SEO program duration in Iso-8601\n * @maxLength 100\n * @readonly\n */\n courseWorkload?: string;\n}\n\n/**\n * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.\n * The search engines use this information for ranking purposes, or to display snippets in the search results.\n * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.\n */\nexport interface SeoSchema {\n /** SEO tag information. */\n tags?: Tag[];\n /** SEO general settings. */\n settings?: Settings;\n}\n\nexport interface Keyword {\n /** Keyword value. */\n term?: string;\n /** Whether the keyword is the main focus keyword. */\n isMain?: boolean;\n /**\n * The source that added the keyword terms to the SEO settings.\n * @maxLength 1000\n */\n origin?: string | null;\n}\n\nexport interface Tag {\n /**\n * SEO tag type.\n *\n *\n * Supported values: `title`, `meta`, `script`, `link`.\n */\n type?: string;\n /**\n * A `{\"key\": \"value\"}` pair object where each SEO tag property (`\"name\"`, `\"content\"`, `\"rel\"`, `\"href\"`) contains a value.\n * For example: `{\"name\": \"description\", \"content\": \"the description itself\"}`.\n */\n props?: Record<string, any> | null;\n /** SEO tag metadata. For example, `{\"height\": 300, \"width\": 240}`. */\n meta?: Record<string, any> | null;\n /** SEO tag inner content. For example, `<title> inner content </title>`. */\n children?: string;\n /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */\n custom?: boolean;\n /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */\n disabled?: boolean;\n}\n\nexport interface Settings {\n /**\n * Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n *\n *\n * Default: `false` (automatical redirect is enabled).\n */\n preventAutoRedirect?: boolean;\n /**\n * User-selected keyword terms for a specific page.\n * @maxSize 5\n */\n keywords?: Keyword[];\n}\n\nexport interface Reward {\n /** on which action rewards must be assigned. */\n trigger?: TriggerWithLiterals;\n /**\n * badges participant will get on program complete\n * @format GUID\n * @maxSize 50\n */\n badgeIds?: string[];\n /** certificate for program. Currently is program GUID */\n certificate?: Certificate;\n}\n\nexport enum Trigger {\n /** member joins the program */\n JOINED_TO_PROGRAM = 'JOINED_TO_PROGRAM',\n /** at least one step completed */\n STEP_COMPLETED = 'STEP_COMPLETED',\n /** all steps are completed. */\n ALL_STEPS_COMPLETED = 'ALL_STEPS_COMPLETED',\n}\n\n/** @enumType */\nexport type TriggerWithLiterals =\n | Trigger\n | 'JOINED_TO_PROGRAM'\n | 'STEP_COMPLETED'\n | 'ALL_STEPS_COMPLETED';\n\nexport interface Certificate {\n /**\n * Certificate for program completion. Currently is program GUID\n * @format GUID\n */\n _id?: string;\n /** date it was connected to program */\n connectedDate?: Date | null;\n}\n\nexport enum AccessType {\n /** join without approvals */\n PUBLIC = 'PUBLIC',\n /** send a join request to the owner and get an approval from him. */\n PRIVATE = 'PRIVATE',\n /** join possible only after owner invite. */\n SECRET = 'SECRET',\n}\n\n/** @enumType */\nexport type AccessTypeWithLiterals =\n | AccessType\n | 'PUBLIC'\n | 'PRIVATE'\n | 'SECRET';\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 VideoStepsSettings {\n /** automatically switch to next video step after finishing current one */\n autoNavigate?: boolean;\n /** how many percents of video need to be watched to complete step */\n requiredCompletionPercentage?: number;\n}\n\nexport interface ContentSummary {\n /**\n * number of steps in program\n * @max 3000\n */\n stepCount?: number;\n /**\n * number of sections in program\n * @max 1000\n */\n sectionCount?: number;\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 InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\n/**\n * Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as\n * performs context manipulation with adding tenant, provided in message to callscope.\n */\nexport interface ReindexMessage extends ReindexMessageActionOneOf {\n upsert?: Upsert;\n delete?: Delete;\n entityFqdn?: string;\n tenantId?: string;\n eventTime?: Date | null;\n entityEventSequence?: string | null;\n schema?: Schema;\n}\n\n/** @oneof */\nexport interface ReindexMessageActionOneOf {\n upsert?: Upsert;\n delete?: Delete;\n}\n\nexport interface Upsert {\n entityId?: string;\n entityAsJson?: string;\n}\n\nexport interface Delete {\n entityId?: string;\n}\n\nexport interface Schema {\n label?: string;\n clusterName?: string;\n}\n\nexport interface ProgramPublished {}\n\nexport interface ProgramEnded {\n /** true if ended manually by owner */\n endedByOwner?: boolean;\n}\n\nexport interface ProgramArchived {}\n\nexport interface ProgramDuplicated {\n /** Newly created program */\n program?: Program;\n /** Program that was duplicated */\n duplicatedFrom?: Program;\n /** Indicates if the program was cloned from a template */\n fromTemplate?: boolean;\n}\n\nexport interface CreateProgramRequest {\n /** Program to be created. */\n program: Program;\n}\n\nexport interface CreateProgramResponse {\n /** The created Program. */\n program?: Program;\n}\n\nexport interface BulkCreateProgramsMigrationRequest {\n /**\n * List of programs you want to create\n * @minSize 1\n * @maxSize 100\n */\n programs?: ProgramMigration[];\n}\n\nexport interface ProgramMigration {\n /** program to create */\n program?: Program;\n /**\n * section ids in program\n * @maxSize 5000\n * @format GUID\n */\n sectionIds?: string[];\n /**\n * step ids in program\n * @maxSize 5000\n * @format GUID\n */\n stepIds?: string[];\n}\n\nexport interface BulkCreateProgramsMigrationResponse {\n /** Results of bulk action. */\n results?: BulkProgramResult[];\n /** Metadata about whole bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkProgramResult {\n /** Metadata of item. */\n itemMetadata?: ItemMetadata;\n /** Item itself (empty if return_entity in request is false). */\n item?: Program;\n /** Action type of bulk action (INSERT OR UPDATE) for that endpoint. */\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 */\n UNKNOWN_ACTION_TYPE = 'UNKNOWN_ACTION_TYPE',\n /** INSERT */\n INSERT = 'INSERT',\n /** UPDATE */\n UPDATE = 'UPDATE',\n /** DELETE */\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 DeleteAllProgramsMigrationRequest {}\n\nexport interface DeleteAllProgramsMigrationResponse {}\n\nexport interface DuplicateProgramRequest {\n /**\n * Program to be duplicated from.\n * @format GUID\n */\n programId: string;\n}\n\nexport interface DuplicateProgramResponse {\n /** The created Program. */\n program?: Program;\n}\n\nexport interface GetProgramRequest {\n /**\n * ID of the Program to retrieve.\n * @format GUID\n */\n programId: string;\n}\n\nexport interface GetProgramResponse {\n /** The requested Program. */\n program?: Program;\n}\n\nexport interface UpdateProgramRequest {\n /** Program to be updated, may be partial. */\n program: Program;\n}\n\nexport interface UpdateProgramResponse {\n /** Updated Program. */\n program?: Program;\n}\n\nexport interface WrongStateErrorDetails {}\n\nexport interface WrongStartDateErrorDetails {}\n\nexport interface WrongParticipantsNumberErrorDetails {\n /** Participants that already joined the program */\n activeParticipantsCount?: number;\n}\n\nexport interface DuplicatedSlugErrorDetails {}\n\nexport interface TimelineSwitchForbiddenErrorDetails {}\n\nexport interface DeleteProgramRequest {\n /**\n * Id of the Program to delete.\n * @format GUID\n */\n programId: string;\n}\n\nexport interface DeleteProgramResponse {}\n\nexport interface QueryProgramsRequest {\n /** Query to filter programs */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 100\n */\n sort?: Sorting[];\n /**\n * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxSize 100\n * @maxLength 1000\n */\n fields?: string[];\n /**\n * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxSize 100\n * @maxLength 1000\n */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n offset?: number | null;\n}\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 QueryProgramsResponse {\n /** Found programs */\n programs?: Program[];\n /** paging */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\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 SearchProgramsRequest {\n /** Query to search programs */\n search?: CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\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 the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * UTC offset or IANA time zone. Valid values are\n * ISO 8601 UTC offsets, such as +02:00 or -06:00,\n * and IANA time zone IDs, such as Europe/Rome.\n *\n * Affects all filters and aggregations returned values.\n * You may override this behavior in a specific filter by providing\n * timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`.\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\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 Aggregation extends AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n /**\n * Deprecated. Use `nested` instead.\n * @deprecated Deprecated. Use `nested` instead.\n * @replacedBy kind.nested\n * @targetRemovalDate 2024-03-30\n */\n groupBy?: GroupByAggregation;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n /** Inclusive lower bound of the range. Required if `to` is not provided. */\n from?: number | null;\n /** Exclusive upper bound of the range. Required if `from` is not provided. */\n to?: number | null;\n}\n\nexport enum SortType {\n /** Sort by number of matches. */\n COUNT = 'COUNT',\n /** Sort by value of the field alphabetically. */\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n /** Sort in descending order. */\n DESC = 'DESC',\n /** Sort in ascending order. */\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n /** Exclude missing values from the aggregation results. */\n EXCLUDE = 'EXCLUDE',\n /** Include missing values in the aggregation results. */\n INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n /**\n * Specify custom bucket name. Defaults are [string -> \"N/A\"], [int -> \"0\"], [bool -> \"false\"] ...\n * @maxLength 20\n */\n addToBucket?: string;\n}\n\nexport enum ScalarType {\n UNKNOWN_SCALAR_TYPE = 'UNKNOWN_SCALAR_TYPE',\n /** Count of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'UNKNOWN_SCALAR_TYPE'\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n /** Whether to sort by number of matches or value of the field. */\n sortType?: SortTypeWithLiterals;\n /** Whether to sort in ascending or descending order. */\n sortDirection?: SortDirectionWithLiterals;\n /** How many aggregations to return. Can be between 1 and 250. 10 is the default. */\n limit?: number | null;\n /** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */\n missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n UNKNOWN_AGGREGATION_TYPE = 'UNKNOWN_AGGREGATION_TYPE',\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n | NestedAggregationType\n | 'UNKNOWN_AGGREGATION_TYPE'\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n /**\n * List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.\n * @maxSize 50\n */\n buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n /** Define the operator for the scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n /** Interval for date histogram aggregation. */\n interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n UNKNOWN_INTERVAL = 'UNKNOWN_INTERVAL',\n /** Yearly interval */\n YEAR = 'YEAR',\n /** Monthly interval */\n MONTH = 'MONTH',\n /** Weekly interval */\n WEEK = 'WEEK',\n /** Daily interval */\n DAY = 'DAY',\n /** Hourly interval */\n HOUR = 'HOUR',\n /** Minute interval */\n MINUTE = 'MINUTE',\n /** Second interval */\n SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n | Interval\n | 'UNKNOWN_INTERVAL'\n | 'YEAR'\n | 'MONTH'\n | 'WEEK'\n | 'DAY'\n | 'HOUR'\n | 'MINUTE'\n | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: NestedAggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n UNKNOWN_AGGREGATION_TYPE = 'UNKNOWN_AGGREGATION_TYPE',\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Multi-level aggregation, where each next aggregation is nested within previous one. */\n NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'UNKNOWN_AGGREGATION_TYPE'\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */\nexport interface NestedAggregation {\n /**\n * Flattened list of aggregations, where each next aggregation is nested within previous one.\n * @minSize 2\n * @maxSize 3\n */\n nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface GroupByAggregation extends GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Field to aggregate by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n}\n\nexport interface SearchDetails {\n /** Defines how separate search terms in `expression` are combined. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** Any of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchProgramsResponse {\n /** Found programs */\n programs?: Program[];\n /** paging */\n pagingMetadata?: CursorPagingMetadata;\n /** aggregation */\n aggregationData?: AggregationData;\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 AggregationData {\n /**\n * key = aggregation name (as derived from search request).\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number;\n}\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * User-defined name of aggregation, matches the one provided in request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that matches result. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, matches the one provided in request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in ISO 8601 format.\n * @maxLength 100\n */\n value?: string;\n /** Count of documents in the bucket. */\n count?: number;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/**\n * Results of `NESTED` aggregation type in a flattened form.\n * Aggregations in resulting array are keyed by requested aggregation `name`.\n */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /**\n * User-defined name of aggregation as derived from search request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that must match provided kind as derived from search request. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by as derived from search request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n}\n\nexport interface PublishProgramRequest {\n /**\n * Program to publish\n * @format GUID\n */\n programId: string;\n}\n\nexport interface PublishProgramResponse {\n /** Published program */\n program?: Program;\n}\n\nexport interface EndProgramRequest {\n /**\n * Program to finish\n * @format GUID\n */\n programId: string;\n}\n\nexport interface EndProgramResponse {\n /** Finished program */\n program?: Program;\n}\n\nexport interface ArchiveProgramRequest {\n /**\n * Program to archive\n * @format GUID\n */\n programId: string;\n}\n\nexport interface ArchiveProgramResponse {\n /** Archived program */\n program?: Program;\n}\n\nexport interface BulkUpdateProgramsRequest {\n /**\n * List of programs you want to update\n * @minSize 1\n * @maxSize 100\n */\n programs: MaskedProgram[];\n /** set to `true` if you wish to receive back the created programs in the response */\n returnEntity?: boolean;\n}\n\nexport interface MaskedProgram {\n /** Program to be updated, may be partial */\n program?: Program;\n /** Explicit list of fields to update. */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdateProgramsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProgramResult[];\n /** metadata */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProgramResult {\n /** item metadata */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Program;\n}\n\nexport interface CountProgramsRequest {\n /** filter for which count is requested */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountProgramsResponse {\n /** count of programs matching filter */\n count?: number;\n}\n\nexport interface ListSampleProgramsRequest {}\n\nexport interface ListSampleProgramsResponse {\n /**\n * sample programs\n * @maxSize 100\n */\n programs?: LabeledProgram[];\n}\n\nexport interface LabeledProgram {\n /** sample program */\n program?: Program;\n /**\n * label, showing category for program\n * @maxLength 1000\n */\n label?: string;\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 ResolveProgramSlugRequest {\n /**\n * seo slug of online program.\n * @maxLength 1000\n */\n slug?: string;\n}\n\nexport interface ResolveProgramSlugResponse {\n /** @format GUID */\n programId?: string;\n}\n\nexport interface MissingMetasiteIdErrorDetails {}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\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\n/** Encapsulates all changes when site properties are updated */\nexport interface SitePropertiesUpdated {\n /** ID of the Wix site that has been updated. */\n metasiteId?: string;\n /** Update details. */\n event?: SitePropertiesEvent;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\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/** @docsIgnore */\nexport type UpdateProgramApplicationErrors =\n | {\n code?: 'WRONG_STATE';\n description?: string;\n data?: WrongStateErrorDetails;\n }\n | {\n code?: 'WRONG_START_DATE';\n description?: string;\n data?: WrongStartDateErrorDetails;\n }\n | {\n code?: 'WRONG_PARTICIPANTS_NUMBER';\n description?: string;\n data?: WrongParticipantsNumberErrorDetails;\n }\n | {\n code?: 'DUPLICATED_SLUG';\n description?: string;\n data?: DuplicatedSlugErrorDetails;\n }\n | {\n code?: 'TIMELINE_SWITCH_FORBIDDEN';\n description?: string;\n data?: TimelineSwitchForbiddenErrorDetails;\n };\n/** @docsIgnore */\nexport type PublishProgramApplicationErrors = {\n code?: 'INVALID_START_DATE';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a Program.\n * @param program - Program to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField program\n * @permissionId ONLINE_PROGRAMS.PROGRAM_CREATE\n * @applicableIdentity APP\n * @returns The created Program.\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.CreateProgram\n */\nexport async function createProgram(\n program: Program\n): Promise<\n NonNullablePaths<\n Program,\n | `state`\n | `status`\n | `categoryIds`\n | `description.title`\n | `timeline.selfPaced`\n | `restrictions.hideFutureSteps`\n | `restrictions.resolveStepsInOrder`\n | `restrictions.shareProgress`\n | `restrictions.accessType`\n | `price.value`\n | `price.currency`\n | `seo.slug`\n | `seo.seoData.tags`\n | `seo.seoData.tags.${number}.type`\n | `seo.seoData.tags.${number}.children`\n | `seo.seoData.tags.${number}.custom`\n | `seo.seoData.tags.${number}.disabled`\n | `seo.seoData.settings.preventAutoRedirect`\n | `seo.seoData.settings.keywords`\n | `seo.seoData.settings.keywords.${number}.term`\n | `seo.seoData.settings.keywords.${number}.isMain`\n | `seo.imageAlt`\n | `seo.courseWorkload`\n | `rewards`\n | `rewards.${number}.trigger`\n | `rewards.${number}.certificate._id`\n | `accessType`\n | `shouldSendInvoice`\n | `videoStepsSettings.autoNavigate`\n | `videoStepsSettings.requiredCompletionPercentage`\n | `contentSummary.stepCount`\n | `contentSummary.sectionCount`,\n 7\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({ program: program }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'program.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformSDKPageURLToRESTPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.createProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )?.program!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { program: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['program']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Duplicates the Program. Leaves certificate template, but removes social group.\n * @param programId - Program to be duplicated from.\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.DuplicateProgram\n */\nexport async function duplicateProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n DuplicateProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\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 programId: programId,\n });\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.duplicateProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a Program.\n * @param programId - ID of the Program to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @returns The requested Program.\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.GetProgram\n */\nexport async function getProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n Program,\n | `state`\n | `status`\n | `categoryIds`\n | `description.title`\n | `timeline.selfPaced`\n | `restrictions.hideFutureSteps`\n | `restrictions.resolveStepsInOrder`\n | `restrictions.shareProgress`\n | `restrictions.accessType`\n | `price.value`\n | `price.currency`\n | `seo.slug`\n | `seo.seoData.tags`\n | `seo.seoData.tags.${number}.type`\n | `seo.seoData.tags.${number}.children`\n | `seo.seoData.tags.${number}.custom`\n | `seo.seoData.tags.${number}.disabled`\n | `seo.seoData.settings.preventAutoRedirect`\n | `seo.seoData.settings.keywords`\n | `seo.seoData.settings.keywords.${number}.term`\n | `seo.seoData.settings.keywords.${number}.isMain`\n | `seo.imageAlt`\n | `seo.courseWorkload`\n | `rewards`\n | `rewards.${number}.trigger`\n | `rewards.${number}.certificate._id`\n | `accessType`\n | `shouldSendInvoice`\n | `videoStepsSettings.autoNavigate`\n | `videoStepsSettings.requiredCompletionPercentage`\n | `contentSummary.stepCount`\n | `contentSummary.sectionCount`,\n 7\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.getProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )?.program!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a Program.\n * @param _id - Program ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField program\n * @requiredField program.revision\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @returns Updated Program.\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.UpdateProgram\n */\nexport async function updateProgram(\n _id: string,\n program: NonNullablePaths<UpdateProgram, `revision`, 2>\n): Promise<\n NonNullablePaths<\n Program,\n | `state`\n | `status`\n | `categoryIds`\n | `description.title`\n | `timeline.selfPaced`\n | `restrictions.hideFutureSteps`\n | `restrictions.resolveStepsInOrder`\n | `restrictions.shareProgress`\n | `restrictions.accessType`\n | `price.value`\n | `price.currency`\n | `seo.slug`\n | `seo.seoData.tags`\n | `seo.seoData.tags.${number}.type`\n | `seo.seoData.tags.${number}.children`\n | `seo.seoData.tags.${number}.custom`\n | `seo.seoData.tags.${number}.disabled`\n | `seo.seoData.settings.preventAutoRedirect`\n | `seo.seoData.settings.keywords`\n | `seo.seoData.settings.keywords.${number}.term`\n | `seo.seoData.settings.keywords.${number}.isMain`\n | `seo.imageAlt`\n | `seo.courseWorkload`\n | `rewards`\n | `rewards.${number}.trigger`\n | `rewards.${number}.certificate._id`\n | `accessType`\n | `shouldSendInvoice`\n | `videoStepsSettings.autoNavigate`\n | `videoStepsSettings.requiredCompletionPercentage`\n | `contentSummary.stepCount`\n | `contentSummary.sectionCount`,\n 7\n > & {\n __applicationErrorsType?: UpdateProgramApplicationErrors;\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({ program: { ...program, id: _id } }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'program.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformSDKPageURLToRESTPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.updateProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )?.program!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { program: '$[1]' },\n explicitPathsToArguments: { 'program.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'program']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProgram {\n /**\n * Program ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** @readonly */\n revision?: string | null;\n /** @readonly */\n _createdDate?: Date | null;\n /** @readonly */\n _updatedDate?: Date | null;\n /**\n * current program state / does participant need it?\n * @readonly\n * @deprecated\n * @replacedBy status\n * @targetRemovalDate 2025-10-15\n */\n state?: V3StateWithLiterals;\n /**\n * current program state in v2 format\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * @internal\n * @readonly\n * @deprecated\n * @replacedBy status_updated_date\n * @targetRemovalDate 2025-10-15\n */\n stateUpdatedDate?: Date | null;\n /**\n * date of the last status update\n * @internal\n * @readonly\n */\n statusUpdatedDate?: Date | null;\n /**\n * assigned categories\n * @readonly\n * @format GUID\n * @maxSize 10\n */\n categoryIds?: string[];\n /** general program info. */\n description?: Description;\n /** timeline type -> Self-paced, time-restricted. */\n timeline?: Timeline;\n /** participant limitation, step-completion pace and etc. */\n restrictions?: Restrictions;\n /** single-payment price. */\n price?: Money;\n /** seo settings. */\n seo?: Seo;\n /**\n * rewards to be assigned after reaching some of the program milestones.\n * @maxSize 10\n */\n rewards?: Reward[];\n /**\n * connected social group.\n * @format GUID\n */\n socialGroupId?: string | null;\n /**\n * join flow options.\n * @deprecated\n * @replacedBy restrictions.access_type\n * @targetRemovalDate 2025-10-15\n */\n accessType?: AccessTypeWithLiterals;\n /** extensible field */\n extendedFields?: ExtendedFields;\n /** if true -> invoice is sent to the customer who purchased the program via single payment; else -> payment confirmation email is sent */\n shouldSendInvoice?: boolean;\n /** settings related to video steps in programs */\n videoStepsSettings?: VideoStepsSettings;\n /**\n * number of content entities in program\n * @readonly\n */\n contentSummary?: ContentSummary;\n /**\n * user id of owner, who created this program\n * @format GUID\n * @readonly\n */\n ownerUserId?: string | null;\n}\n\n/**\n * Deletes a Program.\n * Deleting a Program permanently removes them from the Program List.\n * @param programId - Id of the Program to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_DELETE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.DeleteProgram\n */\nexport async function deleteProgram(programId: 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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.deleteProgram(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: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Programs\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms\n */\nexport function queryPrograms(): ProgramsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Program,\n 'CURSOR',\n QueryProgramsRequest,\n QueryProgramsResponse\n >({\n func: async (payload: QueryProgramsRequest) => {\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.queryPrograms(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryProgramsRequest['query']) => {\n const args = [query, {}] as [QueryProgramsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryProgramsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'programs.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.seo.url' }],\n },\n ])\n );\n\n return {\n items: transformedData?.programs,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ProgramsQueryResult extends QueryCursorResult {\n items: Program[];\n query: ProgramsQueryBuilder;\n next: () => Promise<ProgramsQueryResult>;\n prev: () => Promise<ProgramsQueryResult>;\n}\n\nexport interface ProgramsQueryBuilder {\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 | 'state'\n | 'status'\n | 'timeline.selfPaced'\n | 'seo.slug'\n | 'socialGroupId',\n value: any\n ) => ProgramsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: string, value: any[]) => ProgramsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasAll: (propertyName: string, value: any[]) => ProgramsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'state'\n | 'status'\n | 'restrictions.accessType'\n | 'socialGroupId'\n | 'accessType',\n value: any\n ) => ProgramsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: 'price', value: boolean) => ProgramsQueryBuilder;\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 | 'status'\n | 'stateUpdatedDate'\n | 'statusUpdatedDate'\n | 'description.title'\n | 'seo.slug'\n >\n ) => ProgramsQueryBuilder;\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 | 'status'\n | 'stateUpdatedDate'\n | 'statusUpdatedDate'\n | 'description.title'\n | 'seo.slug'\n >\n ) => ProgramsQueryBuilder;\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) => ProgramsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ProgramsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ProgramsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms\n * @requiredField query\n */\nexport async function typedQueryPrograms(\n query: QueryV2\n): Promise<\n NonNullablePaths<\n QueryProgramsResponse,\n | `programs`\n | `programs.${number}.state`\n | `programs.${number}.status`\n | `programs.${number}.description.title`\n | `programs.${number}.timeline.selfPaced`\n | `programs.${number}.restrictions.hideFutureSteps`\n | `programs.${number}.restrictions.resolveStepsInOrder`\n | `programs.${number}.restrictions.shareProgress`\n | `programs.${number}.restrictions.accessType`\n | `programs.${number}.price.value`\n | `programs.${number}.price.currency`\n | `programs.${number}.seo.slug`\n | `programs.${number}.seo.imageAlt`\n | `programs.${number}.seo.courseWorkload`\n | `programs.${number}.accessType`\n | `programs.${number}.shouldSendInvoice`\n | `programs.${number}.videoStepsSettings.autoNavigate`\n | `programs.${number}.videoStepsSettings.requiredCompletionPercentage`\n | `programs.${number}.contentSummary.stepCount`\n | `programs.${number}.contentSummary.sectionCount`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.queryPrograms(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: 'programs.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.seo.url' }],\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']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of programs according to search criteria\n * @param search - Query to search programs\n * @public\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms\n */\nexport async function searchPrograms(\n search: ProgramSearch\n): Promise<\n NonNullablePaths<\n SearchProgramsResponse,\n | `programs`\n | `programs.${number}.state`\n | `programs.${number}.status`\n | `programs.${number}.description.title`\n | `programs.${number}.timeline.selfPaced`\n | `programs.${number}.restrictions.hideFutureSteps`\n | `programs.${number}.restrictions.resolveStepsInOrder`\n | `programs.${number}.restrictions.shareProgress`\n | `programs.${number}.restrictions.accessType`\n | `programs.${number}.price.value`\n | `programs.${number}.price.currency`\n | `programs.${number}.seo.slug`\n | `programs.${number}.seo.imageAlt`\n | `programs.${number}.seo.courseWorkload`\n | `programs.${number}.accessType`\n | `programs.${number}.shouldSendInvoice`\n | `programs.${number}.videoStepsSettings.autoNavigate`\n | `programs.${number}.videoStepsSettings.requiredCompletionPercentage`\n | `programs.${number}.contentSummary.stepCount`\n | `programs.${number}.contentSummary.sectionCount`\n | `aggregationData.results`\n | `aggregationData.results.${number}.scalar.type`\n | `aggregationData.results.${number}.scalar.value`\n | `aggregationData.results.${number}.name`\n | `aggregationData.results.${number}.type`\n | `aggregationData.results.${number}.fieldPath`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ search: search });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.searchPrograms(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: 'programs.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { search: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['search']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ProgramSearchSpec extends SearchSpec {\n searchable: ['description.title'];\n aggregatable: [\n '_id',\n 'accessType',\n 'categoryIds',\n 'description.title',\n 'restrictions.accessType',\n 'state',\n 'status',\n 'timeline.selfPaced'\n ];\n paging: 'cursor';\n wql: [\n {\n operators: '*';\n fields: ['_id', 'description.title'];\n sort: 'BOTH';\n },\n {\n operators: ['$eq', '$in'];\n fields: ['state'];\n sort: 'BOTH';\n },\n {\n operators: ['$eq', '$in'];\n fields: ['status'];\n sort: 'BOTH';\n },\n {\n operators: [];\n fields: ['_createdDate'];\n sort: 'BOTH';\n },\n {\n operators: ['$eq'];\n fields: ['timeline.selfPaced'];\n sort: 'NONE';\n },\n {\n operators: ['$in'];\n fields: ['accessType'];\n sort: 'NONE';\n },\n {\n operators: ['$in'];\n fields: ['restrictions.accessType'];\n sort: 'NONE';\n },\n {\n operators: [];\n fields: ['_updatedDate'];\n sort: 'BOTH';\n },\n {\n operators: ['$hasAll', '$hasSome'];\n fields: ['categoryIds'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonSearchWithEntityContext = SearchSdkType<\n Program,\n ProgramSearchSpec\n>;\nexport type ProgramSearch = {\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<CommonSearchWithEntityContext['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<CommonSearchWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonSearchWithEntityContext['filter'] | null;\n /** \n List of sort objects.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 10 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonSearchWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];\n }[];\n /** \n Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. \n @maxSize: 10 \n */\n aggregations?: {\n /** \n Value aggregation. \n */\n value?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['value'];\n /** \n Range aggregation. \n */\n range?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['range'];\n /** \n Scalar aggregation. \n */\n scalar?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['scalar'];\n /** \n Date histogram aggregation. \n */\n dateHistogram?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['dateHistogram'];\n /** \n Nested aggregation. \n */\n nested?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['nested'];\n /** \n User-defined name of aggregation, should be unique, will appear in aggregation results. \n @maxLength: 100 \n */\n name?:\n | NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['name']\n | null;\n /** \n Type of aggregation, client must provide matching aggregation field below. \n */\n type?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['type'];\n /** \n Field to aggregate by, use dot notation to specify json path. \n @maxLength: 200 \n */\n fieldPath?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['fieldPath'];\n /** \n Deprecated. Use `nested` instead. \n @deprecated: Deprecated. Use `nested` instead.,\n @replacedBy: kind.nested,\n @targetRemovalDate: 2024-03-30 \n */\n groupBy?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['groupBy'];\n }[];\n /** \n Free text to match in searchable fields. \n */\n search?: {\n /** \n Defines how separate search terms in `expression` are combined. \n */\n mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];\n /** \n Search term or expression. \n @maxLength: 100 \n */\n expression?:\n | NonNullable<CommonSearchWithEntityContext['search']>['expression']\n | null;\n /** \n Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path. \n @maxLength: 200,\n @maxSize: 20 \n */\n fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];\n /** \n Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). \n */\n fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];\n };\n /** \n UTC offset or IANA time zone. Valid values are\n ISO 8601 UTC offsets, such as +02:00 or -06:00,\n and IANA time zone IDs, such as Europe/Rome.\n\n Affects all filters and aggregations returned values.\n You may override this behavior in a specific filter by providing\n timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`. \n @maxLength: 50 \n */\n timeZone?: CommonSearchWithEntityContext['timeZone'] | null;\n};\n\n/**\n * Publishes draft program. In other state returns program as is.\n * @param programId - Program to publish\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.PublishProgram\n */\nexport async function publishProgram(programId: string): Promise<\n NonNullablePaths<\n PublishProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\n > & {\n __applicationErrorsType?: PublishProgramApplicationErrors;\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.publishProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Ends program.\n * @param programId - Program to finish\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.EndProgram\n */\nexport async function endProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n EndProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.endProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Archives program\n * @param programId - Program to archive\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.ArchiveProgram\n */\nexport async function archiveProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n ArchiveProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.archiveProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Update multiple Programs in a single request. Works synchronously.\n * @param programs - List of programs you want to update\n * @public\n * @documentationMaturity preview\n * @requiredField programs\n * @requiredField programs.program.revision\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.BulkUpdatePrograms\n */\nexport async function bulkUpdatePrograms(\n programs: NonNullablePaths<MaskedProgram, `program.revision`, 3>[],\n options?: BulkUpdateProgramsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProgramsResponse,\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.state`\n | `results.${number}.item.status`\n | `results.${number}.item.description.title`\n | `results.${number}.item.timeline.selfPaced`\n | `results.${number}.item.restrictions.hideFutureSteps`\n | `results.${number}.item.restrictions.resolveStepsInOrder`\n | `results.${number}.item.restrictions.shareProgress`\n | `results.${number}.item.restrictions.accessType`\n | `results.${number}.item.price.value`\n | `results.${number}.item.price.currency`\n | `results.${number}.item.seo.slug`\n | `results.${number}.item.seo.imageAlt`\n | `results.${number}.item.seo.courseWorkload`\n | `results.${number}.item.accessType`\n | `results.${number}.item.shouldSendInvoice`\n | `results.${number}.item.videoStepsSettings.autoNavigate`\n | `results.${number}.item.videoStepsSettings.requiredCompletionPercentage`\n | `results.${number}.item.contentSummary.stepCount`\n | `results.${number}.item.contentSummary.sectionCount`\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 programs: programs,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'programs.program.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'programs.program.description.video' }],\n },\n {\n transformFn: transformSDKPageURLToRESTPageURL,\n paths: [{ path: 'programs.program.seo.url' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.bulkUpdatePrograms(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 transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'results.item.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n programs: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['programs', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProgramsOptions {\n /** set to `true` if you wish to receive back the created programs in the response */\n returnEntity?: boolean;\n}\n\n/**\n * Counts programs matching the filter\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.CountPrograms\n */\nexport async function countPrograms(\n options?: CountProgramsOptions\n): Promise<NonNullablePaths<CountProgramsResponse, `count`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.countPrograms(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { filter: '$[0].filter' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CountProgramsOptions {\n /** filter for which count is requested */\n filter?: Record<string, any> | null;\n}\n\n/**\n * Returns list of sample programs.\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.ListSamplePrograms\n */\nexport async function listSamplePrograms(): Promise<\n NonNullablePaths<\n ListSampleProgramsResponse,\n | `programs`\n | `programs.${number}.program.state`\n | `programs.${number}.program.status`\n | `programs.${number}.program.description.title`\n | `programs.${number}.program.timeline.selfPaced`\n | `programs.${number}.program.restrictions.hideFutureSteps`\n | `programs.${number}.program.restrictions.resolveStepsInOrder`\n | `programs.${number}.program.restrictions.shareProgress`\n | `programs.${number}.program.restrictions.accessType`\n | `programs.${number}.program.price.value`\n | `programs.${number}.program.price.currency`\n | `programs.${number}.program.seo.slug`\n | `programs.${number}.program.seo.imageAlt`\n | `programs.${number}.program.seo.courseWorkload`\n | `programs.${number}.program.accessType`\n | `programs.${number}.program.shouldSendInvoice`\n | `programs.${number}.program.videoStepsSettings.autoNavigate`\n | `programs.${number}.program.videoStepsSettings.requiredCompletionPercentage`\n | `programs.${number}.program.contentSummary.stepCount`\n | `programs.${number}.program.contentSummary.sectionCount`\n | `programs.${number}.label`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.listSamplePrograms(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: 'programs.program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_programs';\n\n/** Creates a Program. */\nexport function createProgram(payload: object): RequestOptionsFactory<any> {\n function __createProgram({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n { path: 'program.description.video.resolutions.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n { path: 'program.description.video.resolutions.poster.focalPoint.x' },\n { path: 'program.description.video.resolutions.poster.focalPoint.y' },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n { path: 'program.videoStepsSettings.requiredCompletionPercentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.CreateProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProgram;\n}\n\n/** Duplicates the Program. Leaves certificate template, but removes social group. */\nexport function duplicateProgram(payload: object): RequestOptionsFactory<any> {\n function __duplicateProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.DuplicateProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/duplicate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __duplicateProgram;\n}\n\n/** Retrieves a Program. */\nexport function getProgram(payload: object): RequestOptionsFactory<any> {\n function __getProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'GET' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.GetProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}',\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: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProgram;\n}\n\n/** Updates a Program. */\nexport function updateProgram(payload: object): RequestOptionsFactory<any> {\n function __updateProgram({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n { path: 'program.description.video.resolutions.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n { path: 'program.description.video.resolutions.poster.focalPoint.x' },\n { path: 'program.description.video.resolutions.poster.focalPoint.y' },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n { path: 'program.videoStepsSettings.requiredCompletionPercentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'PATCH' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.UpdateProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{program.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: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProgram;\n}\n\n/**\n * Deletes a Program.\n * Deleting a Program permanently removes them from the Program List.\n */\nexport function deleteProgram(payload: object): RequestOptionsFactory<any> {\n function __deleteProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'DELETE' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.DeleteProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProgram;\n}\n\n/** Retrieves a list of Programs */\nexport function queryPrograms(payload: object): RequestOptionsFactory<any> {\n function __queryPrograms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/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: 'programs.createdDate' },\n { path: 'programs.updatedDate' },\n { path: 'programs.stateUpdatedDate' },\n { path: 'programs.statusUpdatedDate' },\n { path: 'programs.description.image.urlExpirationDate' },\n { path: 'programs.description.video.urlExpirationDate' },\n {\n path: 'programs.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'programs.description.video.posters.urlExpirationDate' },\n { path: 'programs.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'programs.description.image.focalPoint.x' },\n { path: 'programs.description.image.focalPoint.y' },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'programs.description.video.posters.focalPoint.x' },\n { path: 'programs.description.video.posters.focalPoint.y' },\n {\n path: 'programs.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPrograms;\n}\n\n/** Retrieves a list of programs according to search criteria */\nexport function searchPrograms(payload: object): RequestOptionsFactory<any> {\n function __searchPrograms({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programs.createdDate' },\n { path: 'programs.updatedDate' },\n { path: 'programs.stateUpdatedDate' },\n { path: 'programs.statusUpdatedDate' },\n { path: 'programs.description.image.urlExpirationDate' },\n { path: 'programs.description.video.urlExpirationDate' },\n {\n path: 'programs.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'programs.description.video.posters.urlExpirationDate' },\n { path: 'programs.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'programs.description.image.focalPoint.x' },\n { path: 'programs.description.image.focalPoint.y' },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'programs.description.video.posters.focalPoint.x' },\n { path: 'programs.description.video.posters.focalPoint.y' },\n {\n path: 'programs.videoStepsSettings.requiredCompletionPercentage',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchPrograms;\n}\n\n/** Publishes draft program. In other state returns program as is. */\nexport function publishProgram(payload: object): RequestOptionsFactory<any> {\n function __publishProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.PublishProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/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: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __publishProgram;\n}\n\n/** Ends program. */\nexport function endProgram(payload: object): RequestOptionsFactory<any> {\n function __endProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.EndProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/end',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __endProgram;\n}\n\n/** Archives program */\nexport function archiveProgram(payload: object): RequestOptionsFactory<any> {\n function __archiveProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.ArchiveProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archiveProgram;\n}\n\n/** Update multiple Programs in a single request. Works synchronously. */\nexport function bulkUpdatePrograms(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdatePrograms({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'programs.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'programs.program.createdDate' },\n { path: 'programs.program.updatedDate' },\n { path: 'programs.program.stateUpdatedDate' },\n { path: 'programs.program.statusUpdatedDate' },\n { path: 'programs.program.description.image.urlExpirationDate' },\n { path: 'programs.program.description.video.urlExpirationDate' },\n {\n path: 'programs.program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.posters.urlExpirationDate',\n },\n { path: 'programs.program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'programs.program.description.image.focalPoint.x' },\n { path: 'programs.program.description.image.focalPoint.y' },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'programs.program.description.video.posters.focalPoint.x' },\n { path: 'programs.program.description.video.posters.focalPoint.y' },\n {\n path: 'programs.program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.BulkUpdatePrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/bulk/programs/update',\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.stateUpdatedDate' },\n { path: 'results.item.statusUpdatedDate' },\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 { path: 'results.item.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\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 path: 'results.item.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdatePrograms;\n}\n\n/** Counts programs matching the filter */\nexport function countPrograms(payload: object): RequestOptionsFactory<any> {\n function __countPrograms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.CountPrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countPrograms;\n}\n\n/** Returns list of sample programs. */\nexport function listSamplePrograms(\n payload: object\n): RequestOptionsFactory<any> {\n function __listSamplePrograms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.ListSamplePrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/samples',\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: 'programs.program.createdDate' },\n { path: 'programs.program.updatedDate' },\n { path: 'programs.program.stateUpdatedDate' },\n { path: 'programs.program.statusUpdatedDate' },\n { path: 'programs.program.description.image.urlExpirationDate' },\n { path: 'programs.program.description.video.urlExpirationDate' },\n {\n path: 'programs.program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.posters.urlExpirationDate',\n },\n { path: 'programs.program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'programs.program.description.image.focalPoint.x' },\n { path: 'programs.program.description.image.focalPoint.y' },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.y',\n },\n {\n path: 'programs.program.description.video.posters.focalPoint.x',\n },\n {\n path: 'programs.program.description.video.posters.focalPoint.y',\n },\n {\n path: 'programs.program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listSamplePrograms;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAAA;AAAA,EAAA,0BAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA;AAAA,uBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,qDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE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A,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,2BAA2B,CAAC;AAAA,QAC9C;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAZ;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,CAAC;AAAA,QAC3B,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC;AAAA,IACH;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["archiveProgram","bulkUpdatePrograms","countPrograms","createProgram","deleteProgram","duplicateProgram","endProgram","getProgram","listSamplePrograms","publishProgram","queryPrograms","searchPrograms","updateProgram","import_float","import_timestamp","import_rest_modules","payload","import_image","import_video_v2","import_page_url","import_transform_paths","V3State","Status","RestrictionsAccessType","Trigger","AccessType","Enum","BulkActionType","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","State","SiteCreatedContext","Namespace","DeleteStatus","SearchIndexingNotificationState","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","createProgram","sdkTransformError","duplicateProgram","getProgram","updateProgram","deleteProgram","queryPrograms","searchPrograms","publishProgram","endProgram","archiveProgram","bulkUpdatePrograms","countPrograms","listSamplePrograms"]}
|
|
1
|
+
{"version":3,"sources":["../../../index.typings.ts","../../../src/online-programs-v3-program-programs.universal.ts","../../../src/online-programs-v3-program-programs.http.ts"],"sourcesContent":["import {\n SearchProgramsResponse,\n CursorSearch,\n} from './src/online-programs-v3-program-programs.universal';\n\nexport * from './src/online-programs-v3-program-programs.universal.js';\n\n/** @hidden */\nexport type ProgramSearch = {};\n\n/**\n * Retrieves a list of programs according to search criteria\n * @param search - Query to search programs\n * @public\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms\n */\nexport declare function searchPrograms(\n search: CursorSearch\n): Promise<SearchProgramsResponse>;\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport {\n HttpClient,\n HttpResponse,\n Search as SearchSdkType,\n NonNullablePaths,\n SearchSpec,\n} from '@wix/sdk-types';\nimport * as ambassadorWixOnlineProgramsV3Program from './online-programs-v3-program-programs.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 { transformSDKPageURLToRESTPageURL } from '@wix/sdk-runtime/transformations/page-url';\nimport { transformRESTPageURLToSDKPageURL } from '@wix/sdk-runtime/transformations/page-url';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Program {\n /**\n * Program ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** @readonly */\n revision?: string | null;\n /** @readonly */\n _createdDate?: Date | null;\n /** @readonly */\n _updatedDate?: Date | null;\n /**\n * current program state / does participant need it?\n * @readonly\n * @deprecated\n * @replacedBy status\n * @targetRemovalDate 2025-10-15\n */\n state?: V3StateWithLiterals;\n /**\n * current program state in v2 format\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * @internal\n * @readonly\n * @deprecated\n * @replacedBy status_updated_date\n * @targetRemovalDate 2025-10-15\n */\n stateUpdatedDate?: Date | null;\n /**\n * date of the last status update\n * @internal\n * @readonly\n */\n statusUpdatedDate?: Date | null;\n /**\n * assigned categories\n * @readonly\n * @format GUID\n * @maxSize 10\n */\n categoryIds?: string[];\n /** general program info. */\n description?: Description;\n /** timeline type -> Self-paced, time-restricted. */\n timeline?: Timeline;\n /** participant limitation, step-completion pace and etc. */\n restrictions?: Restrictions;\n /** single-payment price. */\n price?: Money;\n /** seo settings. */\n seo?: Seo;\n /**\n * rewards to be assigned after reaching some of the program milestones.\n * @maxSize 10\n */\n rewards?: Reward[];\n /**\n * connected social group.\n * @format GUID\n */\n socialGroupId?: string | null;\n /**\n * join flow options.\n * @deprecated\n * @replacedBy restrictions.access_type\n * @targetRemovalDate 2025-10-15\n */\n accessType?: AccessTypeWithLiterals;\n /** extensible field */\n extendedFields?: ExtendedFields;\n /** if true -> invoice is sent to the customer who purchased the program via single payment; else -> payment confirmation email is sent */\n shouldSendInvoice?: boolean;\n /** settings related to video steps in programs */\n videoStepsSettings?: VideoStepsSettings;\n /**\n * number of content entities in program\n * @readonly\n */\n contentSummary?: ContentSummary;\n /**\n * user id of owner, who created this program\n * @format GUID\n * @readonly\n */\n ownerUserId?: string | null;\n}\n\nexport enum V3State {\n /** not published program, visible only on BM */\n DRAFT = 'DRAFT',\n /** program visible regarding to restrictions */\n PUBLISHED = 'PUBLISHED',\n /** program isn't available to join. */\n ENDED = 'ENDED',\n /** closed program. Joins and sections/steps are not available for participants. */\n ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type V3StateWithLiterals =\n | V3State\n | 'DRAFT'\n | 'PUBLISHED'\n | 'ENDED'\n | 'ARCHIVED';\n\nexport enum Status {\n /** unknown state */\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n /** not published program, visible only on BM */\n DRAFT = 'DRAFT',\n /** program visible regarding to restrictions */\n PUBLISHED = 'PUBLISHED',\n /** program isn't available to join. */\n ENDED = 'ENDED',\n /** closed program. Joins and sections/steps are not available for participants. */\n ARCHIVED = 'ARCHIVED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'UNKNOWN_STATUS'\n | 'DRAFT'\n | 'PUBLISHED'\n | 'ENDED'\n | 'ARCHIVED';\n\nexport interface Description extends DescriptionMediaOneOf {\n /** WixMedia image */\n image?: string;\n /** WixMedia video */\n video?: string;\n /** @maxLength 150 */\n title?: string;\n /** @maxLength 8000 */\n details?: string | null;\n}\n\n/** @oneof */\nexport interface DescriptionMediaOneOf {\n /** WixMedia image */\n image?: string;\n /** WixMedia video */\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 interface Timeline {\n /** are sections/steps evaluated every day? Or can UoU participate in a self paced mode? */\n selfPaced?: boolean;\n /**\n * everyone starts on this day\n * @format LOCAL_DATE\n */\n startDate?: string | null;\n /** duration of program in days (if applicable). */\n durationInDays?: number | null;\n}\n\nexport interface Restrictions {\n /**\n * limit of active participants in the program.\n * @min 1\n */\n maxParticipants?: number | null;\n /** hide steps in the Pending state. */\n hideFutureSteps?: boolean;\n /** allow participants complete steps in the certain order. */\n resolveStepsInOrder?: boolean;\n /** allow program participants to share their progress in group */\n shareProgress?: boolean;\n /** access restrictions options regarding visibility. */\n accessType?: RestrictionsAccessTypeWithLiterals;\n}\n\nexport enum RestrictionsAccessType {\n /** unknown access type */\n UNKNOWN_ACCESS_TYPE = 'UNKNOWN_ACCESS_TYPE',\n /** join without approvals */\n PUBLIC = 'PUBLIC',\n /** send a join request to the owner and get an approval from him. */\n PRIVATE = 'PRIVATE',\n /** join possible only after owner invite. */\n SECRET = 'SECRET',\n}\n\n/** @enumType */\nexport type RestrictionsAccessTypeWithLiterals =\n | RestrictionsAccessType\n | 'UNKNOWN_ACCESS_TYPE'\n | 'PUBLIC'\n | 'PRIVATE'\n | 'SECRET';\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99).\n * @decimalValue options { gt:0.00, maxScale:3 }\n */\n value?: string;\n /**\n * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n}\n\nexport interface Seo {\n /**\n * program slug expression\n * @format URL_SLUG\n */\n slug?: string;\n /** schema used by Seo team */\n seoData?: SeoSchema;\n /**\n * program url\n * @readonly\n */\n url?: string;\n /**\n * image url from description media\n * @format WEB_URL\n */\n imageUrl?: string | null;\n /**\n * alt text of image\n * @maxLength 1000\n */\n imageAlt?: string;\n /**\n * Approximate SEO program duration in Iso-8601\n * @maxLength 100\n * @readonly\n */\n courseWorkload?: string;\n}\n\n/**\n * The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.\n * The search engines use this information for ranking purposes, or to display snippets in the search results.\n * This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.\n */\nexport interface SeoSchema {\n /** SEO tag information. */\n tags?: Tag[];\n /** SEO general settings. */\n settings?: Settings;\n}\n\nexport interface Keyword {\n /** Keyword value. */\n term?: string;\n /** Whether the keyword is the main focus keyword. */\n isMain?: boolean;\n /**\n * The source that added the keyword terms to the SEO settings.\n * @maxLength 1000\n */\n origin?: string | null;\n}\n\nexport interface Tag {\n /**\n * SEO tag type.\n *\n *\n * Supported values: `title`, `meta`, `script`, `link`.\n */\n type?: string;\n /**\n * A `{\"key\": \"value\"}` pair object where each SEO tag property (`\"name\"`, `\"content\"`, `\"rel\"`, `\"href\"`) contains a value.\n * For example: `{\"name\": \"description\", \"content\": \"the description itself\"}`.\n */\n props?: Record<string, any> | null;\n /** SEO tag metadata. For example, `{\"height\": 300, \"width\": 240}`. */\n meta?: Record<string, any> | null;\n /** SEO tag inner content. For example, `<title> inner content </title>`. */\n children?: string;\n /** Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages). */\n custom?: boolean;\n /** Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines. */\n disabled?: boolean;\n}\n\nexport interface Settings {\n /**\n * Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n *\n *\n * Default: `false` (automatical redirect is enabled).\n */\n preventAutoRedirect?: boolean;\n /**\n * User-selected keyword terms for a specific page.\n * @maxSize 5\n */\n keywords?: Keyword[];\n}\n\nexport interface Reward {\n /** on which action rewards must be assigned. */\n trigger?: TriggerWithLiterals;\n /**\n * badges participant will get on program complete\n * @format GUID\n * @maxSize 50\n */\n badgeIds?: string[];\n /** certificate for program. Currently is program GUID */\n certificate?: Certificate;\n}\n\nexport enum Trigger {\n /** member joins the program */\n JOINED_TO_PROGRAM = 'JOINED_TO_PROGRAM',\n /** at least one step completed */\n STEP_COMPLETED = 'STEP_COMPLETED',\n /** all steps are completed. */\n ALL_STEPS_COMPLETED = 'ALL_STEPS_COMPLETED',\n}\n\n/** @enumType */\nexport type TriggerWithLiterals =\n | Trigger\n | 'JOINED_TO_PROGRAM'\n | 'STEP_COMPLETED'\n | 'ALL_STEPS_COMPLETED';\n\nexport interface Certificate {\n /**\n * Certificate for program completion. Currently is program GUID\n * @format GUID\n */\n _id?: string;\n /** date it was connected to program */\n connectedDate?: Date | null;\n}\n\nexport enum AccessType {\n /** join without approvals */\n PUBLIC = 'PUBLIC',\n /** send a join request to the owner and get an approval from him. */\n PRIVATE = 'PRIVATE',\n /** join possible only after owner invite. */\n SECRET = 'SECRET',\n}\n\n/** @enumType */\nexport type AccessTypeWithLiterals =\n | AccessType\n | 'PUBLIC'\n | 'PRIVATE'\n | 'SECRET';\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 VideoStepsSettings {\n /** automatically switch to next video step after finishing current one */\n autoNavigate?: boolean;\n /** how many percents of video need to be watched to complete step */\n requiredCompletionPercentage?: number;\n}\n\nexport interface ContentSummary {\n /**\n * number of steps in program\n * @max 3000\n */\n stepCount?: number;\n /**\n * number of sections in program\n * @max 1000\n */\n sectionCount?: number;\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 InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\n/**\n * Message for reindexing search data to a given search schema. Support both upsert and delete flows as well as\n * performs context manipulation with adding tenant, provided in message to callscope.\n */\nexport interface ReindexMessage extends ReindexMessageActionOneOf {\n upsert?: Upsert;\n delete?: Delete;\n entityFqdn?: string;\n tenantId?: string;\n eventTime?: Date | null;\n entityEventSequence?: string | null;\n schema?: Schema;\n}\n\n/** @oneof */\nexport interface ReindexMessageActionOneOf {\n upsert?: Upsert;\n delete?: Delete;\n}\n\nexport interface Upsert {\n entityId?: string;\n entityAsJson?: string;\n}\n\nexport interface Delete {\n entityId?: string;\n}\n\nexport interface Schema {\n label?: string;\n clusterName?: string;\n}\n\nexport interface ProgramPublished {}\n\nexport interface ProgramEnded {\n /** true if ended manually by owner */\n endedByOwner?: boolean;\n}\n\nexport interface ProgramArchived {}\n\nexport interface ProgramDuplicated {\n /** Newly created program */\n program?: Program;\n /** Program that was duplicated */\n duplicatedFrom?: Program;\n /** Indicates if the program was cloned from a template */\n fromTemplate?: boolean;\n}\n\nexport interface CreateProgramRequest {\n /** Program to be created. */\n program: Program;\n}\n\nexport interface CreateProgramResponse {\n /** The created Program. */\n program?: Program;\n}\n\nexport interface BulkCreateProgramsMigrationRequest {\n /**\n * List of programs you want to create\n * @minSize 1\n * @maxSize 100\n */\n programs?: ProgramMigration[];\n}\n\nexport interface ProgramMigration {\n /** program to create */\n program?: Program;\n /**\n * section ids in program\n * @maxSize 5000\n * @format GUID\n */\n sectionIds?: string[];\n /**\n * step ids in program\n * @maxSize 5000\n * @format GUID\n */\n stepIds?: string[];\n}\n\nexport interface BulkCreateProgramsMigrationResponse {\n /** Results of bulk action. */\n results?: BulkProgramResult[];\n /** Metadata about whole bulk action. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkProgramResult {\n /** Metadata of item. */\n itemMetadata?: ItemMetadata;\n /** Item itself (empty if return_entity in request is false). */\n item?: Program;\n /** Action type of bulk action (INSERT OR UPDATE) for that endpoint. */\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 */\n UNKNOWN_ACTION_TYPE = 'UNKNOWN_ACTION_TYPE',\n /** INSERT */\n INSERT = 'INSERT',\n /** UPDATE */\n UPDATE = 'UPDATE',\n /** DELETE */\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 DeleteAllProgramsMigrationRequest {}\n\nexport interface DeleteAllProgramsMigrationResponse {}\n\nexport interface DuplicateProgramRequest {\n /**\n * Program to be duplicated from.\n * @format GUID\n */\n programId: string;\n}\n\nexport interface DuplicateProgramResponse {\n /** The created Program. */\n program?: Program;\n}\n\nexport interface GetProgramRequest {\n /**\n * ID of the Program to retrieve.\n * @format GUID\n */\n programId: string;\n}\n\nexport interface GetProgramResponse {\n /** The requested Program. */\n program?: Program;\n}\n\nexport interface UpdateProgramRequest {\n /** Program to be updated, may be partial. */\n program: Program;\n}\n\nexport interface UpdateProgramResponse {\n /** Updated Program. */\n program?: Program;\n}\n\nexport interface WrongStateErrorDetails {}\n\nexport interface WrongStartDateErrorDetails {}\n\nexport interface WrongParticipantsNumberErrorDetails {\n /** Participants that already joined the program */\n activeParticipantsCount?: number;\n}\n\nexport interface DuplicatedSlugErrorDetails {}\n\nexport interface TimelineSwitchForbiddenErrorDetails {}\n\nexport interface DeleteProgramRequest {\n /**\n * Id of the Program to delete.\n * @format GUID\n */\n programId: string;\n}\n\nexport interface DeleteProgramResponse {}\n\nexport interface QueryProgramsRequest {\n /** Query to filter programs */\n query?: QueryV2;\n}\n\nexport interface QueryV2 extends QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 100\n */\n sort?: Sorting[];\n /**\n * Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxSize 100\n * @maxLength 1000\n */\n fields?: string[];\n /**\n * Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned.\n * @maxSize 100\n * @maxLength 1000\n */\n fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n /** Paging options to limit and skip the number of items. */\n paging?: Paging;\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n offset?: number | null;\n}\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 QueryProgramsResponse {\n /** Found programs */\n programs?: Program[];\n /** paging */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\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 SearchProgramsRequest {\n /** Query to search programs */\n search?: CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\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 the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n *\n * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * UTC offset or IANA time zone. Valid values are\n * ISO 8601 UTC offsets, such as +02:00 or -06:00,\n * and IANA time zone IDs, such as Europe/Rome.\n *\n * Affects all filters and aggregations returned values.\n * You may override this behavior in a specific filter by providing\n * timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`.\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\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 Aggregation extends AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n /**\n * Deprecated. Use `nested` instead.\n * @deprecated Deprecated. Use `nested` instead.\n * @replacedBy kind.nested\n * @targetRemovalDate 2024-03-30\n */\n groupBy?: GroupByAggregation;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /** Nested aggregation. */\n nested?: NestedAggregation;\n}\n\nexport interface RangeBucket {\n /** Inclusive lower bound of the range. Required if `to` is not provided. */\n from?: number | null;\n /** Exclusive upper bound of the range. Required if `from` is not provided. */\n to?: number | null;\n}\n\nexport enum SortType {\n /** Sort by number of matches. */\n COUNT = 'COUNT',\n /** Sort by value of the field alphabetically. */\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n /** Sort in descending order. */\n DESC = 'DESC',\n /** Sort in ascending order. */\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n /** Exclude missing values from the aggregation results. */\n EXCLUDE = 'EXCLUDE',\n /** Include missing values in the aggregation results. */\n INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n /**\n * Specify custom bucket name. Defaults are [string -> \"N/A\"], [int -> \"0\"], [bool -> \"false\"] ...\n * @maxLength 20\n */\n addToBucket?: string;\n}\n\nexport enum ScalarType {\n UNKNOWN_SCALAR_TYPE = 'UNKNOWN_SCALAR_TYPE',\n /** Count of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'UNKNOWN_SCALAR_TYPE'\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n /** Whether to sort by number of matches or value of the field. */\n sortType?: SortTypeWithLiterals;\n /** Whether to sort in ascending or descending order. */\n sortDirection?: SortDirectionWithLiterals;\n /** How many aggregations to return. Can be between 1 and 250. 10 is the default. */\n limit?: number | null;\n /** Whether to include or exclude missing values from the aggregation results. Default: `EXCLUDE`. */\n missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n /** Options for including missing values. */\n includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n UNKNOWN_AGGREGATION_TYPE = 'UNKNOWN_AGGREGATION_TYPE',\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n | NestedAggregationType\n | 'UNKNOWN_AGGREGATION_TYPE'\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n /**\n * List of range buckets, where during aggregation each entity will be placed in the first bucket its value falls into, based on the provided range bounds.\n * @maxSize 50\n */\n buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n /** Define the operator for the scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n /** Interval for date histogram aggregation. */\n interval?: IntervalWithLiterals;\n}\n\nexport enum Interval {\n UNKNOWN_INTERVAL = 'UNKNOWN_INTERVAL',\n /** Yearly interval */\n YEAR = 'YEAR',\n /** Monthly interval */\n MONTH = 'MONTH',\n /** Weekly interval */\n WEEK = 'WEEK',\n /** Daily interval */\n DAY = 'DAY',\n /** Hourly interval */\n HOUR = 'HOUR',\n /** Minute interval */\n MINUTE = 'MINUTE',\n /** Second interval */\n SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type IntervalWithLiterals =\n | Interval\n | 'UNKNOWN_INTERVAL'\n | 'YEAR'\n | 'MONTH'\n | 'WEEK'\n | 'DAY'\n | 'HOUR'\n | 'MINUTE'\n | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation, client must provide matching aggregation field below. */\n type?: NestedAggregationTypeWithLiterals;\n /**\n * Field to aggregate by, use dot notation to specify json path.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n /** Value aggregation. */\n value?: ValueAggregation;\n /** Range aggregation. */\n range?: RangeAggregation;\n /** Scalar aggregation. */\n scalar?: ScalarAggregation;\n /** Date histogram aggregation. */\n dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n UNKNOWN_AGGREGATION_TYPE = 'UNKNOWN_AGGREGATION_TYPE',\n /** An aggregation where result buckets are dynamically built - one per unique value. */\n VALUE = 'VALUE',\n /** An aggregation, where user can define set of ranges - each representing a bucket. */\n RANGE = 'RANGE',\n /** A single-value metric aggregation. For example, min, max, sum, avg. */\n SCALAR = 'SCALAR',\n /** An aggregation, where result buckets are dynamically built - one per time interval (hour, day, week, etc.) */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Multi-level aggregation, where each next aggregation is nested within previous one. */\n NESTED = 'NESTED',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'UNKNOWN_AGGREGATION_TYPE'\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */\nexport interface NestedAggregation {\n /**\n * Flattened list of aggregations, where each next aggregation is nested within previous one.\n * @minSize 2\n * @maxSize 3\n */\n nestedAggregations?: NestedAggregationItem[];\n}\n\nexport interface GroupByAggregation extends GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n /**\n * User-defined name of aggregation, should be unique, will appear in aggregation results.\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Field to aggregate by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n}\n\nexport interface SearchDetails {\n /** Defines how separate search terms in `expression` are combined. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** Any of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface SearchProgramsResponse {\n /** Found programs */\n programs?: Program[];\n /** paging */\n pagingMetadata?: CursorPagingMetadata;\n /** aggregation */\n aggregationData?: AggregationData;\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 AggregationData {\n /**\n * key = aggregation name (as derived from search request).\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number;\n}\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * User-defined name of aggregation, matches the one provided in request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that matches result. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by, matches the one provided in request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Count of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Count of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in ISO 8601 format.\n * @maxLength 100\n */\n value?: string;\n /** Count of documents in the bucket. */\n count?: number;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/**\n * Results of `NESTED` aggregation type in a flattened form.\n * Aggregations in resulting array are keyed by requested aggregation `name`.\n */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /**\n * User-defined name of aggregation as derived from search request.\n * @maxLength 100\n */\n name?: string;\n /** Type of aggregation that must match provided kind as derived from search request. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by as derived from search request.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n}\n\nexport interface PublishProgramRequest {\n /**\n * Program to publish\n * @format GUID\n */\n programId: string;\n}\n\nexport interface PublishProgramResponse {\n /** Published program */\n program?: Program;\n}\n\nexport interface EndProgramRequest {\n /**\n * Program to finish\n * @format GUID\n */\n programId: string;\n}\n\nexport interface EndProgramResponse {\n /** Finished program */\n program?: Program;\n}\n\nexport interface ArchiveProgramRequest {\n /**\n * Program to archive\n * @format GUID\n */\n programId: string;\n}\n\nexport interface ArchiveProgramResponse {\n /** Archived program */\n program?: Program;\n}\n\nexport interface BulkUpdateProgramsRequest {\n /**\n * List of programs you want to update\n * @minSize 1\n * @maxSize 100\n */\n programs: MaskedProgram[];\n /** set to `true` if you wish to receive back the created programs in the response */\n returnEntity?: boolean;\n}\n\nexport interface MaskedProgram {\n /** Program to be updated, may be partial */\n program?: Program;\n /** Explicit list of fields to update. */\n fieldMask?: string[];\n}\n\nexport interface BulkUpdateProgramsResponse {\n /**\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateProgramResult[];\n /** metadata */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateProgramResult {\n /** item metadata */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Program;\n}\n\nexport interface CountProgramsRequest {\n /** filter for which count is requested */\n filter?: Record<string, any> | null;\n}\n\nexport interface CountProgramsResponse {\n /** count of programs matching filter */\n count?: number;\n}\n\nexport interface ListSampleProgramsRequest {}\n\nexport interface ListSampleProgramsResponse {\n /**\n * sample programs\n * @maxSize 100\n */\n programs?: LabeledProgram[];\n}\n\nexport interface LabeledProgram {\n /** sample program */\n program?: Program;\n /**\n * label, showing category for program\n * @maxLength 1000\n */\n label?: string;\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 ResolveProgramSlugRequest {\n /**\n * seo slug of online program.\n * @maxLength 1000\n */\n slug?: string;\n}\n\nexport interface ResolveProgramSlugResponse {\n /** @format GUID */\n programId?: string;\n}\n\nexport interface MissingMetasiteIdErrorDetails {}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\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\n/** Encapsulates all changes when site properties are updated */\nexport interface SitePropertiesUpdated {\n /** ID of the Wix site that has been updated. */\n metasiteId?: string;\n /** Update details. */\n event?: SitePropertiesEvent;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\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/** @docsIgnore */\nexport type UpdateProgramApplicationErrors =\n | {\n code?: 'WRONG_STATE';\n description?: string;\n data?: WrongStateErrorDetails;\n }\n | {\n code?: 'WRONG_START_DATE';\n description?: string;\n data?: WrongStartDateErrorDetails;\n }\n | {\n code?: 'WRONG_PARTICIPANTS_NUMBER';\n description?: string;\n data?: WrongParticipantsNumberErrorDetails;\n }\n | {\n code?: 'DUPLICATED_SLUG';\n description?: string;\n data?: DuplicatedSlugErrorDetails;\n }\n | {\n code?: 'TIMELINE_SWITCH_FORBIDDEN';\n description?: string;\n data?: TimelineSwitchForbiddenErrorDetails;\n };\n/** @docsIgnore */\nexport type PublishProgramApplicationErrors = {\n code?: 'INVALID_START_DATE';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Creates a Program.\n * @param program - Program to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField program\n * @permissionId ONLINE_PROGRAMS.PROGRAM_CREATE\n * @applicableIdentity APP\n * @returns The created Program.\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.CreateProgram\n */\nexport async function createProgram(\n program: Program\n): Promise<\n NonNullablePaths<\n Program,\n | `state`\n | `status`\n | `categoryIds`\n | `description.title`\n | `timeline.selfPaced`\n | `restrictions.hideFutureSteps`\n | `restrictions.resolveStepsInOrder`\n | `restrictions.shareProgress`\n | `restrictions.accessType`\n | `price.value`\n | `price.currency`\n | `seo.slug`\n | `seo.seoData.tags`\n | `seo.seoData.tags.${number}.type`\n | `seo.seoData.tags.${number}.children`\n | `seo.seoData.tags.${number}.custom`\n | `seo.seoData.tags.${number}.disabled`\n | `seo.seoData.settings.preventAutoRedirect`\n | `seo.seoData.settings.keywords`\n | `seo.seoData.settings.keywords.${number}.term`\n | `seo.seoData.settings.keywords.${number}.isMain`\n | `seo.imageAlt`\n | `seo.courseWorkload`\n | `rewards`\n | `rewards.${number}.trigger`\n | `rewards.${number}.certificate._id`\n | `accessType`\n | `shouldSendInvoice`\n | `videoStepsSettings.autoNavigate`\n | `videoStepsSettings.requiredCompletionPercentage`\n | `contentSummary.stepCount`\n | `contentSummary.sectionCount`,\n 7\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({ program: program }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'program.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformSDKPageURLToRESTPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.createProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )?.program!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { program: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['program']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Duplicates the Program. Leaves certificate template, but removes social group.\n * @param programId - Program to be duplicated from.\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_CREATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.DuplicateProgram\n */\nexport async function duplicateProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n DuplicateProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\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 programId: programId,\n });\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.duplicateProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a Program.\n * @param programId - ID of the Program to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @returns The requested Program.\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.GetProgram\n */\nexport async function getProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n Program,\n | `state`\n | `status`\n | `categoryIds`\n | `description.title`\n | `timeline.selfPaced`\n | `restrictions.hideFutureSteps`\n | `restrictions.resolveStepsInOrder`\n | `restrictions.shareProgress`\n | `restrictions.accessType`\n | `price.value`\n | `price.currency`\n | `seo.slug`\n | `seo.seoData.tags`\n | `seo.seoData.tags.${number}.type`\n | `seo.seoData.tags.${number}.children`\n | `seo.seoData.tags.${number}.custom`\n | `seo.seoData.tags.${number}.disabled`\n | `seo.seoData.settings.preventAutoRedirect`\n | `seo.seoData.settings.keywords`\n | `seo.seoData.settings.keywords.${number}.term`\n | `seo.seoData.settings.keywords.${number}.isMain`\n | `seo.imageAlt`\n | `seo.courseWorkload`\n | `rewards`\n | `rewards.${number}.trigger`\n | `rewards.${number}.certificate._id`\n | `accessType`\n | `shouldSendInvoice`\n | `videoStepsSettings.autoNavigate`\n | `videoStepsSettings.requiredCompletionPercentage`\n | `contentSummary.stepCount`\n | `contentSummary.sectionCount`,\n 7\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.getProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )?.program!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a Program.\n * @param _id - Program ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField program\n * @requiredField program.revision\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @returns Updated Program.\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.UpdateProgram\n */\nexport async function updateProgram(\n _id: string,\n program: NonNullablePaths<UpdateProgram, `revision`, 2>\n): Promise<\n NonNullablePaths<\n Program,\n | `state`\n | `status`\n | `categoryIds`\n | `description.title`\n | `timeline.selfPaced`\n | `restrictions.hideFutureSteps`\n | `restrictions.resolveStepsInOrder`\n | `restrictions.shareProgress`\n | `restrictions.accessType`\n | `price.value`\n | `price.currency`\n | `seo.slug`\n | `seo.seoData.tags`\n | `seo.seoData.tags.${number}.type`\n | `seo.seoData.tags.${number}.children`\n | `seo.seoData.tags.${number}.custom`\n | `seo.seoData.tags.${number}.disabled`\n | `seo.seoData.settings.preventAutoRedirect`\n | `seo.seoData.settings.keywords`\n | `seo.seoData.settings.keywords.${number}.term`\n | `seo.seoData.settings.keywords.${number}.isMain`\n | `seo.imageAlt`\n | `seo.courseWorkload`\n | `rewards`\n | `rewards.${number}.trigger`\n | `rewards.${number}.certificate._id`\n | `accessType`\n | `shouldSendInvoice`\n | `videoStepsSettings.autoNavigate`\n | `videoStepsSettings.requiredCompletionPercentage`\n | `contentSummary.stepCount`\n | `contentSummary.sectionCount`,\n 7\n > & {\n __applicationErrorsType?: UpdateProgramApplicationErrors;\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({ program: { ...program, id: _id } }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'program.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformSDKPageURLToRESTPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.updateProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )?.program!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { program: '$[1]' },\n explicitPathsToArguments: { 'program.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'program']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateProgram {\n /**\n * Program ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /** @readonly */\n revision?: string | null;\n /** @readonly */\n _createdDate?: Date | null;\n /** @readonly */\n _updatedDate?: Date | null;\n /**\n * current program state / does participant need it?\n * @readonly\n * @deprecated\n * @replacedBy status\n * @targetRemovalDate 2025-10-15\n */\n state?: V3StateWithLiterals;\n /**\n * current program state in v2 format\n * @readonly\n */\n status?: StatusWithLiterals;\n /**\n * @internal\n * @readonly\n * @deprecated\n * @replacedBy status_updated_date\n * @targetRemovalDate 2025-10-15\n */\n stateUpdatedDate?: Date | null;\n /**\n * date of the last status update\n * @internal\n * @readonly\n */\n statusUpdatedDate?: Date | null;\n /**\n * assigned categories\n * @readonly\n * @format GUID\n * @maxSize 10\n */\n categoryIds?: string[];\n /** general program info. */\n description?: Description;\n /** timeline type -> Self-paced, time-restricted. */\n timeline?: Timeline;\n /** participant limitation, step-completion pace and etc. */\n restrictions?: Restrictions;\n /** single-payment price. */\n price?: Money;\n /** seo settings. */\n seo?: Seo;\n /**\n * rewards to be assigned after reaching some of the program milestones.\n * @maxSize 10\n */\n rewards?: Reward[];\n /**\n * connected social group.\n * @format GUID\n */\n socialGroupId?: string | null;\n /**\n * join flow options.\n * @deprecated\n * @replacedBy restrictions.access_type\n * @targetRemovalDate 2025-10-15\n */\n accessType?: AccessTypeWithLiterals;\n /** extensible field */\n extendedFields?: ExtendedFields;\n /** if true -> invoice is sent to the customer who purchased the program via single payment; else -> payment confirmation email is sent */\n shouldSendInvoice?: boolean;\n /** settings related to video steps in programs */\n videoStepsSettings?: VideoStepsSettings;\n /**\n * number of content entities in program\n * @readonly\n */\n contentSummary?: ContentSummary;\n /**\n * user id of owner, who created this program\n * @format GUID\n * @readonly\n */\n ownerUserId?: string | null;\n}\n\n/**\n * Deletes a Program.\n * Deleting a Program permanently removes them from the Program List.\n * @param programId - Id of the Program to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_DELETE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.DeleteProgram\n */\nexport async function deleteProgram(programId: 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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.deleteProgram(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: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of Programs\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms\n */\nexport function queryPrograms(): ProgramsQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Program,\n 'CURSOR',\n QueryProgramsRequest,\n QueryProgramsResponse\n >({\n func: async (payload: QueryProgramsRequest) => {\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.queryPrograms(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryProgramsRequest['query']) => {\n const args = [query, {}] as [QueryProgramsRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryProgramsResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'programs.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.seo.url' }],\n },\n ])\n );\n\n return {\n items: transformedData?.programs,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface ProgramsQueryResult extends QueryCursorResult {\n items: Program[];\n query: ProgramsQueryBuilder;\n next: () => Promise<ProgramsQueryResult>;\n prev: () => Promise<ProgramsQueryResult>;\n}\n\nexport interface ProgramsQueryBuilder {\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 | 'state'\n | 'status'\n | 'timeline.selfPaced'\n | 'seo.slug'\n | 'socialGroupId',\n value: any\n ) => ProgramsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: string, value: any[]) => ProgramsQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasAll: (propertyName: string, value: any[]) => ProgramsQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName:\n | '_id'\n | 'state'\n | 'status'\n | 'restrictions.accessType'\n | 'socialGroupId'\n | 'accessType',\n value: any\n ) => ProgramsQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: 'price', value: boolean) => ProgramsQueryBuilder;\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 | 'status'\n | 'stateUpdatedDate'\n | 'statusUpdatedDate'\n | 'description.title'\n | 'seo.slug'\n >\n ) => ProgramsQueryBuilder;\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 | 'status'\n | 'stateUpdatedDate'\n | 'statusUpdatedDate'\n | 'description.title'\n | 'seo.slug'\n >\n ) => ProgramsQueryBuilder;\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) => ProgramsQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => ProgramsQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<ProgramsQueryResult>;\n}\n\n/**\n * @hidden\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms\n * @requiredField query\n */\nexport async function typedQueryPrograms(\n query: QueryV2\n): Promise<\n NonNullablePaths<\n QueryProgramsResponse,\n | `programs`\n | `programs.${number}.state`\n | `programs.${number}.status`\n | `programs.${number}.description.title`\n | `programs.${number}.timeline.selfPaced`\n | `programs.${number}.restrictions.hideFutureSteps`\n | `programs.${number}.restrictions.resolveStepsInOrder`\n | `programs.${number}.restrictions.shareProgress`\n | `programs.${number}.restrictions.accessType`\n | `programs.${number}.price.value`\n | `programs.${number}.price.currency`\n | `programs.${number}.seo.slug`\n | `programs.${number}.seo.imageAlt`\n | `programs.${number}.seo.courseWorkload`\n | `programs.${number}.accessType`\n | `programs.${number}.shouldSendInvoice`\n | `programs.${number}.videoStepsSettings.autoNavigate`\n | `programs.${number}.videoStepsSettings.requiredCompletionPercentage`\n | `programs.${number}.contentSummary.stepCount`\n | `programs.${number}.contentSummary.sectionCount`,\n 5\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ query: query });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.queryPrograms(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: 'programs.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.seo.url' }],\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']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of programs according to search criteria\n * @param search - Query to search programs\n * @public\n * @documentationMaturity preview\n * @requiredField search\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms\n */\nexport async function searchPrograms(\n search: ProgramSearch\n): Promise<\n NonNullablePaths<\n SearchProgramsResponse,\n | `programs`\n | `programs.${number}.state`\n | `programs.${number}.status`\n | `programs.${number}.description.title`\n | `programs.${number}.timeline.selfPaced`\n | `programs.${number}.restrictions.hideFutureSteps`\n | `programs.${number}.restrictions.resolveStepsInOrder`\n | `programs.${number}.restrictions.shareProgress`\n | `programs.${number}.restrictions.accessType`\n | `programs.${number}.price.value`\n | `programs.${number}.price.currency`\n | `programs.${number}.seo.slug`\n | `programs.${number}.seo.imageAlt`\n | `programs.${number}.seo.courseWorkload`\n | `programs.${number}.accessType`\n | `programs.${number}.shouldSendInvoice`\n | `programs.${number}.videoStepsSettings.autoNavigate`\n | `programs.${number}.videoStepsSettings.requiredCompletionPercentage`\n | `programs.${number}.contentSummary.stepCount`\n | `programs.${number}.contentSummary.sectionCount`\n | `aggregationData.results`\n | `aggregationData.results.${number}.scalar.type`\n | `aggregationData.results.${number}.scalar.value`\n | `aggregationData.results.${number}.name`\n | `aggregationData.results.${number}.type`\n | `aggregationData.results.${number}.fieldPath`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ search: search });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.searchPrograms(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: 'programs.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { search: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['search']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ProgramSearchSpec extends SearchSpec {\n searchable: ['description.title'];\n aggregatable: [\n '_id',\n 'accessType',\n 'categoryIds',\n 'description.title',\n 'restrictions.accessType',\n 'state',\n 'status',\n 'timeline.selfPaced'\n ];\n paging: 'cursor';\n wql: [\n {\n operators: '*';\n fields: ['_id', 'description.title'];\n sort: 'BOTH';\n },\n {\n operators: ['$eq', '$in'];\n fields: ['state'];\n sort: 'BOTH';\n },\n {\n operators: ['$eq', '$in'];\n fields: ['status'];\n sort: 'BOTH';\n },\n {\n operators: [];\n fields: ['_createdDate'];\n sort: 'BOTH';\n },\n {\n operators: ['$eq'];\n fields: ['timeline.selfPaced'];\n sort: 'NONE';\n },\n {\n operators: ['$in'];\n fields: ['accessType'];\n sort: 'NONE';\n },\n {\n operators: ['$in'];\n fields: ['restrictions.accessType'];\n sort: 'NONE';\n },\n {\n operators: [];\n fields: ['_updatedDate'];\n sort: 'BOTH';\n },\n {\n operators: ['$hasAll', '$hasSome'];\n fields: ['categoryIds'];\n sort: 'NONE';\n }\n ];\n}\n\nexport type CommonSearchWithEntityContext = SearchSdkType<\n Program,\n ProgramSearchSpec\n>;\nexport type ProgramSearch = {\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<CommonSearchWithEntityContext['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<CommonSearchWithEntityContext['cursorPaging']>['cursor']\n | null;\n };\n /** \n Filter object.\n\n Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section). \n */\n filter?: CommonSearchWithEntityContext['filter'] | null;\n /** \n List of sort objects.\n\n Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section). \n @maxSize: 10 \n */\n sort?: {\n /** \n Name of the field to sort by. \n @maxLength: 512 \n */\n fieldName?: NonNullable<\n CommonSearchWithEntityContext['sort']\n >[number]['fieldName'];\n /** \n Sort order. \n */\n order?: NonNullable<CommonSearchWithEntityContext['sort']>[number]['order'];\n }[];\n /** \n Aggregations are a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition. \n @maxSize: 10 \n */\n aggregations?: {\n /** \n Value aggregation. \n */\n value?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['value'];\n /** \n Range aggregation. \n */\n range?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['range'];\n /** \n Scalar aggregation. \n */\n scalar?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['scalar'];\n /** \n Date histogram aggregation. \n */\n dateHistogram?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['dateHistogram'];\n /** \n Nested aggregation. \n */\n nested?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['nested'];\n /** \n User-defined name of aggregation, should be unique, will appear in aggregation results. \n @maxLength: 100 \n */\n name?:\n | NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['name']\n | null;\n /** \n Type of aggregation, client must provide matching aggregation field below. \n */\n type?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['type'];\n /** \n Field to aggregate by, use dot notation to specify json path. \n @maxLength: 200 \n */\n fieldPath?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['fieldPath'];\n /** \n Deprecated. Use `nested` instead. \n @deprecated: Deprecated. Use `nested` instead.,\n @replacedBy: kind.nested,\n @targetRemovalDate: 2024-03-30 \n */\n groupBy?: NonNullable<\n CommonSearchWithEntityContext['aggregations']\n >[number]['groupBy'];\n }[];\n /** \n Free text to match in searchable fields. \n */\n search?: {\n /** \n Defines how separate search terms in `expression` are combined. \n */\n mode?: NonNullable<CommonSearchWithEntityContext['search']>['mode'];\n /** \n Search term or expression. \n @maxLength: 100 \n */\n expression?:\n | NonNullable<CommonSearchWithEntityContext['search']>['expression']\n | null;\n /** \n Fields to search in. If empty - will search in all searchable fields. Use dot notation to specify json path. \n @maxLength: 200,\n @maxSize: 20 \n */\n fields?: NonNullable<CommonSearchWithEntityContext['search']>['fields'];\n /** \n Whether to use auto fuzzy search (allowing typos by a managed proximity algorithm). \n */\n fuzzy?: NonNullable<CommonSearchWithEntityContext['search']>['fuzzy'];\n };\n /** \n UTC offset or IANA time zone. Valid values are\n ISO 8601 UTC offsets, such as +02:00 or -06:00,\n and IANA time zone IDs, such as Europe/Rome.\n\n Affects all filters and aggregations returned values.\n You may override this behavior in a specific filter by providing\n timestamps including time zone. For example, `\"2023-12-20T10:52:34.795Z\"`. \n @maxLength: 50 \n */\n timeZone?: CommonSearchWithEntityContext['timeZone'] | null;\n};\n\n/**\n * Publishes draft program. In other state returns program as is.\n * @param programId - Program to publish\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.PublishProgram\n */\nexport async function publishProgram(programId: string): Promise<\n NonNullablePaths<\n PublishProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\n > & {\n __applicationErrorsType?: PublishProgramApplicationErrors;\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.publishProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Ends program.\n * @param programId - Program to finish\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.EndProgram\n */\nexport async function endProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n EndProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.endProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Archives program\n * @param programId - Program to archive\n * @public\n * @documentationMaturity preview\n * @requiredField programId\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.ArchiveProgram\n */\nexport async function archiveProgram(\n programId: string\n): Promise<\n NonNullablePaths<\n ArchiveProgramResponse,\n | `program.state`\n | `program.status`\n | `program.categoryIds`\n | `program.description.title`\n | `program.timeline.selfPaced`\n | `program.restrictions.hideFutureSteps`\n | `program.restrictions.resolveStepsInOrder`\n | `program.restrictions.shareProgress`\n | `program.restrictions.accessType`\n | `program.price.value`\n | `program.price.currency`\n | `program.seo.slug`\n | `program.seo.seoData.tags`\n | `program.seo.seoData.tags.${number}.type`\n | `program.seo.seoData.tags.${number}.children`\n | `program.seo.seoData.tags.${number}.custom`\n | `program.seo.seoData.tags.${number}.disabled`\n | `program.seo.seoData.settings.preventAutoRedirect`\n | `program.seo.seoData.settings.keywords`\n | `program.seo.seoData.settings.keywords.${number}.term`\n | `program.seo.seoData.settings.keywords.${number}.isMain`\n | `program.seo.imageAlt`\n | `program.seo.courseWorkload`\n | `program.rewards`\n | `program.rewards.${number}.trigger`\n | `program.rewards.${number}.certificate._id`\n | `program.accessType`\n | `program.shouldSendInvoice`\n | `program.videoStepsSettings.autoNavigate`\n | `program.videoStepsSettings.requiredCompletionPercentage`\n | `program.contentSummary.stepCount`\n | `program.contentSummary.sectionCount`,\n 8\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 programId: programId,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.archiveProgram(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: 'program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { programId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['programId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Update multiple Programs in a single request. Works synchronously.\n * @param programs - List of programs you want to update\n * @public\n * @documentationMaturity preview\n * @requiredField programs\n * @requiredField programs.program.revision\n * @permissionId ONLINE_PROGRAMS.PROGRAM_UPDATE\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.BulkUpdatePrograms\n */\nexport async function bulkUpdatePrograms(\n programs: NonNullablePaths<MaskedProgram, `program.revision`, 3>[],\n options?: BulkUpdateProgramsOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateProgramsResponse,\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.state`\n | `results.${number}.item.status`\n | `results.${number}.item.description.title`\n | `results.${number}.item.timeline.selfPaced`\n | `results.${number}.item.restrictions.hideFutureSteps`\n | `results.${number}.item.restrictions.resolveStepsInOrder`\n | `results.${number}.item.restrictions.shareProgress`\n | `results.${number}.item.restrictions.accessType`\n | `results.${number}.item.price.value`\n | `results.${number}.item.price.currency`\n | `results.${number}.item.seo.slug`\n | `results.${number}.item.seo.imageAlt`\n | `results.${number}.item.seo.courseWorkload`\n | `results.${number}.item.accessType`\n | `results.${number}.item.shouldSendInvoice`\n | `results.${number}.item.videoStepsSettings.autoNavigate`\n | `results.${number}.item.videoStepsSettings.requiredCompletionPercentage`\n | `results.${number}.item.contentSummary.stepCount`\n | `results.${number}.item.contentSummary.sectionCount`\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 programs: programs,\n returnEntity: options?.returnEntity,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [{ path: 'programs.program.description.image' }],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'programs.program.description.video' }],\n },\n {\n transformFn: transformSDKPageURLToRESTPageURL,\n paths: [{ path: 'programs.program.seo.url' }],\n },\n ]\n );\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.bulkUpdatePrograms(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 transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'results.item.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n programs: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['programs', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateProgramsOptions {\n /** set to `true` if you wish to receive back the created programs in the response */\n returnEntity?: boolean;\n}\n\n/**\n * Counts programs matching the filter\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.CountPrograms\n */\nexport async function countPrograms(\n options?: CountProgramsOptions\n): Promise<NonNullablePaths<CountProgramsResponse, `count`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n filter: options?.filter,\n });\n\n const reqOpts = ambassadorWixOnlineProgramsV3Program.countPrograms(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { filter: '$[0].filter' },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CountProgramsOptions {\n /** filter for which count is requested */\n filter?: Record<string, any> | null;\n}\n\n/**\n * Returns list of sample programs.\n * @public\n * @documentationMaturity preview\n * @permissionId ONLINE_PROGRAMS.PROGRAM_READ\n * @applicableIdentity APP\n * @fqn wix.onlineprograms.programs.v3.ProgramsService.ListSamplePrograms\n */\nexport async function listSamplePrograms(): Promise<\n NonNullablePaths<\n ListSampleProgramsResponse,\n | `programs`\n | `programs.${number}.program.state`\n | `programs.${number}.program.status`\n | `programs.${number}.program.description.title`\n | `programs.${number}.program.timeline.selfPaced`\n | `programs.${number}.program.restrictions.hideFutureSteps`\n | `programs.${number}.program.restrictions.resolveStepsInOrder`\n | `programs.${number}.program.restrictions.shareProgress`\n | `programs.${number}.program.restrictions.accessType`\n | `programs.${number}.program.price.value`\n | `programs.${number}.program.price.currency`\n | `programs.${number}.program.seo.slug`\n | `programs.${number}.program.seo.imageAlt`\n | `programs.${number}.program.seo.courseWorkload`\n | `programs.${number}.program.accessType`\n | `programs.${number}.program.shouldSendInvoice`\n | `programs.${number}.program.videoStepsSettings.autoNavigate`\n | `programs.${number}.program.videoStepsSettings.requiredCompletionPercentage`\n | `programs.${number}.program.contentSummary.stepCount`\n | `programs.${number}.program.contentSummary.sectionCount`\n | `programs.${number}.label`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixOnlineProgramsV3Program.listSamplePrograms(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: 'programs.program.description.image' }],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'programs.program.description.video' }],\n },\n {\n transformFn: transformRESTPageURLToSDKPageURL,\n paths: [{ path: 'programs.program.seo.url' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/programs-service',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_online-programs_programs';\n\n/** Creates a Program. */\nexport function createProgram(payload: object): RequestOptionsFactory<any> {\n function __createProgram({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n { path: 'program.description.video.resolutions.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n { path: 'program.description.video.resolutions.poster.focalPoint.x' },\n { path: 'program.description.video.resolutions.poster.focalPoint.y' },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n { path: 'program.videoStepsSettings.requiredCompletionPercentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.CreateProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createProgram;\n}\n\n/** Duplicates the Program. Leaves certificate template, but removes social group. */\nexport function duplicateProgram(payload: object): RequestOptionsFactory<any> {\n function __duplicateProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.DuplicateProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/duplicate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __duplicateProgram;\n}\n\n/** Retrieves a Program. */\nexport function getProgram(payload: object): RequestOptionsFactory<any> {\n function __getProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'GET' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.GetProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}',\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: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getProgram;\n}\n\n/** Updates a Program. */\nexport function updateProgram(payload: object): RequestOptionsFactory<any> {\n function __updateProgram({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n { path: 'program.description.video.resolutions.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n { path: 'program.description.video.resolutions.poster.focalPoint.x' },\n { path: 'program.description.video.resolutions.poster.focalPoint.y' },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n { path: 'program.videoStepsSettings.requiredCompletionPercentage' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'PATCH' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.UpdateProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{program.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: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateProgram;\n}\n\n/**\n * Deletes a Program.\n * Deleting a Program permanently removes them from the Program List.\n */\nexport function deleteProgram(payload: object): RequestOptionsFactory<any> {\n function __deleteProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'DELETE' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.DeleteProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteProgram;\n}\n\n/** Retrieves a list of Programs */\nexport function queryPrograms(payload: object): RequestOptionsFactory<any> {\n function __queryPrograms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.QueryPrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/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: 'programs.createdDate' },\n { path: 'programs.updatedDate' },\n { path: 'programs.stateUpdatedDate' },\n { path: 'programs.statusUpdatedDate' },\n { path: 'programs.description.image.urlExpirationDate' },\n { path: 'programs.description.video.urlExpirationDate' },\n {\n path: 'programs.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'programs.description.video.posters.urlExpirationDate' },\n { path: 'programs.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'programs.description.image.focalPoint.x' },\n { path: 'programs.description.image.focalPoint.y' },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'programs.description.video.posters.focalPoint.x' },\n { path: 'programs.description.video.posters.focalPoint.y' },\n {\n path: 'programs.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPrograms;\n}\n\n/** Retrieves a list of programs according to search criteria */\nexport function searchPrograms(payload: object): RequestOptionsFactory<any> {\n function __searchPrograms({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'search.aggregations.range.buckets.from' },\n { path: 'search.aggregations.range.buckets.to' },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.from',\n },\n {\n path: 'search.aggregations.nested.nestedAggregations.range.buckets.to',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.SearchPrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/search',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'programs.createdDate' },\n { path: 'programs.updatedDate' },\n { path: 'programs.stateUpdatedDate' },\n { path: 'programs.statusUpdatedDate' },\n { path: 'programs.description.image.urlExpirationDate' },\n { path: 'programs.description.video.urlExpirationDate' },\n {\n path: 'programs.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'programs.description.video.posters.urlExpirationDate' },\n { path: 'programs.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'programs.description.image.focalPoint.x' },\n { path: 'programs.description.image.focalPoint.y' },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'programs.description.video.posters.focalPoint.x' },\n { path: 'programs.description.video.posters.focalPoint.y' },\n {\n path: 'programs.videoStepsSettings.requiredCompletionPercentage',\n },\n { path: 'aggregationData.results.scalar.value' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.scalar.value',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.scalar.value',\n },\n { path: 'aggregationData.results.ranges.results.from' },\n { path: 'aggregationData.results.ranges.results.to' },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from',\n },\n {\n path: 'aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.from',\n },\n {\n path: 'aggregationData.results.nested.results.results.*.range.to',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __searchPrograms;\n}\n\n/** Publishes draft program. In other state returns program as is. */\nexport function publishProgram(payload: object): RequestOptionsFactory<any> {\n function __publishProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.PublishProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/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: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __publishProgram;\n}\n\n/** Ends program. */\nexport function endProgram(payload: object): RequestOptionsFactory<any> {\n function __endProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.EndProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/end',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __endProgram;\n}\n\n/** Archives program */\nexport function archiveProgram(payload: object): RequestOptionsFactory<any> {\n function __archiveProgram({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.ArchiveProgram',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/{programId}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'program.createdDate' },\n { path: 'program.updatedDate' },\n { path: 'program.stateUpdatedDate' },\n { path: 'program.statusUpdatedDate' },\n { path: 'program.description.image.urlExpirationDate' },\n { path: 'program.description.video.urlExpirationDate' },\n {\n path: 'program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'program.description.video.resolutions.poster.urlExpirationDate',\n },\n { path: 'program.description.video.posters.urlExpirationDate' },\n { path: 'program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'program.description.image.focalPoint.x' },\n { path: 'program.description.image.focalPoint.y' },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'program.description.video.posters.focalPoint.x' },\n { path: 'program.description.video.posters.focalPoint.y' },\n {\n path: 'program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archiveProgram;\n}\n\n/** Update multiple Programs in a single request. Works synchronously. */\nexport function bulkUpdatePrograms(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdatePrograms({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'programs.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'programs.program.createdDate' },\n { path: 'programs.program.updatedDate' },\n { path: 'programs.program.stateUpdatedDate' },\n { path: 'programs.program.statusUpdatedDate' },\n { path: 'programs.program.description.image.urlExpirationDate' },\n { path: 'programs.program.description.video.urlExpirationDate' },\n {\n path: 'programs.program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.posters.urlExpirationDate',\n },\n { path: 'programs.program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'programs.program.description.image.focalPoint.x' },\n { path: 'programs.program.description.image.focalPoint.y' },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.y',\n },\n { path: 'programs.program.description.video.posters.focalPoint.x' },\n { path: 'programs.program.description.video.posters.focalPoint.y' },\n {\n path: 'programs.program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.BulkUpdatePrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/bulk/programs/update',\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.stateUpdatedDate' },\n { path: 'results.item.statusUpdatedDate' },\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 { path: 'results.item.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\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 path: 'results.item.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdatePrograms;\n}\n\n/** Counts programs matching the filter */\nexport function countPrograms(payload: object): RequestOptionsFactory<any> {\n function __countPrograms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'POST' as any,\n methodFqn: 'wix.onlineprograms.programs.v3.ProgramsService.CountPrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/count',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __countPrograms;\n}\n\n/** Returns list of sample programs. */\nexport function listSamplePrograms(\n payload: object\n): RequestOptionsFactory<any> {\n function __listSamplePrograms({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.online_programs.v3.program',\n method: 'GET' as any,\n methodFqn:\n 'wix.onlineprograms.programs.v3.ProgramsService.ListSamplePrograms',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixOnlineprogramsProgramsV3ProgramsServiceUrl({\n protoPath: '/v3/programs/samples',\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: 'programs.program.createdDate' },\n { path: 'programs.program.updatedDate' },\n { path: 'programs.program.stateUpdatedDate' },\n { path: 'programs.program.statusUpdatedDate' },\n { path: 'programs.program.description.image.urlExpirationDate' },\n { path: 'programs.program.description.video.urlExpirationDate' },\n {\n path: 'programs.program.description.video.resolutions.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'programs.program.description.video.posters.urlExpirationDate',\n },\n { path: 'programs.program.rewards.certificate.connectedDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'programs.program.description.image.focalPoint.x' },\n { path: 'programs.program.description.image.focalPoint.y' },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.x',\n },\n {\n path: 'programs.program.description.video.resolutions.poster.focalPoint.y',\n },\n {\n path: 'programs.program.description.video.posters.focalPoint.x',\n },\n {\n path: 'programs.program.description.video.posters.focalPoint.y',\n },\n {\n path: 'programs.program.videoStepsSettings.requiredCompletionPercentage',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listSamplePrograms;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,QAAQ,cAAc;AAAA,QAClD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAeA,eAAsBY,sBA0BpB;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC,CAAC,CAAC;AAExD,QAAM,UACiC,mBAAmB,OAAO;AAEjE,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO;AAAA,UACL,wCAAe,OAAO,MAAM;AAAA,QAC1B;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAAA,QACxD;AAAA,QACA;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,qCAAqC,CAAC;AAAA,QACxD;AAAA,QACA;AAAA,UACE,aAAa;AAAA,UACb,OAAO,CAAC,EAAE,MAAM,2BAA2B,CAAC;AAAA,QAC9C;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAZ;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,CAAC;AAAA,QAC3B,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC;AAAA,IACH;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["archiveProgram","bulkUpdatePrograms","countPrograms","createProgram","deleteProgram","duplicateProgram","endProgram","getProgram","listSamplePrograms","publishProgram","queryPrograms","searchPrograms","updateProgram","import_float","import_timestamp","import_rest_modules","payload","import_image","import_video_v2","import_page_url","import_transform_paths","V3State","Status","RestrictionsAccessType","Trigger","AccessType","Enum","BulkActionType","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","Interval","AggregationType","Mode","State","SiteCreatedContext","Namespace","DeleteStatus","SearchIndexingNotificationState","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","createProgram","sdkTransformError","duplicateProgram","getProgram","updateProgram","deleteProgram","queryPrograms","searchPrograms","publishProgram","endProgram","archiveProgram","bulkUpdatePrograms","countPrograms","listSamplePrograms"]}
|