@wix/pro-gallery_pro-gallery
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.public'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.public"), exports); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.context"), exports); | ||
//# sourceMappingURL=index.js.map |
import { listGalleries as publicListGalleries, getGallery as publicGetGallery, listGalleryItems as publicListGalleryItems, getGalleryItem as publicGetGalleryItem, createGallery as publicCreateGallery, updateGallery as publicUpdateGallery, deleteGallery as publicDeleteGallery, deleteGalleryItems as publicDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; | ||
import { createRESTModule } from '@wix/sdk-runtime/rest-modules'; | ||
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
@@ -9,18 +10,20 @@ import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
export declare const listGalleries: BuildRESTFunction<typeof publicListGalleries>; | ||
export declare const getGallery: BuildRESTFunction<typeof publicGetGallery>; | ||
export declare const listGalleryItems: BuildRESTFunction<typeof publicListGalleryItems>; | ||
export declare const getGalleryItem: BuildRESTFunction<typeof publicGetGalleryItem>; | ||
export declare const createGallery: BuildRESTFunction<typeof publicCreateGallery>; | ||
export declare const updateGallery: BuildRESTFunction<typeof publicUpdateGallery>; | ||
export declare const deleteGallery: BuildRESTFunction<typeof publicDeleteGallery>; | ||
export declare const deleteGalleryItems: BuildRESTFunction<typeof publicDeleteGalleryItems>; | ||
export declare const createGalleryItem: BuildRESTFunction<typeof publicCreateGalleryItem>; | ||
export declare const updateGalleryItem: BuildRESTFunction<typeof publicUpdateGalleryItem>; | ||
export declare const deleteGalleryItem: BuildRESTFunction<typeof publicDeleteGalleryItem>; | ||
export declare const onGalleryCreated: BuildEventDefinition<typeof publicOnGalleryCreated>; | ||
export declare const onGalleryUpdated: BuildEventDefinition<typeof publicOnGalleryUpdated>; | ||
export declare const onGalleryDeleted: BuildEventDefinition<typeof publicOnGalleryDeleted>; | ||
export declare const onGalleryItemCreated: BuildEventDefinition<typeof publicOnGalleryItemCreated>; | ||
export declare const onGalleryItemUpdated: BuildEventDefinition<typeof publicOnGalleryItemUpdated>; | ||
export declare const onGalleryItemDeleted: BuildEventDefinition<typeof publicOnGalleryItemDeleted>; | ||
export declare const listGalleries: ReturnType<typeof createRESTModule<typeof publicListGalleries>>; | ||
export declare const getGallery: ReturnType<typeof createRESTModule<typeof publicGetGallery>>; | ||
export declare const listGalleryItems: ReturnType<typeof createRESTModule<typeof publicListGalleryItems>>; | ||
export declare const getGalleryItem: ReturnType<typeof createRESTModule<typeof publicGetGalleryItem>>; | ||
export declare const createGallery: ReturnType<typeof createRESTModule<typeof publicCreateGallery>>; | ||
export declare const updateGallery: ReturnType<typeof createRESTModule<typeof publicUpdateGallery>>; | ||
export declare const deleteGallery: ReturnType<typeof createRESTModule<typeof publicDeleteGallery>>; | ||
export declare const deleteGalleryItems: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItems>>; | ||
export declare const createGalleryItem: ReturnType<typeof createRESTModule<typeof publicCreateGalleryItem>>; | ||
export declare const updateGalleryItem: ReturnType<typeof createRESTModule<typeof publicUpdateGalleryItem>>; | ||
export declare const deleteGalleryItem: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItem>>; | ||
export declare const onGalleryCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryCreated>>; | ||
export declare const onGalleryUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryUpdated>>; | ||
export declare const onGalleryDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryDeleted>>; | ||
export declare const onGalleryItemCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemCreated>>; | ||
export declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemUpdated>>; | ||
export declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryItemDeleted>>; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, WebhookIdentityType, Enum, SearchIndexingNotificationState, State, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export { Gallery, Item, ItemMetadataOneOf, Link, WixLink, WixLinkLinkOneOf, ExternalLink, PageLink, AnchorLink, DynamicPageLink, DocumentLink, EmailLink, PhoneLink, AddressLink, WhatsAppLink, TpaPageLink, Image, Point, UnsharpMasking, Video, VideoResolution, Text, Tags, SecondaryMedia, SecondaryMediaMetadataOneOf, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, File, GalleryPublished, CleanDeletedGalleriesEvent, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, Empty, HtmlSitePublished, EventsPage, HtmlSiteRCPublished, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, DocumentUpdateOperation, IndexDocument, DocumentPayload, DocumentImage, DeleteByIdsOperation, DeleteByFilterOperation, UpdateByFilterOperation, UpdateExistingOperation, SearchIndexingNotification, ListGalleriesItemsRequest, ItemId, ListGalleriesItemsResponse, ItemsInGallery, GalleryItemCreated, GalleryItemUpdated, GalleryItemDeleted, ListGalleriesRequest, ListGalleriesResponse, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, ListGalleryItemsRequest, ListGalleryItemsResponse, GetGalleryItemRequest, GetGalleryItemResponse, CreateGalleryRequest, CreateGalleryResponse, UpdateGalleryRequest, UpdateGalleryResponse, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemsRequest, CreateGalleryItemsResponse, UpdateGalleryItemRequest, UpdateGalleryItemResponse, DeleteGalleryItemRequest, DeleteGalleryItemResponse, PublishGalleryRequest, PublishGalleryResponse, RestoreInfo, ItemNonNullableFields, GalleryNonNullableFields, ListGalleriesResponseNonNullableFields, GetGalleryResponseNonNullableFields, ListGalleryItemsResponseNonNullableFields, GetGalleryItemResponseNonNullableFields, CreateGalleryResponseNonNullableFields, UpdateGalleryResponseNonNullableFields, DeleteGalleryResponseNonNullableFields, DeleteGalleryItemsResponseNonNullableFields, CreateGalleryItemResponseNonNullableFields, UpdateGalleryItemResponseNonNullableFields, DeleteGalleryItemResponseNonNullableFields, BaseEventMetadata, EventMetadata, GalleryCreatedEnvelope, GalleryUpdatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemUpdatedEnvelope, GalleryItemDeletedEnvelope, ListGalleriesOptions, GetGalleryOptions, ListGalleryItemsOptions, GetGalleryItemIdentifiers, CreateGalleryOptions, UpdateGallery, DeleteGalleryItemsOptions, UpdateGalleryItemIdentifiers, UpdateGalleryItem, DeleteGalleryItemIdentifiers, } from './pro-gallery-v2-gallery-pro-gallery.universal'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.onGalleryItemDeleted = exports.onGalleryItemUpdated = exports.onGalleryItemCreated = exports.onGalleryDeleted = exports.onGalleryUpdated = exports.onGalleryCreated = exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = void 0; | ||
exports.State = exports.SearchIndexingNotificationState = exports.Enum = exports.WebhookIdentityType = exports.VideoType = exports.ImageType = exports.Type = exports.LinkRel = exports.LinkType = exports.onGalleryItemDeleted = exports.onGalleryItemUpdated = exports.onGalleryItemCreated = exports.onGalleryDeleted = exports.onGalleryUpdated = exports.onGalleryCreated = exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = void 0; | ||
const pro_gallery_v2_gallery_pro_gallery_public_1 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
const context_1 = require("@wix/sdk-runtime/context"); | ||
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules"); | ||
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_2 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
@@ -12,19 +13,29 @@ const pro_gallery_v2_gallery_pro_gallery_public_3 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_7 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
exports.listGalleries = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.listGalleries, 1); | ||
exports.getGallery = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.getGallery, 1); | ||
exports.listGalleryItems = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.listGalleryItems, 1); | ||
exports.getGalleryItem = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.getGalleryItem, 1); | ||
exports.createGallery = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.createGallery, 1); | ||
exports.updateGallery = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.updateGallery, 1); | ||
exports.deleteGallery = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.deleteGallery, 1); | ||
exports.deleteGalleryItems = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.deleteGalleryItems, 1); | ||
exports.createGalleryItem = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.createGalleryItem, 1); | ||
exports.updateGalleryItem = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.updateGalleryItem, 1); | ||
exports.deleteGalleryItem = (0, context_1.contextualizeRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.deleteGalleryItem, 1); | ||
exports.onGalleryCreated = (0, context_1.contextualizeEventDefinitionModule)(pro_gallery_v2_gallery_pro_gallery_public_2.onGalleryCreated); | ||
exports.onGalleryUpdated = (0, context_1.contextualizeEventDefinitionModule)(pro_gallery_v2_gallery_pro_gallery_public_3.onGalleryUpdated); | ||
exports.onGalleryDeleted = (0, context_1.contextualizeEventDefinitionModule)(pro_gallery_v2_gallery_pro_gallery_public_4.onGalleryDeleted); | ||
exports.onGalleryItemCreated = (0, context_1.contextualizeEventDefinitionModule)(pro_gallery_v2_gallery_pro_gallery_public_5.onGalleryItemCreated); | ||
exports.onGalleryItemUpdated = (0, context_1.contextualizeEventDefinitionModule)(pro_gallery_v2_gallery_pro_gallery_public_6.onGalleryItemUpdated); | ||
exports.onGalleryItemDeleted = (0, context_1.contextualizeEventDefinitionModule)(pro_gallery_v2_gallery_pro_gallery_public_7.onGalleryItemDeleted); | ||
exports.listGalleries = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.listGalleries); | ||
exports.getGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.getGallery); | ||
exports.listGalleryItems = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.listGalleryItems); | ||
exports.getGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.getGalleryItem); | ||
exports.createGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.createGallery); | ||
exports.updateGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.updateGallery); | ||
exports.deleteGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.deleteGallery); | ||
exports.deleteGalleryItems = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.deleteGalleryItems); | ||
exports.createGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.createGalleryItem); | ||
exports.updateGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.updateGalleryItem); | ||
exports.deleteGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.deleteGalleryItem); | ||
exports.onGalleryCreated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_2.onGalleryCreated); | ||
exports.onGalleryUpdated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_3.onGalleryUpdated); | ||
exports.onGalleryDeleted = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_4.onGalleryDeleted); | ||
exports.onGalleryItemCreated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_5.onGalleryItemCreated); | ||
exports.onGalleryItemUpdated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_6.onGalleryItemUpdated); | ||
exports.onGalleryItemDeleted = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_7.onGalleryItemDeleted); | ||
var pro_gallery_v2_gallery_pro_gallery_universal_1 = require("./pro-gallery-v2-gallery-pro-gallery.universal"); | ||
Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.LinkType; } }); | ||
Object.defineProperty(exports, "LinkRel", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.LinkRel; } }); | ||
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.Type; } }); | ||
Object.defineProperty(exports, "ImageType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.ImageType; } }); | ||
Object.defineProperty(exports, "VideoType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.VideoType; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.WebhookIdentityType; } }); | ||
Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.Enum; } }); | ||
Object.defineProperty(exports, "SearchIndexingNotificationState", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.SearchIndexingNotificationState; } }); | ||
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.State; } }); | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.context.js.map |
@@ -52,3 +52,6 @@ import { RequestOptionsFactory } from '@wix/sdk-types'; | ||
export declare function deleteGallery(payload: object): RequestOptionsFactory<any>; | ||
/** Deletes multiple media items from a gallery. */ | ||
/** | ||
* Deletes multiple media items from a gallery. | ||
* @deprecated It has been replaced with com.wixpress.exposure.progallery.BulkDeleteGalleryItems(), and will be removed on 2024-08-15. | ||
*/ | ||
export declare function deleteGalleryItems(payload: object): RequestOptionsFactory<any>; | ||
@@ -55,0 +58,0 @@ /** |
@@ -570,3 +570,6 @@ "use strict"; | ||
exports.deleteGallery = deleteGallery; | ||
/** Deletes multiple media items from a gallery. */ | ||
/** | ||
* Deletes multiple media items from a gallery. | ||
* @deprecated It has been replaced with com.wixpress.exposure.progallery.BulkDeleteGalleryItems(), and will be removed on 2024-08-15. | ||
*/ | ||
function deleteGalleryItems(payload) { | ||
@@ -573,0 +576,0 @@ function __deleteGalleryItems({ host }) { |
@@ -7,113 +7,11 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare function listGalleries(httpClient: HttpClient): (options?: ListGalleriesOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleriesResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleriesResponseNonNullableFields>; | ||
export declare function getGallery(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
export declare function getGallery(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & import("./pro-gallery-v2-gallery-pro-gallery.universal").GalleryNonNullableFields>; | ||
export declare function listGalleryItems(httpClient: HttpClient): (galleryId: string, options?: ListGalleryItemsOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleryItemsResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleryItemsResponseNonNullableFields>; | ||
export declare function getGalleryItem(httpClient: HttpClient): (identifiers: GetGalleryItemIdentifiers) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
export declare function createGallery(httpClient: HttpClient): (options?: CreateGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
export declare function updateGallery(httpClient: HttpClient): (_id: string | null, gallery: UpdateGallery) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
export declare function getGalleryItem(httpClient: HttpClient): (identifiers: GetGalleryItemIdentifiers) => Promise<Item & import("./pro-gallery-v2-gallery-pro-gallery.universal").ItemNonNullableFields>; | ||
export declare function createGallery(httpClient: HttpClient): (options?: CreateGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & import("./pro-gallery-v2-gallery-pro-gallery.universal").GalleryNonNullableFields>; | ||
export declare function updateGallery(httpClient: HttpClient): (_id: string | null, gallery: UpdateGallery) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & import("./pro-gallery-v2-gallery-pro-gallery.universal").GalleryNonNullableFields>; | ||
export declare function deleteGallery(httpClient: HttpClient): (galleryId: string) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryResponseNonNullableFields>; | ||
export declare function deleteGalleryItems(httpClient: HttpClient): (galleryId: string, options?: DeleteGalleryItemsOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemsResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemsResponseNonNullableFields>; | ||
export declare function createGalleryItem(httpClient: HttpClient): (galleryId: string, item: Item) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
export declare function updateGalleryItem(httpClient: HttpClient): (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
export declare function createGalleryItem(httpClient: HttpClient): (galleryId: string, item: Item) => Promise<Item & import("./pro-gallery-v2-gallery-pro-gallery.universal").ItemNonNullableFields>; | ||
export declare function updateGalleryItem(httpClient: HttpClient): (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem) => Promise<Item & import("./pro-gallery-v2-gallery-pro-gallery.universal").ItemNonNullableFields>; | ||
export declare function deleteGalleryItem(httpClient: HttpClient): (identifiers: DeleteGalleryItemIdentifiers) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemResponseNonNullableFields>; | ||
@@ -126,2 +24,2 @@ export declare const onGalleryCreated: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">; | ||
export declare const onGalleryItemDeleted: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, CleanDeletedGalleriesEvent, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemResponseNonNullableFields, CreateGalleryItemsRequest, CreateGalleryItemsResponse, CreateGalleryOptions, CreateGalleryRequest, CreateGalleryResponse, CreateGalleryResponseNonNullableFields, DeleteByFilterOperation, DeleteByIdsOperation, DeleteGalleryItemIdentifiers, DeleteGalleryItemRequest, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, DocumentImage, DocumentLink, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, DynamicPageLink, EmailLink, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EventMetadata, EventsPage, ExternalLink, File, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreated, GalleryItemCreatedEnvelope, GalleryItemDeleted, GalleryItemDeletedEnvelope, GalleryItemUpdated, GalleryItemUpdatedEnvelope, GalleryPublished, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, HtmlSitePublished, HtmlSiteRCPublished, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, IndexDocument, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemId, ItemMetadataOneOf, ItemsInGallery, Link, LinkRel, LinkType, ListGalleriesItemsRequest, ListGalleriesItemsResponse, ListGalleriesOptions, ListGalleriesRequest, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsRequest, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, MessageEnvelope, Page, PageLink, PhoneLink, Point, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, PublishGalleryRequest, PublishGalleryResponse, SearchIndexingNotification, SearchIndexingNotificationState, SecondaryMedia, SecondaryMediaMetadataOneOf, State, Tags, Text, TpaPageLink, Type, URI, UndeleteInfo, UnsharpMasking, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, UpdateGalleryItemRequest, UpdateGalleryItemResponse, UpdateGalleryItemResponseNonNullableFields, UpdateGalleryRequest, UpdateGalleryResponse, UpdateGalleryResponseNonNullableFields, Video, VideoResolution, VideoType, WebhookIdentityType, WhatsAppLink, WixLink, WixLinkLinkOneOf, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, CleanDeletedGalleriesEvent, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemResponseNonNullableFields, CreateGalleryItemsRequest, CreateGalleryItemsResponse, CreateGalleryOptions, CreateGalleryRequest, CreateGalleryResponse, CreateGalleryResponseNonNullableFields, DeleteByFilterOperation, DeleteByIdsOperation, DeleteGalleryItemIdentifiers, DeleteGalleryItemRequest, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, DocumentImage, DocumentLink, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, DynamicPageLink, EmailLink, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EventMetadata, EventsPage, ExternalLink, File, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreated, GalleryItemCreatedEnvelope, GalleryItemDeleted, GalleryItemDeletedEnvelope, GalleryItemUpdated, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryPublished, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, HtmlSitePublished, HtmlSiteRCPublished, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, IndexDocument, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemId, ItemMetadataOneOf, ItemNonNullableFields, ItemsInGallery, Link, LinkRel, LinkType, ListGalleriesItemsRequest, ListGalleriesItemsResponse, ListGalleriesOptions, ListGalleriesRequest, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsRequest, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, MessageEnvelope, Page, PageLink, PhoneLink, Point, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, PublishGalleryRequest, PublishGalleryResponse, RestoreInfo, SearchIndexingNotification, SearchIndexingNotificationState, SecondaryMedia, SecondaryMediaMetadataOneOf, State, Tags, Text, TpaPageLink, Type, URI, UnsharpMasking, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, UpdateGalleryItemRequest, UpdateGalleryItemResponse, UpdateGalleryItemResponseNonNullableFields, UpdateGalleryRequest, UpdateGalleryResponse, UpdateGalleryResponseNonNullableFields, Video, VideoResolution, VideoType, WebhookIdentityType, WhatsAppLink, WixLink, WixLinkLinkOneOf, } from './pro-gallery-v2-gallery-pro-gallery.universal'; |
@@ -890,2 +890,15 @@ export interface Gallery { | ||
} | ||
export interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
export interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
export interface CreateGalleryItemRequest { | ||
@@ -942,660 +955,129 @@ /** Gallery ID. */ | ||
} | ||
export interface UndeleteInfo { | ||
export interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface CommonImageNonNullableFields { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo?: CommonImageNonNullableFields; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoResolutionNonNullableFields { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: CommonImageNonNullableFields; | ||
format: string; | ||
} | ||
interface VideoV2NonNullableFields { | ||
id: string; | ||
url: string; | ||
resolutions: VideoResolutionNonNullableFields[]; | ||
posters: CommonImageNonNullableFields[]; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo?: VideoV2NonNullableFields; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
export interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1606,326 +1088,9 @@ export interface DeleteGalleryResponseNonNullableFields { | ||
export interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1935,1 +1100,2 @@ export interface DeleteGalleryItemResponseNonNullableFields { | ||
} | ||
export {}; |
@@ -846,2 +846,15 @@ export interface Gallery { | ||
} | ||
export interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
export interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
export interface CreateGalleryItemRequest { | ||
@@ -898,126 +911,110 @@ /** Gallery ID. */ | ||
} | ||
export interface UndeleteInfo { | ||
export interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo: string; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
export interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
export interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
export interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1028,59 +1025,9 @@ export interface DeleteGalleryResponseNonNullableFields { | ||
export interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1246,3 +1193,2 @@ export interface DeleteGalleryItemResponseNonNullableFields { | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -1271,7 +1217,6 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
* @returns Returned gallery. | ||
*/ | ||
export declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & NonNullable<GetGalleryResponseNonNullableFields>['gallery']>; | ||
export declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & GalleryNonNullableFields>; | ||
export interface GetGalleryOptions extends GetGalleryRequestVersionOneOf { | ||
@@ -1303,3 +1248,2 @@ /** Number of media items to skip in the returns. Defaults to `0`. */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -1333,7 +1277,6 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
* @returns Returned media item. | ||
*/ | ||
export declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & NonNullable<GetGalleryItemResponseNonNullableFields>['item']>; | ||
export declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & ItemNonNullableFields>; | ||
export interface GetGalleryItemIdentifiers { | ||
@@ -1369,3 +1312,3 @@ /** Gallery ID. */ | ||
*/ | ||
export declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & NonNullable<CreateGalleryResponseNonNullableFields>['gallery']>; | ||
export declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & GalleryNonNullableFields>; | ||
export interface CreateGalleryOptions { | ||
@@ -1402,3 +1345,3 @@ /** Gallery to create. */ | ||
*/ | ||
export declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & NonNullable<UpdateGalleryResponseNonNullableFields>['gallery']>; | ||
export declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & GalleryNonNullableFields>; | ||
export interface UpdateGallery { | ||
@@ -1453,2 +1396,5 @@ /** | ||
* @applicableIdentity APP | ||
* @deprecated | ||
* @replacedBy com.wixpress.exposure.progallery.BulkDeleteGalleryItems | ||
* @targetRemovalDate 2024-08-15 | ||
*/ | ||
@@ -1491,3 +1437,3 @@ export declare function deleteGalleryItems(galleryId: string, options?: DeleteGalleryItemsOptions): Promise<DeleteGalleryItemsResponse & DeleteGalleryItemsResponseNonNullableFields>; | ||
*/ | ||
export declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & NonNullable<CreateGalleryItemResponseNonNullableFields>['item']>; | ||
export declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & ItemNonNullableFields>; | ||
/** | ||
@@ -1520,3 +1466,3 @@ * Updates a media item in a specified gallery. | ||
*/ | ||
export declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & NonNullable<UpdateGalleryItemResponseNonNullableFields>['item']>; | ||
export declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & ItemNonNullableFields>; | ||
export interface UpdateGalleryItemIdentifiers { | ||
@@ -1593,1 +1539,2 @@ /** ID of the gallery containing the item to update. */ | ||
} | ||
export {}; |
@@ -133,3 +133,2 @@ "use strict"; | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -191,3 +190,2 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -252,3 +250,2 @@ * @returns Returned gallery. | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -311,3 +308,2 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -548,2 +544,5 @@ * @returns Returned media item. | ||
* @applicableIdentity APP | ||
* @deprecated | ||
* @replacedBy com.wixpress.exposure.progallery.BulkDeleteGalleryItems | ||
* @targetRemovalDate 2024-08-15 | ||
*/ | ||
@@ -550,0 +549,0 @@ async function deleteGalleryItems(galleryId, options) { |
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.public'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context'; |
@@ -1,2 +0,2 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.public'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context'; | ||
//# sourceMappingURL=index.js.map |
import { listGalleries as publicListGalleries, getGallery as publicGetGallery, listGalleryItems as publicListGalleryItems, getGalleryItem as publicGetGalleryItem, createGallery as publicCreateGallery, updateGallery as publicUpdateGallery, deleteGallery as publicDeleteGallery, deleteGalleryItems as publicDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; | ||
import { createRESTModule } from '@wix/sdk-runtime/rest-modules'; | ||
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
@@ -9,18 +10,20 @@ import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
export declare const listGalleries: BuildRESTFunction<typeof publicListGalleries>; | ||
export declare const getGallery: BuildRESTFunction<typeof publicGetGallery>; | ||
export declare const listGalleryItems: BuildRESTFunction<typeof publicListGalleryItems>; | ||
export declare const getGalleryItem: BuildRESTFunction<typeof publicGetGalleryItem>; | ||
export declare const createGallery: BuildRESTFunction<typeof publicCreateGallery>; | ||
export declare const updateGallery: BuildRESTFunction<typeof publicUpdateGallery>; | ||
export declare const deleteGallery: BuildRESTFunction<typeof publicDeleteGallery>; | ||
export declare const deleteGalleryItems: BuildRESTFunction<typeof publicDeleteGalleryItems>; | ||
export declare const createGalleryItem: BuildRESTFunction<typeof publicCreateGalleryItem>; | ||
export declare const updateGalleryItem: BuildRESTFunction<typeof publicUpdateGalleryItem>; | ||
export declare const deleteGalleryItem: BuildRESTFunction<typeof publicDeleteGalleryItem>; | ||
export declare const onGalleryCreated: BuildEventDefinition<typeof publicOnGalleryCreated>; | ||
export declare const onGalleryUpdated: BuildEventDefinition<typeof publicOnGalleryUpdated>; | ||
export declare const onGalleryDeleted: BuildEventDefinition<typeof publicOnGalleryDeleted>; | ||
export declare const onGalleryItemCreated: BuildEventDefinition<typeof publicOnGalleryItemCreated>; | ||
export declare const onGalleryItemUpdated: BuildEventDefinition<typeof publicOnGalleryItemUpdated>; | ||
export declare const onGalleryItemDeleted: BuildEventDefinition<typeof publicOnGalleryItemDeleted>; | ||
export declare const listGalleries: ReturnType<typeof createRESTModule<typeof publicListGalleries>>; | ||
export declare const getGallery: ReturnType<typeof createRESTModule<typeof publicGetGallery>>; | ||
export declare const listGalleryItems: ReturnType<typeof createRESTModule<typeof publicListGalleryItems>>; | ||
export declare const getGalleryItem: ReturnType<typeof createRESTModule<typeof publicGetGalleryItem>>; | ||
export declare const createGallery: ReturnType<typeof createRESTModule<typeof publicCreateGallery>>; | ||
export declare const updateGallery: ReturnType<typeof createRESTModule<typeof publicUpdateGallery>>; | ||
export declare const deleteGallery: ReturnType<typeof createRESTModule<typeof publicDeleteGallery>>; | ||
export declare const deleteGalleryItems: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItems>>; | ||
export declare const createGalleryItem: ReturnType<typeof createRESTModule<typeof publicCreateGalleryItem>>; | ||
export declare const updateGalleryItem: ReturnType<typeof createRESTModule<typeof publicUpdateGalleryItem>>; | ||
export declare const deleteGalleryItem: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItem>>; | ||
export declare const onGalleryCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryCreated>>; | ||
export declare const onGalleryUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryUpdated>>; | ||
export declare const onGalleryDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryDeleted>>; | ||
export declare const onGalleryItemCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemCreated>>; | ||
export declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemUpdated>>; | ||
export declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryItemDeleted>>; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, WebhookIdentityType, Enum, SearchIndexingNotificationState, State, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export { Gallery, Item, ItemMetadataOneOf, Link, WixLink, WixLinkLinkOneOf, ExternalLink, PageLink, AnchorLink, DynamicPageLink, DocumentLink, EmailLink, PhoneLink, AddressLink, WhatsAppLink, TpaPageLink, Image, Point, UnsharpMasking, Video, VideoResolution, Text, Tags, SecondaryMedia, SecondaryMediaMetadataOneOf, InvalidateCache, InvalidateCacheGetByOneOf, App, Page, URI, File, GalleryPublished, CleanDeletedGalleriesEvent, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, Empty, HtmlSitePublished, EventsPage, HtmlSiteRCPublished, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, DocumentUpdateOperation, IndexDocument, DocumentPayload, DocumentImage, DeleteByIdsOperation, DeleteByFilterOperation, UpdateByFilterOperation, UpdateExistingOperation, SearchIndexingNotification, ListGalleriesItemsRequest, ItemId, ListGalleriesItemsResponse, ItemsInGallery, GalleryItemCreated, GalleryItemUpdated, GalleryItemDeleted, ListGalleriesRequest, ListGalleriesResponse, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, ListGalleryItemsRequest, ListGalleryItemsResponse, GetGalleryItemRequest, GetGalleryItemResponse, CreateGalleryRequest, CreateGalleryResponse, UpdateGalleryRequest, UpdateGalleryResponse, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemsRequest, CreateGalleryItemsResponse, UpdateGalleryItemRequest, UpdateGalleryItemResponse, DeleteGalleryItemRequest, DeleteGalleryItemResponse, PublishGalleryRequest, PublishGalleryResponse, RestoreInfo, ItemNonNullableFields, GalleryNonNullableFields, ListGalleriesResponseNonNullableFields, GetGalleryResponseNonNullableFields, ListGalleryItemsResponseNonNullableFields, GetGalleryItemResponseNonNullableFields, CreateGalleryResponseNonNullableFields, UpdateGalleryResponseNonNullableFields, DeleteGalleryResponseNonNullableFields, DeleteGalleryItemsResponseNonNullableFields, CreateGalleryItemResponseNonNullableFields, UpdateGalleryItemResponseNonNullableFields, DeleteGalleryItemResponseNonNullableFields, BaseEventMetadata, EventMetadata, GalleryCreatedEnvelope, GalleryUpdatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemUpdatedEnvelope, GalleryItemDeletedEnvelope, ListGalleriesOptions, GetGalleryOptions, ListGalleryItemsOptions, GetGalleryItemIdentifiers, CreateGalleryOptions, UpdateGallery, DeleteGalleryItemsOptions, UpdateGalleryItemIdentifiers, UpdateGalleryItem, DeleteGalleryItemIdentifiers, } from './pro-gallery-v2-gallery-pro-gallery.universal'; |
import { listGalleries as publicListGalleries, getGallery as publicGetGallery, listGalleryItems as publicListGalleryItems, getGalleryItem as publicGetGalleryItem, createGallery as publicCreateGallery, updateGallery as publicUpdateGallery, deleteGallery as publicDeleteGallery, deleteGalleryItems as publicDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem, } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { contextualizeRESTModule, contextualizeEventDefinitionModule, } from '@wix/sdk-runtime/context'; | ||
import { createRESTModule } from '@wix/sdk-runtime/rest-modules'; | ||
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
@@ -9,19 +10,20 @@ import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
export const listGalleries = contextualizeRESTModule(publicListGalleries, 1); | ||
export const getGallery = contextualizeRESTModule(publicGetGallery, 1); | ||
export const listGalleryItems = contextualizeRESTModule(publicListGalleryItems, 1); | ||
export const getGalleryItem = contextualizeRESTModule(publicGetGalleryItem, 1); | ||
export const createGallery = contextualizeRESTModule(publicCreateGallery, 1); | ||
export const updateGallery = contextualizeRESTModule(publicUpdateGallery, 1); | ||
export const deleteGallery = contextualizeRESTModule(publicDeleteGallery, 1); | ||
export const deleteGalleryItems = contextualizeRESTModule(publicDeleteGalleryItems, 1); | ||
export const createGalleryItem = contextualizeRESTModule(publicCreateGalleryItem, 1); | ||
export const updateGalleryItem = contextualizeRESTModule(publicUpdateGalleryItem, 1); | ||
export const deleteGalleryItem = contextualizeRESTModule(publicDeleteGalleryItem, 1); | ||
export const onGalleryCreated = contextualizeEventDefinitionModule(publicOnGalleryCreated); | ||
export const onGalleryUpdated = contextualizeEventDefinitionModule(publicOnGalleryUpdated); | ||
export const onGalleryDeleted = contextualizeEventDefinitionModule(publicOnGalleryDeleted); | ||
export const onGalleryItemCreated = contextualizeEventDefinitionModule(publicOnGalleryItemCreated); | ||
export const onGalleryItemUpdated = contextualizeEventDefinitionModule(publicOnGalleryItemUpdated); | ||
export const onGalleryItemDeleted = contextualizeEventDefinitionModule(publicOnGalleryItemDeleted); | ||
export const listGalleries = createRESTModule(publicListGalleries); | ||
export const getGallery = createRESTModule(publicGetGallery); | ||
export const listGalleryItems = createRESTModule(publicListGalleryItems); | ||
export const getGalleryItem = createRESTModule(publicGetGalleryItem); | ||
export const createGallery = createRESTModule(publicCreateGallery); | ||
export const updateGallery = createRESTModule(publicUpdateGallery); | ||
export const deleteGallery = createRESTModule(publicDeleteGallery); | ||
export const deleteGalleryItems = createRESTModule(publicDeleteGalleryItems); | ||
export const createGalleryItem = createRESTModule(publicCreateGalleryItem); | ||
export const updateGalleryItem = createRESTModule(publicUpdateGalleryItem); | ||
export const deleteGalleryItem = createRESTModule(publicDeleteGalleryItem); | ||
export const onGalleryCreated = createEventModule(publicOnGalleryCreated); | ||
export const onGalleryUpdated = createEventModule(publicOnGalleryUpdated); | ||
export const onGalleryDeleted = createEventModule(publicOnGalleryDeleted); | ||
export const onGalleryItemCreated = createEventModule(publicOnGalleryItemCreated); | ||
export const onGalleryItemUpdated = createEventModule(publicOnGalleryItemUpdated); | ||
export const onGalleryItemDeleted = createEventModule(publicOnGalleryItemDeleted); | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, WebhookIdentityType, Enum, SearchIndexingNotificationState, State, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.context.js.map |
@@ -52,3 +52,6 @@ import { RequestOptionsFactory } from '@wix/sdk-types'; | ||
export declare function deleteGallery(payload: object): RequestOptionsFactory<any>; | ||
/** Deletes multiple media items from a gallery. */ | ||
/** | ||
* Deletes multiple media items from a gallery. | ||
* @deprecated It has been replaced with com.wixpress.exposure.progallery.BulkDeleteGalleryItems(), and will be removed on 2024-08-15. | ||
*/ | ||
export declare function deleteGalleryItems(payload: object): RequestOptionsFactory<any>; | ||
@@ -55,0 +58,0 @@ /** |
@@ -560,3 +560,6 @@ import { toURLSearchParams } from '@wix/metro-runtime'; | ||
} | ||
/** Deletes multiple media items from a gallery. */ | ||
/** | ||
* Deletes multiple media items from a gallery. | ||
* @deprecated It has been replaced with com.wixpress.exposure.progallery.BulkDeleteGalleryItems(), and will be removed on 2024-08-15. | ||
*/ | ||
export function deleteGalleryItems(payload) { | ||
@@ -563,0 +566,0 @@ function __deleteGalleryItems({ host }) { |
@@ -7,113 +7,11 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare function listGalleries(httpClient: HttpClient): (options?: ListGalleriesOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleriesResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleriesResponseNonNullableFields>; | ||
export declare function getGallery(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
export declare function getGallery(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & import("./pro-gallery-v2-gallery-pro-gallery.universal").GalleryNonNullableFields>; | ||
export declare function listGalleryItems(httpClient: HttpClient): (galleryId: string, options?: ListGalleryItemsOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleryItemsResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").ListGalleryItemsResponseNonNullableFields>; | ||
export declare function getGalleryItem(httpClient: HttpClient): (identifiers: GetGalleryItemIdentifiers) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
export declare function createGallery(httpClient: HttpClient): (options?: CreateGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
export declare function updateGallery(httpClient: HttpClient): (_id: string | null, gallery: UpdateGallery) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
export declare function getGalleryItem(httpClient: HttpClient): (identifiers: GetGalleryItemIdentifiers) => Promise<Item & import("./pro-gallery-v2-gallery-pro-gallery.universal").ItemNonNullableFields>; | ||
export declare function createGallery(httpClient: HttpClient): (options?: CreateGalleryOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & import("./pro-gallery-v2-gallery-pro-gallery.universal").GalleryNonNullableFields>; | ||
export declare function updateGallery(httpClient: HttpClient): (_id: string | null, gallery: UpdateGallery) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").Gallery & import("./pro-gallery-v2-gallery-pro-gallery.universal").GalleryNonNullableFields>; | ||
export declare function deleteGallery(httpClient: HttpClient): (galleryId: string) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryResponseNonNullableFields>; | ||
export declare function deleteGalleryItems(httpClient: HttpClient): (galleryId: string, options?: DeleteGalleryItemsOptions) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemsResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemsResponseNonNullableFields>; | ||
export declare function createGalleryItem(httpClient: HttpClient): (galleryId: string, item: Item) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
export declare function updateGalleryItem(httpClient: HttpClient): (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: import("./pro-gallery-v2-gallery-pro-gallery.universal").Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
export declare function createGalleryItem(httpClient: HttpClient): (galleryId: string, item: Item) => Promise<Item & import("./pro-gallery-v2-gallery-pro-gallery.universal").ItemNonNullableFields>; | ||
export declare function updateGalleryItem(httpClient: HttpClient): (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem) => Promise<Item & import("./pro-gallery-v2-gallery-pro-gallery.universal").ItemNonNullableFields>; | ||
export declare function deleteGalleryItem(httpClient: HttpClient): (identifiers: DeleteGalleryItemIdentifiers) => Promise<import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemResponse & import("./pro-gallery-v2-gallery-pro-gallery.universal").DeleteGalleryItemResponseNonNullableFields>; | ||
@@ -126,2 +24,2 @@ export declare const onGalleryCreated: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">; | ||
export declare const onGalleryItemDeleted: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, CleanDeletedGalleriesEvent, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemResponseNonNullableFields, CreateGalleryItemsRequest, CreateGalleryItemsResponse, CreateGalleryOptions, CreateGalleryRequest, CreateGalleryResponse, CreateGalleryResponseNonNullableFields, DeleteByFilterOperation, DeleteByIdsOperation, DeleteGalleryItemIdentifiers, DeleteGalleryItemRequest, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, DocumentImage, DocumentLink, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, DynamicPageLink, EmailLink, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EventMetadata, EventsPage, ExternalLink, File, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreated, GalleryItemCreatedEnvelope, GalleryItemDeleted, GalleryItemDeletedEnvelope, GalleryItemUpdated, GalleryItemUpdatedEnvelope, GalleryPublished, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, HtmlSitePublished, HtmlSiteRCPublished, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, IndexDocument, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemId, ItemMetadataOneOf, ItemsInGallery, Link, LinkRel, LinkType, ListGalleriesItemsRequest, ListGalleriesItemsResponse, ListGalleriesOptions, ListGalleriesRequest, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsRequest, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, MessageEnvelope, Page, PageLink, PhoneLink, Point, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, PublishGalleryRequest, PublishGalleryResponse, SearchIndexingNotification, SearchIndexingNotificationState, SecondaryMedia, SecondaryMediaMetadataOneOf, State, Tags, Text, TpaPageLink, Type, URI, UndeleteInfo, UnsharpMasking, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, UpdateGalleryItemRequest, UpdateGalleryItemResponse, UpdateGalleryItemResponseNonNullableFields, UpdateGalleryRequest, UpdateGalleryResponse, UpdateGalleryResponseNonNullableFields, Video, VideoResolution, VideoType, WebhookIdentityType, WhatsAppLink, WixLink, WixLinkLinkOneOf, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, CleanDeletedGalleriesEvent, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemResponseNonNullableFields, CreateGalleryItemsRequest, CreateGalleryItemsResponse, CreateGalleryOptions, CreateGalleryRequest, CreateGalleryResponse, CreateGalleryResponseNonNullableFields, DeleteByFilterOperation, DeleteByIdsOperation, DeleteGalleryItemIdentifiers, DeleteGalleryItemRequest, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, DocumentImage, DocumentLink, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, DynamicPageLink, EmailLink, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EventMetadata, EventsPage, ExternalLink, File, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreated, GalleryItemCreatedEnvelope, GalleryItemDeleted, GalleryItemDeletedEnvelope, GalleryItemUpdated, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryPublished, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, HtmlSitePublished, HtmlSiteRCPublished, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, IndexDocument, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemId, ItemMetadataOneOf, ItemNonNullableFields, ItemsInGallery, Link, LinkRel, LinkType, ListGalleriesItemsRequest, ListGalleriesItemsResponse, ListGalleriesOptions, ListGalleriesRequest, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsRequest, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, MessageEnvelope, Page, PageLink, PhoneLink, Point, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, PublishGalleryRequest, PublishGalleryResponse, RestoreInfo, SearchIndexingNotification, SearchIndexingNotificationState, SecondaryMedia, SecondaryMediaMetadataOneOf, State, Tags, Text, TpaPageLink, Type, URI, UnsharpMasking, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, UpdateGalleryItemRequest, UpdateGalleryItemResponse, UpdateGalleryItemResponseNonNullableFields, UpdateGalleryRequest, UpdateGalleryResponse, UpdateGalleryResponseNonNullableFields, Video, VideoResolution, VideoType, WebhookIdentityType, WhatsAppLink, WixLink, WixLinkLinkOneOf, } from './pro-gallery-v2-gallery-pro-gallery.universal'; |
@@ -890,2 +890,15 @@ export interface Gallery { | ||
} | ||
export interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
export interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
export interface CreateGalleryItemRequest { | ||
@@ -942,660 +955,129 @@ /** Gallery ID. */ | ||
} | ||
export interface UndeleteInfo { | ||
export interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface CommonImageNonNullableFields { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo?: CommonImageNonNullableFields; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoResolutionNonNullableFields { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: CommonImageNonNullableFields; | ||
format: string; | ||
} | ||
interface VideoV2NonNullableFields { | ||
id: string; | ||
url: string; | ||
resolutions: VideoResolutionNonNullableFields[]; | ||
posters: CommonImageNonNullableFields[]; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo?: VideoV2NonNullableFields; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
export interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1606,326 +1088,9 @@ export interface DeleteGalleryResponseNonNullableFields { | ||
export interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1935,1 +1100,2 @@ export interface DeleteGalleryItemResponseNonNullableFields { | ||
} | ||
export {}; |
@@ -846,2 +846,15 @@ export interface Gallery { | ||
} | ||
export interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
export interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
export interface CreateGalleryItemRequest { | ||
@@ -898,126 +911,110 @@ /** Gallery ID. */ | ||
} | ||
export interface UndeleteInfo { | ||
export interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo: string; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
export interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
export interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
export interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
export interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1028,59 +1025,9 @@ export interface DeleteGalleryResponseNonNullableFields { | ||
export interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
export interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
export interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1246,3 +1193,2 @@ export interface DeleteGalleryItemResponseNonNullableFields { | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -1271,7 +1217,6 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
* @returns Returned gallery. | ||
*/ | ||
export declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & NonNullable<GetGalleryResponseNonNullableFields>['gallery']>; | ||
export declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & GalleryNonNullableFields>; | ||
export interface GetGalleryOptions extends GetGalleryRequestVersionOneOf { | ||
@@ -1303,3 +1248,2 @@ /** Number of media items to skip in the returns. Defaults to `0`. */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -1333,7 +1277,6 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
* @returns Returned media item. | ||
*/ | ||
export declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & NonNullable<GetGalleryItemResponseNonNullableFields>['item']>; | ||
export declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & ItemNonNullableFields>; | ||
export interface GetGalleryItemIdentifiers { | ||
@@ -1369,3 +1312,3 @@ /** Gallery ID. */ | ||
*/ | ||
export declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & NonNullable<CreateGalleryResponseNonNullableFields>['gallery']>; | ||
export declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & GalleryNonNullableFields>; | ||
export interface CreateGalleryOptions { | ||
@@ -1402,3 +1345,3 @@ /** Gallery to create. */ | ||
*/ | ||
export declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & NonNullable<UpdateGalleryResponseNonNullableFields>['gallery']>; | ||
export declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & GalleryNonNullableFields>; | ||
export interface UpdateGallery { | ||
@@ -1453,2 +1396,5 @@ /** | ||
* @applicableIdentity APP | ||
* @deprecated | ||
* @replacedBy com.wixpress.exposure.progallery.BulkDeleteGalleryItems | ||
* @targetRemovalDate 2024-08-15 | ||
*/ | ||
@@ -1491,3 +1437,3 @@ export declare function deleteGalleryItems(galleryId: string, options?: DeleteGalleryItemsOptions): Promise<DeleteGalleryItemsResponse & DeleteGalleryItemsResponseNonNullableFields>; | ||
*/ | ||
export declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & NonNullable<CreateGalleryItemResponseNonNullableFields>['item']>; | ||
export declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & ItemNonNullableFields>; | ||
/** | ||
@@ -1520,3 +1466,3 @@ * Updates a media item in a specified gallery. | ||
*/ | ||
export declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & NonNullable<UpdateGalleryItemResponseNonNullableFields>['item']>; | ||
export declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & ItemNonNullableFields>; | ||
export interface UpdateGalleryItemIdentifiers { | ||
@@ -1593,1 +1539,2 @@ /** ID of the gallery containing the item to update. */ | ||
} | ||
export {}; |
@@ -107,3 +107,2 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error'; | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -164,3 +163,2 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -224,3 +222,2 @@ * @returns Returned gallery. | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -282,3 +279,2 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -515,2 +511,5 @@ * @returns Returned media item. | ||
* @applicableIdentity APP | ||
* @deprecated | ||
* @replacedBy com.wixpress.exposure.progallery.BulkDeleteGalleryItems | ||
* @targetRemovalDate 2024-08-15 | ||
*/ | ||
@@ -517,0 +516,0 @@ export async function deleteGalleryItems(galleryId, options) { |
{ | ||
"name": "@wix/pro-gallery_pro-gallery", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"publishConfig": { | ||
@@ -23,4 +23,4 @@ "registry": "https://registry.npmjs.org/", | ||
"@wix/motion-edm-autogen-query-wrapper": "^1.0.37", | ||
"@wix/sdk-runtime": "^0.3.2", | ||
"@wix/sdk-types": "^1.9.0" | ||
"@wix/sdk-runtime": "^0.3.14", | ||
"@wix/sdk-types": "^1.9.2" | ||
}, | ||
@@ -48,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"falconPackageHash": "ba014f34cb78e3e7b558377316ddc052c93c7bbfc72130eb3a934835" | ||
"falconPackageHash": "f2dce4453df3ef49011fdcd3730b55f8ba4ab5ed963e7e9b080a5563" | ||
} |
@@ -84,2 +84,149 @@ interface Gallery { | ||
} | ||
declare enum LinkType { | ||
UNDEFINED = "UNDEFINED", | ||
/** external link */ | ||
EXTERNAL = "EXTERNAL", | ||
/** for internal usage using wixLinkData */ | ||
INTERNAL = "INTERNAL" | ||
} | ||
/** The link object generated by panels in the editor and used by applications in Wix */ | ||
interface WixLink extends WixLinkLinkOneOf { | ||
/** External link type */ | ||
external?: ExternalLink; | ||
/** Page link type */ | ||
page?: PageLink; | ||
/** Anchor link type */ | ||
anchor?: AnchorLink; | ||
/** Dynamic page link type */ | ||
dynamicPage?: DynamicPageLink; | ||
/** Document link type */ | ||
document?: DocumentLink; | ||
/** Email link type */ | ||
email?: EmailLink; | ||
/** Phone link type */ | ||
phone?: PhoneLink; | ||
/** Address link type */ | ||
address?: AddressLink; | ||
/** WhatsApp link type */ | ||
whatsApp?: WhatsAppLink; | ||
/** TPA link type */ | ||
tpaPage?: TpaPageLink; | ||
} | ||
/** @oneof */ | ||
interface WixLinkLinkOneOf { | ||
/** External link type */ | ||
external?: ExternalLink; | ||
/** Page link type */ | ||
page?: PageLink; | ||
/** Anchor link type */ | ||
anchor?: AnchorLink; | ||
/** Dynamic page link type */ | ||
dynamicPage?: DynamicPageLink; | ||
/** Document link type */ | ||
document?: DocumentLink; | ||
/** Email link type */ | ||
email?: EmailLink; | ||
/** Phone link type */ | ||
phone?: PhoneLink; | ||
/** Address link type */ | ||
address?: AddressLink; | ||
/** WhatsApp link type */ | ||
whatsApp?: WhatsAppLink; | ||
/** TPA link type */ | ||
tpaPage?: TpaPageLink; | ||
} | ||
interface ExternalLink { | ||
/** The url of the page */ | ||
url?: string; | ||
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */ | ||
target?: string | null; | ||
} | ||
interface PageLink { | ||
/** The page id we want from the site */ | ||
pageId?: string; | ||
/** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */ | ||
target?: string | null; | ||
/** rel of link */ | ||
rel?: LinkRel[]; | ||
} | ||
/** | ||
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. | ||
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel | ||
* Following are the accepted 'rel' types by Wix applications. | ||
*/ | ||
declare enum LinkRel { | ||
/** default (not implemented) */ | ||
unknown_link_rel = "unknown_link_rel", | ||
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */ | ||
nofollow = "nofollow", | ||
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */ | ||
noopener = "noopener", | ||
/** No Referer header will be included. Additionally, has the same effect as noopener. */ | ||
noreferrer = "noreferrer", | ||
/** Indicates a link that resulted from advertisements or paid placements. */ | ||
sponsored = "sponsored" | ||
} | ||
interface AnchorLink { | ||
/** The name of the anchor */ | ||
anchorName?: string; | ||
/** The data id (from the JSON page) of the anchor that should be used */ | ||
anchorDataId?: string; | ||
/** The page id we want from the site */ | ||
pageId?: string; | ||
/** rel of link */ | ||
rel?: LinkRel[]; | ||
} | ||
interface DynamicPageLink { | ||
/** The router that handles this link */ | ||
routerId?: string; | ||
/** The path data we'd like */ | ||
innerRoute?: string; | ||
/** The data id (from the JSON page) of the anchor that should be used */ | ||
anchorDataId?: string | null; | ||
/** rel of link */ | ||
rel?: LinkRel[]; | ||
} | ||
interface DocumentLink { | ||
/** The id of the document */ | ||
docId?: string; | ||
/** The name of the document for download purposes */ | ||
name?: string | null; | ||
/** If this document can be indexed by scrapers, default is false */ | ||
indexable?: boolean; | ||
} | ||
interface EmailLink { | ||
/** The email we will be sending a message to */ | ||
recipient?: string; | ||
/** The subject of the email */ | ||
subject?: string | null; | ||
/** The body of the email */ | ||
body?: string | null; | ||
} | ||
interface PhoneLink { | ||
/** The phone number we want to link to */ | ||
phoneNumber?: string; | ||
} | ||
interface AddressLink { | ||
/** An address that we can link to */ | ||
address?: string; | ||
} | ||
interface WhatsAppLink { | ||
/** The whatsApp phone number we want to connect with */ | ||
phoneNumber?: string; | ||
} | ||
/** Link to a TPA page */ | ||
interface TpaPageLink { | ||
/** Type of item (e.g. 'wix.stores.sub_pages.product') */ | ||
itemTypeIdentifier?: string; | ||
/** Id of linked item */ | ||
itemId?: string; | ||
/** Id of linked page */ | ||
pageId?: string; | ||
/** Id of app being linked to (AppDefId) */ | ||
appDefinitionId?: string; | ||
/** The relativepath of linked page */ | ||
path?: string; | ||
/** rel of link */ | ||
rel?: LinkRel[]; | ||
} | ||
declare enum Type { | ||
@@ -108,2 +255,7 @@ UNDEFINED = "UNDEFINED", | ||
} | ||
declare enum ImageType { | ||
UNDEFINED = "UNDEFINED", | ||
WIX_MEDIA = "WIX_MEDIA", | ||
EXTERNAL = "EXTERNAL" | ||
} | ||
interface Point { | ||
@@ -154,2 +306,16 @@ /** X-coordinate of the focal point. */ | ||
} | ||
interface VideoResolution { | ||
/** *Required.** Video URL. */ | ||
url?: string; | ||
/** *Required.** Video height. */ | ||
height?: number; | ||
/** *Required.** Video width. */ | ||
width?: number; | ||
/** *Required.** Video format. For example, `mp4` or `hls`. */ | ||
format?: string; | ||
/** Video quality. For example, `480p` or `720p`. */ | ||
quality?: string | null; | ||
/** Video filename. */ | ||
filename?: string | null; | ||
} | ||
interface Text { | ||
@@ -173,2 +339,226 @@ /** Text in HTML format. */ | ||
} | ||
interface SecondaryMedia extends SecondaryMediaMetadataOneOf { | ||
/** secondary media photo metadata (optional) */ | ||
image?: Image; | ||
/** secondary media text metadata (optional) */ | ||
text?: Text; | ||
} | ||
/** @oneof */ | ||
interface SecondaryMediaMetadataOneOf { | ||
/** secondary media photo metadata (optional) */ | ||
image?: Image; | ||
/** secondary media text metadata (optional) */ | ||
text?: Text; | ||
} | ||
interface InvalidateCache extends InvalidateCacheGetByOneOf { | ||
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */ | ||
metaSiteId?: string; | ||
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */ | ||
siteId?: string; | ||
/** Invalidate by App */ | ||
app?: App; | ||
/** Invalidate by page id */ | ||
page?: Page; | ||
/** Invalidate by URI path */ | ||
uri?: URI; | ||
/** Invalidate by file (for media files such as PDFs) */ | ||
file?: File; | ||
/** tell us why you're invalidating the cache. You don't need to add your app name */ | ||
reason?: string | null; | ||
/** Is local DS */ | ||
localDc?: boolean; | ||
} | ||
/** @oneof */ | ||
interface InvalidateCacheGetByOneOf { | ||
/** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */ | ||
metaSiteId?: string; | ||
/** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */ | ||
siteId?: string; | ||
/** Invalidate by App */ | ||
app?: App; | ||
/** Invalidate by page id */ | ||
page?: Page; | ||
/** Invalidate by URI path */ | ||
uri?: URI; | ||
/** Invalidate by file (for media files such as PDFs) */ | ||
file?: File; | ||
} | ||
interface App { | ||
/** The AppDefId */ | ||
appDefId?: string; | ||
/** The instance Id */ | ||
instanceId?: string; | ||
} | ||
interface Page { | ||
/** the msid the page is on */ | ||
metaSiteId?: string; | ||
/** Invalidate by Page ID */ | ||
pageId?: string; | ||
} | ||
interface URI { | ||
/** the msid the URI is on */ | ||
metaSiteId?: string; | ||
/** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */ | ||
uriPath?: string; | ||
} | ||
interface File { | ||
/** the msid the file is related to */ | ||
metaSiteId?: string; | ||
/** Invalidate by filename (for media files such as PDFs) */ | ||
fileName?: string; | ||
} | ||
interface GalleryPublished { | ||
/** | ||
* id of the gallery that will be published | ||
* @readonly | ||
*/ | ||
galleryId?: string; | ||
isRc?: boolean; | ||
/** @readonly */ | ||
newRevision?: Date; | ||
/** @readonly */ | ||
oldRevision?: Date; | ||
} | ||
interface CleanDeletedGalleriesEvent { | ||
/** @readonly */ | ||
instanceId?: string; | ||
/** @readonly */ | ||
metaSiteId?: string; | ||
/** @readonly */ | ||
htmlSiteRevision?: string; | ||
/** @readonly */ | ||
timeSitePublished?: Date; | ||
} | ||
interface ProgallerypublisherPublishGalleryRequest { | ||
/** id of the gallery that will be published */ | ||
galleryId?: string; | ||
} | ||
interface ProgallerypublisherPublishGalleryResponse { | ||
} | ||
interface PublishGalleryItemRequest { | ||
/** id of the gallery that will be published */ | ||
galleryId?: string; | ||
/** id of the item that will be published */ | ||
itemId?: string; | ||
} | ||
interface PublishGalleryItemResponse { | ||
} | ||
interface PublishGalleryItemsRequest { | ||
/** id of the gallery that will be published */ | ||
galleryId?: string; | ||
/** ids of the items that will be published */ | ||
itemIds?: string[]; | ||
} | ||
interface PublishGalleryItemsResponse { | ||
} | ||
interface Empty { | ||
} | ||
interface HtmlSitePublished { | ||
/** Application instance ID */ | ||
appInstanceId?: string; | ||
/** Application type */ | ||
appType?: string; | ||
/** Revision */ | ||
revision?: string; | ||
/** MSID */ | ||
metaSiteId?: string | null; | ||
/** optional branch id if publish is done from branch */ | ||
branchId?: string | null; | ||
/** The site's last transactionId */ | ||
lastTransactionId?: string | null; | ||
/** A list of the site's pages */ | ||
pages?: EventsPage[]; | ||
/** Site's publish date */ | ||
publishDate?: string; | ||
} | ||
interface EventsPage { | ||
/** Page's Id */ | ||
_id?: string; | ||
} | ||
interface HtmlSiteRCPublished { | ||
/** Application instance ID */ | ||
appInstanceId?: string; | ||
/** Revision */ | ||
revision?: string; | ||
/** Optional branch Id */ | ||
branchId?: string | null; | ||
} | ||
interface DomainEvent extends DomainEventBodyOneOf { | ||
/** Information about a newly-created gallery. */ | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
* Unique event ID. | ||
* Allows clients to ignore duplicate webhooks. | ||
*/ | ||
_id?: string; | ||
/** | ||
* Assumes actions are also always typed to an entity_type | ||
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction | ||
*/ | ||
entityFqdn?: string; | ||
/** | ||
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) | ||
* This is although the created/updated/deleted notion is duplication of the oneof types | ||
* Example: created/updated/deleted/started/completed/email_opened | ||
*/ | ||
slug?: string; | ||
/** ID of the entity associated with the event. */ | ||
entityId?: string; | ||
/** Event timestamp. */ | ||
eventTime?: Date; | ||
/** | ||
* Whether the event was triggered as a result of a privacy regulation application | ||
* (for example, GDPR). | ||
*/ | ||
triggeredByAnonymizeRequest?: boolean | null; | ||
/** If present, indicates the action that triggered the event. */ | ||
originatedFrom?: string | null; | ||
/** | ||
* A sequence number defining the order of updates to the underlying entity. | ||
* For example, given that some entity was updated at 16:00 and than again at 16:01, | ||
* it is guaranteed that the sequence number of the second update is strictly higher than the first. | ||
* As the consumer, you can use this value to ensure that you handle messages in the correct order. | ||
* To do so, you will need to persist this number on your end, and compare the sequence number from the | ||
* message against the one you have stored. Given that the stored number is higher, you should ignore the message. | ||
*/ | ||
entityEventSequence?: string | null; | ||
} | ||
/** @oneof */ | ||
interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
interface EntityCreatedEvent { | ||
entity?: string; | ||
} | ||
interface EntityUpdatedEvent { | ||
/** | ||
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. | ||
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. | ||
*/ | ||
currentEntity?: string; | ||
} | ||
interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntity?: string | null; | ||
} | ||
interface ActionEvent { | ||
body?: string; | ||
} | ||
interface MessageEnvelope { | ||
/** App instance ID. */ | ||
instanceId?: string | null; | ||
/** Event type. */ | ||
eventType?: string; | ||
/** The identification type and identity data. */ | ||
identity?: IdentificationData; | ||
/** Stringify payload. */ | ||
data?: string; | ||
} | ||
interface IdentificationData extends IdentificationDataIdOneOf { | ||
@@ -204,2 +594,137 @@ /** ID of a site visitor that has not logged in to the site. */ | ||
} | ||
interface UpdateDocumentsEvent extends UpdateDocumentsEventOperationOneOf { | ||
/** insert/update documents */ | ||
update?: DocumentUpdateOperation; | ||
/** delete by document ids */ | ||
deleteByIds?: DeleteByIdsOperation; | ||
/** delete documents matching filter */ | ||
deleteByFilter?: DeleteByFilterOperation; | ||
/** update documents matching filter */ | ||
updateByFilter?: UpdateByFilterOperation; | ||
/** update only existing documents */ | ||
updateExisting?: UpdateExistingOperation; | ||
/** application which owns documents */ | ||
appDefId?: string | null; | ||
/** type of the documents */ | ||
documentType?: string | null; | ||
/** language of the documents */ | ||
language?: string | null; | ||
/** site documents belong to */ | ||
msId?: string | null; | ||
} | ||
/** @oneof */ | ||
interface UpdateDocumentsEventOperationOneOf { | ||
/** insert/update documents */ | ||
update?: DocumentUpdateOperation; | ||
/** delete by document ids */ | ||
deleteByIds?: DeleteByIdsOperation; | ||
/** delete documents matching filter */ | ||
deleteByFilter?: DeleteByFilterOperation; | ||
/** update documents matching filter */ | ||
updateByFilter?: UpdateByFilterOperation; | ||
/** update only existing documents */ | ||
updateExisting?: UpdateExistingOperation; | ||
} | ||
interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
interface IndexDocument { | ||
/** data bag with non-searchable fields (url, image) */ | ||
payload?: DocumentPayload; | ||
/** what type of users should documents be visible to */ | ||
exposure?: Enum; | ||
/** document with mandatory fields (id, title, description) and with fields specific to the type of the document */ | ||
document?: Record<string, any> | null; | ||
/** what member groups is the document exposed to. Used only with GROUP_PROTECTED exposure */ | ||
permittedMemberGroups?: string[]; | ||
/** if true SEO is disabled for this document */ | ||
seoHidden?: boolean | null; | ||
/** if true the page is a lightbox popup */ | ||
isPopup?: boolean | null; | ||
} | ||
interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
declare enum Enum { | ||
/** Default value. Means that permission not set */ | ||
UNKNOWN = "UNKNOWN", | ||
/** Protected exposure. Exposed to members and owners */ | ||
PROTECTED = "PROTECTED", | ||
/** Private exposure. Exposed to owners */ | ||
PRIVATE = "PRIVATE", | ||
/** Public exposure. Visible to everyone */ | ||
PUBLIC = "PUBLIC", | ||
/** Used for partial updates, to state that exposure is not changing */ | ||
UNCHANGED = "UNCHANGED", | ||
/** Protected to members of permitted groups and owners */ | ||
GROUP_PROTECTED = "GROUP_PROTECTED" | ||
} | ||
interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
interface DeleteByFilterOperation { | ||
/** documents matching this filter wil be deleted. only filterable documents defined in document_type can be used for filtering */ | ||
filter?: Record<string, any> | null; | ||
} | ||
interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
interface SearchIndexingNotification { | ||
/** new state of indexing for the site specified in ms_id */ | ||
indexState?: SearchIndexingNotificationState; | ||
/** type of the document the notification is targeted for. Applies to all types if not provided */ | ||
documentType?: string | null; | ||
/** languaInternalDocumentUpdateByFilterOperationge the notification is targeted for. Applies to all languages if not provided */ | ||
language?: string | null; | ||
/** site for which notification is targeted */ | ||
msId?: string | null; | ||
} | ||
declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
interface ListGalleriesItemsRequest { | ||
/** IDs of the media items to retrieve. */ | ||
itemsId?: ItemId[]; | ||
} | ||
interface ItemId { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** Item ID. */ | ||
itemId?: string; | ||
} | ||
interface ListGalleriesItemsResponse { | ||
/** Retrieved media items. */ | ||
itemsInGalleries?: ItemsInGallery[]; | ||
} | ||
interface ItemsInGallery { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** Retrieved media items. */ | ||
items?: Item[]; | ||
} | ||
interface GalleryItemCreated { | ||
@@ -217,2 +742,17 @@ /** Created gallery item. */ | ||
} | ||
interface ListGalleriesRequest { | ||
/** Number of galleries to list. Defaults to `10`. */ | ||
itemLimit?: number | null; | ||
/** Number of galleries to skip in the returns. Defaults to `0`. */ | ||
offset?: number | null; | ||
/** Number of galleries to list. Defaults to `10`. */ | ||
limit?: number | null; | ||
} | ||
declare enum State { | ||
UNDEFINED = "UNDEFINED", | ||
/** The gallery in the Editor segment */ | ||
SAVED = "SAVED", | ||
/** The gallery in the LiveSite segment */ | ||
PUBLISHED = "PUBLISHED" | ||
} | ||
interface ListGalleriesResponse { | ||
@@ -224,5 +764,37 @@ /** Total number of galleries in the site. */ | ||
} | ||
interface GetGalleryRequest extends GetGalleryRequestVersionOneOf { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** Number of media items to skip in the returns. Defaults to `0`. */ | ||
itemOffset?: number | null; | ||
/** | ||
* Maximum number of media items to return. <br /> | ||
* | ||
* Min: `1` <br /> | ||
* Max: `100` <br /> | ||
* Default: `50` | ||
*/ | ||
itemLimit?: number | null; | ||
} | ||
/** @oneof */ | ||
interface GetGalleryRequestVersionOneOf { | ||
} | ||
interface GetGalleryResponse { | ||
/** Returned gallery. */ | ||
gallery?: Gallery; | ||
} | ||
interface ListGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** Number of media items to skip in the returns. Defaults to `0`. */ | ||
itemOffset?: number | null; | ||
/** | ||
* Maximum number of media items to return. <br /> | ||
* | ||
* Min: `1` <br /> | ||
* Max: `100` <br /> | ||
* Default: `50` | ||
*/ | ||
itemLimit?: number | null; | ||
} | ||
interface ListGalleryItemsResponse { | ||
@@ -232,2 +804,34 @@ /** List of media items in the gallery. */ | ||
} | ||
interface GetGalleryItemRequest { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** Item ID. */ | ||
itemId: string; | ||
} | ||
interface GetGalleryItemResponse { | ||
/** Returned media item. */ | ||
item?: Item; | ||
} | ||
interface CreateGalleryRequest { | ||
/** Gallery to create. */ | ||
gallery?: Gallery; | ||
/** Gallery ID to clone from. */ | ||
cloneFromGalleryId?: string | null; | ||
} | ||
interface CreateGalleryResponse { | ||
/** Created gallery. */ | ||
gallery?: Gallery; | ||
} | ||
interface UpdateGalleryRequest { | ||
/** Gallery to update. */ | ||
gallery: Gallery; | ||
} | ||
interface UpdateGalleryResponse { | ||
/** Updated gallery. */ | ||
gallery?: Gallery; | ||
} | ||
interface DeleteGalleryRequest { | ||
/** ID of the gallery to delete. */ | ||
galleryId: string; | ||
} | ||
interface DeleteGalleryResponse { | ||
@@ -240,2 +844,8 @@ /** | ||
} | ||
interface DeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** ID of the media item to delete. */ | ||
itemsIds?: string[]; | ||
} | ||
interface DeleteGalleryItemsResponse { | ||
@@ -245,2 +855,51 @@ /** Gallery that previously included the deleted media item. */ | ||
} | ||
interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
interface CreateGalleryItemRequest { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** Media item to create. */ | ||
item: Item; | ||
} | ||
interface CreateGalleryItemResponse { | ||
/** Created media item. */ | ||
item?: Item; | ||
} | ||
interface CreateGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** Media items to create. */ | ||
items?: Item[]; | ||
} | ||
interface CreateGalleryItemsResponse { | ||
/** Created media items. */ | ||
items?: Item[]; | ||
} | ||
interface UpdateGalleryItemRequest { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** The information for the media item being updated. */ | ||
item: Item; | ||
} | ||
interface UpdateGalleryItemResponse { | ||
/** Updated media item. */ | ||
item?: Item; | ||
} | ||
interface DeleteGalleryItemRequest { | ||
/** Gallery ID. */ | ||
galleryId: string; | ||
/** ID of the media item to delete. */ | ||
itemId: string; | ||
} | ||
interface DeleteGalleryItemResponse { | ||
@@ -253,42 +912,119 @@ /** | ||
} | ||
interface PublishGalleryRequest { | ||
/** ID of the gallery to publish. */ | ||
galleryId?: string; | ||
} | ||
interface PublishGalleryResponse { | ||
/** Published gallery. */ | ||
gallery?: Gallery; | ||
} | ||
interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo: string; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
interface GetGalleryResponseNonNullableFields { | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface GetGalleryItemResponseNonNullableFields { | ||
item?: ItemNonNullableFields; | ||
} | ||
interface CreateGalleryResponseNonNullableFields { | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface DeleteGalleryResponseNonNullableFields { | ||
@@ -298,22 +1034,10 @@ galleryId: string; | ||
interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface CreateGalleryItemResponseNonNullableFields { | ||
item?: ItemNonNullableFields; | ||
} | ||
interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: ItemNonNullableFields; | ||
} | ||
interface DeleteGalleryItemResponseNonNullableFields { | ||
@@ -526,3 +1250,4 @@ itemId: string; | ||
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>; | ||
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>; | ||
fetchWithAuth: typeof fetch; | ||
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>; | ||
} | ||
@@ -567,140 +1292,24 @@ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>; | ||
declare function listGalleries$1(httpClient: HttpClient): (options?: ListGalleriesOptions) => Promise<ListGalleriesResponse & ListGalleriesResponseNonNullableFields>; | ||
declare function getGallery$1(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
declare function listGalleryItems$1(httpClient: HttpClient): (galleryId: string, options?: ListGalleryItemsOptions) => Promise<ListGalleryItemsResponse & ListGalleryItemsResponseNonNullableFields>; | ||
declare function getGalleryItem$1(httpClient: HttpClient): (identifiers: GetGalleryItemIdentifiers) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
declare function createGallery$1(httpClient: HttpClient): (options?: CreateGalleryOptions) => Promise<Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
declare function updateGallery$1(httpClient: HttpClient): (_id: string | null, gallery: UpdateGallery) => Promise<Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
declare function deleteGallery$1(httpClient: HttpClient): (galleryId: string) => Promise<DeleteGalleryResponse & DeleteGalleryResponseNonNullableFields>; | ||
declare function deleteGalleryItems$1(httpClient: HttpClient): (galleryId: string, options?: DeleteGalleryItemsOptions) => Promise<DeleteGalleryItemsResponse & DeleteGalleryItemsResponseNonNullableFields>; | ||
declare function createGalleryItem$1(httpClient: HttpClient): (galleryId: string, item: Item) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
declare function updateGalleryItem$1(httpClient: HttpClient): (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
declare function deleteGalleryItem$1(httpClient: HttpClient): (identifiers: DeleteGalleryItemIdentifiers) => Promise<DeleteGalleryItemResponse & DeleteGalleryItemResponseNonNullableFields>; | ||
declare const onGalleryCreated$1: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">; | ||
declare const onGalleryUpdated$1: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">; | ||
declare const onGalleryDeleted$1: EventDefinition<GalleryDeletedEnvelope, "wix.pro_gallery.gallery_v2_deleted">; | ||
declare const onGalleryItemCreated$1: EventDefinition<GalleryItemCreatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_created">; | ||
declare const onGalleryItemUpdated$1: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">; | ||
declare const onGalleryItemDeleted$1: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">; | ||
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T; | ||
declare const listGalleries: BuildRESTFunction<typeof listGalleries$1>; | ||
declare const getGallery: BuildRESTFunction<typeof getGallery$1>; | ||
declare const listGalleryItems: BuildRESTFunction<typeof listGalleryItems$1>; | ||
declare const getGalleryItem: BuildRESTFunction<typeof getGalleryItem$1>; | ||
declare const createGallery: BuildRESTFunction<typeof createGallery$1>; | ||
declare const updateGallery: BuildRESTFunction<typeof updateGallery$1>; | ||
declare const deleteGallery: BuildRESTFunction<typeof deleteGallery$1>; | ||
declare const deleteGalleryItems: BuildRESTFunction<typeof deleteGalleryItems$1>; | ||
declare const createGalleryItem: BuildRESTFunction<typeof createGalleryItem$1>; | ||
declare const updateGalleryItem: BuildRESTFunction<typeof updateGalleryItem$1>; | ||
declare const deleteGalleryItem: BuildRESTFunction<typeof deleteGalleryItem$1>; | ||
declare const onGalleryCreated: BuildEventDefinition<typeof onGalleryCreated$1>; | ||
declare const onGalleryUpdated: BuildEventDefinition<typeof onGalleryUpdated$1>; | ||
declare const onGalleryDeleted: BuildEventDefinition<typeof onGalleryDeleted$1>; | ||
declare const onGalleryItemCreated: BuildEventDefinition<typeof onGalleryItemCreated$1>; | ||
declare const onGalleryItemUpdated: BuildEventDefinition<typeof onGalleryItemUpdated$1>; | ||
declare const onGalleryItemDeleted: BuildEventDefinition<typeof onGalleryItemDeleted$1>; | ||
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T; | ||
export { createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem }; | ||
declare const listGalleries: ReturnType<typeof createRESTModule<typeof publicListGalleries>>; | ||
declare const getGallery: ReturnType<typeof createRESTModule<typeof publicGetGallery>>; | ||
declare const listGalleryItems: ReturnType<typeof createRESTModule<typeof publicListGalleryItems>>; | ||
declare const getGalleryItem: ReturnType<typeof createRESTModule<typeof publicGetGalleryItem>>; | ||
declare const createGallery: ReturnType<typeof createRESTModule<typeof publicCreateGallery>>; | ||
declare const updateGallery: ReturnType<typeof createRESTModule<typeof publicUpdateGallery>>; | ||
declare const deleteGallery: ReturnType<typeof createRESTModule<typeof publicDeleteGallery>>; | ||
declare const deleteGalleryItems: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItems>>; | ||
declare const createGalleryItem: ReturnType<typeof createRESTModule<typeof publicCreateGalleryItem>>; | ||
declare const updateGalleryItem: ReturnType<typeof createRESTModule<typeof publicUpdateGalleryItem>>; | ||
declare const deleteGalleryItem: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItem>>; | ||
declare const onGalleryCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryCreated>>; | ||
declare const onGalleryUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryUpdated>>; | ||
declare const onGalleryDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryDeleted>>; | ||
declare const onGalleryItemCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemCreated>>; | ||
declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemUpdated>>; | ||
declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryItemDeleted>>; | ||
export { type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type BulkDeleteGalleryItemsRequest, type BulkDeleteGalleryItemsResponse, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemResponseNonNullableFields, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CreateGalleryResponseNonNullableFields, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemResponseNonNullableFields, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryItemsResponseNonNullableFields, type DeleteGalleryRequest, type DeleteGalleryResponse, type DeleteGalleryResponseNonNullableFields, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryNonNullableFields, type GalleryPublished, type GalleryUpdatedEnvelope, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryItemResponseNonNullableFields, type GetGalleryOptions, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryResponseNonNullableFields, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemNonNullableFields, type ItemsInGallery, type Link, LinkRel, LinkType, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleriesResponseNonNullableFields, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type ListGalleryItemsResponseNonNullableFields, type MessageEnvelope, type Page, type PageLink, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, type RestoreInfo, type SearchIndexingNotification, SearchIndexingNotificationState, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type Tags, type Text, type TpaPageLink, Type, type URI, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type UpdateGalleryItem, type UpdateGalleryItemIdentifiers, type UpdateGalleryItemRequest, type UpdateGalleryItemResponse, type UpdateGalleryItemResponseNonNullableFields, type UpdateGalleryRequest, type UpdateGalleryResponse, type UpdateGalleryResponseNonNullableFields, type Video, type VideoResolution, VideoType, WebhookIdentityType, type WhatsAppLink, type WixLink, type WixLinkLinkOneOf, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem }; |
@@ -846,2 +846,15 @@ interface Gallery { | ||
} | ||
interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
interface CreateGalleryItemRequest { | ||
@@ -898,126 +911,110 @@ /** Gallery ID. */ | ||
} | ||
interface UndeleteInfo { | ||
interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo: string; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1028,59 +1025,9 @@ interface DeleteGalleryResponseNonNullableFields { | ||
interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1291,5 +1238,7 @@ interface DeleteGalleryItemResponseNonNullableFields { | ||
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T; | ||
interface HttpClient { | ||
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>; | ||
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>; | ||
fetchWithAuth: typeof fetch; | ||
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>; | ||
} | ||
@@ -1315,2 +1264,3 @@ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>; | ||
}; | ||
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never; | ||
type EventDefinition<Payload = unknown, Type extends string = string> = { | ||
@@ -1324,2 +1274,4 @@ __type: 'event-definition'; | ||
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>; | ||
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>; | ||
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void; | ||
@@ -1333,125 +1285,24 @@ declare global { | ||
declare const __metadata: { | ||
PACKAGE_NAME: string; | ||
}; | ||
declare function listGalleries(httpClient: HttpClient): (options?: ListGalleriesOptions) => Promise<ListGalleriesResponse & ListGalleriesResponseNonNullableFields>; | ||
declare function getGallery(httpClient: HttpClient): (galleryId: string, options?: GetGalleryOptions) => Promise<Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
declare function listGalleryItems(httpClient: HttpClient): (galleryId: string, options?: ListGalleryItemsOptions) => Promise<ListGalleryItemsResponse & ListGalleryItemsResponseNonNullableFields>; | ||
declare function getGalleryItem(httpClient: HttpClient): (identifiers: GetGalleryItemIdentifiers) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
declare function createGallery(httpClient: HttpClient): (options?: CreateGalleryOptions) => Promise<Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
declare function updateGallery(httpClient: HttpClient): (_id: string | null, gallery: UpdateGallery) => Promise<Gallery & { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}[]; | ||
}>; | ||
declare function deleteGallery(httpClient: HttpClient): (galleryId: string) => Promise<DeleteGalleryResponse & DeleteGalleryResponseNonNullableFields>; | ||
declare function deleteGalleryItems(httpClient: HttpClient): (galleryId: string, options?: DeleteGalleryItemsOptions) => Promise<DeleteGalleryItemsResponse & DeleteGalleryItemsResponseNonNullableFields>; | ||
declare function createGalleryItem(httpClient: HttpClient): (galleryId: string, item: Item) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
declare function updateGalleryItem(httpClient: HttpClient): (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem) => Promise<Item & { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
} | undefined; | ||
} | undefined; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | undefined; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
} | undefined; | ||
}>; | ||
declare function deleteGalleryItem(httpClient: HttpClient): (identifiers: DeleteGalleryItemIdentifiers) => Promise<DeleteGalleryItemResponse & DeleteGalleryItemResponseNonNullableFields>; | ||
declare const onGalleryCreated: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">; | ||
declare const onGalleryUpdated: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">; | ||
declare const onGalleryDeleted: EventDefinition<GalleryDeletedEnvelope, "wix.pro_gallery.gallery_v2_deleted">; | ||
declare const onGalleryItemCreated: EventDefinition<GalleryItemCreatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_created">; | ||
declare const onGalleryItemUpdated: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">; | ||
declare const onGalleryItemDeleted: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">; | ||
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T; | ||
export { type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemResponseNonNullableFields, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CreateGalleryResponseNonNullableFields, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemResponseNonNullableFields, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryItemsResponseNonNullableFields, type DeleteGalleryRequest, type DeleteGalleryResponse, type DeleteGalleryResponseNonNullableFields, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryPublished, type GalleryUpdatedEnvelope, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryItemResponseNonNullableFields, type GetGalleryOptions, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryResponseNonNullableFields, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemsInGallery, type Link, LinkRel, LinkType, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleriesResponseNonNullableFields, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type ListGalleryItemsResponseNonNullableFields, type MessageEnvelope, type Page, type PageLink, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type Tags, type Text, type TpaPageLink, Type, type URI, type UndeleteInfo, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type UpdateGalleryItem, type UpdateGalleryItemIdentifiers, type UpdateGalleryItemRequest, type UpdateGalleryItemResponse, type UpdateGalleryItemResponseNonNullableFields, type UpdateGalleryRequest, type UpdateGalleryResponse, type UpdateGalleryResponseNonNullableFields, type Video, type VideoResolution, VideoType, WebhookIdentityType, type WhatsAppLink, type WixLink, type WixLinkLinkOneOf, __metadata, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem }; | ||
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T; | ||
declare const listGalleries: ReturnType<typeof createRESTModule<typeof publicListGalleries>>; | ||
declare const getGallery: ReturnType<typeof createRESTModule<typeof publicGetGallery>>; | ||
declare const listGalleryItems: ReturnType<typeof createRESTModule<typeof publicListGalleryItems>>; | ||
declare const getGalleryItem: ReturnType<typeof createRESTModule<typeof publicGetGalleryItem>>; | ||
declare const createGallery: ReturnType<typeof createRESTModule<typeof publicCreateGallery>>; | ||
declare const updateGallery: ReturnType<typeof createRESTModule<typeof publicUpdateGallery>>; | ||
declare const deleteGallery: ReturnType<typeof createRESTModule<typeof publicDeleteGallery>>; | ||
declare const deleteGalleryItems: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItems>>; | ||
declare const createGalleryItem: ReturnType<typeof createRESTModule<typeof publicCreateGalleryItem>>; | ||
declare const updateGalleryItem: ReturnType<typeof createRESTModule<typeof publicUpdateGalleryItem>>; | ||
declare const deleteGalleryItem: ReturnType<typeof createRESTModule<typeof publicDeleteGalleryItem>>; | ||
declare const onGalleryCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryCreated>>; | ||
declare const onGalleryUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryUpdated>>; | ||
declare const onGalleryDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryDeleted>>; | ||
declare const onGalleryItemCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemCreated>>; | ||
declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemUpdated>>; | ||
declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryItemDeleted>>; | ||
export { type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type BulkDeleteGalleryItemsRequest, type BulkDeleteGalleryItemsResponse, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemResponseNonNullableFields, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CreateGalleryResponseNonNullableFields, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemResponseNonNullableFields, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryItemsResponseNonNullableFields, type DeleteGalleryRequest, type DeleteGalleryResponse, type DeleteGalleryResponseNonNullableFields, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryNonNullableFields, type GalleryPublished, type GalleryUpdatedEnvelope, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryItemResponseNonNullableFields, type GetGalleryOptions, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryResponseNonNullableFields, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemNonNullableFields, type ItemsInGallery, type Link, LinkRel, LinkType, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleriesResponseNonNullableFields, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type ListGalleryItemsResponseNonNullableFields, type MessageEnvelope, type Page, type PageLink, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, type RestoreInfo, type SearchIndexingNotification, SearchIndexingNotificationState, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type Tags, type Text, type TpaPageLink, Type, type URI, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type UpdateGalleryItem, type UpdateGalleryItemIdentifiers, type UpdateGalleryItemRequest, type UpdateGalleryItemResponse, type UpdateGalleryItemResponseNonNullableFields, type UpdateGalleryRequest, type UpdateGalleryResponse, type UpdateGalleryResponseNonNullableFields, type Video, type VideoResolution, VideoType, WebhookIdentityType, type WhatsAppLink, type WixLink, type WixLinkLinkOneOf, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem }; |
@@ -846,2 +846,15 @@ interface Gallery { | ||
} | ||
interface BulkDeleteGalleryItemsRequest { | ||
/** Gallery ID. */ | ||
galleryId?: string; | ||
/** ID of the media item to delete. */ | ||
itemIds?: string[]; | ||
} | ||
interface BulkDeleteGalleryItemsResponse { | ||
/** | ||
* ID of the deleted media items. | ||
* @readonly | ||
*/ | ||
itemIds?: string[]; | ||
} | ||
interface CreateGalleryItemRequest { | ||
@@ -898,126 +911,110 @@ /** Gallery ID. */ | ||
} | ||
interface UndeleteInfo { | ||
interface RestoreInfo { | ||
deletedDate?: Date; | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo: string; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1028,59 +1025,9 @@ interface DeleteGalleryResponseNonNullableFields { | ||
interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1246,3 +1193,2 @@ interface DeleteGalleryItemResponseNonNullableFields { | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -1271,7 +1217,6 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
* @returns Returned gallery. | ||
*/ | ||
declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & NonNullable<GetGalleryResponseNonNullableFields>['gallery']>; | ||
declare function getGallery(galleryId: string, options?: GetGalleryOptions): Promise<Gallery & GalleryNonNullableFields>; | ||
interface GetGalleryOptions extends GetGalleryRequestVersionOneOf { | ||
@@ -1303,3 +1248,2 @@ /** Number of media items to skip in the returns. Defaults to `0`. */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
@@ -1333,7 +1277,6 @@ */ | ||
* @applicableIdentity APP | ||
* @applicableIdentity MEMBER | ||
* @applicableIdentity VISITOR | ||
* @returns Returned media item. | ||
*/ | ||
declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & NonNullable<GetGalleryItemResponseNonNullableFields>['item']>; | ||
declare function getGalleryItem(identifiers: GetGalleryItemIdentifiers): Promise<Item & ItemNonNullableFields>; | ||
interface GetGalleryItemIdentifiers { | ||
@@ -1369,3 +1312,3 @@ /** Gallery ID. */ | ||
*/ | ||
declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & NonNullable<CreateGalleryResponseNonNullableFields>['gallery']>; | ||
declare function createGallery(options?: CreateGalleryOptions): Promise<Gallery & GalleryNonNullableFields>; | ||
interface CreateGalleryOptions { | ||
@@ -1402,3 +1345,3 @@ /** Gallery to create. */ | ||
*/ | ||
declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & NonNullable<UpdateGalleryResponseNonNullableFields>['gallery']>; | ||
declare function updateGallery(_id: string | null, gallery: UpdateGallery): Promise<Gallery & GalleryNonNullableFields>; | ||
interface UpdateGallery { | ||
@@ -1453,2 +1396,5 @@ /** | ||
* @applicableIdentity APP | ||
* @deprecated | ||
* @replacedBy com.wixpress.exposure.progallery.BulkDeleteGalleryItems | ||
* @targetRemovalDate 2024-08-15 | ||
*/ | ||
@@ -1491,3 +1437,3 @@ declare function deleteGalleryItems(galleryId: string, options?: DeleteGalleryItemsOptions): Promise<DeleteGalleryItemsResponse & DeleteGalleryItemsResponseNonNullableFields>; | ||
*/ | ||
declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & NonNullable<CreateGalleryItemResponseNonNullableFields>['item']>; | ||
declare function createGalleryItem(galleryId: string, item: Item): Promise<Item & ItemNonNullableFields>; | ||
/** | ||
@@ -1520,3 +1466,3 @@ * Updates a media item in a specified gallery. | ||
*/ | ||
declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & NonNullable<UpdateGalleryItemResponseNonNullableFields>['item']>; | ||
declare function updateGalleryItem(identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item & ItemNonNullableFields>; | ||
interface UpdateGalleryItemIdentifiers { | ||
@@ -1594,2 +1540,2 @@ /** ID of the gallery containing the item to update. */ | ||
export { type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemResponseNonNullableFields, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CreateGalleryResponseNonNullableFields, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemResponseNonNullableFields, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryItemsResponseNonNullableFields, type DeleteGalleryRequest, type DeleteGalleryResponse, type DeleteGalleryResponseNonNullableFields, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryPublished, type GalleryUpdatedEnvelope, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryItemResponseNonNullableFields, type GetGalleryOptions, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryResponseNonNullableFields, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemsInGallery, type Link, LinkRel, LinkType, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleriesResponseNonNullableFields, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type ListGalleryItemsResponseNonNullableFields, type MessageEnvelope, type Page, type PageLink, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, type SearchIndexingNotification, SearchIndexingNotificationState, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type Tags, type Text, type TpaPageLink, Type, type URI, type UndeleteInfo, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type UpdateGalleryItem, type UpdateGalleryItemIdentifiers, type UpdateGalleryItemRequest, type UpdateGalleryItemResponse, type UpdateGalleryItemResponseNonNullableFields, type UpdateGalleryRequest, type UpdateGalleryResponse, type UpdateGalleryResponseNonNullableFields, type Video, type VideoResolution, VideoType, WebhookIdentityType, type WhatsAppLink, type WixLink, type WixLinkLinkOneOf, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem }; | ||
export { type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type BulkDeleteGalleryItemsRequest, type BulkDeleteGalleryItemsResponse, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemResponseNonNullableFields, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CreateGalleryResponseNonNullableFields, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemResponseNonNullableFields, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryItemsResponseNonNullableFields, type DeleteGalleryRequest, type DeleteGalleryResponse, type DeleteGalleryResponseNonNullableFields, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryNonNullableFields, type GalleryPublished, type GalleryUpdatedEnvelope, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryItemResponseNonNullableFields, type GetGalleryOptions, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryResponseNonNullableFields, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemNonNullableFields, type ItemsInGallery, type Link, LinkRel, LinkType, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleriesResponseNonNullableFields, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type ListGalleryItemsResponseNonNullableFields, type MessageEnvelope, type Page, type PageLink, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, type RestoreInfo, type SearchIndexingNotification, SearchIndexingNotificationState, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type Tags, type Text, type TpaPageLink, Type, type URI, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type UpdateGalleryItem, type UpdateGalleryItemIdentifiers, type UpdateGalleryItemRequest, type UpdateGalleryItemResponse, type UpdateGalleryItemResponseNonNullableFields, type UpdateGalleryRequest, type UpdateGalleryResponse, type UpdateGalleryResponseNonNullableFields, type Video, type VideoResolution, VideoType, WebhookIdentityType, type WhatsAppLink, type WixLink, type WixLinkLinkOneOf, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem }; |
@@ -84,3 +84,3 @@ interface Gallery$1 { | ||
} | ||
declare enum LinkType { | ||
declare enum LinkType$1 { | ||
UNDEFINED = "UNDEFINED", | ||
@@ -97,3 +97,3 @@ /** external link */ | ||
*/ | ||
declare enum LinkRel { | ||
declare enum LinkRel$1 { | ||
/** default (not implemented) */ | ||
@@ -133,3 +133,3 @@ unknown_link_rel = "unknown_link_rel", | ||
} | ||
declare enum ImageType { | ||
declare enum ImageType$1 { | ||
UNDEFINED = "UNDEFINED", | ||
@@ -396,657 +396,126 @@ WIX_MEDIA = "WIX_MEDIA", | ||
} | ||
interface CommonImageNonNullableFields { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
} | ||
interface PointNonNullableFields$1 { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields$1 { | ||
type: ImageType$1; | ||
imageInfo?: CommonImageNonNullableFields; | ||
focalPoint?: PointNonNullableFields$1; | ||
} | ||
interface VideoResolutionNonNullableFields { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: CommonImageNonNullableFields; | ||
format: string; | ||
} | ||
interface VideoV2NonNullableFields { | ||
id: string; | ||
url: string; | ||
resolutions: VideoResolutionNonNullableFields[]; | ||
posters: CommonImageNonNullableFields[]; | ||
} | ||
interface VideoNonNullableFields$1 { | ||
type: VideoType$1; | ||
videoInfo?: VideoV2NonNullableFields; | ||
} | ||
interface ExternalLinkNonNullableFields$1 { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields$1 { | ||
pageId: string; | ||
rel: LinkRel$1[]; | ||
} | ||
interface AnchorLinkNonNullableFields$1 { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel$1[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields$1 { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel$1[]; | ||
} | ||
interface DocumentLinkNonNullableFields$1 { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields$1 { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields$1 { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields$1 { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields$1 { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields$1 { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel$1[]; | ||
} | ||
interface WixLinkNonNullableFields$1 { | ||
external?: ExternalLinkNonNullableFields$1; | ||
page?: PageLinkNonNullableFields$1; | ||
anchor?: AnchorLinkNonNullableFields$1; | ||
dynamicPage?: DynamicPageLinkNonNullableFields$1; | ||
document?: DocumentLinkNonNullableFields$1; | ||
email?: EmailLinkNonNullableFields$1; | ||
phone?: PhoneLinkNonNullableFields$1; | ||
address?: AddressLinkNonNullableFields$1; | ||
whatsApp?: WhatsAppLinkNonNullableFields$1; | ||
tpaPage?: TpaPageLinkNonNullableFields$1; | ||
} | ||
interface LinkNonNullableFields$1 { | ||
type: LinkType$1; | ||
wixLinkData?: WixLinkNonNullableFields$1; | ||
} | ||
interface TagsNonNullableFields$1 { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields$1 { | ||
image?: ImageNonNullableFields$1; | ||
} | ||
interface ItemNonNullableFields$1 { | ||
image?: ImageNonNullableFields$1; | ||
video?: VideoNonNullableFields$1; | ||
link?: LinkNonNullableFields$1; | ||
type: Type$1; | ||
tags?: TagsNonNullableFields$1; | ||
secondaryMedia?: SecondaryMediaNonNullableFields$1; | ||
} | ||
interface GalleryNonNullableFields$1 { | ||
items: ItemNonNullableFields$1[]; | ||
} | ||
interface ListGalleriesResponseNonNullableFields$1 { | ||
galleries: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields$1[]; | ||
} | ||
interface GetGalleryResponseNonNullableFields$1 { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields$1; | ||
} | ||
interface ListGalleryItemsResponseNonNullableFields$1 { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields$1[]; | ||
} | ||
interface GetGalleryItemResponseNonNullableFields$1 { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields$1; | ||
} | ||
interface CreateGalleryResponseNonNullableFields$1 { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields$1; | ||
} | ||
interface UpdateGalleryResponseNonNullableFields$1 { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields$1; | ||
} | ||
@@ -1057,326 +526,9 @@ interface DeleteGalleryResponseNonNullableFields$1 { | ||
interface DeleteGalleryItemsResponseNonNullableFields$1 { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields$1; | ||
} | ||
interface CreateGalleryItemResponseNonNullableFields$1 { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields$1; | ||
} | ||
interface UpdateGalleryItemResponseNonNullableFields$1 { | ||
item?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType$1; | ||
videoInfo?: { | ||
id: string; | ||
url: string; | ||
resolutions: { | ||
url: string; | ||
height: number; | ||
width: number; | ||
poster?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
format: string; | ||
}[]; | ||
posters: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}[]; | ||
}; | ||
}; | ||
link?: { | ||
type: LinkType; | ||
wixLinkData?: { | ||
external?: { | ||
url: string; | ||
}; | ||
page?: { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
anchor?: { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
}; | ||
dynamicPage?: { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
}; | ||
document?: { | ||
docId: string; | ||
indexable: boolean; | ||
}; | ||
email?: { | ||
recipient: string; | ||
}; | ||
phone?: { | ||
phoneNumber: string; | ||
}; | ||
address?: { | ||
address: string; | ||
}; | ||
whatsApp?: { | ||
phoneNumber: string; | ||
}; | ||
tpaPage?: { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
}; | ||
}; | ||
}; | ||
type: Type$1; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
secondaryMedia?: { | ||
image?: { | ||
type: ImageType; | ||
imageInfo?: { | ||
id: string; | ||
url: string; | ||
height: number; | ||
width: number; | ||
}; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields$1; | ||
} | ||
@@ -1470,2 +622,26 @@ interface DeleteGalleryItemResponseNonNullableFields$1 { | ||
} | ||
declare enum LinkType { | ||
UNDEFINED = "UNDEFINED", | ||
/** external link */ | ||
EXTERNAL = "EXTERNAL", | ||
/** for internal usage using wixLinkData */ | ||
INTERNAL = "INTERNAL" | ||
} | ||
/** | ||
* The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. | ||
* Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel | ||
* Following are the accepted 'rel' types by Wix applications. | ||
*/ | ||
declare enum LinkRel { | ||
/** default (not implemented) */ | ||
unknown_link_rel = "unknown_link_rel", | ||
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */ | ||
nofollow = "nofollow", | ||
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */ | ||
noopener = "noopener", | ||
/** No Referer header will be included. Additionally, has the same effect as noopener. */ | ||
noreferrer = "noreferrer", | ||
/** Indicates a link that resulted from advertisements or paid placements. */ | ||
sponsored = "sponsored" | ||
} | ||
declare enum Type { | ||
@@ -1494,2 +670,7 @@ UNDEFINED = "UNDEFINED", | ||
} | ||
declare enum ImageType { | ||
UNDEFINED = "UNDEFINED", | ||
WIX_MEDIA = "WIX_MEDIA", | ||
EXTERNAL = "EXTERNAL" | ||
} | ||
interface Point { | ||
@@ -1693,123 +874,107 @@ /** X-coordinate of the focal point. */ | ||
} | ||
interface PointNonNullableFields { | ||
x: number; | ||
y: number; | ||
} | ||
interface ImageNonNullableFields { | ||
type: ImageType; | ||
imageInfo: string; | ||
focalPoint?: PointNonNullableFields; | ||
} | ||
interface VideoNonNullableFields { | ||
type: VideoType; | ||
videoInfo: string; | ||
} | ||
interface ExternalLinkNonNullableFields { | ||
url: string; | ||
} | ||
interface PageLinkNonNullableFields { | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface AnchorLinkNonNullableFields { | ||
anchorName: string; | ||
anchorDataId: string; | ||
pageId: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DynamicPageLinkNonNullableFields { | ||
routerId: string; | ||
innerRoute: string; | ||
rel: LinkRel[]; | ||
} | ||
interface DocumentLinkNonNullableFields { | ||
docId: string; | ||
indexable: boolean; | ||
} | ||
interface EmailLinkNonNullableFields { | ||
recipient: string; | ||
} | ||
interface PhoneLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface AddressLinkNonNullableFields { | ||
address: string; | ||
} | ||
interface WhatsAppLinkNonNullableFields { | ||
phoneNumber: string; | ||
} | ||
interface TpaPageLinkNonNullableFields { | ||
itemTypeIdentifier: string; | ||
itemId: string; | ||
pageId: string; | ||
appDefinitionId: string; | ||
path: string; | ||
rel: LinkRel[]; | ||
} | ||
interface WixLinkNonNullableFields { | ||
external?: ExternalLinkNonNullableFields; | ||
page?: PageLinkNonNullableFields; | ||
anchor?: AnchorLinkNonNullableFields; | ||
dynamicPage?: DynamicPageLinkNonNullableFields; | ||
document?: DocumentLinkNonNullableFields; | ||
email?: EmailLinkNonNullableFields; | ||
phone?: PhoneLinkNonNullableFields; | ||
address?: AddressLinkNonNullableFields; | ||
whatsApp?: WhatsAppLinkNonNullableFields; | ||
tpaPage?: TpaPageLinkNonNullableFields; | ||
} | ||
interface LinkNonNullableFields { | ||
type: LinkType; | ||
wixLinkData?: WixLinkNonNullableFields; | ||
} | ||
interface TagsNonNullableFields { | ||
values: string[]; | ||
} | ||
interface SecondaryMediaNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
} | ||
interface ItemNonNullableFields { | ||
image?: ImageNonNullableFields; | ||
video?: VideoNonNullableFields; | ||
link?: LinkNonNullableFields; | ||
type: Type; | ||
tags?: TagsNonNullableFields; | ||
secondaryMedia?: SecondaryMediaNonNullableFields; | ||
} | ||
interface GalleryNonNullableFields { | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface ListGalleriesResponseNonNullableFields { | ||
galleries: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}[]; | ||
galleries: GalleryNonNullableFields[]; | ||
} | ||
interface GetGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface ListGalleryItemsResponseNonNullableFields { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
items: ItemNonNullableFields[]; | ||
} | ||
interface GetGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
interface CreateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface UpdateGalleryResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
@@ -1820,59 +985,9 @@ interface DeleteGalleryResponseNonNullableFields { | ||
interface DeleteGalleryItemsResponseNonNullableFields { | ||
gallery?: { | ||
items: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}[]; | ||
}; | ||
gallery?: GalleryNonNullableFields; | ||
} | ||
interface CreateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
interface UpdateGalleryItemResponseNonNullableFields { | ||
item?: { | ||
image?: { | ||
imageInfo: string; | ||
focalPoint?: { | ||
x: number; | ||
y: number; | ||
}; | ||
}; | ||
video?: { | ||
type: VideoType; | ||
videoInfo: string; | ||
}; | ||
type: Type; | ||
tags?: { | ||
values: string[]; | ||
}; | ||
}; | ||
item?: ItemNonNullableFields; | ||
} | ||
@@ -1879,0 +994,0 @@ interface DeleteGalleryItemResponseNonNullableFields { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
706175
15475
Updated@wix/sdk-runtime@^0.3.14
Updated@wix/sdk-types@^1.9.2