@wix/auto_sdk_embeds_custom-embeds 1.0.14 → 1.0.16

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.
Files changed (38) hide show
  1. package/build/cjs/index.d.ts +4 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +22 -4
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +14 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +202 -0
  8. package/build/cjs/schemas.js +306 -0
  9. package/build/cjs/schemas.js.map +1 -0
  10. package/build/es/index.d.mts +4 -4
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +22 -4
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +14 -1
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +202 -0
  17. package/build/es/schemas.mjs +260 -0
  18. package/build/es/schemas.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +4 -4
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +22 -4
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +14 -1
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +202 -0
  26. package/build/internal/cjs/schemas.js +306 -0
  27. package/build/internal/cjs/schemas.js.map +1 -0
  28. package/build/internal/es/index.d.mts +4 -4
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +22 -4
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +14 -1
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +202 -0
  35. package/build/internal/es/schemas.mjs +260 -0
  36. package/build/internal/es/schemas.mjs.map +1 -0
  37. package/package.json +12 -5
  38. package/schemas/package.json +3 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../meta.ts","../../src/embeds-v1-custom-embed-custom-embeds.http.ts","../../src/embeds-v1-custom-embed-custom-embeds.types.ts","../../src/embeds-v1-custom-embed-custom-embeds.meta.ts"],"sourcesContent":["export * from './src/embeds-v1-custom-embed-custom-embeds.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\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 resolveWixEditorEmbedsV1CustomEmbedsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/embeds/v1/custom-embeds',\n destPath: '/v1/custom-embeds',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_embeds_custom-embeds';\n\n/**\n * Creates a custom embed within the specified position (`HEAD`, `BODY_START` or `BODY_END`).\n *\n * Required fields: `name`, `position`, `embedData` (including `category` and `html`).\n */\nexport function createCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __createCustomEmbed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'POST' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.CreateCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createCustomEmbed;\n}\n\n/** Retrieves a custom embed. */\nexport function getCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __getCustomEmbed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'GET' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.GetCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds/{customEmbedId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getCustomEmbed;\n}\n\n/**\n * Updates a custom embed.\n * To prevent conflicting changes, you must pass the current revision number.\n */\nexport function updateCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __updateCustomEmbed({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'PATCH' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.UpdateCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds/{customEmbed.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __updateCustomEmbed;\n}\n\n/** Permanently deletes a custom embed. */\nexport function deleteCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __deleteCustomEmbed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'DELETE' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.DeleteCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds/{customEmbedId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCustomEmbed;\n}\n\n/** Retrieves a list of up to 100 custom embeds, sorted by position (`HEAD`, `BODY_START` or `BODY_END`). */\nexport function listCustomEmbeds(payload: object): RequestOptionsFactory<any> {\n function __listCustomEmbeds({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'GET' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.ListCustomEmbeds',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listCustomEmbeds;\n}\n","/** A custom embed is an entity that manages custom HTML and JavaScript code embedded in a site, along with its placement and properties. */\nexport interface CustomEmbed {\n /**\n * Custom embed ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the custom embed is updated.\n * To prevent conflicting changes, the current revision must be passed when updating a custom embed.\n * @readonly\n */\n revision?: string | null;\n /**\n * Custom embed name, as displayed to Wix users.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Whether the custom embed is enabled on the site.\n * Default: `true`.\n */\n enabled?: boolean | null;\n /**\n * Whether to load the custom embed once during initial site rendering, rather than on each page navigation.\n * This setting affects performance and should be chosen based on the embed's functionality.\n * Default: `true`.\n */\n loadOnce?: boolean | null;\n /**\n * Site domain that's connected to the site, if relevant.\n * @format HOSTNAME\n */\n domain?: string | null;\n /** Position where the custom embed code is placed on the page. */\n position?: PositionOnPageWithLiterals;\n /** Custom embed data. */\n embedData?: V1CustomEmbed;\n}\n\nexport enum PositionOnPage {\n /** Illegal value, exception will be thrown if used */\n UNKNOWN_POSITION = 'UNKNOWN_POSITION',\n /** HEAD position */\n HEAD = 'HEAD',\n /** BODY_START position */\n BODY_START = 'BODY_START',\n /** BODY_END position */\n BODY_END = 'BODY_END',\n}\n\n/** @enumType */\nexport type PositionOnPageWithLiterals =\n | PositionOnPage\n | 'UNKNOWN_POSITION'\n | 'HEAD'\n | 'BODY_START'\n | 'BODY_END';\n\nexport interface V1CustomEmbed {\n /** CustomEmbed's category */\n category?: CategoryWithLiterals;\n /**\n * CustomEmbed's html\n * @maxLength 15000\n */\n html?: string;\n}\n\nexport enum Category {\n /** Illegal type, exception will be thrown if used */\n UNKNOWN_CATEGORY = 'UNKNOWN_CATEGORY',\n /** Essential category */\n ESSENTIAL = 'ESSENTIAL',\n /** Functional category */\n FUNCTIONAL = 'FUNCTIONAL',\n /** Analytics category */\n ANALYTICS = 'ANALYTICS',\n /** Advertising category */\n ADVERTISING = 'ADVERTISING',\n /** Data to third party category */\n DATA_TO_THIRD_PARTY = 'DATA_TO_THIRD_PARTY',\n}\n\n/** @enumType */\nexport type CategoryWithLiterals =\n | Category\n | 'UNKNOWN_CATEGORY'\n | 'ESSENTIAL'\n | 'FUNCTIONAL'\n | 'ANALYTICS'\n | 'ADVERTISING'\n | 'DATA_TO_THIRD_PARTY';\n\nexport interface CreateCustomEmbedRequest {\n /** Custom embed to create. */\n customEmbed: CustomEmbed;\n}\n\nexport interface CreateCustomEmbedResponse {\n /** Created custom embed. */\n customEmbed?: CustomEmbed;\n}\n\nexport interface GetCustomEmbedRequest {\n /**\n * Custom embed ID.\n * @format GUID\n */\n customEmbedId: string;\n}\n\nexport interface GetCustomEmbedResponse {\n /** Requested custom embed. */\n customEmbed?: CustomEmbed;\n}\n\nexport interface UpdateCustomEmbedRequest {\n /** Custom embed to update. */\n customEmbed: CustomEmbed;\n}\n\nexport interface UpdateCustomEmbedResponse {\n /** Updated custom embed. */\n customEmbed?: CustomEmbed;\n}\n\nexport interface DeleteCustomEmbedRequest {\n /**\n * Custom embed ID to delete.\n * @format GUID\n */\n customEmbedId: string;\n}\n\nexport interface DeleteCustomEmbedResponse {}\n\nexport interface ListCustomEmbedsRequest {\n /** Pagination options. */\n paging?: CursorPaging;\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 ListCustomEmbedsResponse {\n /** List of custom embeds. */\n customEmbeds?: CustomEmbed[];\n /** Pagination metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface 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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateCustomEmbedApplicationErrors = {\n code?: 'SITE_EMBEDS_LIMIT_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetCustomEmbedApplicationErrors = {\n code?: 'CUSTOM_EMBED_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateCustomEmbedApplicationErrors = {\n code?: 'CUSTOM_EMBED_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type DeleteCustomEmbedApplicationErrors = {\n code?: 'CUSTOM_EMBED_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixEmbedsV1CustomEmbed from './embeds-v1-custom-embed-custom-embeds.http.js';\nimport * as ambassadorWixEmbedsV1CustomEmbedTypes from './embeds-v1-custom-embed-custom-embeds.types.js';\nimport * as ambassadorWixEmbedsV1CustomEmbedUniversalTypes from './embeds-v1-custom-embed-custom-embeds.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCustomEmbed(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.CreateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.CreateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.CreateCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.CreateCustomEmbedResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.createCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/custom-embeds',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getCustomEmbed(): __PublicMethodMetaInfo<\n 'GET',\n { customEmbedId: string },\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.GetCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.GetCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.GetCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.GetCustomEmbedResponse\n> {\n const payload = { customEmbedId: ':customEmbedId' } as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.getCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/custom-embeds/{customEmbedId}',\n pathParams: { customEmbedId: 'customEmbedId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCustomEmbed(): __PublicMethodMetaInfo<\n 'PATCH',\n { customEmbedId: string },\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.UpdateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.UpdateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.UpdateCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.UpdateCustomEmbedResponse\n> {\n const payload = { customEmbed: { id: ':customEmbedId' } } as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.updateCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/custom-embeds/{customEmbed.id}',\n pathParams: { customEmbedId: 'customEmbedId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCustomEmbed(): __PublicMethodMetaInfo<\n 'DELETE',\n { customEmbedId: string },\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.DeleteCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.DeleteCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.DeleteCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.DeleteCustomEmbedResponse\n> {\n const payload = { customEmbedId: ':customEmbedId' } as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.deleteCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/custom-embeds/{customEmbedId}',\n pathParams: { customEmbedId: 'customEmbedId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listCustomEmbeds(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.ListCustomEmbedsRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.ListCustomEmbedsRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.ListCustomEmbedsResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.ListCustomEmbedsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.listCustomEmbeds(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/custom-embeds',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n CustomEmbed as CustomEmbedOriginal,\n PositionOnPage as PositionOnPageOriginal,\n PositionOnPageWithLiterals as PositionOnPageWithLiteralsOriginal,\n V1CustomEmbed as V1CustomEmbedOriginal,\n Category as CategoryOriginal,\n CategoryWithLiterals as CategoryWithLiteralsOriginal,\n CreateCustomEmbedRequest as CreateCustomEmbedRequestOriginal,\n CreateCustomEmbedResponse as CreateCustomEmbedResponseOriginal,\n GetCustomEmbedRequest as GetCustomEmbedRequestOriginal,\n GetCustomEmbedResponse as GetCustomEmbedResponseOriginal,\n UpdateCustomEmbedRequest as UpdateCustomEmbedRequestOriginal,\n UpdateCustomEmbedResponse as UpdateCustomEmbedResponseOriginal,\n DeleteCustomEmbedRequest as DeleteCustomEmbedRequestOriginal,\n DeleteCustomEmbedResponse as DeleteCustomEmbedResponseOriginal,\n ListCustomEmbedsRequest as ListCustomEmbedsRequestOriginal,\n CursorPaging as CursorPagingOriginal,\n ListCustomEmbedsResponse as ListCustomEmbedsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateCustomEmbedApplicationErrors as CreateCustomEmbedApplicationErrorsOriginal,\n GetCustomEmbedApplicationErrors as GetCustomEmbedApplicationErrorsOriginal,\n UpdateCustomEmbedApplicationErrors as UpdateCustomEmbedApplicationErrorsOriginal,\n DeleteCustomEmbedApplicationErrors as DeleteCustomEmbed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E,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,eAAe,gBAAgB;AAAA,IAC7C,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,oBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC6B,iBAAiB,OAAO;AAE3D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createCustomEmbed","deleteCustomEmbed","getCustomEmbed","listCustomEmbeds","updateCustomEmbed","import_rest_modules","PositionOnPage","Category","WebhookIdentityType","createCustomEmbed","getCustomEmbed","updateCustomEmbed","deleteCustomEmbed","listCustomEmbeds"]}
1
+ {"version":3,"sources":["../../meta.ts","../../src/embeds-v1-custom-embed-custom-embeds.http.ts","../../src/embeds-v1-custom-embed-custom-embeds.types.ts","../../src/embeds-v1-custom-embed-custom-embeds.meta.ts"],"sourcesContent":["export * from './src/embeds-v1-custom-embed-custom-embeds.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\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 resolveWixEditorEmbedsV1CustomEmbedsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/editor-custom-embeds',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/embeds/v1/custom-embeds',\n destPath: '/v1/custom-embeds',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_embeds_custom-embeds';\n\n/**\n * Creates a custom embed within the specified position (`HEAD`, `BODY_START` or `BODY_END`).\n *\n * Required fields: `name`, `position`, `embedData` (including `category` and `html`).\n */\nexport function createCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __createCustomEmbed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'POST' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.CreateCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createCustomEmbed;\n}\n\n/** Retrieves a custom embed. */\nexport function getCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __getCustomEmbed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'GET' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.GetCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds/{customEmbedId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getCustomEmbed;\n}\n\n/**\n * Updates a custom embed.\n * To prevent conflicting changes, you must pass the current revision number.\n */\nexport function updateCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __updateCustomEmbed({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'PATCH' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.UpdateCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds/{customEmbed.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __updateCustomEmbed;\n}\n\n/** Permanently deletes a custom embed. */\nexport function deleteCustomEmbed(payload: object): RequestOptionsFactory<any> {\n function __deleteCustomEmbed({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'DELETE' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.DeleteCustomEmbed',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds/{customEmbedId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCustomEmbed;\n}\n\n/** Retrieves a list of up to 100 custom embeds, sorted by position (`HEAD`, `BODY_START` or `BODY_END`). */\nexport function listCustomEmbeds(payload: object): RequestOptionsFactory<any> {\n function __listCustomEmbeds({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.embeds.v1.custom_embed',\n method: 'GET' as any,\n methodFqn: 'wix.editor.embeds.v1.CustomEmbedsService.ListCustomEmbeds',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEditorEmbedsV1CustomEmbedsServiceUrl({\n protoPath: '/v1/custom-embeds',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __listCustomEmbeds;\n}\n","/** A custom embed is an entity that manages custom HTML and JavaScript code embedded in a site, along with its placement and properties. */\nexport interface CustomEmbed {\n /**\n * Custom embed ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Revision number, which increments by 1 each time the custom embed is updated.\n * To prevent conflicting changes, the current revision must be passed when updating a custom embed.\n * @readonly\n */\n revision?: string | null;\n /**\n * Custom embed name, as displayed to Wix users.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Whether the custom embed is enabled on the site.\n * Default: `true`.\n */\n enabled?: boolean | null;\n /**\n * Whether to load the custom embed once during initial site rendering, rather than on each page navigation.\n * This setting affects performance and should be chosen based on the embed's functionality.\n * Default: `true`.\n */\n loadOnce?: boolean | null;\n /**\n * Site domain that's connected to the site, if relevant.\n * @format HOSTNAME\n */\n domain?: string | null;\n /** Position where the custom embed code is placed on the page. */\n position?: PositionOnPageWithLiterals;\n /** Custom embed data. */\n embedData?: V1CustomEmbed;\n /**\n * Page IDs where the custom embed should be loaded. By default, custom embeds are applied to all site pages.\n * @readonly\n */\n pageFilter?: PageFilter;\n}\n\nexport enum PositionOnPage {\n /** Illegal value, exception will be thrown if used */\n UNKNOWN_POSITION = 'UNKNOWN_POSITION',\n /** HEAD position */\n HEAD = 'HEAD',\n /** BODY_START position */\n BODY_START = 'BODY_START',\n /** BODY_END position */\n BODY_END = 'BODY_END',\n}\n\n/** @enumType */\nexport type PositionOnPageWithLiterals =\n | PositionOnPage\n | 'UNKNOWN_POSITION'\n | 'HEAD'\n | 'BODY_START'\n | 'BODY_END';\n\nexport interface V1CustomEmbed {\n /** CustomEmbed's category */\n category?: CategoryWithLiterals;\n /**\n * CustomEmbed's html\n * @maxLength 15000\n */\n html?: string;\n}\n\nexport enum Category {\n /** Illegal type, exception will be thrown if used */\n UNKNOWN_CATEGORY = 'UNKNOWN_CATEGORY',\n /** Essential category */\n ESSENTIAL = 'ESSENTIAL',\n /** Functional category */\n FUNCTIONAL = 'FUNCTIONAL',\n /** Analytics category */\n ANALYTICS = 'ANALYTICS',\n /** Advertising category */\n ADVERTISING = 'ADVERTISING',\n /** Data to third party category */\n DATA_TO_THIRD_PARTY = 'DATA_TO_THIRD_PARTY',\n}\n\n/** @enumType */\nexport type CategoryWithLiterals =\n | Category\n | 'UNKNOWN_CATEGORY'\n | 'ESSENTIAL'\n | 'FUNCTIONAL'\n | 'ANALYTICS'\n | 'ADVERTISING'\n | 'DATA_TO_THIRD_PARTY';\n\nexport interface PageFilter {\n /**\n * Pages where the site embed will be loaded.\n * @maxLength 50\n * @maxSize 100\n */\n pageIds?: string[];\n}\n\nexport interface CreateCustomEmbedRequest {\n /** Custom embed to create. */\n customEmbed: CustomEmbed;\n}\n\nexport interface CreateCustomEmbedResponse {\n /** Created custom embed. */\n customEmbed?: CustomEmbed;\n}\n\nexport interface GetCustomEmbedRequest {\n /**\n * Custom embed ID.\n * @format GUID\n */\n customEmbedId: string;\n}\n\nexport interface GetCustomEmbedResponse {\n /** Requested custom embed. */\n customEmbed?: CustomEmbed;\n}\n\nexport interface UpdateCustomEmbedRequest {\n /** Custom embed to update. */\n customEmbed: CustomEmbed;\n}\n\nexport interface UpdateCustomEmbedResponse {\n /** Updated custom embed. */\n customEmbed?: CustomEmbed;\n}\n\nexport interface DeleteCustomEmbedRequest {\n /**\n * Custom embed ID to delete.\n * @format GUID\n */\n customEmbedId: string;\n}\n\nexport interface DeleteCustomEmbedResponse {}\n\nexport interface ListCustomEmbedsRequest {\n /** Pagination options. */\n paging?: CursorPaging;\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 ListCustomEmbedsResponse {\n /** List of custom embeds. */\n customEmbeds?: CustomEmbed[];\n /** Pagination metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface 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 entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateCustomEmbedApplicationErrors = {\n code?: 'SITE_EMBEDS_LIMIT_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type GetCustomEmbedApplicationErrors = {\n code?: 'CUSTOM_EMBED_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type UpdateCustomEmbedApplicationErrors = {\n code?: 'CUSTOM_EMBED_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type DeleteCustomEmbedApplicationErrors = {\n code?: 'CUSTOM_EMBED_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n","import * as ambassadorWixEmbedsV1CustomEmbed from './embeds-v1-custom-embed-custom-embeds.http.js';\nimport * as ambassadorWixEmbedsV1CustomEmbedTypes from './embeds-v1-custom-embed-custom-embeds.types.js';\nimport * as ambassadorWixEmbedsV1CustomEmbedUniversalTypes from './embeds-v1-custom-embed-custom-embeds.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCustomEmbed(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.CreateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.CreateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.CreateCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.CreateCustomEmbedResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.createCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/custom-embeds',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getCustomEmbed(): __PublicMethodMetaInfo<\n 'GET',\n { customEmbedId: string },\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.GetCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.GetCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.GetCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.GetCustomEmbedResponse\n> {\n const payload = { customEmbedId: ':customEmbedId' } as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.getCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/custom-embeds/{customEmbedId}',\n pathParams: { customEmbedId: 'customEmbedId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCustomEmbed(): __PublicMethodMetaInfo<\n 'PATCH',\n { customEmbedId: string },\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.UpdateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.UpdateCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.UpdateCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.UpdateCustomEmbedResponse\n> {\n const payload = { customEmbed: { id: ':customEmbedId' } } as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.updateCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v1/custom-embeds/{customEmbed.id}',\n pathParams: { customEmbedId: 'customEmbedId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCustomEmbed(): __PublicMethodMetaInfo<\n 'DELETE',\n { customEmbedId: string },\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.DeleteCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.DeleteCustomEmbedRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.DeleteCustomEmbedResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.DeleteCustomEmbedResponse\n> {\n const payload = { customEmbedId: ':customEmbedId' } as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.deleteCustomEmbed(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/custom-embeds/{customEmbedId}',\n pathParams: { customEmbedId: 'customEmbedId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listCustomEmbeds(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.ListCustomEmbedsRequest,\n ambassadorWixEmbedsV1CustomEmbedTypes.ListCustomEmbedsRequest,\n ambassadorWixEmbedsV1CustomEmbedUniversalTypes.ListCustomEmbedsResponse,\n ambassadorWixEmbedsV1CustomEmbedTypes.ListCustomEmbedsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEmbedsV1CustomEmbed.listCustomEmbeds(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/custom-embeds',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n CustomEmbed as CustomEmbedOriginal,\n PositionOnPage as PositionOnPageOriginal,\n PositionOnPageWithLiterals as PositionOnPageWithLiteralsOriginal,\n V1CustomEmbed as V1CustomEmbedOriginal,\n Category as CategoryOriginal,\n CategoryWithLiterals as CategoryWithLiteralsOriginal,\n PageFilter as PageFilterOriginal,\n CreateCustomEmbedRequest as CreateCustomEmbedRequestOriginal,\n CreateCustomEmbedResponse as CreateCustomEmbedResponseOriginal,\n GetCustomEmbedRequest as GetCustomEmbedRequestOriginal,\n GetCustomEmbedResponse as GetCustomEmbedResponseOriginal,\n UpdateCustomEmbedRequest as UpdateCustomEmbedRequestOriginal,\n UpdateCustomEmbedResponse as UpdateCustomEmbedResponseOriginal,\n DeleteCustomEmbedRequest as DeleteCustomEmbedRequestOriginal,\n DeleteCustomEmbedResponse as DeleteCustomEmbedResponseOriginal,\n ListCustomEmbedsRequest as ListCustomEmbedsRequestOriginal,\n CursorPaging as CursorPagingOriginal,\n ListCustomEmbedsResponse as ListCustomEmbedsResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateCustomEmbedApplicationErrors as CreateCustomEmbedApplicationErrorsOriginal,\n GetCustomEmbedApplicationErrors as GetCustomEmbedApplicationErrorsOriginal,\n UpdateCustomEmbedApplicationErrors as UpdateCustomEmbedApplicationErrorsOriginal,\n DeleteCustomEmbedApplicationErrors as DeleteCustomEmbedApplicationErrorsOriginal,\n} from './embeds-v1-custom-embed-custom-embeds.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAAA;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,+CACP,MACA;AACA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O;AAE3D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["createCustomEmbed","deleteCustomEmbed","getCustomEmbed","listCustomEmbeds","updateCustomEmbed","import_rest_modules","PositionOnPage","Category","WebhookIdentityType","createCustomEmbed","getCustomEmbed","updateCustomEmbed","deleteCustomEmbed","listCustomEmbeds"]}
@@ -0,0 +1,202 @@
1
+ import * as z from 'zod';
2
+
3
+ declare const CreateCustomEmbedRequest: z.ZodObject<{
4
+ customEmbed: z.ZodObject<{
5
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
8
+ enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
9
+ loadOnce: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
10
+ domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
+ position: z.ZodEnum<{
12
+ HEAD: "HEAD";
13
+ UNKNOWN_POSITION: "UNKNOWN_POSITION";
14
+ BODY_START: "BODY_START";
15
+ BODY_END: "BODY_END";
16
+ }>;
17
+ embedData: z.ZodObject<{
18
+ category: z.ZodOptional<z.ZodEnum<{
19
+ UNKNOWN_CATEGORY: "UNKNOWN_CATEGORY";
20
+ ESSENTIAL: "ESSENTIAL";
21
+ FUNCTIONAL: "FUNCTIONAL";
22
+ ANALYTICS: "ANALYTICS";
23
+ ADVERTISING: "ADVERTISING";
24
+ DATA_TO_THIRD_PARTY: "DATA_TO_THIRD_PARTY";
25
+ }>>;
26
+ html: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ pageFilter: z.ZodOptional<z.ZodObject<{
29
+ pageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
+ }, z.core.$strip>>;
31
+ }, z.core.$strip>;
32
+ }, z.core.$strip>;
33
+ declare const CreateCustomEmbedResponse: z.ZodObject<{
34
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
35
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
36
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
38
+ loadOnce: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
39
+ domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ position: z.ZodOptional<z.ZodEnum<{
41
+ HEAD: "HEAD";
42
+ UNKNOWN_POSITION: "UNKNOWN_POSITION";
43
+ BODY_START: "BODY_START";
44
+ BODY_END: "BODY_END";
45
+ }>>;
46
+ embedData: z.ZodOptional<z.ZodObject<{
47
+ category: z.ZodOptional<z.ZodEnum<{
48
+ UNKNOWN_CATEGORY: "UNKNOWN_CATEGORY";
49
+ ESSENTIAL: "ESSENTIAL";
50
+ FUNCTIONAL: "FUNCTIONAL";
51
+ ANALYTICS: "ANALYTICS";
52
+ ADVERTISING: "ADVERTISING";
53
+ DATA_TO_THIRD_PARTY: "DATA_TO_THIRD_PARTY";
54
+ }>>;
55
+ html: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$strip>>;
57
+ pageFilter: z.ZodOptional<z.ZodObject<{
58
+ pageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strip>;
61
+ declare const GetCustomEmbedRequest: z.ZodObject<{
62
+ customEmbedId: z.ZodString;
63
+ }, z.core.$strip>;
64
+ declare const GetCustomEmbedResponse: z.ZodObject<{
65
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
67
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
+ enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
69
+ loadOnce: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
70
+ domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
+ position: z.ZodOptional<z.ZodEnum<{
72
+ HEAD: "HEAD";
73
+ UNKNOWN_POSITION: "UNKNOWN_POSITION";
74
+ BODY_START: "BODY_START";
75
+ BODY_END: "BODY_END";
76
+ }>>;
77
+ embedData: z.ZodOptional<z.ZodObject<{
78
+ category: z.ZodOptional<z.ZodEnum<{
79
+ UNKNOWN_CATEGORY: "UNKNOWN_CATEGORY";
80
+ ESSENTIAL: "ESSENTIAL";
81
+ FUNCTIONAL: "FUNCTIONAL";
82
+ ANALYTICS: "ANALYTICS";
83
+ ADVERTISING: "ADVERTISING";
84
+ DATA_TO_THIRD_PARTY: "DATA_TO_THIRD_PARTY";
85
+ }>>;
86
+ html: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>>;
88
+ pageFilter: z.ZodOptional<z.ZodObject<{
89
+ pageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>;
92
+ declare const UpdateCustomEmbedRequest: z.ZodObject<{
93
+ _id: z.ZodString;
94
+ customEmbed: z.ZodObject<{
95
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
96
+ revision: z.ZodString;
97
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
98
+ enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
99
+ loadOnce: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
100
+ domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
+ position: z.ZodOptional<z.ZodEnum<{
102
+ HEAD: "HEAD";
103
+ UNKNOWN_POSITION: "UNKNOWN_POSITION";
104
+ BODY_START: "BODY_START";
105
+ BODY_END: "BODY_END";
106
+ }>>;
107
+ embedData: z.ZodOptional<z.ZodObject<{
108
+ category: z.ZodOptional<z.ZodEnum<{
109
+ UNKNOWN_CATEGORY: "UNKNOWN_CATEGORY";
110
+ ESSENTIAL: "ESSENTIAL";
111
+ FUNCTIONAL: "FUNCTIONAL";
112
+ ANALYTICS: "ANALYTICS";
113
+ ADVERTISING: "ADVERTISING";
114
+ DATA_TO_THIRD_PARTY: "DATA_TO_THIRD_PARTY";
115
+ }>>;
116
+ html: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strip>>;
118
+ pageFilter: z.ZodOptional<z.ZodObject<{
119
+ pageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>;
122
+ }, z.core.$strip>;
123
+ declare const UpdateCustomEmbedResponse: z.ZodObject<{
124
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
125
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
126
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
127
+ enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
128
+ loadOnce: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
129
+ domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
130
+ position: z.ZodOptional<z.ZodEnum<{
131
+ HEAD: "HEAD";
132
+ UNKNOWN_POSITION: "UNKNOWN_POSITION";
133
+ BODY_START: "BODY_START";
134
+ BODY_END: "BODY_END";
135
+ }>>;
136
+ embedData: z.ZodOptional<z.ZodObject<{
137
+ category: z.ZodOptional<z.ZodEnum<{
138
+ UNKNOWN_CATEGORY: "UNKNOWN_CATEGORY";
139
+ ESSENTIAL: "ESSENTIAL";
140
+ FUNCTIONAL: "FUNCTIONAL";
141
+ ANALYTICS: "ANALYTICS";
142
+ ADVERTISING: "ADVERTISING";
143
+ DATA_TO_THIRD_PARTY: "DATA_TO_THIRD_PARTY";
144
+ }>>;
145
+ html: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ pageFilter: z.ZodOptional<z.ZodObject<{
148
+ pageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
149
+ }, z.core.$strip>>;
150
+ }, z.core.$strip>;
151
+ declare const DeleteCustomEmbedRequest: z.ZodObject<{
152
+ customEmbedId: z.ZodString;
153
+ }, z.core.$strip>;
154
+ declare const DeleteCustomEmbedResponse: z.ZodObject<{}, z.core.$strip>;
155
+ declare const ListCustomEmbedsRequest: z.ZodObject<{
156
+ options: z.ZodOptional<z.ZodObject<{
157
+ paging: z.ZodOptional<z.ZodObject<{
158
+ limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
159
+ cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
160
+ }, z.core.$strip>>;
161
+ }, z.core.$strip>>;
162
+ }, z.core.$strip>;
163
+ declare const ListCustomEmbedsResponse: z.ZodObject<{
164
+ customEmbeds: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
+ _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
166
+ revision: z.ZodNullable<z.ZodOptional<z.ZodString>>;
167
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
168
+ enabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
169
+ loadOnce: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
170
+ domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
171
+ position: z.ZodOptional<z.ZodEnum<{
172
+ HEAD: "HEAD";
173
+ UNKNOWN_POSITION: "UNKNOWN_POSITION";
174
+ BODY_START: "BODY_START";
175
+ BODY_END: "BODY_END";
176
+ }>>;
177
+ embedData: z.ZodOptional<z.ZodObject<{
178
+ category: z.ZodOptional<z.ZodEnum<{
179
+ UNKNOWN_CATEGORY: "UNKNOWN_CATEGORY";
180
+ ESSENTIAL: "ESSENTIAL";
181
+ FUNCTIONAL: "FUNCTIONAL";
182
+ ANALYTICS: "ANALYTICS";
183
+ ADVERTISING: "ADVERTISING";
184
+ DATA_TO_THIRD_PARTY: "DATA_TO_THIRD_PARTY";
185
+ }>>;
186
+ html: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strip>>;
188
+ pageFilter: z.ZodOptional<z.ZodObject<{
189
+ pageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
+ }, z.core.$strip>>;
191
+ }, z.core.$strip>>>;
192
+ pagingMetadata: z.ZodOptional<z.ZodObject<{
193
+ count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
194
+ cursors: z.ZodOptional<z.ZodObject<{
195
+ next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
196
+ prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
197
+ }, z.core.$strip>>;
198
+ hasNext: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
199
+ }, z.core.$strip>>;
200
+ }, z.core.$strip>;
201
+
202
+ export { CreateCustomEmbedRequest, CreateCustomEmbedResponse, DeleteCustomEmbedRequest, DeleteCustomEmbedResponse, GetCustomEmbedRequest, GetCustomEmbedResponse, ListCustomEmbedsRequest, ListCustomEmbedsResponse, UpdateCustomEmbedRequest, UpdateCustomEmbedResponse };