@wix/auto_sdk_pro-gallery_pro-gallery 1.0.22 → 1.0.23
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 +13 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +12 -21
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +13 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +12 -21
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -21
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +13 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -21
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../index.typings.ts","../../src/pro-gallery-v2-gallery-pro-gallery.universal.ts","../../src/pro-gallery-v2-gallery-pro-gallery.http.ts"],"sourcesContent":["export * from './src/pro-gallery-v2-gallery-pro-gallery.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixProGalleryV2Gallery from './pro-gallery-v2-gallery-pro-gallery.http.js';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Gallery {\n /**\n * Gallery ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** Gallery name. */\n name?: string | null;\n /**\n * Total number of items in the gallery.\n * @readonly\n */\n totalItems?: number | null;\n /** Media items in the gallery. */\n items?: Item[];\n /**\n * Index that determines which position a gallery is displayed on the site. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one gallery, the function fails.\n */\n sortOrder?: number | null;\n /**\n * Date and time the gallery was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface Item extends ItemMetadataOneOf {\n /** Details about the image. */\n image?: Image;\n /** Details about the video. */\n video?: Video;\n /** Details about the text file. */\n text?: Text;\n /**\n * Item ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /**\n * Index that determines which position a media item is displayed in the gallery. <br />\n *\n * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.\n */\n sortOrder?: number | null;\n /** Item title. */\n title?: string | null;\n /** Item description. */\n description?: string | null;\n /** Link from the item. You can link to Wix sites or external URLs. */\n link?: Link;\n /**\n * Type of item.\n * @readonly\n */\n type?: TypeWithLiterals;\n /**\n * Date and time the item was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the item was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Item tags. */\n tags?: Tags;\n}\n\n/** @oneof */\nexport interface ItemMetadataOneOf {\n /** Details about the image. */\n image?: Image;\n /** Details about the video. */\n video?: Video;\n /** Details about the text file. */\n text?: Text;\n}\n\nexport interface Link {\n /** Display text of the link. */\n text?: string | null;\n /** Target URL of the link. */\n url?: string | null;\n}\n\nexport enum LinkType {\n UNDEFINED = 'UNDEFINED',\n /** External link. */\n EXTERNAL = 'EXTERNAL',\n /** For internal usage using wixLinkData. */\n INTERNAL = 'INTERNAL',\n}\n\n/** @enumType */\nexport type LinkTypeWithLiterals =\n | LinkType\n | 'UNDEFINED'\n | 'EXTERNAL'\n | 'INTERNAL';\n\n/** The link object generated by panels in the editor and used by applications in Wix */\nexport interface WixLink extends WixLinkLinkOneOf {\n /** External link type */\n external?: ExternalLink;\n /** Page link type */\n page?: PageLink;\n /** Anchor link type */\n anchor?: AnchorLink;\n /** Dynamic page link type */\n dynamicPage?: DynamicPageLink;\n /** Document link type */\n document?: DocumentLink;\n /** Email link type */\n email?: EmailLink;\n /** Phone link type */\n phone?: PhoneLink;\n /** Address link type */\n address?: AddressLink;\n /** WhatsApp link type */\n whatsApp?: WhatsAppLink;\n /** TPA link type */\n tpaPage?: TpaPageLink;\n}\n\n/** @oneof */\nexport interface WixLinkLinkOneOf {\n /** External link type */\n external?: ExternalLink;\n /** Page link type */\n page?: PageLink;\n /** Anchor link type */\n anchor?: AnchorLink;\n /** Dynamic page link type */\n dynamicPage?: DynamicPageLink;\n /** Document link type */\n document?: DocumentLink;\n /** Email link type */\n email?: EmailLink;\n /** Phone link type */\n phone?: PhoneLink;\n /** Address link type */\n address?: AddressLink;\n /** WhatsApp link type */\n whatsApp?: WhatsAppLink;\n /** TPA link type */\n tpaPage?: TpaPageLink;\n}\n\nexport interface ExternalLink {\n /**\n * The url of the page\n * @format WEB_URL\n */\n url?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n}\n\n/**\n * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.\n * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel\n * Following are the accepted 'rel' types by Wix applications.\n */\nexport enum LinkRel {\n /** default (not implemented) */\n unknown_link_rel = 'unknown_link_rel',\n /** Indicates that the current document's original author or publisher does not endorse the referenced document. */\n nofollow = 'nofollow',\n /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */\n noopener = 'noopener',\n /** No Referer header will be included. Additionally, has the same effect as noopener. */\n noreferrer = 'noreferrer',\n /** Indicates a link that resulted from advertisements or paid placements. */\n sponsored = 'sponsored',\n}\n\n/** @enumType */\nexport type LinkRelWithLiterals =\n | LinkRel\n | 'unknown_link_rel'\n | 'nofollow'\n | 'noopener'\n | 'noreferrer'\n | 'sponsored';\n\nexport interface PageLink {\n /** The page id we want from the site */\n pageId?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface AnchorLink {\n /** The name of the anchor */\n anchorName?: string;\n /** The data id (from the JSON page) of the anchor that should be used */\n anchorDataId?: string;\n /** The page id we want from the site */\n pageId?: string;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface DynamicPageLink {\n /** The router that handles this link */\n routerId?: string;\n /** The path data we'd like */\n innerRoute?: string;\n /** The data id (from the JSON page) of the anchor that should be used */\n anchorDataId?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface DocumentLink {\n /** The id of the document */\n docId?: string;\n /** The name of the document for download purposes */\n name?: string | null;\n /** If this document can be indexed by scrapers, default is false */\n indexable?: boolean;\n}\n\nexport interface EmailLink {\n /**\n * The email we will be sending a message to\n * @format EMAIL\n */\n recipient?: string;\n /** The subject of the email */\n subject?: string | null;\n /** The body of the email */\n body?: string | null;\n}\n\nexport interface PhoneLink {\n /**\n * The phone number we want to link to\n * @format PHONE\n * @maxLength 100\n */\n phoneNumber?: string;\n}\n\nexport interface AddressLink {\n /** An address that we can link to */\n address?: string;\n}\n\nexport interface WhatsAppLink {\n /**\n * The whatsApp phone number we want to connect with\n * @format PHONE\n */\n phoneNumber?: string;\n}\n\n/** Link to a TPA page */\nexport interface TpaPageLink {\n /** Type of item (e.g. 'wix.stores.sub_pages.product') */\n itemTypeIdentifier?: string;\n /** Id of linked item */\n itemId?: string;\n /** Id of linked page */\n pageId?: string;\n /** Id of app being linked to (AppDefId) */\n appDefinitionId?: string;\n /** The relativepath of linked page */\n path?: string;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport enum Type {\n UNDEFINED = 'UNDEFINED',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n TEXT = 'TEXT',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNDEFINED' | 'IMAGE' | 'VIDEO' | 'TEXT';\n\nexport interface Image {\n /** The image's Wix media URL in the following format: `'wix:image://v1/<uri>/<filename>#originWidth=<width>&originHeight=<height>[&watermark=<watermark_manifest_string>]'`. */\n imageInfo?: string;\n /** Focal point of the image. */\n focalPoint?: Point;\n /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */\n exif?: Record<string, any> | null;\n /**\n * Image compression level. <br />\n *\n * Min: `30` <br />\n * Max: `100`\n * @min 30\n * @max 100\n */\n quality?: number | null;\n /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */\n unsharpMasking?: UnsharpMasking;\n}\n\nexport enum ImageType {\n UNDEFINED = 'UNDEFINED',\n WIX_MEDIA = 'WIX_MEDIA',\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type ImageTypeWithLiterals =\n | ImageType\n | 'UNDEFINED'\n | 'WIX_MEDIA'\n | 'EXTERNAL';\n\nexport interface Point {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n}\n\nexport interface UnsharpMasking {\n /**\n * Unsharp masking amount. Controls the sharpening strength. <br />\n *\n * Min: `0` <br />\n * Max: `5`\n * @max 5\n */\n amount?: number | null;\n /** Unsharp masking radius in pixels. Controls the sharpening width. */\n radius?: number | null;\n /**\n * Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply. <br />\n *\n * Min: `0` <br />\n * Max: `1`\n * @max 1\n */\n threshold?: number | null;\n}\n\nexport interface Video {\n /** Type of video. */\n type?: VideoTypeWithLiterals;\n /**\n * The video's URL. Either a Wix media URL, or a supported https external URL in the following formats:\n *\n * Wix Media: `'wix:video://v1/6e6ea4_461425d7e7db4d5487a28e00c5ba6244/9e6ea4_461425d7e7db4d5487a28e00c5ba6277#posterUri=9e6ea4_461425d7e7db4d5487a28e00c5ba6277f000.jpg&posterWidth=960&posterHeight=540'`\n *\n * Vimeo: `'https://vimeo.com/378840916'`\n *\n * Youtube: `'https://www.youtube.com/results?search_query=uplifting+upbeat+music'`\n */\n videoInfo?: string;\n /** Manually defined video duration in milliseconds. */\n durationInMillis?: number | null;\n}\n\nexport enum VideoType {\n UNDEFINED = 'UNDEFINED',\n WIX_MEDIA = 'WIX_MEDIA',\n YOUTUBE = 'YOUTUBE',\n VIMEO = 'VIMEO',\n}\n\n/** @enumType */\nexport type VideoTypeWithLiterals =\n | VideoType\n | 'UNDEFINED'\n | 'WIX_MEDIA'\n | 'YOUTUBE'\n | 'VIMEO';\n\nexport interface VideoResolution {\n /** *Required.** Video URL. */\n url?: string;\n /** *Required.** Video height. */\n height?: number;\n /** *Required.** Video width. */\n width?: number;\n /** *Required.** Video format. For example, `mp4` or `hls`. */\n format?: string;\n /** Video quality. For example, `480p` or `720p`. */\n quality?: string | null;\n /** Video filename. */\n filename?: string | null;\n}\n\nexport interface Text {\n /** Text in HTML format. */\n html?: string | null;\n /**\n * Set of key-value pairs describing the [CSS style](https://en.wikipedia.org/wiki/CSS) of the text.\n *\n * __Note:__ The object structure is customizable. See the [`listGalleryItems()`](/pro-gallery/list-gallery-items) code example for supported values.\n */\n css?: Record<string, any> | null;\n /** Reserved for internal use. */\n editorHtml?: string | null;\n /** Reserved for internal use. */\n editorFontId?: string | null;\n}\n\nexport interface Tags {\n /** List of tags assigned to the media item. */\n values?: string[];\n}\n\nexport interface SecondaryMedia extends SecondaryMediaMetadataOneOf {\n /** secondary media photo metadata (optional) */\n image?: Image;\n /** secondary media text metadata (optional) */\n text?: Text;\n}\n\n/** @oneof */\nexport interface SecondaryMediaMetadataOneOf {\n /** secondary media photo metadata (optional) */\n image?: Image;\n /** secondary media text metadata (optional) */\n text?: Text;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface GalleryPublished {\n /**\n * id of the gallery that will be published\n * @readonly\n * @format GUID\n */\n galleryId?: string;\n isRc?: boolean;\n /** @readonly */\n newRevision?: Date | null;\n /** @readonly */\n oldRevision?: Date | null;\n}\n\nexport interface CleanDeletedGalleriesEvent {\n /**\n * @readonly\n * @format GUID\n */\n instanceId?: string;\n /**\n * @readonly\n * @format GUID\n */\n metaSiteId?: string;\n /** @readonly */\n htmlSiteRevision?: string;\n /** @readonly */\n timeSitePublished?: Date | null;\n}\n\nexport interface ProgallerypublisherPublishGalleryRequest {\n /**\n * id of the gallery that will be published\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface ProgallerypublisherPublishGalleryResponse {}\n\nexport interface GetActiveGalleryRevisionRequest {\n /** @format GUID */\n galleryId?: string;\n}\n\nexport interface GetActiveGalleryRevisionResponse {\n galleryActiveRevision?: Date | null;\n htmlSiteRevision?: string | null;\n}\n\nexport interface GetGalleryRevisionRequest {\n /** @format GUID */\n galleryId?: string;\n revision?: Date | null;\n}\n\nexport interface GetGalleryRevisionResponse {\n htmlSiteRevision?: string | null;\n /** @format GUID */\n instanceId?: string | null;\n}\n\nexport interface PublishGalleryItemRequest {\n /**\n * id of the gallery that will be published\n * @format GUID\n */\n galleryId?: string;\n /**\n * id of the item that will be published\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface PublishGalleryItemResponse {}\n\nexport interface PublishGalleryItemsRequest {\n /**\n * id of the gallery that will be published\n * @format GUID\n */\n galleryId?: string;\n /**\n * ids of the items that will be published\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n itemIds?: string[];\n}\n\nexport interface PublishGalleryItemsResponse {}\n\nexport interface Empty {}\n\nexport interface HtmlSitePublished {\n /**\n * Application instance ID\n * @maxLength 50\n */\n appInstanceId?: string;\n /**\n * Application type\n * @maxLength 100\n */\n appType?: string;\n /** Revision */\n revision?: string;\n /**\n * MSID\n * @maxLength 100\n */\n metaSiteId?: string | null;\n /**\n * optional branch id if publish is done from branch\n * @format GUID\n */\n branchId?: string | null;\n /** The site's last transactionId */\n lastTransactionId?: string | null;\n /** A list of the site's pages */\n pages?: EventsPage[];\n /** Site's publish date */\n publishDate?: string;\n}\n\nexport interface EventsPage {\n /**\n * Page's Id\n * @maxLength 100\n */\n _id?: string;\n}\n\nexport interface HtmlSiteRCPublished {\n /**\n * Application instance ID\n * @maxLength 50\n */\n appInstanceId?: string;\n /** Revision */\n revision?: string;\n /**\n * Optional branch Id\n * @format GUID\n */\n branchId?: string | null;\n /** Site's publish date */\n publishDate?: string;\n /** RC label */\n rcLabel?: RCLabelWithLiterals;\n}\n\nexport enum RCLabel {\n /** Illegal default value, exception will be thrown if used */\n UNKNOWN = 'UNKNOWN',\n RELEASE_MANAGER = 'RELEASE_MANAGER',\n BLOCKS = 'BLOCKS',\n WIX_CLI = 'WIX_CLI',\n MOBILE_APP_BUILDER = 'MOBILE_APP_BUILDER',\n SEO = 'SEO',\n FEEDBACK = 'FEEDBACK',\n ACCESSIBILITY = 'ACCESSIBILITY',\n ENTERPRISE_APPROVALS = 'ENTERPRISE_APPROVALS',\n}\n\n/** @enumType */\nexport type RCLabelWithLiterals =\n | RCLabel\n | 'UNKNOWN'\n | 'RELEASE_MANAGER'\n | 'BLOCKS'\n | 'WIX_CLI'\n | 'MOBILE_APP_BUILDER'\n | 'SEO'\n | 'FEEDBACK'\n | 'ACCESSIBILITY'\n | 'ENTERPRISE_APPROVALS';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n /** Information about a newly-created gallery. */\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 MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface RestoreAllGalleriesEvent {\n /**\n * instance id of galleries to restore\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface ListGalleriesItemsRequest {\n /**\n * IDs of the media items to retrieve.\n * @minSize 1\n * @maxSize 100\n */\n itemsId?: ItemId[];\n}\n\nexport interface ItemId {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId?: string;\n /**\n * Item ID.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface ListGalleriesItemsResponse {\n /** Retrieved media items. */\n itemsInGalleries?: ItemsInGallery[];\n}\n\nexport interface ItemsInGallery {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId?: string;\n /** Retrieved media items. */\n items?: Item[];\n}\n\nexport interface TriggerRestoreAllGalleriesAsyncRequest {\n /**\n * instance id of galleries to restore\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface TriggerRestoreAllGalleriesAsyncResponse {}\n\nexport interface GalleryItemCreated {\n /** Created gallery item. */\n item?: Item;\n}\n\nexport interface GalleryItemUpdated {\n /** Updated gallery item. */\n updatedItem?: Item;\n}\n\nexport interface GalleryItemDeleted {\n /**\n * ID of the deleted gallery item.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface ListGalleriesRequest {\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 100\n */\n itemLimit?: number | null;\n /** Number of galleries to skip in the returns. Defaults to `0`. */\n offset?: number | null;\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 10\n */\n limit?: number | null;\n}\n\nexport enum State {\n /** Undefined state. */\n UNDEFINED = 'UNDEFINED',\n /** The gallery in the Editor. */\n SAVED = 'SAVED',\n /** The gallery in the LiveSite. */\n PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'UNDEFINED' | 'SAVED' | 'PUBLISHED';\n\nexport interface ListGalleriesResponse {\n /** Total number of galleries in the site. */\n totalGalleries?: number | null;\n /** List of galleries. Sorted by `_createdDate`. */\n galleries?: Gallery[];\n}\n\nexport interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\n/** @oneof */\nexport interface GetGalleryRequestVersionOneOf {}\n\nexport interface GetGalleryResponse {\n /** Returned gallery. */\n gallery?: Gallery;\n}\n\nexport interface ListGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\nexport interface ListGalleryItemsResponse {\n /** List of media items in the gallery. */\n items?: Item[];\n}\n\nexport interface GetGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * Item ID.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface GetGalleryItemResponse {\n /** Returned media item. */\n item?: Item;\n}\n\nexport interface CreateGalleryRequest {\n /** Gallery to create. */\n gallery?: Gallery;\n /**\n * Gallery ID to clone from.\n * @format GUID\n */\n cloneFromGalleryId?: string | null;\n}\n\nexport interface CreateGalleryResponse {\n /** Created gallery. */\n gallery?: Gallery;\n}\n\nexport interface UpdateGalleryRequest {\n /** Gallery to update. */\n gallery: Gallery;\n}\n\nexport interface UpdateGalleryResponse {\n /** Updated gallery. */\n gallery?: Gallery;\n}\n\nexport interface DeleteGalleryRequest {\n /**\n * ID of the gallery to delete.\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface DeleteGalleryResponse {\n /**\n * ID of the deleted gallery.\n * @readonly\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface DeleteGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemsIds?: string[];\n}\n\nexport interface DeleteGalleryItemsResponse {\n /** Gallery that previously included the deleted media item. */\n gallery?: Gallery;\n}\n\nexport interface BulkDeleteGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * IDs of the media items to delete.\n * @format GUID\n * @minSize 1\n * @maxSize 1000\n */\n itemIds: string[];\n}\n\nexport interface BulkDeleteGalleryItemsResponse {\n /**\n * IDs of the deleted media items.\n * @readonly\n * @format GUID\n */\n itemIds?: string[];\n}\n\nexport interface CreateGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** Media item to create. */\n item: Item;\n}\n\nexport interface CreateGalleryItemResponse {\n /** Created media item. */\n item?: Item;\n}\n\nexport interface CreateGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId?: string;\n /**\n * Media items to create.\n * @maxSize 50\n */\n items?: Item[];\n}\n\nexport interface CreateGalleryItemsResponse {\n /** Created media items. */\n items?: Item[];\n}\n\nexport interface UpdateGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** The information for the media item being updated. */\n item: Item;\n}\n\nexport interface UpdateGalleryItemResponse {\n /** Updated media item. */\n item?: Item;\n}\n\nexport interface DeleteGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface DeleteGalleryItemResponse {\n /**\n * ID of the deleted media item.\n * @readonly\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface PublishGalleryRequest {\n /**\n * ID of the gallery to publish.\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface PublishGalleryResponse {\n /** Published gallery. */\n gallery?: Gallery;\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 SearchIndexingNotification {\n /** new state of indexing for the site specified in ms_id */\n indexState?: SearchIndexingNotificationStateWithLiterals;\n /** type of the document the notification is targeted for. Applies to all types if not provided */\n documentType?: string | null;\n /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */\n language?: string | null;\n /**\n * site for which notification is targeted\n * @minLength 2\n */\n msId?: string | null;\n}\n\nexport enum SearchIndexingNotificationState {\n /** default state */\n Unknown = 'Unknown',\n /** metasite does not require site search indexing */\n Off = 'Off',\n /** metasite requires site search indexing */\n On = 'On',\n}\n\n/** @enumType */\nexport type SearchIndexingNotificationStateWithLiterals =\n | SearchIndexingNotificationState\n | 'Unknown'\n | 'Off'\n | 'On';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface GalleryCreatedEnvelope {\n entity: Gallery;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a gallery is created.\n *\n * > __Note:__ The event data doesn't include gallery items or their IDs.\n * > To receive information about the created items you need to listen to the [Gallery Item Created webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-created-webhook).\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_created\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onGalleryCreated(\n handler: (event: GalleryCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a gallery is deleted.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_deleted\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onGalleryDeleted(\n handler: (event: GalleryDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryItemCreatedEnvelope {\n data: GalleryItemCreated;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a media item in a specified gallery is created.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_gallery_item_created\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug gallery_item_created\n * @documentationMaturity preview\n */\nexport declare function onGalleryItemCreated(\n handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryItemDeletedEnvelope {\n data: GalleryItemDeleted;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a media item in a specified gallery is deleted.\n *\n * > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted.\n * > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug gallery_item_deleted\n * @documentationMaturity preview\n */\nexport declare function onGalleryItemDeleted(\n handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryItemUpdatedEnvelope {\n data: GalleryItemUpdated;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a media item in a specified gallery is updated.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_gallery_item_updated\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug gallery_item_updated\n * @documentationMaturity preview\n */\nexport declare function onGalleryItemUpdated(\n handler: (event: GalleryItemUpdatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryUpdatedEnvelope {\n entity: Gallery;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a gallery is updated.\n *\n * > __Note:__ The event data doesn't include gallery items or their IDs.\n * > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook).\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_updated\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onGalleryUpdated(\n handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>\n): void;\n\ntype GalleryNonNullablePaths =\n | `items`\n | `items.${number}.image.focalPoint.x`\n | `items.${number}.image.focalPoint.y`\n | `items.${number}.video.type`\n | `items.${number}.type`;\n\n/**\n * Retrieves a list of galleries.\n *\n * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when getting the list of galleries.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.exposure.progallery.ProGallery.ListGalleries\n */\nexport async function listGalleries(\n options?: ListGalleriesOptions\n): Promise<\n NonNullablePaths<\n ListGalleriesResponse,\n {\n [P in GalleryNonNullablePaths]: `galleries.${number}.${P}`;\n }[GalleryNonNullablePaths]\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 itemLimit: options?.itemLimit,\n offset: options?.offset,\n limit: options?.limit,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.listGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'galleries.items.image.imageInfo' },\n { path: 'galleries.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'galleries.items.video.videoInfo' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n itemLimit: '$[0].itemLimit',\n offset: '$[0].offset',\n limit: '$[0].limit',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListGalleriesOptions {\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 100\n */\n itemLimit?: number | null;\n /** Number of galleries to skip in the returns. Defaults to `0`. */\n offset?: number | null;\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 10\n */\n limit?: number | null;\n}\n\n/**\n * Retrieves a gallery by ID.\n * @param galleryId - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @param options - Options to use when getting the gallery.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns Returned gallery.\n * @fqn com.wixpress.exposure.progallery.ProGallery.GetGallery\n */\nexport async function getGallery(\n galleryId: string,\n options?: GetGalleryOptions\n): Promise<NonNullablePaths<Gallery, GalleryNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemOffset: options?.itemOffset,\n itemLimit: options?.itemLimit,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.getGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0]',\n itemOffset: '$[1].itemOffset',\n itemLimit: '$[1].itemLimit',\n },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetGalleryOptions extends GetGalleryOptionsVersionOneOf {\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\n/** @oneof */\nexport interface GetGalleryOptionsVersionOneOf {}\n\n/**\n * Retrieves a list of media items in a specified gallery.\n *\n * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.\n * @param galleryId - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @param options - Options to use when getting the list of gallery items.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn com.wixpress.exposure.progallery.ProGallery.ListGalleryItems\n */\nexport async function listGalleryItems(\n galleryId: string,\n options?: ListGalleryItemsOptions\n): Promise<\n NonNullablePaths<\n ListGalleryItemsResponse,\n | `items`\n | `items.${number}.image.focalPoint.x`\n | `items.${number}.image.focalPoint.y`\n | `items.${number}.video.type`\n | `items.${number}.type`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemOffset: options?.itemOffset,\n itemLimit: options?.itemLimit,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.listGalleryItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'items.image.imageInfo' },\n { path: 'items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'items.video.videoInfo' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0]',\n itemOffset: '$[1].itemOffset',\n itemLimit: '$[1].itemLimit',\n },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListGalleryItemsOptions {\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\n/**\n * Retrieves a gallery item by ID.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.galleryId\n * @requiredField identifiers.itemId\n * @param identifiers - Gallery ID and Item ID.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns Returned media item.\n * @fqn com.wixpress.exposure.progallery.ProGallery.GetGalleryItem\n */\nexport async function getGalleryItem(\n identifiers: NonNullablePaths<\n GetGalleryItemIdentifiers,\n `galleryId` | `itemId`\n >\n): Promise<\n NonNullablePaths<\n Item,\n | `image.focalPoint.x`\n | `image.focalPoint.y`\n | `video.type`\n | `type`\n | `tags.values`\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 galleryId: identifiers?.galleryId,\n itemId: identifiers?.itemId,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.getGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ])\n )?.item!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0].galleryId',\n itemId: '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetGalleryItemIdentifiers {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * Item ID.\n * @format GUID\n */\n itemId: string;\n}\n\n/**\n * Creates a new gallery.\n *\n * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.\n *\n * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, \"Create a gallery and display it on your live site\". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField options.gallery.items.metadata.image.imageInfo\n * @requiredField options.gallery.items.metadata.text.html\n * @requiredField options.gallery.items.metadata.video.videoInfo\n * @param options - Options to use when creating the gallery.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Created gallery.\n * @fqn com.wixpress.exposure.progallery.ProGallery.CreateGallery\n */\nexport async function createGallery(\n options?: NonNullablePaths<\n CreateGalleryOptions,\n | `gallery.items.${number}.image.imageInfo`\n | `gallery.items.${number}.text.html`\n | `gallery.items.${number}.video.videoInfo`\n >\n): Promise<NonNullablePaths<Gallery, GalleryNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n gallery: options?.gallery,\n cloneFromGalleryId: options?.cloneFromGalleryId,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.createGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n gallery: '$[0].gallery',\n cloneFromGalleryId: '$[0].cloneFromGalleryId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateGalleryOptions {\n /** Gallery to create. */\n gallery?: Gallery;\n /**\n * Gallery ID to clone from.\n * @format GUID\n */\n cloneFromGalleryId?: string | null;\n}\n\n/**\n * Updates a gallery.\n *\n * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField gallery\n * @requiredField gallery.items.metadata.image.imageInfo\n * @requiredField gallery.items.metadata.text.html\n * @requiredField gallery.items.metadata.video.videoInfo\n * @param _id - ID of the gallery to update.\n * @param gallery - The information for the gallery being updated.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Updated gallery.\n * @fqn com.wixpress.exposure.progallery.ProGallery.UpdateGallery\n */\nexport async function updateGallery(\n _id: string,\n gallery: NonNullablePaths<\n UpdateGallery,\n | `items.${number}.image.imageInfo`\n | `items.${number}.text.html`\n | `items.${number}.video.videoInfo`\n >\n): Promise<NonNullablePaths<Gallery, GalleryNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ gallery: { ...gallery, id: _id } }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.updateGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { gallery: '$[1]' },\n explicitPathsToArguments: { 'gallery.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'gallery']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateGallery {\n /**\n * Gallery ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** Gallery name. */\n name?: string | null;\n /**\n * Total number of items in the gallery.\n * @readonly\n */\n totalItems?: number | null;\n /** Media items in the gallery. */\n items?: Item[];\n /**\n * Index that determines which position a gallery is displayed on the site. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one gallery, the function fails.\n */\n sortOrder?: number | null;\n /**\n * Date and time the gallery was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\n/**\n * Deletes a gallery.\n *\n * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function.\n * @param galleryId - ID of the gallery to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGallery\n */\nexport async function deleteGallery(\n galleryId: string\n): Promise<NonNullablePaths<DeleteGalleryResponse, `galleryId`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.deleteGallery(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: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes multiple media items from a gallery.\n * @param galleryId - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems\n * @deprecated\n * @replacedBy wix.pro_gallery.v2.gallery.BulkDeleteGalleryItems\n * @targetRemovalDate 2024-08-15\n */\nexport async function deleteGalleryItems(\n galleryId: string,\n options?: DeleteGalleryItemsOptions\n): Promise<\n NonNullablePaths<\n DeleteGalleryItemsResponse,\n { [P in GalleryNonNullablePaths]: `gallery.${P}` }[GalleryNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemsIds: options?.itemsIds,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.deleteGalleryItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0]',\n itemsIds: '$[1].itemsIds',\n },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteGalleryItemsOptions {\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemsIds?: string[];\n}\n\n/**\n * Deletes multiple media items from a gallery.\n * @param galleryId - Gallery ID.\n * @param itemIds - IDs of the media items to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @requiredField itemIds\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.BulkDeleteGalleryItems\n */\nexport async function bulkDeleteGalleryItems(\n galleryId: string,\n itemIds: string[]\n): Promise<NonNullablePaths<BulkDeleteGalleryItemsResponse, `itemIds`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemIds: itemIds,\n });\n\n const reqOpts =\n ambassadorWixProGalleryV2Gallery.bulkDeleteGalleryItems(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: { galleryId: '$[0]', itemIds: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'itemIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a media item in a specified gallery.\n *\n * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @param galleryId - Gallery ID.\n * @param item - Media item to create.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @requiredField item\n * @requiredField item.metadata.image.imageInfo\n * @requiredField item.metadata.text.html\n * @requiredField item.metadata.video.videoInfo\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Created media item.\n * @fqn com.wixpress.exposure.progallery.ProGallery.CreateGalleryItem\n */\nexport async function createGalleryItem(\n galleryId: string,\n item: NonNullablePaths<\n Item,\n `image.imageInfo` | `text.html` | `video.videoInfo`\n >\n): Promise<\n NonNullablePaths<\n Item,\n | `image.focalPoint.x`\n | `image.focalPoint.y`\n | `video.type`\n | `type`\n | `tags.values`\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({ galleryId: galleryId, item: item }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.createGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ])\n )?.item!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]', item: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'item']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a media item in a specified gallery.\n *\n * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.galleryId\n * @requiredField identifiers.itemId\n * @requiredField item\n * @requiredField item.metadata.image.imageInfo\n * @requiredField item.metadata.text.html\n * @requiredField item.metadata.video.videoInfo\n * @param item - The information for the gallery item being updated.\n * @param identifiers - Gallery ID and Item ID.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Updated media item.\n * @fqn com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem\n */\nexport async function updateGalleryItem(\n identifiers: NonNullablePaths<\n UpdateGalleryItemIdentifiers,\n `galleryId` | `itemId`\n >,\n item: NonNullablePaths<\n UpdateGalleryItem,\n `image.imageInfo` | `text.html` | `video.videoInfo`\n >\n): Promise<\n NonNullablePaths<\n Item,\n | `image.focalPoint.x`\n | `image.focalPoint.y`\n | `video.type`\n | `type`\n | `tags.values`\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 galleryId: identifiers?.galleryId,\n item: { ...item, id: identifiers?.itemId },\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.updateGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ])\n )?.item!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { item: '$[1]' },\n explicitPathsToArguments: {\n galleryId: '$[0].galleryId',\n 'item.id': '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'item']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateGalleryItemIdentifiers {\n /**\n * ID of the gallery containing the item to update.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the item to update.\n * @readonly\n * @format GUID\n */\n itemId?: string | null;\n}\n\nexport interface UpdateGalleryItem {\n /** Details about the image. */\n image?: Image;\n /** Details about the video. */\n video?: Video;\n /** Details about the text file. */\n text?: Text;\n /**\n * Item ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /**\n * Index that determines which position a media item is displayed in the gallery. <br />\n *\n * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.\n */\n sortOrder?: number | null;\n /** Item title. */\n title?: string | null;\n /** Item description. */\n description?: string | null;\n /** Link from the item. You can link to Wix sites or external URLs. */\n link?: Link;\n /**\n * Type of item.\n * @readonly\n */\n type?: TypeWithLiterals;\n /**\n * Date and time the item was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the item was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Item tags. */\n tags?: Tags;\n}\n\n/**\n * Deletes a media item from a gallery.\n *\n * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.galleryId\n * @requiredField identifiers.itemId\n * @param identifiers - Gallery ID and Item ID.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItem\n */\nexport async function deleteGalleryItem(\n identifiers: NonNullablePaths<\n DeleteGalleryItemIdentifiers,\n `galleryId` | `itemId`\n >\n): Promise<NonNullablePaths<DeleteGalleryItemResponse, `itemId`>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: identifiers?.galleryId,\n itemId: identifiers?.itemId,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.deleteGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0].galleryId',\n itemId: '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteGalleryItemIdentifiers {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemId: string;\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 resolveComWixpressExposureProgalleryProGalleryUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'progallery.wixapps.net': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/progallery',\n destPath: '',\n },\n {\n srcPath: '/pro-gallery/v2/galleries',\n destPath: '/v2/galleries',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/prime-server-proxy',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pro-gallery_pro-gallery';\n\n/**\n * Retrieves a list of galleries.\n *\n * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.\n */\nexport function listGalleries(payload: object): RequestOptionsFactory<any> {\n function __listGalleries({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fields' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.ListGalleries',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'galleries.sortOrder' },\n { path: 'galleries.items.sortOrder' },\n { path: 'galleries.items.image.focalPoint.x' },\n { path: 'galleries.items.image.focalPoint.y' },\n { path: 'galleries.items.secondaryMedia.image.focalPoint.x' },\n { path: 'galleries.items.secondaryMedia.image.focalPoint.y' },\n { path: 'galleries.items.image.unsharpMasking.amount' },\n { path: 'galleries.items.image.unsharpMasking.radius' },\n { path: 'galleries.items.image.unsharpMasking.threshold' },\n {\n path: 'galleries.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'galleries.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'galleries.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.items.createdDate' },\n { path: 'galleries.items.updatedDate' },\n { path: 'galleries.items.image.imageInfo.urlExpirationDate' },\n { path: 'galleries.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'galleries.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'galleries.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'galleries.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listGalleries;\n}\n\n/** Retrieves a gallery by ID. */\nexport function getGallery(payload: object): RequestOptionsFactory<any> {\n function __getGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.GetGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGallery;\n}\n\n/**\n * Retrieves a list of media items in a specified gallery.\n *\n * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.\n */\nexport function listGalleryItems(payload: object): RequestOptionsFactory<any> {\n function __listGalleryItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.ListGalleryItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'items.sortOrder' },\n { path: 'items.image.focalPoint.x' },\n { path: 'items.image.focalPoint.y' },\n { path: 'items.secondaryMedia.image.focalPoint.x' },\n { path: 'items.secondaryMedia.image.focalPoint.y' },\n { path: 'items.image.unsharpMasking.amount' },\n { path: 'items.image.unsharpMasking.radius' },\n { path: 'items.image.unsharpMasking.threshold' },\n { path: 'items.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'items.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'items.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'items.createdDate' },\n { path: 'items.updatedDate' },\n { path: 'items.image.imageInfo.urlExpirationDate' },\n { path: 'items.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.video.videoInfo.posters.urlExpirationDate' },\n {\n path: 'items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listGalleryItems;\n}\n\n/** Retrieves a gallery item by ID. */\nexport function getGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __getGalleryItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.GetGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGalleryItem;\n}\n\n/**\n * Creates a new gallery.\n *\n * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.\n *\n * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, \"Create a gallery and display it on your live site\". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function createGallery(payload: object): RequestOptionsFactory<any> {\n function __createGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'gallery.items.video.videoInfo.posters.urlExpirationDate' },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.CreateGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createGallery;\n}\n\n/**\n * Updates a gallery.\n *\n * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function updateGallery(payload: object): RequestOptionsFactory<any> {\n function __updateGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'gallery.items.video.videoInfo.posters.urlExpirationDate' },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'PATCH' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.UpdateGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{gallery.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateGallery;\n}\n\n/**\n * Deletes a gallery.\n *\n * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function.\n */\nexport function deleteGallery(payload: object): RequestOptionsFactory<any> {\n function __deleteGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'DELETE' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.DeleteGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteGallery;\n}\n\n/**\n * Deletes multiple media items from a gallery.\n * @deprecated It has been replaced with wix.pro_gallery.v2.gallery.BulkDeleteGalleryItems(), and will be removed on 2024-08-15.\n */\nexport function deleteGalleryItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteGalleryItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteGalleryItems;\n}\n\n/** Deletes multiple media items from a gallery. */\nexport function bulkDeleteGalleryItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteGalleryItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.BulkDeleteGalleryItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteGalleryItems;\n}\n\n/**\n * Creates a media item in a specified gallery.\n *\n * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function createGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __createGalleryItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.CreateGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createGalleryItem;\n}\n\n/**\n * Updates a media item in a specified gallery.\n *\n * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function updateGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __updateGalleryItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/{item.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateGalleryItem;\n}\n\n/**\n * Deletes a media item from a gallery.\n *\n * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function.\n */\nexport function deleteGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __deleteGalleryItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteGalleryItem;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,0BAAAC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xB,WAAW;AAAA,UACX,WAAW;AAAA,QACb;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,eAAe,MAAM;AAAA,IACxB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AA4EA,eAAsBW,mBACpB,aAIgE;AAEhE,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD,WAAW,aAAa;AAAA,IACxB,QAAQ,aAAa;AAAA,EACvB,CAAC;AAED,QAAM,UAA2C,kBAAkB,OAAO;AAE1E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAX;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,WAAW;AAAA,UACX,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,aAAa;AAAA,IAChB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["bulkDeleteGalleryItems","createGallery","createGalleryItem","deleteGallery","deleteGalleryItem","deleteGalleryItems","getGallery","getGalleryItem","listGalleries","listGalleryItems","updateGallery","updateGalleryItem","import_float","import_timestamp","import_rest_modules","payload","import_image","import_video_v2","import_transform_paths","LinkType","LinkRel","Type","ImageType","VideoType","RCLabel","WebhookIdentityType","State","Enum","SearchIndexingNotificationState","listGalleries","sdkTransformError","getGallery","listGalleryItems","getGalleryItem","createGallery","updateGallery","deleteGallery","deleteGalleryItems","bulkDeleteGalleryItems","createGalleryItem","updateGalleryItem","deleteGalleryItem"]}
|
1
|
+
{"version":3,"sources":["../../index.typings.ts","../../src/pro-gallery-v2-gallery-pro-gallery.universal.ts","../../src/pro-gallery-v2-gallery-pro-gallery.http.ts"],"sourcesContent":["export * from './src/pro-gallery-v2-gallery-pro-gallery.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixProGalleryV2Gallery from './pro-gallery-v2-gallery-pro-gallery.http.js';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKVideoV2ToRESTVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Gallery {\n /**\n * Gallery ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** Gallery name. */\n name?: string | null;\n /**\n * Total number of items in the gallery.\n * @readonly\n */\n totalItems?: number | null;\n /** Media items in the gallery. */\n items?: Item[];\n /**\n * Index that determines which position a gallery is displayed on the site. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one gallery, the function fails.\n */\n sortOrder?: number | null;\n /**\n * Date and time the gallery was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\nexport interface Item extends ItemMetadataOneOf {\n /** Details about the image. */\n image?: Image;\n /** Details about the video. */\n video?: Video;\n /** Details about the text file. */\n text?: Text;\n /**\n * Item ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /**\n * Index that determines which position a media item is displayed in the gallery. <br />\n *\n * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.\n */\n sortOrder?: number | null;\n /** Item title. */\n title?: string | null;\n /** Item description. */\n description?: string | null;\n /** Link from the item. You can link to Wix sites or external URLs. */\n link?: Link;\n /**\n * Type of item.\n * @readonly\n */\n type?: TypeWithLiterals;\n /**\n * Date and time the item was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the item was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Item tags. */\n tags?: Tags;\n}\n\n/** @oneof */\nexport interface ItemMetadataOneOf {\n /** Details about the image. */\n image?: Image;\n /** Details about the video. */\n video?: Video;\n /** Details about the text file. */\n text?: Text;\n}\n\nexport interface Link {\n /** Display text of the link. */\n text?: string | null;\n /** Target URL of the link. */\n url?: string | null;\n}\n\nexport enum LinkType {\n UNDEFINED = 'UNDEFINED',\n /** External link. */\n EXTERNAL = 'EXTERNAL',\n /** For internal usage using wixLinkData. */\n INTERNAL = 'INTERNAL',\n}\n\n/** @enumType */\nexport type LinkTypeWithLiterals =\n | LinkType\n | 'UNDEFINED'\n | 'EXTERNAL'\n | 'INTERNAL';\n\n/** The link object generated by panels in the editor and used by applications in Wix */\nexport interface WixLink extends WixLinkLinkOneOf {\n /** External link type */\n external?: ExternalLink;\n /** Page link type */\n page?: PageLink;\n /** Anchor link type */\n anchor?: AnchorLink;\n /** Dynamic page link type */\n dynamicPage?: DynamicPageLink;\n /** Document link type */\n document?: DocumentLink;\n /** Email link type */\n email?: EmailLink;\n /** Phone link type */\n phone?: PhoneLink;\n /** Address link type */\n address?: AddressLink;\n /** WhatsApp link type */\n whatsApp?: WhatsAppLink;\n /** TPA link type */\n tpaPage?: TpaPageLink;\n}\n\n/** @oneof */\nexport interface WixLinkLinkOneOf {\n /** External link type */\n external?: ExternalLink;\n /** Page link type */\n page?: PageLink;\n /** Anchor link type */\n anchor?: AnchorLink;\n /** Dynamic page link type */\n dynamicPage?: DynamicPageLink;\n /** Document link type */\n document?: DocumentLink;\n /** Email link type */\n email?: EmailLink;\n /** Phone link type */\n phone?: PhoneLink;\n /** Address link type */\n address?: AddressLink;\n /** WhatsApp link type */\n whatsApp?: WhatsAppLink;\n /** TPA link type */\n tpaPage?: TpaPageLink;\n}\n\nexport interface ExternalLink {\n /**\n * The url of the page\n * @format WEB_URL\n */\n url?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n}\n\n/**\n * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.\n * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel\n * Following are the accepted 'rel' types by Wix applications.\n */\nexport enum LinkRel {\n /** default (not implemented) */\n unknown_link_rel = 'unknown_link_rel',\n /** Indicates that the current document's original author or publisher does not endorse the referenced document. */\n nofollow = 'nofollow',\n /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */\n noopener = 'noopener',\n /** No Referer header will be included. Additionally, has the same effect as noopener. */\n noreferrer = 'noreferrer',\n /** Indicates a link that resulted from advertisements or paid placements. */\n sponsored = 'sponsored',\n}\n\n/** @enumType */\nexport type LinkRelWithLiterals =\n | LinkRel\n | 'unknown_link_rel'\n | 'nofollow'\n | 'noopener'\n | 'noreferrer'\n | 'sponsored';\n\nexport interface PageLink {\n /** The page id we want from the site */\n pageId?: string;\n /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */\n target?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface AnchorLink {\n /** The name of the anchor */\n anchorName?: string;\n /** The data id (from the JSON page) of the anchor that should be used */\n anchorDataId?: string;\n /** The page id we want from the site */\n pageId?: string;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface DynamicPageLink {\n /** The router that handles this link */\n routerId?: string;\n /** The path data we'd like */\n innerRoute?: string;\n /** The data id (from the JSON page) of the anchor that should be used */\n anchorDataId?: string | null;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport interface DocumentLink {\n /** The id of the document */\n docId?: string;\n /** The name of the document for download purposes */\n name?: string | null;\n /** If this document can be indexed by scrapers, default is false */\n indexable?: boolean;\n}\n\nexport interface EmailLink {\n /**\n * The email we will be sending a message to\n * @format EMAIL\n */\n recipient?: string;\n /** The subject of the email */\n subject?: string | null;\n /** The body of the email */\n body?: string | null;\n}\n\nexport interface PhoneLink {\n /**\n * The phone number we want to link to\n * @format PHONE\n * @maxLength 100\n */\n phoneNumber?: string;\n}\n\nexport interface AddressLink {\n /** An address that we can link to */\n address?: string;\n}\n\nexport interface WhatsAppLink {\n /**\n * The whatsApp phone number we want to connect with\n * @format PHONE\n */\n phoneNumber?: string;\n}\n\n/** Link to a TPA page */\nexport interface TpaPageLink {\n /** Type of item (e.g. 'wix.stores.sub_pages.product') */\n itemTypeIdentifier?: string;\n /** Id of linked item */\n itemId?: string;\n /** Id of linked page */\n pageId?: string;\n /** Id of app being linked to (AppDefId) */\n appDefinitionId?: string;\n /** The relativepath of linked page */\n path?: string;\n /**\n * rel of link\n * @maxSize 20\n */\n rel?: LinkRelWithLiterals[];\n}\n\nexport enum Type {\n UNDEFINED = 'UNDEFINED',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n TEXT = 'TEXT',\n}\n\n/** @enumType */\nexport type TypeWithLiterals = Type | 'UNDEFINED' | 'IMAGE' | 'VIDEO' | 'TEXT';\n\nexport interface Image {\n /** The image's Wix media URL in the following format: `'wix:image://v1/<uri>/<filename>#originWidth=<width>&originHeight=<height>[&watermark=<watermark_manifest_string>]'`. */\n imageInfo?: string;\n /** Focal point of the image. */\n focalPoint?: Point;\n /** Set of key-value pairs describing the media in [Exchangeable Image File format](https://en.wikipedia.org/wiki/Exif). */\n exif?: Record<string, any> | null;\n /**\n * Image compression level. <br />\n *\n * Min: `30` <br />\n * Max: `100`\n * @min 30\n * @max 100\n */\n quality?: number | null;\n /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */\n unsharpMasking?: UnsharpMasking;\n}\n\nexport enum ImageType {\n UNDEFINED = 'UNDEFINED',\n WIX_MEDIA = 'WIX_MEDIA',\n EXTERNAL = 'EXTERNAL',\n}\n\n/** @enumType */\nexport type ImageTypeWithLiterals =\n | ImageType\n | 'UNDEFINED'\n | 'WIX_MEDIA'\n | 'EXTERNAL';\n\nexport interface Point {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n}\n\nexport interface UnsharpMasking {\n /**\n * Unsharp masking amount. Controls the sharpening strength. <br />\n *\n * Min: `0` <br />\n * Max: `5`\n * @max 5\n */\n amount?: number | null;\n /** Unsharp masking radius in pixels. Controls the sharpening width. */\n radius?: number | null;\n /**\n * Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply. <br />\n *\n * Min: `0` <br />\n * Max: `1`\n * @max 1\n */\n threshold?: number | null;\n}\n\nexport interface Video {\n /** Type of video. */\n type?: VideoTypeWithLiterals;\n /**\n * The video's URL. Either a Wix media URL, or a supported https external URL in the following formats:\n *\n * Wix Media: `'wix:video://v1/6e6ea4_461425d7e7db4d5487a28e00c5ba6244/9e6ea4_461425d7e7db4d5487a28e00c5ba6277#posterUri=9e6ea4_461425d7e7db4d5487a28e00c5ba6277f000.jpg&posterWidth=960&posterHeight=540'`\n *\n * Vimeo: `'https://vimeo.com/378840916'`\n *\n * Youtube: `'https://www.youtube.com/results?search_query=uplifting+upbeat+music'`\n */\n videoInfo?: string;\n /** Manually defined video duration in milliseconds. */\n durationInMillis?: number | null;\n}\n\nexport enum VideoType {\n UNDEFINED = 'UNDEFINED',\n WIX_MEDIA = 'WIX_MEDIA',\n YOUTUBE = 'YOUTUBE',\n VIMEO = 'VIMEO',\n}\n\n/** @enumType */\nexport type VideoTypeWithLiterals =\n | VideoType\n | 'UNDEFINED'\n | 'WIX_MEDIA'\n | 'YOUTUBE'\n | 'VIMEO';\n\nexport interface VideoResolution {\n /** *Required.** Video URL. */\n url?: string;\n /** *Required.** Video height. */\n height?: number;\n /** *Required.** Video width. */\n width?: number;\n /** *Required.** Video format. For example, `mp4` or `hls`. */\n format?: string;\n /** Video quality. For example, `480p` or `720p`. */\n quality?: string | null;\n /** Video filename. */\n filename?: string | null;\n}\n\nexport interface Text {\n /** Text in HTML format. */\n html?: string | null;\n /**\n * Set of key-value pairs describing the [CSS style](https://en.wikipedia.org/wiki/CSS) of the text.\n *\n * __Note:__ The object structure is customizable. See the [`listGalleryItems()`](/pro-gallery/list-gallery-items) code example for supported values.\n */\n css?: Record<string, any> | null;\n /** Reserved for internal use. */\n editorHtml?: string | null;\n /** Reserved for internal use. */\n editorFontId?: string | null;\n}\n\nexport interface Tags {\n /** List of tags assigned to the media item. */\n values?: string[];\n}\n\nexport interface SecondaryMedia extends SecondaryMediaMetadataOneOf {\n /** secondary media photo metadata (optional) */\n image?: Image;\n /** secondary media text metadata (optional) */\n text?: Text;\n}\n\n/** @oneof */\nexport interface SecondaryMediaMetadataOneOf {\n /** secondary media photo metadata (optional) */\n image?: Image;\n /** secondary media text metadata (optional) */\n text?: Text;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface GalleryPublished {\n /**\n * id of the gallery that will be published\n * @readonly\n * @format GUID\n */\n galleryId?: string;\n isRc?: boolean;\n /** @readonly */\n newRevision?: Date | null;\n /** @readonly */\n oldRevision?: Date | null;\n}\n\nexport interface CleanDeletedGalleriesEvent {\n /**\n * @readonly\n * @format GUID\n */\n instanceId?: string;\n /**\n * @readonly\n * @format GUID\n */\n metaSiteId?: string;\n /** @readonly */\n htmlSiteRevision?: string;\n /** @readonly */\n timeSitePublished?: Date | null;\n}\n\nexport interface ProgallerypublisherPublishGalleryRequest {\n /**\n * id of the gallery that will be published\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface ProgallerypublisherPublishGalleryResponse {}\n\nexport interface GetActiveGalleryRevisionRequest {\n /** @format GUID */\n galleryId?: string;\n}\n\nexport interface GetActiveGalleryRevisionResponse {\n galleryActiveRevision?: Date | null;\n htmlSiteRevision?: string | null;\n}\n\nexport interface GetGalleryRevisionRequest {\n /** @format GUID */\n galleryId?: string;\n revision?: Date | null;\n}\n\nexport interface GetGalleryRevisionResponse {\n htmlSiteRevision?: string | null;\n /** @format GUID */\n instanceId?: string | null;\n}\n\nexport interface PublishGalleryItemRequest {\n /**\n * id of the gallery that will be published\n * @format GUID\n */\n galleryId?: string;\n /**\n * id of the item that will be published\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface PublishGalleryItemResponse {}\n\nexport interface PublishGalleryItemsRequest {\n /**\n * id of the gallery that will be published\n * @format GUID\n */\n galleryId?: string;\n /**\n * ids of the items that will be published\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n itemIds?: string[];\n}\n\nexport interface PublishGalleryItemsResponse {}\n\nexport interface Empty {}\n\nexport interface HtmlSitePublished {\n /**\n * Application instance ID\n * @maxLength 50\n */\n appInstanceId?: string;\n /**\n * Application type\n * @maxLength 100\n */\n appType?: string;\n /** Revision */\n revision?: string;\n /**\n * MSID\n * @maxLength 100\n */\n metaSiteId?: string | null;\n /**\n * optional branch id if publish is done from branch\n * @format GUID\n */\n branchId?: string | null;\n /** The site's last transactionId */\n lastTransactionId?: string | null;\n /** A list of the site's pages */\n pages?: EventsPage[];\n /** Site's publish date */\n publishDate?: string;\n}\n\nexport interface EventsPage {\n /**\n * Page's Id\n * @maxLength 100\n */\n _id?: string;\n}\n\nexport interface HtmlSiteRCPublished {\n /**\n * Application instance ID\n * @maxLength 50\n */\n appInstanceId?: string;\n /** Revision */\n revision?: string;\n /**\n * Optional branch Id\n * @format GUID\n */\n branchId?: string | null;\n /** Site's publish date */\n publishDate?: string;\n /** RC label */\n rcLabel?: RCLabelWithLiterals;\n}\n\nexport enum RCLabel {\n /** Illegal default value, exception will be thrown if used */\n UNKNOWN = 'UNKNOWN',\n RELEASE_MANAGER = 'RELEASE_MANAGER',\n BLOCKS = 'BLOCKS',\n WIX_CLI = 'WIX_CLI',\n MOBILE_APP_BUILDER = 'MOBILE_APP_BUILDER',\n SEO = 'SEO',\n FEEDBACK = 'FEEDBACK',\n ACCESSIBILITY = 'ACCESSIBILITY',\n ENTERPRISE_APPROVALS = 'ENTERPRISE_APPROVALS',\n}\n\n/** @enumType */\nexport type RCLabelWithLiterals =\n | RCLabel\n | 'UNKNOWN'\n | 'RELEASE_MANAGER'\n | 'BLOCKS'\n | 'WIX_CLI'\n | 'MOBILE_APP_BUILDER'\n | 'SEO'\n | 'FEEDBACK'\n | 'ACCESSIBILITY'\n | 'ENTERPRISE_APPROVALS';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n /** Information about a newly-created gallery. */\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 MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface RestoreAllGalleriesEvent {\n /**\n * instance id of galleries to restore\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface ListGalleriesItemsRequest {\n /**\n * IDs of the media items to retrieve.\n * @minSize 1\n * @maxSize 100\n */\n itemsId?: ItemId[];\n}\n\nexport interface ItemId {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId?: string;\n /**\n * Item ID.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface ListGalleriesItemsResponse {\n /** Retrieved media items. */\n itemsInGalleries?: ItemsInGallery[];\n}\n\nexport interface ItemsInGallery {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId?: string;\n /** Retrieved media items. */\n items?: Item[];\n}\n\nexport interface TriggerRestoreAllGalleriesAsyncRequest {\n /**\n * instance id of galleries to restore\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface TriggerRestoreAllGalleriesAsyncResponse {}\n\nexport interface GalleryItemCreated {\n /** Created gallery item. */\n item?: Item;\n}\n\nexport interface GalleryItemUpdated {\n /** Updated gallery item. */\n updatedItem?: Item;\n}\n\nexport interface GalleryItemDeleted {\n /**\n * ID of the deleted gallery item.\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface ListGalleriesRequest {\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 100\n */\n itemLimit?: number | null;\n /** Number of galleries to skip in the returns. Defaults to `0`. */\n offset?: number | null;\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 10\n */\n limit?: number | null;\n}\n\nexport enum State {\n /** Undefined state. */\n UNDEFINED = 'UNDEFINED',\n /** The gallery in the Editor. */\n SAVED = 'SAVED',\n /** The gallery in the LiveSite. */\n PUBLISHED = 'PUBLISHED',\n}\n\n/** @enumType */\nexport type StateWithLiterals = State | 'UNDEFINED' | 'SAVED' | 'PUBLISHED';\n\nexport interface ListGalleriesResponse {\n /** Total number of galleries in the site. */\n totalGalleries?: number | null;\n /** List of galleries. Sorted by `_createdDate`. */\n galleries?: Gallery[];\n}\n\nexport interface GetGalleryRequest extends GetGalleryRequestVersionOneOf {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\n/** @oneof */\nexport interface GetGalleryRequestVersionOneOf {}\n\nexport interface GetGalleryResponse {\n /** Returned gallery. */\n gallery?: Gallery;\n}\n\nexport interface ListGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\nexport interface ListGalleryItemsResponse {\n /** List of media items in the gallery. */\n items?: Item[];\n}\n\nexport interface GetGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * Item ID.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface GetGalleryItemResponse {\n /** Returned media item. */\n item?: Item;\n}\n\nexport interface CreateGalleryRequest {\n /** Gallery to create. */\n gallery?: Gallery;\n /**\n * Gallery ID to clone from.\n * @format GUID\n */\n cloneFromGalleryId?: string | null;\n}\n\nexport interface CreateGalleryResponse {\n /** Created gallery. */\n gallery?: Gallery;\n}\n\nexport interface UpdateGalleryRequest {\n /** Gallery to update. */\n gallery: Gallery;\n}\n\nexport interface UpdateGalleryResponse {\n /** Updated gallery. */\n gallery?: Gallery;\n}\n\nexport interface DeleteGalleryRequest {\n /**\n * ID of the gallery to delete.\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface DeleteGalleryResponse {\n /**\n * ID of the deleted gallery.\n * @readonly\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface DeleteGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemsIds?: string[];\n}\n\nexport interface DeleteGalleryItemsResponse {\n /** Gallery that previously included the deleted media item. */\n gallery?: Gallery;\n}\n\nexport interface BulkDeleteGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * IDs of the media items to delete.\n * @format GUID\n * @minSize 1\n * @maxSize 1000\n */\n itemIds: string[];\n}\n\nexport interface BulkDeleteGalleryItemsResponse {\n /**\n * IDs of the deleted media items.\n * @readonly\n * @format GUID\n */\n itemIds?: string[];\n}\n\nexport interface CreateGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** Media item to create. */\n item: Item;\n}\n\nexport interface CreateGalleryItemResponse {\n /** Created media item. */\n item?: Item;\n}\n\nexport interface CreateGalleryItemsRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId?: string;\n /**\n * Media items to create.\n * @maxSize 50\n */\n items?: Item[];\n}\n\nexport interface CreateGalleryItemsResponse {\n /** Created media items. */\n items?: Item[];\n}\n\nexport interface UpdateGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /** The information for the media item being updated. */\n item: Item;\n}\n\nexport interface UpdateGalleryItemResponse {\n /** Updated media item. */\n item?: Item;\n}\n\nexport interface DeleteGalleryItemRequest {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemId: string;\n}\n\nexport interface DeleteGalleryItemResponse {\n /**\n * ID of the deleted media item.\n * @readonly\n * @format GUID\n */\n itemId?: string;\n}\n\nexport interface PublishGalleryRequest {\n /**\n * ID of the gallery to publish.\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface PublishGalleryResponse {\n /** Published gallery. */\n gallery?: Gallery;\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 SearchIndexingNotification {\n /** new state of indexing for the site specified in ms_id */\n indexState?: SearchIndexingNotificationStateWithLiterals;\n /** type of the document the notification is targeted for. Applies to all types if not provided */\n documentType?: string | null;\n /** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */\n language?: string | null;\n /**\n * site for which notification is targeted\n * @minLength 2\n */\n msId?: string | null;\n}\n\nexport enum SearchIndexingNotificationState {\n /** default state */\n Unknown = 'Unknown',\n /** metasite does not require site search indexing */\n Off = 'Off',\n /** metasite requires site search indexing */\n On = 'On',\n}\n\n/** @enumType */\nexport type SearchIndexingNotificationStateWithLiterals =\n | SearchIndexingNotificationState\n | 'Unknown'\n | 'Off'\n | 'On';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface GalleryCreatedEnvelope {\n entity: Gallery;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a gallery is created.\n *\n * > __Note:__ The event data doesn't include gallery items or their IDs.\n * > To receive information about the created items you need to listen to the [Gallery Item Created webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-created-webhook).\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_created\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onGalleryCreated(\n handler: (event: GalleryCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a gallery is deleted.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_deleted\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onGalleryDeleted(\n handler: (event: GalleryDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryItemCreatedEnvelope {\n data: GalleryItemCreated;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a media item in a specified gallery is created.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_gallery_item_created\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug gallery_item_created\n * @documentationMaturity preview\n */\nexport declare function onGalleryItemCreated(\n handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryItemDeletedEnvelope {\n data: GalleryItemDeleted;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a media item in a specified gallery is deleted.\n *\n * > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted.\n * > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug gallery_item_deleted\n * @documentationMaturity preview\n */\nexport declare function onGalleryItemDeleted(\n handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryItemUpdatedEnvelope {\n data: GalleryItemUpdated;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a media item in a specified gallery is updated.\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_gallery_item_updated\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug gallery_item_updated\n * @documentationMaturity preview\n */\nexport declare function onGalleryItemUpdated(\n handler: (event: GalleryItemUpdatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface GalleryUpdatedEnvelope {\n entity: Gallery;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a gallery is updated.\n *\n * > __Note:__ The event data doesn't include gallery items or their IDs.\n * > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook).\n * @permissionScope Manage Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES\n * @permissionScope Read Galleries\n * @permissionScopeId SCOPE.DC-PROGALLERY.READ-GALLERIES\n * @permissionId PRO_GALLERY.READ\n * @webhook\n * @eventType wix.pro_gallery.gallery_v2_updated\n * @serviceIdentifier com.wixpress.exposure.progallery.ProGallery\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onGalleryUpdated(\n handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a list of galleries.\n *\n * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.\n * @public\n * @documentationMaturity preview\n * @param options - Options to use when getting the list of galleries.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.ListGalleries\n */\nexport async function listGalleries(\n options?: ListGalleriesOptions\n): Promise<NonNullablePaths<ListGalleriesResponse, `galleries`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n itemLimit: options?.itemLimit,\n offset: options?.offset,\n limit: options?.limit,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.listGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'galleries.items.image.imageInfo' },\n { path: 'galleries.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'galleries.items.video.videoInfo' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n itemLimit: '$[0].itemLimit',\n offset: '$[0].offset',\n limit: '$[0].limit',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListGalleriesOptions {\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 100\n */\n itemLimit?: number | null;\n /** Number of galleries to skip in the returns. Defaults to `0`. */\n offset?: number | null;\n /**\n * Number of galleries to list. Defaults to `10`.\n * @min 1\n * @max 10\n */\n limit?: number | null;\n}\n\n/**\n * Retrieves a gallery by ID.\n * @param galleryId - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @param options - Options to use when getting the gallery.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @returns Returned gallery.\n * @fqn com.wixpress.exposure.progallery.ProGallery.GetGallery\n */\nexport async function getGallery(\n galleryId: string,\n options?: GetGalleryOptions\n): Promise<\n NonNullablePaths<\n Gallery,\n | `items`\n | `items.${number}.image.focalPoint.x`\n | `items.${number}.image.focalPoint.y`\n | `items.${number}.video.type`\n | `items.${number}.type`,\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 = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemOffset: options?.itemOffset,\n itemLimit: options?.itemLimit,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.getGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0]',\n itemOffset: '$[1].itemOffset',\n itemLimit: '$[1].itemLimit',\n },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetGalleryOptions extends GetGalleryOptionsVersionOneOf {\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\n/** @oneof */\nexport interface GetGalleryOptionsVersionOneOf {}\n\n/**\n * Retrieves a list of media items in a specified gallery.\n *\n * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.\n * @param galleryId - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @param options - Options to use when getting the list of gallery items.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.ListGalleryItems\n */\nexport async function listGalleryItems(\n galleryId: string,\n options?: ListGalleryItemsOptions\n): Promise<\n NonNullablePaths<\n ListGalleryItemsResponse,\n | `items`\n | `items.${number}.image.focalPoint.x`\n | `items.${number}.image.focalPoint.y`\n | `items.${number}.video.type`\n | `items.${number}.type`,\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 = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemOffset: options?.itemOffset,\n itemLimit: options?.itemLimit,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.listGalleryItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'items.image.imageInfo' },\n { path: 'items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'items.video.videoInfo' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0]',\n itemOffset: '$[1].itemOffset',\n itemLimit: '$[1].itemLimit',\n },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListGalleryItemsOptions {\n /** Number of media items to skip in the returns. Defaults to `0`. */\n itemOffset?: number | null;\n /**\n * Maximum number of media items to return. <br />\n *\n * Min: `1` <br />\n * Max: `100` <br />\n * Default: `50`\n * @min 1\n * @max 200\n */\n itemLimit?: number | null;\n}\n\n/**\n * Retrieves a gallery item by ID.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.galleryId\n * @requiredField identifiers.itemId\n * @param identifiers - Gallery ID and Item ID.\n * @permissionId PRO_GALLERY.READ\n * @applicableIdentity APP\n * @returns Returned media item.\n * @fqn com.wixpress.exposure.progallery.ProGallery.GetGalleryItem\n */\nexport async function getGalleryItem(\n identifiers: NonNullablePaths<\n GetGalleryItemIdentifiers,\n `galleryId` | `itemId`,\n 2\n >\n): Promise<\n NonNullablePaths<\n Item,\n | `image.focalPoint.x`\n | `image.focalPoint.y`\n | `video.type`\n | `type`\n | `tags.values`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: identifiers?.galleryId,\n itemId: identifiers?.itemId,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.getGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ])\n )?.item!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0].galleryId',\n itemId: '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetGalleryItemIdentifiers {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * Item ID.\n * @format GUID\n */\n itemId: string;\n}\n\n/**\n * Creates a new gallery.\n *\n * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.\n *\n * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, \"Create a gallery and display it on your live site\". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField options.gallery.items.metadata.image.imageInfo\n * @requiredField options.gallery.items.metadata.text.html\n * @requiredField options.gallery.items.metadata.video.videoInfo\n * @param options - Options to use when creating the gallery.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Created gallery.\n * @fqn com.wixpress.exposure.progallery.ProGallery.CreateGallery\n */\nexport async function createGallery(\n options?: NonNullablePaths<\n CreateGalleryOptions,\n | `gallery.items.${number}.image.imageInfo`\n | `gallery.items.${number}.text.html`\n | `gallery.items.${number}.video.videoInfo`,\n 6\n >\n): Promise<\n NonNullablePaths<\n Gallery,\n | `items`\n | `items.${number}.image.focalPoint.x`\n | `items.${number}.image.focalPoint.y`\n | `items.${number}.video.type`\n | `items.${number}.type`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n gallery: options?.gallery,\n cloneFromGalleryId: options?.cloneFromGalleryId,\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.createGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n gallery: '$[0].gallery',\n cloneFromGalleryId: '$[0].cloneFromGalleryId',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateGalleryOptions {\n /** Gallery to create. */\n gallery?: Gallery;\n /**\n * Gallery ID to clone from.\n * @format GUID\n */\n cloneFromGalleryId?: string | null;\n}\n\n/**\n * Updates a gallery.\n *\n * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField gallery\n * @requiredField gallery.items.metadata.image.imageInfo\n * @requiredField gallery.items.metadata.text.html\n * @requiredField gallery.items.metadata.video.videoInfo\n * @param _id - ID of the gallery to update.\n * @param gallery - The information for the gallery being updated.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Updated gallery.\n * @fqn com.wixpress.exposure.progallery.ProGallery.UpdateGallery\n */\nexport async function updateGallery(\n _id: string,\n gallery: NonNullablePaths<\n UpdateGallery,\n | `items.${number}.image.imageInfo`\n | `items.${number}.text.html`\n | `items.${number}.video.videoInfo`,\n 5\n >\n): Promise<\n NonNullablePaths<\n Gallery,\n | `items`\n | `items.${number}.image.focalPoint.x`\n | `items.${number}.image.focalPoint.y`\n | `items.${number}.video.type`\n | `items.${number}.type`,\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({ gallery: { ...gallery, id: _id } }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.updateGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { gallery: '$[1]' },\n explicitPathsToArguments: { 'gallery.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'gallery']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateGallery {\n /**\n * Gallery ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /** Gallery name. */\n name?: string | null;\n /**\n * Total number of items in the gallery.\n * @readonly\n */\n totalItems?: number | null;\n /** Media items in the gallery. */\n items?: Item[];\n /**\n * Index that determines which position a gallery is displayed on the site. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one gallery, the function fails.\n */\n sortOrder?: number | null;\n /**\n * Date and time the gallery was created.\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\n/**\n * Deletes a gallery.\n *\n * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function.\n * @param galleryId - ID of the gallery to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGallery\n */\nexport async function deleteGallery(\n galleryId: string\n): Promise<NonNullablePaths<DeleteGalleryResponse, `galleryId`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.deleteGallery(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: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deletes multiple media items from a gallery.\n * @param galleryId - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems\n * @deprecated\n * @replacedBy wix.pro_gallery.v2.gallery.BulkDeleteGalleryItems\n * @targetRemovalDate 2024-08-15\n */\nexport async function deleteGalleryItems(\n galleryId: string,\n options?: DeleteGalleryItemsOptions\n): Promise<\n NonNullablePaths<\n DeleteGalleryItemsResponse,\n | `gallery.items`\n | `gallery.items.${number}.image.focalPoint.x`\n | `gallery.items.${number}.image.focalPoint.y`\n | `gallery.items.${number}.video.type`\n | `gallery.items.${number}.type`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemsIds: options?.itemsIds,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.deleteGalleryItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'gallery.items.image.imageInfo' },\n { path: 'gallery.items.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'gallery.items.video.videoInfo' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0]',\n itemsIds: '$[1].itemsIds',\n },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteGalleryItemsOptions {\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemsIds?: string[];\n}\n\n/**\n * Deletes multiple media items from a gallery.\n * @param galleryId - Gallery ID.\n * @param itemIds - IDs of the media items to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @requiredField itemIds\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.BulkDeleteGalleryItems\n */\nexport async function bulkDeleteGalleryItems(\n galleryId: string,\n itemIds: string[]\n): Promise<NonNullablePaths<BulkDeleteGalleryItemsResponse, `itemIds`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n itemIds: itemIds,\n });\n\n const reqOpts =\n ambassadorWixProGalleryV2Gallery.bulkDeleteGalleryItems(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: { galleryId: '$[0]', itemIds: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'itemIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Creates a media item in a specified gallery.\n *\n * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @param galleryId - Gallery ID.\n * @param item - Media item to create.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @requiredField item\n * @requiredField item.metadata.image.imageInfo\n * @requiredField item.metadata.text.html\n * @requiredField item.metadata.video.videoInfo\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Created media item.\n * @fqn com.wixpress.exposure.progallery.ProGallery.CreateGalleryItem\n */\nexport async function createGalleryItem(\n galleryId: string,\n item: NonNullablePaths<\n Item,\n `image.imageInfo` | `text.html` | `video.videoInfo`,\n 3\n >\n): Promise<\n NonNullablePaths<\n Item,\n | `image.focalPoint.x`\n | `image.focalPoint.y`\n | `video.type`\n | `type`\n | `tags.values`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({ galleryId: galleryId, item: item }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.createGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ])\n )?.item!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]', item: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId', 'item']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a media item in a specified gallery.\n *\n * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.galleryId\n * @requiredField identifiers.itemId\n * @requiredField item\n * @requiredField item.metadata.image.imageInfo\n * @requiredField item.metadata.text.html\n * @requiredField item.metadata.video.videoInfo\n * @param item - The information for the gallery item being updated.\n * @param identifiers - Gallery ID and Item ID.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Updated media item.\n * @fqn com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem\n */\nexport async function updateGalleryItem(\n identifiers: NonNullablePaths<\n UpdateGalleryItemIdentifiers,\n `galleryId` | `itemId`,\n 2\n >,\n item: NonNullablePaths<\n UpdateGalleryItem,\n `image.imageInfo` | `text.html` | `video.videoInfo`,\n 3\n >\n): Promise<\n NonNullablePaths<\n Item,\n | `image.focalPoint.x`\n | `image.focalPoint.y`\n | `video.type`\n | `type`\n | `tags.values`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n galleryId: identifiers?.galleryId,\n item: { ...item, id: identifiers?.itemId },\n }),\n [\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformSDKVideoV2ToRESTVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ]\n );\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.updateGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'item.image.imageInfo' },\n { path: 'item.secondaryMedia.image.imageInfo' },\n ],\n },\n {\n transformFn: transformRESTVideoV2ToSDKVideoV2,\n paths: [{ path: 'item.video.videoInfo' }],\n },\n ])\n )?.item!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { item: '$[1]' },\n explicitPathsToArguments: {\n galleryId: '$[0].galleryId',\n 'item.id': '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers', 'item']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateGalleryItemIdentifiers {\n /**\n * ID of the gallery containing the item to update.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the item to update.\n * @readonly\n * @format GUID\n */\n itemId?: string | null;\n}\n\nexport interface UpdateGalleryItem {\n /** Details about the image. */\n image?: Image;\n /** Details about the video. */\n video?: Video;\n /** Details about the text file. */\n text?: Text;\n /**\n * Item ID.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /**\n * Index that determines which position a media item is displayed in the gallery. <br />\n *\n * Default: [Epoch](https://www.epoch101.com/) timestamp. <br />\n *\n * >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.\n */\n sortOrder?: number | null;\n /** Item title. */\n title?: string | null;\n /** Item description. */\n description?: string | null;\n /** Link from the item. You can link to Wix sites or external URLs. */\n link?: Link;\n /**\n * Type of item.\n * @readonly\n */\n type?: TypeWithLiterals;\n /**\n * Date and time the item was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the item was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Item tags. */\n tags?: Tags;\n}\n\n/**\n * Deletes a media item from a gallery.\n *\n * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function.\n * @public\n * @documentationMaturity preview\n * @requiredField identifiers\n * @requiredField identifiers.galleryId\n * @requiredField identifiers.itemId\n * @param identifiers - Gallery ID and Item ID.\n * @permissionId PRO_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItem\n */\nexport async function deleteGalleryItem(\n identifiers: NonNullablePaths<\n DeleteGalleryItemIdentifiers,\n `galleryId` | `itemId`,\n 2\n >\n): Promise<NonNullablePaths<DeleteGalleryItemResponse, `itemId`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: identifiers?.galleryId,\n itemId: identifiers?.itemId,\n });\n\n const reqOpts = ambassadorWixProGalleryV2Gallery.deleteGalleryItem(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleryId: '$[0].galleryId',\n itemId: '$[0].itemId',\n },\n singleArgumentUnchanged: false,\n },\n ['identifiers']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface DeleteGalleryItemIdentifiers {\n /**\n * Gallery ID.\n * @format GUID\n */\n galleryId: string;\n /**\n * ID of the media item to delete.\n * @format GUID\n */\n itemId: string;\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 resolveComWixpressExposureProgalleryProGalleryUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'progallery.wixapps.net': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/progallery',\n destPath: '',\n },\n {\n srcPath: '/pro-gallery/v2/galleries',\n destPath: '/v2/galleries',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/pro-gallery-server',\n destPath: '',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/prime-server-proxy',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pro-gallery_pro-gallery';\n\n/**\n * Retrieves a list of galleries.\n *\n * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.\n */\nexport function listGalleries(payload: object): RequestOptionsFactory<any> {\n function __listGalleries({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fields' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.ListGalleries',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries',\n data: serializedData,\n host,\n }),\n params: toURLSearchParams(serializedData),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'galleries.sortOrder' },\n { path: 'galleries.items.sortOrder' },\n { path: 'galleries.items.image.focalPoint.x' },\n { path: 'galleries.items.image.focalPoint.y' },\n { path: 'galleries.items.secondaryMedia.image.focalPoint.x' },\n { path: 'galleries.items.secondaryMedia.image.focalPoint.y' },\n { path: 'galleries.items.image.unsharpMasking.amount' },\n { path: 'galleries.items.image.unsharpMasking.radius' },\n { path: 'galleries.items.image.unsharpMasking.threshold' },\n {\n path: 'galleries.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'galleries.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'galleries.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.items.createdDate' },\n { path: 'galleries.items.updatedDate' },\n { path: 'galleries.items.image.imageInfo.urlExpirationDate' },\n { path: 'galleries.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'galleries.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'galleries.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'galleries.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listGalleries;\n}\n\n/** Retrieves a gallery by ID. */\nexport function getGallery(payload: object): RequestOptionsFactory<any> {\n function __getGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.GetGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGallery;\n}\n\n/**\n * Retrieves a list of media items in a specified gallery.\n *\n * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.\n */\nexport function listGalleryItems(payload: object): RequestOptionsFactory<any> {\n function __listGalleryItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.ListGalleryItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'items.sortOrder' },\n { path: 'items.image.focalPoint.x' },\n { path: 'items.image.focalPoint.y' },\n { path: 'items.secondaryMedia.image.focalPoint.x' },\n { path: 'items.secondaryMedia.image.focalPoint.y' },\n { path: 'items.image.unsharpMasking.amount' },\n { path: 'items.image.unsharpMasking.radius' },\n { path: 'items.image.unsharpMasking.threshold' },\n { path: 'items.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'items.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'items.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'items.createdDate' },\n { path: 'items.updatedDate' },\n { path: 'items.image.imageInfo.urlExpirationDate' },\n { path: 'items.video.videoInfo.urlExpirationDate' },\n {\n path: 'items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'items.video.videoInfo.posters.urlExpirationDate' },\n {\n path: 'items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listGalleryItems;\n}\n\n/** Retrieves a gallery item by ID. */\nexport function getGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __getGalleryItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.GetGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGalleryItem;\n}\n\n/**\n * Creates a new gallery.\n *\n * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.\n *\n * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, \"Create a gallery and display it on your live site\". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function createGallery(payload: object): RequestOptionsFactory<any> {\n function __createGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'gallery.items.video.videoInfo.posters.urlExpirationDate' },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.CreateGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createGallery;\n}\n\n/**\n * Updates a gallery.\n *\n * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function updateGallery(payload: object): RequestOptionsFactory<any> {\n function __updateGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'gallery.items.video.videoInfo.posters.urlExpirationDate' },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'PATCH' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.UpdateGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{gallery.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateGallery;\n}\n\n/**\n * Deletes a gallery.\n *\n * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function.\n */\nexport function deleteGallery(payload: object): RequestOptionsFactory<any> {\n function __deleteGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'DELETE' as any,\n methodFqn: 'com.wixpress.exposure.progallery.ProGallery.DeleteGallery',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteGallery;\n}\n\n/**\n * Deletes multiple media items from a gallery.\n * @deprecated It has been replaced with wix.pro_gallery.v2.gallery.BulkDeleteGalleryItems(), and will be removed on 2024-08-15.\n */\nexport function deleteGalleryItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteGalleryItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'gallery.sortOrder' },\n { path: 'gallery.items.sortOrder' },\n { path: 'gallery.items.image.focalPoint.x' },\n { path: 'gallery.items.image.focalPoint.y' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.x' },\n { path: 'gallery.items.secondaryMedia.image.focalPoint.y' },\n { path: 'gallery.items.image.unsharpMasking.amount' },\n { path: 'gallery.items.image.unsharpMasking.radius' },\n { path: 'gallery.items.image.unsharpMasking.threshold' },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.amount',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.radius',\n },\n {\n path: 'gallery.items.secondaryMedia.image.unsharpMasking.threshold',\n },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.items.createdDate' },\n { path: 'gallery.items.updatedDate' },\n { path: 'gallery.items.image.imageInfo.urlExpirationDate' },\n { path: 'gallery.items.video.videoInfo.urlExpirationDate' },\n {\n path: 'gallery.items.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'gallery.items.video.videoInfo.posters.urlExpirationDate',\n },\n {\n path: 'gallery.items.secondaryMedia.image.imageInfo.urlExpirationDate',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __deleteGalleryItems;\n}\n\n/** Deletes multiple media items from a gallery. */\nexport function bulkDeleteGalleryItems(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteGalleryItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.BulkDeleteGalleryItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteGalleryItems;\n}\n\n/**\n * Creates a media item in a specified gallery.\n *\n * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function createGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __createGalleryItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.CreateGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createGalleryItem;\n}\n\n/**\n * Updates a media item in a specified gallery.\n *\n * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.\n *\n * <blockquote class=\"important\">\n *\n * __Important:__\n * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.\n *\n * </blockquote>\n */\nexport function updateGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __updateGalleryItem({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate' },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'PATCH' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/{item.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'item.sortOrder' },\n { path: 'item.image.focalPoint.x' },\n { path: 'item.image.focalPoint.y' },\n { path: 'item.secondaryMedia.image.focalPoint.x' },\n { path: 'item.secondaryMedia.image.focalPoint.y' },\n { path: 'item.image.unsharpMasking.amount' },\n { path: 'item.image.unsharpMasking.radius' },\n { path: 'item.image.unsharpMasking.threshold' },\n { path: 'item.secondaryMedia.image.unsharpMasking.amount' },\n { path: 'item.secondaryMedia.image.unsharpMasking.radius' },\n { path: 'item.secondaryMedia.image.unsharpMasking.threshold' },\n ],\n },\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'item.createdDate' },\n { path: 'item.updatedDate' },\n { path: 'item.image.imageInfo.urlExpirationDate' },\n { path: 'item.video.videoInfo.urlExpirationDate' },\n {\n path: 'item.video.videoInfo.resolutions.poster.urlExpirationDate',\n },\n { path: 'item.video.videoInfo.posters.urlExpirationDate' },\n { path: 'item.secondaryMedia.image.imageInfo.urlExpirationDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateGalleryItem;\n}\n\n/**\n * Deletes a media item from a gallery.\n *\n * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function.\n */\nexport function deleteGalleryItem(payload: object): RequestOptionsFactory<any> {\n function __deleteGalleryItem({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pro_gallery.v2.gallery',\n method: 'DELETE' as any,\n methodFqn:\n 'com.wixpress.exposure.progallery.ProGallery.DeleteGalleryItem',\n packageName: PACKAGE_NAME,\n url: resolveComWixpressExposureProgalleryProGalleryUrl({\n protoPath: '/v2/galleries/{galleryId}/items/{itemId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteGalleryItem;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAAA;AAAA,EAAA,qBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,yBAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,kDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAA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AAU;AACjB,UAAM,uBAAmB,uBAAAX;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,WAAW;AAAA,UACX,QAAQ;AAAA,QACV;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,aAAa;AAAA,IAChB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["bulkDeleteGalleryItems","createGallery","createGalleryItem","deleteGallery","deleteGalleryItem","deleteGalleryItems","getGallery","getGalleryItem","listGalleries","listGalleryItems","updateGallery","updateGalleryItem","import_float","import_timestamp","import_rest_modules","payload","import_image","import_video_v2","import_transform_paths","LinkType","LinkRel","Type","ImageType","VideoType","RCLabel","WebhookIdentityType","State","Enum","SearchIndexingNotificationState","listGalleries","sdkTransformError","getGallery","listGalleryItems","getGalleryItem","createGallery","updateGallery","deleteGallery","deleteGalleryItems","bulkDeleteGalleryItems","createGalleryItem","updateGalleryItem","deleteGalleryItem"]}
|