@wix/pro-gallery_pro-gallery
Advanced tools
Comparing version 1.0.34 to 1.0.35
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context.js'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.context"), exports); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.context.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.universal.js'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.universal"), exports); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.universal.js"), exports); | ||
//# sourceMappingURL=index.typings.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.meta'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.meta.js'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.meta"), exports); | ||
__exportStar(require("./src/pro-gallery-v2-gallery-pro-gallery.meta.js"), exports); | ||
//# sourceMappingURL=meta.js.map |
@@ -1,10 +0,10 @@ | ||
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, bulkDeleteGalleryItems as publicBulkDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
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, bulkDeleteGalleryItems as publicBulkDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; | ||
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryDeleted as publicOnGalleryDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemCreated as publicOnGalleryItemCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemUpdated as publicOnGalleryItemUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryDeleted as publicOnGalleryDeleted } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemCreated as publicOnGalleryItemCreated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemUpdated as publicOnGalleryItemUpdated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
export declare const listGalleries: MaybeContext<BuildRESTFunction<typeof publicListGalleries> & typeof publicListGalleries>; | ||
@@ -22,4 +22,2 @@ export declare const getGallery: MaybeContext<BuildRESTFunction<typeof publicGetGallery> & typeof publicGetGallery>; | ||
export declare const deleteGalleryItem: MaybeContext<BuildRESTFunction<typeof publicDeleteGalleryItem> & typeof publicDeleteGalleryItem>; | ||
export { publicOnGalleryCreated }; | ||
export type _publicOnGalleryCreatedType = typeof publicOnGalleryCreated; | ||
/** | ||
@@ -31,18 +29,23 @@ * Triggered when a gallery is created. | ||
*/ | ||
export declare const onGalleryCreated: ReturnType<typeof createEventModule<_publicOnGalleryCreatedType>>; | ||
export { publicOnGalleryDeleted }; | ||
export type _publicOnGalleryDeletedType = typeof publicOnGalleryDeleted; | ||
export declare const onGalleryCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryCreated>>; | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
export declare const onGalleryUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryUpdated>>; | ||
/** | ||
* Triggered when a gallery is deleted. | ||
*/ | ||
export declare const onGalleryDeleted: ReturnType<typeof createEventModule<_publicOnGalleryDeletedType>>; | ||
export { publicOnGalleryItemCreated }; | ||
export type _publicOnGalleryItemCreatedType = typeof publicOnGalleryItemCreated; | ||
export declare const onGalleryDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryDeleted>>; | ||
/** | ||
* Triggered when a media item in a specified gallery is created. | ||
*/ | ||
export declare const onGalleryItemCreated: ReturnType<typeof createEventModule<_publicOnGalleryItemCreatedType>>; | ||
export { publicOnGalleryItemDeleted }; | ||
export type _publicOnGalleryItemDeletedType = typeof publicOnGalleryItemDeleted; | ||
export declare const onGalleryItemCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemCreated>>; | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
export declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemUpdated>>; | ||
/** | ||
* Triggered when a media item in a specified gallery is deleted. | ||
@@ -53,19 +56,4 @@ * | ||
*/ | ||
export declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<_publicOnGalleryItemDeletedType>>; | ||
export { publicOnGalleryItemUpdated }; | ||
export type _publicOnGalleryItemUpdatedType = typeof publicOnGalleryItemUpdated; | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
export declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<_publicOnGalleryItemUpdatedType>>; | ||
export { publicOnGalleryUpdated }; | ||
export type _publicOnGalleryUpdatedType = typeof publicOnGalleryUpdated; | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
export declare const onGalleryUpdated: ReturnType<typeof createEventModule<_publicOnGalleryUpdatedType>>; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, WebhookIdentityType, State, Enum, SearchIndexingNotificationState, } 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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryRevisionRequest, GetGalleryRevisionResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, Empty, HtmlSitePublished, EventsPage, HtmlSiteRCPublished, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, 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, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, DocumentUpdateOperation, IndexDocument, DocumentPayload, DocumentImage, DeleteByIdsOperation, DeleteByFilterOperation, UpdateByFilterOperation, UpdateExistingOperation, SearchIndexingNotification, ItemNonNullableFields, GalleryNonNullableFields, ListGalleriesResponseNonNullableFields, GetGalleryResponseNonNullableFields, ListGalleryItemsResponseNonNullableFields, GetGalleryItemResponseNonNullableFields, CreateGalleryResponseNonNullableFields, UpdateGalleryResponseNonNullableFields, DeleteGalleryResponseNonNullableFields, DeleteGalleryItemsResponseNonNullableFields, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryItemResponseNonNullableFields, UpdateGalleryItemResponseNonNullableFields, DeleteGalleryItemResponseNonNullableFields, BaseEventMetadata, EventMetadata, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryUpdatedEnvelope, ListGalleriesOptions, GetGalleryOptions, ListGalleryItemsOptions, GetGalleryItemIdentifiers, CreateGalleryOptions, UpdateGallery, DeleteGalleryItemsOptions, UpdateGalleryItemIdentifiers, UpdateGalleryItem, DeleteGalleryItemIdentifiers, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryItemDeleted>>; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, RCLabel, WebhookIdentityType, Enum, SearchIndexingNotificationState, State, } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryRevisionRequest, GetGalleryRevisionResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, Empty, HtmlSitePublished, EventsPage, HtmlSiteRCPublished, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, 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, ItemNonNullableFields, GalleryNonNullableFields, ListGalleriesResponseNonNullableFields, GetGalleryResponseNonNullableFields, ListGalleryItemsResponseNonNullableFields, GetGalleryItemResponseNonNullableFields, CreateGalleryResponseNonNullableFields, UpdateGalleryResponseNonNullableFields, DeleteGalleryResponseNonNullableFields, DeleteGalleryItemsResponseNonNullableFields, BulkDeleteGalleryItemsResponseNonNullableFields, 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.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SearchIndexingNotificationState = exports.Enum = exports.State = exports.WebhookIdentityType = exports.VideoType = exports.ImageType = exports.Type = exports.LinkRel = exports.LinkType = exports.onGalleryUpdated = exports.publicOnGalleryUpdated = exports.onGalleryItemUpdated = exports.publicOnGalleryItemUpdated = exports.onGalleryItemDeleted = exports.publicOnGalleryItemDeleted = exports.onGalleryItemCreated = exports.publicOnGalleryItemCreated = exports.onGalleryDeleted = exports.publicOnGalleryDeleted = exports.onGalleryCreated = exports.publicOnGalleryCreated = exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.bulkDeleteGalleryItems = 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"); | ||
exports.State = exports.SearchIndexingNotificationState = exports.Enum = exports.WebhookIdentityType = exports.RCLabel = 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.bulkDeleteGalleryItems = 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_js_1 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
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"); | ||
Object.defineProperty(exports, "publicOnGalleryCreated", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_public_2.onGalleryCreated; } }); | ||
const pro_gallery_v2_gallery_pro_gallery_public_3 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
Object.defineProperty(exports, "publicOnGalleryDeleted", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_public_3.onGalleryDeleted; } }); | ||
const pro_gallery_v2_gallery_pro_gallery_public_4 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
Object.defineProperty(exports, "publicOnGalleryItemCreated", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_public_4.onGalleryItemCreated; } }); | ||
const pro_gallery_v2_gallery_pro_gallery_public_5 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
Object.defineProperty(exports, "publicOnGalleryItemDeleted", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_public_5.onGalleryItemDeleted; } }); | ||
const pro_gallery_v2_gallery_pro_gallery_public_6 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
Object.defineProperty(exports, "publicOnGalleryItemUpdated", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_public_6.onGalleryItemUpdated; } }); | ||
const pro_gallery_v2_gallery_pro_gallery_public_7 = require("./pro-gallery-v2-gallery-pro-gallery.public"); | ||
Object.defineProperty(exports, "publicOnGalleryUpdated", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_public_7.onGalleryUpdated; } }); | ||
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.bulkDeleteGalleryItems = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_1.bulkDeleteGalleryItems); | ||
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); | ||
const pro_gallery_v2_gallery_pro_gallery_public_js_2 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_js_3 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_js_4 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_js_5 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_js_6 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
const pro_gallery_v2_gallery_pro_gallery_public_js_7 = require("./pro-gallery-v2-gallery-pro-gallery.public.js"); | ||
exports.listGalleries = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.listGalleries); | ||
exports.getGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.getGallery); | ||
exports.listGalleryItems = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.listGalleryItems); | ||
exports.getGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.getGalleryItem); | ||
exports.createGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.createGallery); | ||
exports.updateGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.updateGallery); | ||
exports.deleteGallery = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.deleteGallery); | ||
exports.deleteGalleryItems = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.deleteGalleryItems); | ||
exports.bulkDeleteGalleryItems = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.bulkDeleteGalleryItems); | ||
exports.createGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.createGalleryItem); | ||
exports.updateGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.updateGalleryItem); | ||
exports.deleteGalleryItem = (0, rest_modules_1.createRESTModule)(pro_gallery_v2_gallery_pro_gallery_public_js_1.deleteGalleryItem); | ||
/** | ||
@@ -37,12 +31,23 @@ * Triggered when a gallery is created. | ||
*/ | ||
exports.onGalleryCreated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_2.onGalleryCreated); | ||
exports.onGalleryCreated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_js_2.onGalleryCreated); | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
exports.onGalleryUpdated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_js_3.onGalleryUpdated); | ||
/** | ||
* Triggered when a gallery is deleted. | ||
*/ | ||
exports.onGalleryDeleted = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_3.onGalleryDeleted); | ||
exports.onGalleryDeleted = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_js_4.onGalleryDeleted); | ||
/** | ||
* Triggered when a media item in a specified gallery is created. | ||
*/ | ||
exports.onGalleryItemCreated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_4.onGalleryItemCreated); | ||
exports.onGalleryItemCreated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_js_5.onGalleryItemCreated); | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
exports.onGalleryItemUpdated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_js_6.onGalleryItemUpdated); | ||
/** | ||
* Triggered when a media item in a specified gallery is deleted. | ||
@@ -53,24 +58,14 @@ * | ||
*/ | ||
exports.onGalleryItemDeleted = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_5.onGalleryItemDeleted); | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
exports.onGalleryItemUpdated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_6.onGalleryItemUpdated); | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
exports.onGalleryUpdated = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_7.onGalleryUpdated); | ||
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, "State", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_1.State; } }); | ||
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; } }); | ||
exports.onGalleryItemDeleted = (0, event_definition_modules_1.createEventModule)(pro_gallery_v2_gallery_pro_gallery_public_js_7.onGalleryItemDeleted); | ||
var pro_gallery_v2_gallery_pro_gallery_universal_js_1 = require("./pro-gallery-v2-gallery-pro-gallery.universal.js"); | ||
Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.LinkType; } }); | ||
Object.defineProperty(exports, "LinkRel", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.LinkRel; } }); | ||
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.Type; } }); | ||
Object.defineProperty(exports, "ImageType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.ImageType; } }); | ||
Object.defineProperty(exports, "VideoType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.VideoType; } }); | ||
Object.defineProperty(exports, "RCLabel", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.RCLabel; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.WebhookIdentityType; } }); | ||
Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.Enum; } }); | ||
Object.defineProperty(exports, "SearchIndexingNotificationState", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.SearchIndexingNotificationState; } }); | ||
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_1.State; } }); | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.context.js.map |
@@ -62,11 +62,11 @@ "use strict"; | ||
], | ||
'*.dev.wix-code.com': [ | ||
'api._api_base_domain_': [ | ||
{ | ||
srcPath: '/_api/pro-gallery-server', | ||
srcPath: '/pro-gallery-server', | ||
destPath: '', | ||
}, | ||
], | ||
'api._api_base_domain_': [ | ||
'*.dev.wix-code.com': [ | ||
{ | ||
srcPath: '/prime-server-proxy', | ||
srcPath: '/_api/pro-gallery-server', | ||
destPath: '', | ||
@@ -73,0 +73,0 @@ }, |
@@ -1,3 +0,3 @@ | ||
import * as ambassadorWixProGalleryV2GalleryTypes from './pro-gallery-v2-gallery-pro-gallery.types'; | ||
import * as ambassadorWixProGalleryV2GalleryUniversalTypes from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
import * as ambassadorWixProGalleryV2GalleryTypes from './pro-gallery-v2-gallery-pro-gallery.types.js'; | ||
import * as ambassadorWixProGalleryV2GalleryUniversalTypes from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = { | ||
@@ -4,0 +4,0 @@ getUrl: (context: any) => string; |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.bulkDeleteGalleryItems = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = void 0; | ||
const ambassadorWixProGalleryV2Gallery = __importStar(require("./pro-gallery-v2-gallery-pro-gallery.http")); | ||
const ambassadorWixProGalleryV2Gallery = __importStar(require("./pro-gallery-v2-gallery-pro-gallery.http.js")); | ||
function listGalleries() { | ||
@@ -30,0 +30,0 @@ const payload = {}; |
import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
import { BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ItemNonNullableFields, ListGalleriesOptions, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
import { BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ItemNonNullableFields, ListGalleriesOptions, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
export declare const __metadata: { | ||
@@ -162,7 +162,7 @@ PACKAGE_NAME: string; | ||
export declare const onGalleryCreated: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">; | ||
export declare const onGalleryUpdated: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">; | ||
export declare const onGalleryDeleted: EventDefinition<GalleryDeletedEnvelope, "wix.pro_gallery.gallery_v2_deleted">; | ||
export declare const onGalleryItemCreated: EventDefinition<GalleryItemCreatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_created">; | ||
export declare const onGalleryItemUpdated: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">; | ||
export declare const onGalleryItemDeleted: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">; | ||
export declare const onGalleryItemUpdated: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">; | ||
export declare const onGalleryUpdated: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, 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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, GetGalleryRevisionRequest, GetGalleryRevisionResponse, 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'; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, 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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, GetGalleryRevisionRequest, GetGalleryRevisionResponse, 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, RCLabel, 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.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebhookIdentityType = exports.VideoType = exports.Type = exports.State = exports.SearchIndexingNotificationState = exports.LinkType = exports.LinkRel = exports.ImageType = exports.Enum = exports.onGalleryUpdated = exports.onGalleryItemUpdated = exports.onGalleryItemDeleted = exports.onGalleryItemCreated = exports.onGalleryDeleted = exports.onGalleryCreated = exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.bulkDeleteGalleryItems = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = exports.__metadata = void 0; | ||
exports.WebhookIdentityType = exports.VideoType = exports.Type = exports.State = exports.SearchIndexingNotificationState = exports.RCLabel = exports.LinkType = exports.LinkRel = exports.ImageType = exports.Enum = exports.onGalleryItemDeleted = exports.onGalleryItemUpdated = exports.onGalleryItemCreated = exports.onGalleryDeleted = exports.onGalleryUpdated = exports.onGalleryCreated = exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.bulkDeleteGalleryItems = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = exports.__metadata = void 0; | ||
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys"); | ||
@@ -11,6 +11,6 @@ const float_1 = require("@wix/sdk-runtime/transformations/float"); | ||
const sdk_types_1 = require("@wix/sdk-types"); | ||
const pro_gallery_v2_gallery_pro_gallery_universal_1 = require("./pro-gallery-v2-gallery-pro-gallery.universal"); | ||
const pro_gallery_v2_gallery_pro_gallery_universal_js_1 = require("./pro-gallery-v2-gallery-pro-gallery.universal.js"); | ||
exports.__metadata = { PACKAGE_NAME: '@wix/pro-gallery' }; | ||
function listGalleries(httpClient) { | ||
return (options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.listGalleries)(options, | ||
return (options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.listGalleries)(options, | ||
// @ts-ignore | ||
@@ -21,3 +21,3 @@ { httpClient }); | ||
function getGallery(httpClient) { | ||
return (galleryId, options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.getGallery)(galleryId, options, | ||
return (galleryId, options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.getGallery)(galleryId, options, | ||
// @ts-ignore | ||
@@ -28,3 +28,3 @@ { httpClient }); | ||
function listGalleryItems(httpClient) { | ||
return (galleryId, options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.listGalleryItems)(galleryId, options, | ||
return (galleryId, options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.listGalleryItems)(galleryId, options, | ||
// @ts-ignore | ||
@@ -35,3 +35,3 @@ { httpClient }); | ||
function getGalleryItem(httpClient) { | ||
return (identifiers) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.getGalleryItem)(identifiers, | ||
return (identifiers) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.getGalleryItem)(identifiers, | ||
// @ts-ignore | ||
@@ -42,3 +42,3 @@ { httpClient }); | ||
function createGallery(httpClient) { | ||
return (options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.createGallery)(options, | ||
return (options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.createGallery)(options, | ||
// @ts-ignore | ||
@@ -49,3 +49,3 @@ { httpClient }); | ||
function updateGallery(httpClient) { | ||
return (_id, gallery) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.updateGallery)(_id, gallery, | ||
return (_id, gallery) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.updateGallery)(_id, gallery, | ||
// @ts-ignore | ||
@@ -56,3 +56,3 @@ { httpClient }); | ||
function deleteGallery(httpClient) { | ||
return (galleryId) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.deleteGallery)(galleryId, | ||
return (galleryId) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.deleteGallery)(galleryId, | ||
// @ts-ignore | ||
@@ -63,3 +63,3 @@ { httpClient }); | ||
function deleteGalleryItems(httpClient) { | ||
return (galleryId, options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.deleteGalleryItems)(galleryId, options, | ||
return (galleryId, options) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.deleteGalleryItems)(galleryId, options, | ||
// @ts-ignore | ||
@@ -70,3 +70,3 @@ { httpClient }); | ||
function bulkDeleteGalleryItems(httpClient) { | ||
return (galleryId, itemIds) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.bulkDeleteGalleryItems)(galleryId, itemIds, | ||
return (galleryId, itemIds) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.bulkDeleteGalleryItems)(galleryId, itemIds, | ||
// @ts-ignore | ||
@@ -77,3 +77,3 @@ { httpClient }); | ||
function createGalleryItem(httpClient) { | ||
return (galleryId, item) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.createGalleryItem)(galleryId, item, | ||
return (galleryId, item) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.createGalleryItem)(galleryId, item, | ||
// @ts-ignore | ||
@@ -84,3 +84,3 @@ { httpClient }); | ||
function updateGalleryItem(httpClient) { | ||
return (identifiers, item) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.updateGalleryItem)(identifiers, item, | ||
return (identifiers, item) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.updateGalleryItem)(identifiers, item, | ||
// @ts-ignore | ||
@@ -91,3 +91,3 @@ { httpClient }); | ||
function deleteGalleryItem(httpClient) { | ||
return (identifiers) => (0, pro_gallery_v2_gallery_pro_gallery_universal_1.deleteGalleryItem)(identifiers, | ||
return (identifiers) => (0, pro_gallery_v2_gallery_pro_gallery_universal_js_1.deleteGalleryItem)(identifiers, | ||
// @ts-ignore | ||
@@ -138,2 +138,43 @@ { httpClient }); | ||
])))(); | ||
exports.onGalleryUpdated = (0, sdk_types_1.EventDefinition)('wix.pro_gallery.gallery_v2_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
{ | ||
transformFn: float_1.transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ path: 'entity.sortOrder' }, | ||
{ path: 'entity.items.sortOrder' }, | ||
{ path: 'entity.items.image.focalPoint.x' }, | ||
{ path: 'entity.items.image.focalPoint.y' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.x' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.y' }, | ||
{ path: 'entity.items.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.image.unsharpMasking.radius' }, | ||
{ path: 'entity.items.image.unsharpMasking.threshold' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.radius' }, | ||
{ | ||
path: 'entity.items.secondaryMedia.image.unsharpMasking.threshold', | ||
}, | ||
], | ||
}, | ||
{ | ||
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.createdDate' }, | ||
{ path: 'entity.items.createdDate' }, | ||
{ path: 'entity.items.updatedDate' }, | ||
{ path: 'metadata.eventTime' }, | ||
], | ||
}, | ||
{ | ||
transformFn: image_1.transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.items.image.imageInfo' }, | ||
{ path: 'entity.items.secondaryMedia.image.imageInfo' }, | ||
], | ||
}, | ||
{ | ||
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2, | ||
paths: [{ path: 'entity.items.video.videoInfo' }], | ||
}, | ||
])))(); | ||
exports.onGalleryDeleted = (0, sdk_types_1.EventDefinition)('wix.pro_gallery.gallery_v2_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
@@ -221,8 +262,2 @@ { | ||
])))(); | ||
exports.onGalleryItemDeleted = (0, sdk_types_1.EventDefinition)('wix.pro_gallery.gallery_v2_gallery_item_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
{ | ||
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp, | ||
paths: [{ path: 'metadata.eventTime' }], | ||
}, | ||
])))(); | ||
exports.onGalleryItemUpdated = (0, sdk_types_1.EventDefinition)('wix.pro_gallery.gallery_v2_gallery_item_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
@@ -271,53 +306,19 @@ { | ||
])))(); | ||
exports.onGalleryUpdated = (0, sdk_types_1.EventDefinition)('wix.pro_gallery.gallery_v2_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
exports.onGalleryItemDeleted = (0, sdk_types_1.EventDefinition)('wix.pro_gallery.gallery_v2_gallery_item_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [ | ||
{ | ||
transformFn: float_1.transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ path: 'entity.sortOrder' }, | ||
{ path: 'entity.items.sortOrder' }, | ||
{ path: 'entity.items.image.focalPoint.x' }, | ||
{ path: 'entity.items.image.focalPoint.y' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.x' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.y' }, | ||
{ path: 'entity.items.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.image.unsharpMasking.radius' }, | ||
{ path: 'entity.items.image.unsharpMasking.threshold' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.radius' }, | ||
{ | ||
path: 'entity.items.secondaryMedia.image.unsharpMasking.threshold', | ||
}, | ||
], | ||
}, | ||
{ | ||
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.createdDate' }, | ||
{ path: 'entity.items.createdDate' }, | ||
{ path: 'entity.items.updatedDate' }, | ||
{ path: 'metadata.eventTime' }, | ||
], | ||
paths: [{ path: 'metadata.eventTime' }], | ||
}, | ||
{ | ||
transformFn: image_1.transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.items.image.imageInfo' }, | ||
{ path: 'entity.items.secondaryMedia.image.imageInfo' }, | ||
], | ||
}, | ||
{ | ||
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2, | ||
paths: [{ path: 'entity.items.video.videoInfo' }], | ||
}, | ||
])))(); | ||
var pro_gallery_v2_gallery_pro_gallery_universal_2 = require("./pro-gallery-v2-gallery-pro-gallery.universal"); | ||
Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.Enum; } }); | ||
Object.defineProperty(exports, "ImageType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.ImageType; } }); | ||
Object.defineProperty(exports, "LinkRel", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.LinkRel; } }); | ||
Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.LinkType; } }); | ||
Object.defineProperty(exports, "SearchIndexingNotificationState", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.SearchIndexingNotificationState; } }); | ||
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.State; } }); | ||
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.Type; } }); | ||
Object.defineProperty(exports, "VideoType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.VideoType; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_2.WebhookIdentityType; } }); | ||
var pro_gallery_v2_gallery_pro_gallery_universal_js_2 = require("./pro-gallery-v2-gallery-pro-gallery.universal.js"); | ||
Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.Enum; } }); | ||
Object.defineProperty(exports, "ImageType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.ImageType; } }); | ||
Object.defineProperty(exports, "LinkRel", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.LinkRel; } }); | ||
Object.defineProperty(exports, "LinkType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.LinkType; } }); | ||
Object.defineProperty(exports, "RCLabel", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.RCLabel; } }); | ||
Object.defineProperty(exports, "SearchIndexingNotificationState", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.SearchIndexingNotificationState; } }); | ||
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.State; } }); | ||
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.Type; } }); | ||
Object.defineProperty(exports, "VideoType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.VideoType; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return pro_gallery_v2_gallery_pro_gallery_universal_js_2.WebhookIdentityType; } }); | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.public.js.map |
@@ -54,6 +54,3 @@ export interface Gallery { | ||
link?: Link; | ||
/** | ||
* Type of item. | ||
* @readonly | ||
*/ | ||
/** @readonly */ | ||
type?: Type; | ||
@@ -90,5 +87,5 @@ /** | ||
UNDEFINED = "UNDEFINED", | ||
/** External link. */ | ||
/** external link */ | ||
EXTERNAL = "EXTERNAL", | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
INTERNAL = "INTERNAL" | ||
@@ -148,10 +145,2 @@ } | ||
} | ||
export 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[]; | ||
} | ||
/** | ||
@@ -174,2 +163,10 @@ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. | ||
} | ||
export 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[]; | ||
} | ||
export interface AnchorLink { | ||
@@ -300,3 +297,3 @@ /** The name of the anchor */ | ||
/** | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply. <br /> | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br /> | ||
* | ||
@@ -309,3 +306,2 @@ * Min: `0` <br /> | ||
export interface Video { | ||
/** Type of video. */ | ||
type?: VideoType; | ||
@@ -530,3 +526,15 @@ /** Information about the video. */ | ||
publishDate?: string; | ||
/** RC label */ | ||
rcLabel?: RCLabel; | ||
} | ||
export declare enum RCLabel { | ||
/** Illegal default value, exception will be thrown if used */ | ||
UNKNOWN = "UNKNOWN", | ||
RELEASE_MANAGER = "RELEASE_MANAGER", | ||
BLOCKS = "BLOCKS", | ||
WIX_CLI = "WIX_CLI", | ||
MOBILE_APP_BUILDER = "MOBILE_APP_BUILDER", | ||
SEO = "SEO", | ||
FEEDBACK = "FEEDBACK" | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
@@ -644,2 +652,117 @@ createdEvent?: EntityCreatedEvent; | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
export interface ListGalleriesItemsRequest { | ||
@@ -702,7 +825,6 @@ /** IDs of the media items to retrieve. */ | ||
export declare enum State { | ||
/** Undefined state. */ | ||
UNDEFINED = "UNDEFINED", | ||
/** The gallery in the Editor. */ | ||
/** The gallery in the Editor segment */ | ||
SAVED = "SAVED", | ||
/** The gallery in the LiveSite. */ | ||
/** The gallery in the LiveSite segment */ | ||
PUBLISHED = "PUBLISHED" | ||
@@ -876,117 +998,2 @@ } | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
interface CommonImageNonNullableFields { | ||
@@ -993,0 +1000,0 @@ id: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SearchIndexingNotificationState = exports.Enum = exports.State = exports.WebhookIdentityType = exports.VideoType = exports.ImageType = exports.Type = exports.LinkRel = exports.LinkType = void 0; | ||
exports.State = exports.SearchIndexingNotificationState = exports.Enum = exports.WebhookIdentityType = exports.RCLabel = exports.VideoType = exports.ImageType = exports.Type = exports.LinkRel = exports.LinkType = void 0; | ||
var LinkType; | ||
(function (LinkType) { | ||
LinkType["UNDEFINED"] = "UNDEFINED"; | ||
/** External link. */ | ||
/** external link */ | ||
LinkType["EXTERNAL"] = "EXTERNAL"; | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
LinkType["INTERNAL"] = "INTERNAL"; | ||
@@ -50,2 +50,13 @@ })(LinkType || (exports.LinkType = LinkType = {})); | ||
})(VideoType || (exports.VideoType = VideoType = {})); | ||
var RCLabel; | ||
(function (RCLabel) { | ||
/** Illegal default value, exception will be thrown if used */ | ||
RCLabel["UNKNOWN"] = "UNKNOWN"; | ||
RCLabel["RELEASE_MANAGER"] = "RELEASE_MANAGER"; | ||
RCLabel["BLOCKS"] = "BLOCKS"; | ||
RCLabel["WIX_CLI"] = "WIX_CLI"; | ||
RCLabel["MOBILE_APP_BUILDER"] = "MOBILE_APP_BUILDER"; | ||
RCLabel["SEO"] = "SEO"; | ||
RCLabel["FEEDBACK"] = "FEEDBACK"; | ||
})(RCLabel || (exports.RCLabel = RCLabel = {})); | ||
var WebhookIdentityType; | ||
@@ -59,11 +70,2 @@ (function (WebhookIdentityType) { | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
var State; | ||
(function (State) { | ||
/** Undefined state. */ | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor. */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite. */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (exports.State = State = {})); | ||
var Enum; | ||
@@ -93,2 +95,10 @@ (function (Enum) { | ||
})(SearchIndexingNotificationState || (exports.SearchIndexingNotificationState = SearchIndexingNotificationState = {})); | ||
var State; | ||
(function (State) { | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor segment */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite segment */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (exports.State = State = {})); | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.types.js.map |
@@ -54,6 +54,3 @@ export interface Gallery { | ||
link?: Link; | ||
/** | ||
* Type of item. | ||
* @readonly | ||
*/ | ||
/** @readonly */ | ||
type?: Type; | ||
@@ -90,5 +87,5 @@ /** | ||
UNDEFINED = "UNDEFINED", | ||
/** External link. */ | ||
/** external link */ | ||
EXTERNAL = "EXTERNAL", | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
INTERNAL = "INTERNAL" | ||
@@ -148,10 +145,2 @@ } | ||
} | ||
export 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[]; | ||
} | ||
/** | ||
@@ -174,2 +163,10 @@ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. | ||
} | ||
export 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[]; | ||
} | ||
export interface AnchorLink { | ||
@@ -283,3 +280,3 @@ /** The name of the anchor */ | ||
/** | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply. <br /> | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br /> | ||
* | ||
@@ -292,3 +289,2 @@ * Min: `0` <br /> | ||
export interface Video { | ||
/** Type of video. */ | ||
type?: VideoType; | ||
@@ -509,3 +505,15 @@ /** | ||
publishDate?: string; | ||
/** RC label */ | ||
rcLabel?: RCLabel; | ||
} | ||
export declare enum RCLabel { | ||
/** Illegal default value, exception will be thrown if used */ | ||
UNKNOWN = "UNKNOWN", | ||
RELEASE_MANAGER = "RELEASE_MANAGER", | ||
BLOCKS = "BLOCKS", | ||
WIX_CLI = "WIX_CLI", | ||
MOBILE_APP_BUILDER = "MOBILE_APP_BUILDER", | ||
SEO = "SEO", | ||
FEEDBACK = "FEEDBACK" | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
@@ -622,2 +630,117 @@ /** Information about a newly-created gallery. */ | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
export interface ListGalleriesItemsRequest { | ||
@@ -664,7 +787,6 @@ /** IDs of the media items to retrieve. */ | ||
export declare enum State { | ||
/** Undefined state. */ | ||
UNDEFINED = "UNDEFINED", | ||
/** The gallery in the Editor. */ | ||
/** The gallery in the Editor segment */ | ||
SAVED = "SAVED", | ||
/** The gallery in the LiveSite. */ | ||
/** The gallery in the LiveSite segment */ | ||
PUBLISHED = "PUBLISHED" | ||
@@ -830,117 +952,2 @@ } | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
interface PointNonNullableFields { | ||
@@ -1135,7 +1142,11 @@ x: number; | ||
export declare function onGalleryCreated(handler: (event: GalleryCreatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryDeletedEnvelope { | ||
export interface GalleryUpdatedEnvelope { | ||
entity: Gallery; | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a gallery is deleted. | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
* @permissionScope Manage Galleries | ||
@@ -1147,12 +1158,11 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_deleted | ||
* @eventType wix.pro_gallery.gallery_v2_updated | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryDeleted(handler: (event: GalleryDeletedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemCreatedEnvelope { | ||
data: GalleryItemCreated; | ||
export declare function onGalleryUpdated(handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryDeletedEnvelope { | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a media item in a specified gallery is created. | ||
* Triggered when a gallery is deleted. | ||
* @permissionScope Manage Galleries | ||
@@ -1164,15 +1174,12 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_created | ||
* @eventType wix.pro_gallery.gallery_v2_deleted | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryItemCreated(handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemDeletedEnvelope { | ||
data: GalleryItemDeleted; | ||
export declare function onGalleryDeleted(handler: (event: GalleryDeletedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemCreatedEnvelope { | ||
data: GalleryItemCreated; | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a media item in a specified gallery is deleted. | ||
* | ||
* > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted. | ||
* > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty. | ||
* Triggered when a media item in a specified gallery is created. | ||
* @permissionScope Manage Galleries | ||
@@ -1184,6 +1191,6 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_created | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryItemDeleted(handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>): void; | ||
export declare function onGalleryItemCreated(handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemUpdatedEnvelope { | ||
@@ -1205,11 +1212,11 @@ data: GalleryItemUpdated; | ||
export declare function onGalleryItemUpdated(handler: (event: GalleryItemUpdatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryUpdatedEnvelope { | ||
entity: Gallery; | ||
export interface GalleryItemDeletedEnvelope { | ||
data: GalleryItemDeleted; | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a gallery is updated. | ||
* Triggered when a media item in a specified gallery is deleted. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
* > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted. | ||
* > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty. | ||
* @permissionScope Manage Galleries | ||
@@ -1221,6 +1228,6 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_updated | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryUpdated(handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>): void; | ||
export declare function onGalleryItemDeleted(handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>): void; | ||
/** | ||
@@ -1557,6 +1564,3 @@ * Retrieves a list of galleries. | ||
link?: Link; | ||
/** | ||
* Type of item. | ||
* @readonly | ||
*/ | ||
/** @readonly */ | ||
type?: Type; | ||
@@ -1563,0 +1567,0 @@ /** |
@@ -26,6 +26,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.bulkDeleteGalleryItems = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = exports.SearchIndexingNotificationState = exports.Enum = exports.State = exports.WebhookIdentityType = exports.VideoType = exports.ImageType = exports.Type = exports.LinkRel = exports.LinkType = void 0; | ||
exports.deleteGalleryItem = exports.updateGalleryItem = exports.createGalleryItem = exports.bulkDeleteGalleryItems = exports.deleteGalleryItems = exports.deleteGallery = exports.updateGallery = exports.createGallery = exports.getGalleryItem = exports.listGalleryItems = exports.getGallery = exports.listGalleries = exports.State = exports.SearchIndexingNotificationState = exports.Enum = exports.WebhookIdentityType = exports.RCLabel = exports.VideoType = exports.ImageType = exports.Type = exports.LinkRel = exports.LinkType = void 0; | ||
const transform_error_1 = require("@wix/sdk-runtime/transform-error"); | ||
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys"); | ||
const ambassadorWixProGalleryV2Gallery = __importStar(require("./pro-gallery-v2-gallery-pro-gallery.http")); | ||
const ambassadorWixProGalleryV2Gallery = __importStar(require("./pro-gallery-v2-gallery-pro-gallery.http.js")); | ||
const image_1 = require("@wix/sdk-runtime/transformations/image"); | ||
@@ -39,5 +39,5 @@ const image_2 = require("@wix/sdk-runtime/transformations/image"); | ||
LinkType["UNDEFINED"] = "UNDEFINED"; | ||
/** External link. */ | ||
/** external link */ | ||
LinkType["EXTERNAL"] = "EXTERNAL"; | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
LinkType["INTERNAL"] = "INTERNAL"; | ||
@@ -83,2 +83,13 @@ })(LinkType || (exports.LinkType = LinkType = {})); | ||
})(VideoType || (exports.VideoType = VideoType = {})); | ||
var RCLabel; | ||
(function (RCLabel) { | ||
/** Illegal default value, exception will be thrown if used */ | ||
RCLabel["UNKNOWN"] = "UNKNOWN"; | ||
RCLabel["RELEASE_MANAGER"] = "RELEASE_MANAGER"; | ||
RCLabel["BLOCKS"] = "BLOCKS"; | ||
RCLabel["WIX_CLI"] = "WIX_CLI"; | ||
RCLabel["MOBILE_APP_BUILDER"] = "MOBILE_APP_BUILDER"; | ||
RCLabel["SEO"] = "SEO"; | ||
RCLabel["FEEDBACK"] = "FEEDBACK"; | ||
})(RCLabel || (exports.RCLabel = RCLabel = {})); | ||
var WebhookIdentityType; | ||
@@ -92,11 +103,2 @@ (function (WebhookIdentityType) { | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
var State; | ||
(function (State) { | ||
/** Undefined state. */ | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor. */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite. */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (exports.State = State = {})); | ||
var Enum; | ||
@@ -126,2 +128,10 @@ (function (Enum) { | ||
})(SearchIndexingNotificationState || (exports.SearchIndexingNotificationState = SearchIndexingNotificationState = {})); | ||
var State; | ||
(function (State) { | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor segment */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite segment */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (exports.State = State = {})); | ||
/** | ||
@@ -128,0 +138,0 @@ * Retrieves a list of galleries. |
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context.js'; |
@@ -1,2 +0,2 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.context.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.universal.js'; |
@@ -1,2 +0,2 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
//# sourceMappingURL=index.typings.js.map |
@@ -1,1 +0,1 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.meta'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.meta.js'; |
@@ -1,2 +0,2 @@ | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.meta'; | ||
export * from './src/pro-gallery-v2-gallery-pro-gallery.meta.js'; | ||
//# sourceMappingURL=meta.js.map |
@@ -1,10 +0,10 @@ | ||
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, bulkDeleteGalleryItems as publicBulkDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
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, bulkDeleteGalleryItems as publicBulkDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules'; | ||
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryDeleted as publicOnGalleryDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemCreated as publicOnGalleryItemCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemUpdated as publicOnGalleryItemUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryDeleted as publicOnGalleryDeleted } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemCreated as publicOnGalleryItemCreated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemUpdated as publicOnGalleryItemUpdated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
export declare const listGalleries: MaybeContext<BuildRESTFunction<typeof publicListGalleries> & typeof publicListGalleries>; | ||
@@ -22,4 +22,2 @@ export declare const getGallery: MaybeContext<BuildRESTFunction<typeof publicGetGallery> & typeof publicGetGallery>; | ||
export declare const deleteGalleryItem: MaybeContext<BuildRESTFunction<typeof publicDeleteGalleryItem> & typeof publicDeleteGalleryItem>; | ||
export { publicOnGalleryCreated }; | ||
export type _publicOnGalleryCreatedType = typeof publicOnGalleryCreated; | ||
/** | ||
@@ -31,18 +29,23 @@ * Triggered when a gallery is created. | ||
*/ | ||
export declare const onGalleryCreated: ReturnType<typeof createEventModule<_publicOnGalleryCreatedType>>; | ||
export { publicOnGalleryDeleted }; | ||
export type _publicOnGalleryDeletedType = typeof publicOnGalleryDeleted; | ||
export declare const onGalleryCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryCreated>>; | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
export declare const onGalleryUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryUpdated>>; | ||
/** | ||
* Triggered when a gallery is deleted. | ||
*/ | ||
export declare const onGalleryDeleted: ReturnType<typeof createEventModule<_publicOnGalleryDeletedType>>; | ||
export { publicOnGalleryItemCreated }; | ||
export type _publicOnGalleryItemCreatedType = typeof publicOnGalleryItemCreated; | ||
export declare const onGalleryDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryDeleted>>; | ||
/** | ||
* Triggered when a media item in a specified gallery is created. | ||
*/ | ||
export declare const onGalleryItemCreated: ReturnType<typeof createEventModule<_publicOnGalleryItemCreatedType>>; | ||
export { publicOnGalleryItemDeleted }; | ||
export type _publicOnGalleryItemDeletedType = typeof publicOnGalleryItemDeleted; | ||
export declare const onGalleryItemCreated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemCreated>>; | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
export declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<typeof publicOnGalleryItemUpdated>>; | ||
/** | ||
* Triggered when a media item in a specified gallery is deleted. | ||
@@ -53,19 +56,4 @@ * | ||
*/ | ||
export declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<_publicOnGalleryItemDeletedType>>; | ||
export { publicOnGalleryItemUpdated }; | ||
export type _publicOnGalleryItemUpdatedType = typeof publicOnGalleryItemUpdated; | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
export declare const onGalleryItemUpdated: ReturnType<typeof createEventModule<_publicOnGalleryItemUpdatedType>>; | ||
export { publicOnGalleryUpdated }; | ||
export type _publicOnGalleryUpdatedType = typeof publicOnGalleryUpdated; | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
export declare const onGalleryUpdated: ReturnType<typeof createEventModule<_publicOnGalleryUpdatedType>>; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, WebhookIdentityType, State, Enum, SearchIndexingNotificationState, } 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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryRevisionRequest, GetGalleryRevisionResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, Empty, HtmlSitePublished, EventsPage, HtmlSiteRCPublished, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, 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, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, DocumentUpdateOperation, IndexDocument, DocumentPayload, DocumentImage, DeleteByIdsOperation, DeleteByFilterOperation, UpdateByFilterOperation, UpdateExistingOperation, SearchIndexingNotification, ItemNonNullableFields, GalleryNonNullableFields, ListGalleriesResponseNonNullableFields, GetGalleryResponseNonNullableFields, ListGalleryItemsResponseNonNullableFields, GetGalleryItemResponseNonNullableFields, CreateGalleryResponseNonNullableFields, UpdateGalleryResponseNonNullableFields, DeleteGalleryResponseNonNullableFields, DeleteGalleryItemsResponseNonNullableFields, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryItemResponseNonNullableFields, UpdateGalleryItemResponseNonNullableFields, DeleteGalleryItemResponseNonNullableFields, BaseEventMetadata, EventMetadata, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryUpdatedEnvelope, ListGalleriesOptions, GetGalleryOptions, ListGalleryItemsOptions, GetGalleryItemIdentifiers, CreateGalleryOptions, UpdateGallery, DeleteGalleryItemsOptions, UpdateGalleryItemIdentifiers, UpdateGalleryItem, DeleteGalleryItemIdentifiers, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export declare const onGalleryItemDeleted: ReturnType<typeof createEventModule<typeof publicOnGalleryItemDeleted>>; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, RCLabel, WebhookIdentityType, Enum, SearchIndexingNotificationState, State, } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryRevisionRequest, GetGalleryRevisionResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, Empty, HtmlSitePublished, EventsPage, HtmlSiteRCPublished, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, 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, ItemNonNullableFields, GalleryNonNullableFields, ListGalleriesResponseNonNullableFields, GetGalleryResponseNonNullableFields, ListGalleryItemsResponseNonNullableFields, GetGalleryItemResponseNonNullableFields, CreateGalleryResponseNonNullableFields, UpdateGalleryResponseNonNullableFields, DeleteGalleryResponseNonNullableFields, DeleteGalleryItemsResponseNonNullableFields, BulkDeleteGalleryItemsResponseNonNullableFields, 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.js'; |
@@ -1,10 +0,10 @@ | ||
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, bulkDeleteGalleryItems as publicBulkDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem, } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
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, bulkDeleteGalleryItems as publicBulkDeleteGalleryItems, createGalleryItem as publicCreateGalleryItem, updateGalleryItem as publicUpdateGalleryItem, deleteGalleryItem as publicDeleteGalleryItem, } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
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'; | ||
import { onGalleryDeleted as publicOnGalleryDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemCreated as publicOnGalleryItemCreated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryItemUpdated as publicOnGalleryItemUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public'; | ||
import { onGalleryCreated as publicOnGalleryCreated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryUpdated as publicOnGalleryUpdated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryDeleted as publicOnGalleryDeleted } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemCreated as publicOnGalleryItemCreated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemUpdated as publicOnGalleryItemUpdated } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
import { onGalleryItemDeleted as publicOnGalleryItemDeleted } from './pro-gallery-v2-gallery-pro-gallery.public.js'; | ||
export const listGalleries = /*#__PURE__*/ createRESTModule(publicListGalleries); | ||
@@ -22,3 +22,2 @@ export const getGallery = /*#__PURE__*/ createRESTModule(publicGetGallery); | ||
export const deleteGalleryItem = /*#__PURE__*/ createRESTModule(publicDeleteGalleryItem); | ||
export { publicOnGalleryCreated }; | ||
/** | ||
@@ -31,8 +30,13 @@ * Triggered when a gallery is created. | ||
export const onGalleryCreated = createEventModule(publicOnGalleryCreated); | ||
export { publicOnGalleryDeleted }; | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
export const onGalleryUpdated = createEventModule(publicOnGalleryUpdated); | ||
/** | ||
* Triggered when a gallery is deleted. | ||
*/ | ||
export const onGalleryDeleted = createEventModule(publicOnGalleryDeleted); | ||
export { publicOnGalleryItemCreated }; | ||
/** | ||
@@ -42,4 +46,7 @@ * Triggered when a media item in a specified gallery is created. | ||
export const onGalleryItemCreated = createEventModule(publicOnGalleryItemCreated); | ||
export { publicOnGalleryItemDeleted }; | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
export const onGalleryItemUpdated = createEventModule(publicOnGalleryItemUpdated); | ||
/** | ||
* Triggered when a media item in a specified gallery is deleted. | ||
@@ -51,16 +58,3 @@ * | ||
export const onGalleryItemDeleted = createEventModule(publicOnGalleryItemDeleted); | ||
export { publicOnGalleryItemUpdated }; | ||
/** | ||
* Triggered when a media item in a specified gallery is updated. | ||
*/ | ||
export const onGalleryItemUpdated = createEventModule(publicOnGalleryItemUpdated); | ||
export { publicOnGalleryUpdated }; | ||
/** | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
*/ | ||
export const onGalleryUpdated = createEventModule(publicOnGalleryUpdated); | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, WebhookIdentityType, State, Enum, SearchIndexingNotificationState, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export { LinkType, LinkRel, Type, ImageType, VideoType, RCLabel, WebhookIdentityType, Enum, SearchIndexingNotificationState, State, } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.context.js.map |
@@ -59,11 +59,11 @@ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules'; | ||
], | ||
'*.dev.wix-code.com': [ | ||
'api._api_base_domain_': [ | ||
{ | ||
srcPath: '/_api/pro-gallery-server', | ||
srcPath: '/pro-gallery-server', | ||
destPath: '', | ||
}, | ||
], | ||
'api._api_base_domain_': [ | ||
'*.dev.wix-code.com': [ | ||
{ | ||
srcPath: '/prime-server-proxy', | ||
srcPath: '/_api/pro-gallery-server', | ||
destPath: '', | ||
@@ -70,0 +70,0 @@ }, |
@@ -1,3 +0,3 @@ | ||
import * as ambassadorWixProGalleryV2GalleryTypes from './pro-gallery-v2-gallery-pro-gallery.types'; | ||
import * as ambassadorWixProGalleryV2GalleryUniversalTypes from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
import * as ambassadorWixProGalleryV2GalleryTypes from './pro-gallery-v2-gallery-pro-gallery.types.js'; | ||
import * as ambassadorWixProGalleryV2GalleryUniversalTypes from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = { | ||
@@ -4,0 +4,0 @@ getUrl: (context: any) => string; |
@@ -1,2 +0,2 @@ | ||
import * as ambassadorWixProGalleryV2Gallery from './pro-gallery-v2-gallery-pro-gallery.http'; | ||
import * as ambassadorWixProGalleryV2Gallery from './pro-gallery-v2-gallery-pro-gallery.http.js'; | ||
export function listGalleries() { | ||
@@ -3,0 +3,0 @@ const payload = {}; |
import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
import { BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ItemNonNullableFields, ListGalleriesOptions, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
import { BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ItemNonNullableFields, ListGalleriesOptions, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
export declare const __metadata: { | ||
@@ -162,7 +162,7 @@ PACKAGE_NAME: string; | ||
export declare const onGalleryCreated: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">; | ||
export declare const onGalleryUpdated: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">; | ||
export declare const onGalleryDeleted: EventDefinition<GalleryDeletedEnvelope, "wix.pro_gallery.gallery_v2_deleted">; | ||
export declare const onGalleryItemCreated: EventDefinition<GalleryItemCreatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_created">; | ||
export declare const onGalleryItemUpdated: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">; | ||
export declare const onGalleryItemDeleted: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">; | ||
export declare const onGalleryItemUpdated: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">; | ||
export declare const onGalleryUpdated: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, 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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, GetGalleryRevisionRequest, GetGalleryRevisionResponse, 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'; | ||
export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, 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, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, GetGalleryRevisionRequest, GetGalleryRevisionResponse, 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, RCLabel, 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.js'; |
@@ -8,3 +8,3 @@ import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys'; | ||
import { EventDefinition } from '@wix/sdk-types'; | ||
import { bulkDeleteGalleryItems as universalBulkDeleteGalleryItems, createGallery as universalCreateGallery, createGalleryItem as universalCreateGalleryItem, deleteGallery as universalDeleteGallery, deleteGalleryItem as universalDeleteGalleryItem, deleteGalleryItems as universalDeleteGalleryItems, getGallery as universalGetGallery, getGalleryItem as universalGetGalleryItem, listGalleries as universalListGalleries, listGalleryItems as universalListGalleryItems, updateGallery as universalUpdateGallery, updateGalleryItem as universalUpdateGalleryItem, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
import { bulkDeleteGalleryItems as universalBulkDeleteGalleryItems, createGallery as universalCreateGallery, createGalleryItem as universalCreateGalleryItem, deleteGallery as universalDeleteGallery, deleteGalleryItem as universalDeleteGalleryItem, deleteGalleryItems as universalDeleteGalleryItems, getGallery as universalGetGallery, getGalleryItem as universalGetGalleryItem, listGalleries as universalListGalleries, listGalleryItems as universalListGalleryItems, updateGallery as universalUpdateGallery, updateGalleryItem as universalUpdateGalleryItem, } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
export const __metadata = { PACKAGE_NAME: '@wix/pro-gallery' }; | ||
@@ -112,2 +112,43 @@ export function listGalleries(httpClient) { | ||
])))(); | ||
export const onGalleryUpdated = EventDefinition('wix.pro_gallery.gallery_v2_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
{ | ||
transformFn: transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ path: 'entity.sortOrder' }, | ||
{ path: 'entity.items.sortOrder' }, | ||
{ path: 'entity.items.image.focalPoint.x' }, | ||
{ path: 'entity.items.image.focalPoint.y' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.x' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.y' }, | ||
{ path: 'entity.items.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.image.unsharpMasking.radius' }, | ||
{ path: 'entity.items.image.unsharpMasking.threshold' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.radius' }, | ||
{ | ||
path: 'entity.items.secondaryMedia.image.unsharpMasking.threshold', | ||
}, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.createdDate' }, | ||
{ path: 'entity.items.createdDate' }, | ||
{ path: 'entity.items.updatedDate' }, | ||
{ path: 'metadata.eventTime' }, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.items.image.imageInfo' }, | ||
{ path: 'entity.items.secondaryMedia.image.imageInfo' }, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTVideoV2ToSDKVideoV2, | ||
paths: [{ path: 'entity.items.video.videoInfo' }], | ||
}, | ||
])))(); | ||
export const onGalleryDeleted = EventDefinition('wix.pro_gallery.gallery_v2_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
@@ -195,8 +236,2 @@ { | ||
])))(); | ||
export const onGalleryItemDeleted = EventDefinition('wix.pro_gallery.gallery_v2_gallery_item_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
{ | ||
transformFn: transformRESTTimestampToSDKTimestamp, | ||
paths: [{ path: 'metadata.eventTime' }], | ||
}, | ||
])))(); | ||
export const onGalleryItemUpdated = EventDefinition('wix.pro_gallery.gallery_v2_gallery_item_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
@@ -245,44 +280,9 @@ { | ||
])))(); | ||
export const onGalleryUpdated = EventDefinition('wix.pro_gallery.gallery_v2_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
export const onGalleryItemDeleted = EventDefinition('wix.pro_gallery.gallery_v2_gallery_item_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [ | ||
{ | ||
transformFn: transformRESTFloatToSDKFloat, | ||
paths: [ | ||
{ path: 'entity.sortOrder' }, | ||
{ path: 'entity.items.sortOrder' }, | ||
{ path: 'entity.items.image.focalPoint.x' }, | ||
{ path: 'entity.items.image.focalPoint.y' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.x' }, | ||
{ path: 'entity.items.secondaryMedia.image.focalPoint.y' }, | ||
{ path: 'entity.items.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.image.unsharpMasking.radius' }, | ||
{ path: 'entity.items.image.unsharpMasking.threshold' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.amount' }, | ||
{ path: 'entity.items.secondaryMedia.image.unsharpMasking.radius' }, | ||
{ | ||
path: 'entity.items.secondaryMedia.image.unsharpMasking.threshold', | ||
}, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTTimestampToSDKTimestamp, | ||
paths: [ | ||
{ path: 'entity.createdDate' }, | ||
{ path: 'entity.items.createdDate' }, | ||
{ path: 'entity.items.updatedDate' }, | ||
{ path: 'metadata.eventTime' }, | ||
], | ||
paths: [{ path: 'metadata.eventTime' }], | ||
}, | ||
{ | ||
transformFn: transformRESTImageToSDKImage, | ||
paths: [ | ||
{ path: 'entity.items.image.imageInfo' }, | ||
{ path: 'entity.items.secondaryMedia.image.imageInfo' }, | ||
], | ||
}, | ||
{ | ||
transformFn: transformRESTVideoV2ToSDKVideoV2, | ||
paths: [{ path: 'entity.items.video.videoInfo' }], | ||
}, | ||
])))(); | ||
export { Enum, ImageType, LinkRel, LinkType, SearchIndexingNotificationState, State, Type, VideoType, WebhookIdentityType, } from './pro-gallery-v2-gallery-pro-gallery.universal'; | ||
export { Enum, ImageType, LinkRel, LinkType, RCLabel, SearchIndexingNotificationState, State, Type, VideoType, WebhookIdentityType, } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.public.js.map |
@@ -54,6 +54,3 @@ export interface Gallery { | ||
link?: Link; | ||
/** | ||
* Type of item. | ||
* @readonly | ||
*/ | ||
/** @readonly */ | ||
type?: Type; | ||
@@ -90,5 +87,5 @@ /** | ||
UNDEFINED = "UNDEFINED", | ||
/** External link. */ | ||
/** external link */ | ||
EXTERNAL = "EXTERNAL", | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
INTERNAL = "INTERNAL" | ||
@@ -148,10 +145,2 @@ } | ||
} | ||
export 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[]; | ||
} | ||
/** | ||
@@ -174,2 +163,10 @@ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. | ||
} | ||
export 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[]; | ||
} | ||
export interface AnchorLink { | ||
@@ -300,3 +297,3 @@ /** The name of the anchor */ | ||
/** | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply. <br /> | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br /> | ||
* | ||
@@ -309,3 +306,2 @@ * Min: `0` <br /> | ||
export interface Video { | ||
/** Type of video. */ | ||
type?: VideoType; | ||
@@ -530,3 +526,15 @@ /** Information about the video. */ | ||
publishDate?: string; | ||
/** RC label */ | ||
rcLabel?: RCLabel; | ||
} | ||
export declare enum RCLabel { | ||
/** Illegal default value, exception will be thrown if used */ | ||
UNKNOWN = "UNKNOWN", | ||
RELEASE_MANAGER = "RELEASE_MANAGER", | ||
BLOCKS = "BLOCKS", | ||
WIX_CLI = "WIX_CLI", | ||
MOBILE_APP_BUILDER = "MOBILE_APP_BUILDER", | ||
SEO = "SEO", | ||
FEEDBACK = "FEEDBACK" | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
@@ -644,2 +652,117 @@ createdEvent?: EntityCreatedEvent; | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
export interface ListGalleriesItemsRequest { | ||
@@ -702,7 +825,6 @@ /** IDs of the media items to retrieve. */ | ||
export declare enum State { | ||
/** Undefined state. */ | ||
UNDEFINED = "UNDEFINED", | ||
/** The gallery in the Editor. */ | ||
/** The gallery in the Editor segment */ | ||
SAVED = "SAVED", | ||
/** The gallery in the LiveSite. */ | ||
/** The gallery in the LiveSite segment */ | ||
PUBLISHED = "PUBLISHED" | ||
@@ -876,117 +998,2 @@ } | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
interface CommonImageNonNullableFields { | ||
@@ -993,0 +1000,0 @@ id: string; |
export var LinkType; | ||
(function (LinkType) { | ||
LinkType["UNDEFINED"] = "UNDEFINED"; | ||
/** External link. */ | ||
/** external link */ | ||
LinkType["EXTERNAL"] = "EXTERNAL"; | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
LinkType["INTERNAL"] = "INTERNAL"; | ||
@@ -47,2 +47,13 @@ })(LinkType || (LinkType = {})); | ||
})(VideoType || (VideoType = {})); | ||
export var RCLabel; | ||
(function (RCLabel) { | ||
/** Illegal default value, exception will be thrown if used */ | ||
RCLabel["UNKNOWN"] = "UNKNOWN"; | ||
RCLabel["RELEASE_MANAGER"] = "RELEASE_MANAGER"; | ||
RCLabel["BLOCKS"] = "BLOCKS"; | ||
RCLabel["WIX_CLI"] = "WIX_CLI"; | ||
RCLabel["MOBILE_APP_BUILDER"] = "MOBILE_APP_BUILDER"; | ||
RCLabel["SEO"] = "SEO"; | ||
RCLabel["FEEDBACK"] = "FEEDBACK"; | ||
})(RCLabel || (RCLabel = {})); | ||
export var WebhookIdentityType; | ||
@@ -56,11 +67,2 @@ (function (WebhookIdentityType) { | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
export var State; | ||
(function (State) { | ||
/** Undefined state. */ | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor. */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite. */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (State = {})); | ||
export var Enum; | ||
@@ -90,2 +92,10 @@ (function (Enum) { | ||
})(SearchIndexingNotificationState || (SearchIndexingNotificationState = {})); | ||
export var State; | ||
(function (State) { | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor segment */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite segment */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (State = {})); | ||
//# sourceMappingURL=pro-gallery-v2-gallery-pro-gallery.types.js.map |
@@ -54,6 +54,3 @@ export interface Gallery { | ||
link?: Link; | ||
/** | ||
* Type of item. | ||
* @readonly | ||
*/ | ||
/** @readonly */ | ||
type?: Type; | ||
@@ -90,5 +87,5 @@ /** | ||
UNDEFINED = "UNDEFINED", | ||
/** External link. */ | ||
/** external link */ | ||
EXTERNAL = "EXTERNAL", | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
INTERNAL = "INTERNAL" | ||
@@ -148,10 +145,2 @@ } | ||
} | ||
export 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[]; | ||
} | ||
/** | ||
@@ -174,2 +163,10 @@ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document. | ||
} | ||
export 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[]; | ||
} | ||
export interface AnchorLink { | ||
@@ -283,3 +280,3 @@ /** The name of the anchor */ | ||
/** | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for sharpening to apply. <br /> | ||
* Unsharp masking threshold. Controls how different neighboring pixels must be for shapening to apply. <br /> | ||
* | ||
@@ -292,3 +289,2 @@ * Min: `0` <br /> | ||
export interface Video { | ||
/** Type of video. */ | ||
type?: VideoType; | ||
@@ -509,3 +505,15 @@ /** | ||
publishDate?: string; | ||
/** RC label */ | ||
rcLabel?: RCLabel; | ||
} | ||
export declare enum RCLabel { | ||
/** Illegal default value, exception will be thrown if used */ | ||
UNKNOWN = "UNKNOWN", | ||
RELEASE_MANAGER = "RELEASE_MANAGER", | ||
BLOCKS = "BLOCKS", | ||
WIX_CLI = "WIX_CLI", | ||
MOBILE_APP_BUILDER = "MOBILE_APP_BUILDER", | ||
SEO = "SEO", | ||
FEEDBACK = "FEEDBACK" | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
@@ -622,2 +630,117 @@ /** Information about a newly-created gallery. */ | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
export interface ListGalleriesItemsRequest { | ||
@@ -664,7 +787,6 @@ /** IDs of the media items to retrieve. */ | ||
export declare enum State { | ||
/** Undefined state. */ | ||
UNDEFINED = "UNDEFINED", | ||
/** The gallery in the Editor. */ | ||
/** The gallery in the Editor segment */ | ||
SAVED = "SAVED", | ||
/** The gallery in the LiveSite. */ | ||
/** The gallery in the LiveSite segment */ | ||
PUBLISHED = "PUBLISHED" | ||
@@ -830,117 +952,2 @@ } | ||
} | ||
export 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 */ | ||
export 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; | ||
} | ||
export interface DocumentUpdateOperation { | ||
/** documents to index or update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export interface DocumentPayload { | ||
/** url of the page representing the document */ | ||
url?: string | null; | ||
/** image which represents the document */ | ||
documentImage?: DocumentImage; | ||
} | ||
export interface DocumentImage { | ||
/** the name of the image */ | ||
name?: string; | ||
/** the width of the image */ | ||
width?: number; | ||
/** the height of the image */ | ||
height?: number; | ||
} | ||
export 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" | ||
} | ||
export interface DeleteByIdsOperation { | ||
/** ids of the documents to delete */ | ||
documentIds?: string[]; | ||
} | ||
export 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; | ||
} | ||
export interface UpdateByFilterOperation { | ||
/** documents matching this filter will be updated */ | ||
filter?: Record<string, any> | null; | ||
/** partial document to apply */ | ||
document?: IndexDocument; | ||
} | ||
export interface UpdateExistingOperation { | ||
/** documents to update */ | ||
documents?: IndexDocument[]; | ||
} | ||
export 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; | ||
} | ||
export declare enum SearchIndexingNotificationState { | ||
/** default state */ | ||
Unknown = "Unknown", | ||
/** metasite does not require site search indexing */ | ||
Off = "Off", | ||
/** metasite requires site search indexing */ | ||
On = "On" | ||
} | ||
interface PointNonNullableFields { | ||
@@ -1135,7 +1142,11 @@ x: number; | ||
export declare function onGalleryCreated(handler: (event: GalleryCreatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryDeletedEnvelope { | ||
export interface GalleryUpdatedEnvelope { | ||
entity: Gallery; | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a gallery is deleted. | ||
* Triggered when a gallery is updated. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
* @permissionScope Manage Galleries | ||
@@ -1147,12 +1158,11 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_deleted | ||
* @eventType wix.pro_gallery.gallery_v2_updated | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryDeleted(handler: (event: GalleryDeletedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemCreatedEnvelope { | ||
data: GalleryItemCreated; | ||
export declare function onGalleryUpdated(handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryDeletedEnvelope { | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a media item in a specified gallery is created. | ||
* Triggered when a gallery is deleted. | ||
* @permissionScope Manage Galleries | ||
@@ -1164,15 +1174,12 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_created | ||
* @eventType wix.pro_gallery.gallery_v2_deleted | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryItemCreated(handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemDeletedEnvelope { | ||
data: GalleryItemDeleted; | ||
export declare function onGalleryDeleted(handler: (event: GalleryDeletedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemCreatedEnvelope { | ||
data: GalleryItemCreated; | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a media item in a specified gallery is deleted. | ||
* | ||
* > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted. | ||
* > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty. | ||
* Triggered when a media item in a specified gallery is created. | ||
* @permissionScope Manage Galleries | ||
@@ -1184,6 +1191,6 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_created | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryItemDeleted(handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>): void; | ||
export declare function onGalleryItemCreated(handler: (event: GalleryItemCreatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryItemUpdatedEnvelope { | ||
@@ -1205,11 +1212,11 @@ data: GalleryItemUpdated; | ||
export declare function onGalleryItemUpdated(handler: (event: GalleryItemUpdatedEnvelope) => void | Promise<void>): void; | ||
export interface GalleryUpdatedEnvelope { | ||
entity: Gallery; | ||
export interface GalleryItemDeletedEnvelope { | ||
data: GalleryItemDeleted; | ||
metadata: EventMetadata; | ||
} | ||
/** | ||
* Triggered when a gallery is updated. | ||
* Triggered when a media item in a specified gallery is deleted. | ||
* | ||
* > __Note:__ The event data doesn't include gallery items or their IDs. | ||
* > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook). | ||
* > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted. | ||
* > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty. | ||
* @permissionScope Manage Galleries | ||
@@ -1221,6 +1228,6 @@ * @permissionScopeId SCOPE.DC-PROGALLERY.MANAGE-GALLERIES | ||
* @webhook | ||
* @eventType wix.pro_gallery.gallery_v2_updated | ||
* @eventType wix.pro_gallery.gallery_v2_gallery_item_deleted | ||
* @documentationMaturity preview | ||
*/ | ||
export declare function onGalleryUpdated(handler: (event: GalleryUpdatedEnvelope) => void | Promise<void>): void; | ||
export declare function onGalleryItemDeleted(handler: (event: GalleryItemDeletedEnvelope) => void | Promise<void>): void; | ||
/** | ||
@@ -1557,6 +1564,3 @@ * Retrieves a list of galleries. | ||
link?: Link; | ||
/** | ||
* Type of item. | ||
* @readonly | ||
*/ | ||
/** @readonly */ | ||
type?: Type; | ||
@@ -1563,0 +1567,0 @@ /** |
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error'; | ||
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys'; | ||
import * as ambassadorWixProGalleryV2Gallery from './pro-gallery-v2-gallery-pro-gallery.http'; | ||
import * as ambassadorWixProGalleryV2Gallery from './pro-gallery-v2-gallery-pro-gallery.http.js'; | ||
import { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image'; | ||
@@ -12,5 +12,5 @@ import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image'; | ||
LinkType["UNDEFINED"] = "UNDEFINED"; | ||
/** External link. */ | ||
/** external link */ | ||
LinkType["EXTERNAL"] = "EXTERNAL"; | ||
/** For internal usage using wixLinkData. */ | ||
/** for internal usage using wixLinkData */ | ||
LinkType["INTERNAL"] = "INTERNAL"; | ||
@@ -56,2 +56,13 @@ })(LinkType || (LinkType = {})); | ||
})(VideoType || (VideoType = {})); | ||
export var RCLabel; | ||
(function (RCLabel) { | ||
/** Illegal default value, exception will be thrown if used */ | ||
RCLabel["UNKNOWN"] = "UNKNOWN"; | ||
RCLabel["RELEASE_MANAGER"] = "RELEASE_MANAGER"; | ||
RCLabel["BLOCKS"] = "BLOCKS"; | ||
RCLabel["WIX_CLI"] = "WIX_CLI"; | ||
RCLabel["MOBILE_APP_BUILDER"] = "MOBILE_APP_BUILDER"; | ||
RCLabel["SEO"] = "SEO"; | ||
RCLabel["FEEDBACK"] = "FEEDBACK"; | ||
})(RCLabel || (RCLabel = {})); | ||
export var WebhookIdentityType; | ||
@@ -65,11 +76,2 @@ (function (WebhookIdentityType) { | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
export var State; | ||
(function (State) { | ||
/** Undefined state. */ | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor. */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite. */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (State = {})); | ||
export var Enum; | ||
@@ -99,2 +101,10 @@ (function (Enum) { | ||
})(SearchIndexingNotificationState || (SearchIndexingNotificationState = {})); | ||
export var State; | ||
(function (State) { | ||
State["UNDEFINED"] = "UNDEFINED"; | ||
/** The gallery in the Editor segment */ | ||
State["SAVED"] = "SAVED"; | ||
/** The gallery in the LiveSite segment */ | ||
State["PUBLISHED"] = "PUBLISHED"; | ||
})(State || (State = {})); | ||
/** | ||
@@ -101,0 +111,0 @@ * Retrieves a list of galleries. |
{ | ||
"sideEffects": false, | ||
"module": "../build/es/meta.js", | ||
"main": "../build/cjs/meta.js", | ||
"typings": "../build/cjs/meta.d.ts", | ||
"typesBundle": "../type-bundles/meta.bundle.d.ts" | ||
"main": "../build/cjs/meta.js" | ||
} |
{ | ||
"name": "@wix/pro-gallery_pro-gallery", | ||
"version": "1.0.34", | ||
"version": "1.0.35", | ||
"publishConfig": { | ||
@@ -12,12 +12,20 @@ "registry": "https://registry.npmjs.org/", | ||
"sideEffects": false, | ||
"module": "build/es/index.js", | ||
"main": "build/cjs/index.js", | ||
"typings": "./build/cjs/index.d.ts", | ||
"typesBundle": "./type-bundles/index.bundle.d.ts", | ||
"main": "./build/cjs/index.js", | ||
"types": "./build/es/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./build/es/index.js", | ||
"require": "./build/cjs/index.js", | ||
"types": "./build/es/index.d.ts" | ||
}, | ||
"./meta": { | ||
"import": "./build/es/meta.js", | ||
"require": "./build/cjs/meta.js", | ||
"types": "./build/es/meta.d.ts" | ||
} | ||
}, | ||
"files": [ | ||
"build", | ||
"frontend/package.json", | ||
"meta", | ||
"context", | ||
"type-bundles" | ||
"service-plugins" | ||
], | ||
@@ -29,11 +37,6 @@ "dependencies": { | ||
"devDependencies": { | ||
"glob": "^10.4.1", | ||
"rollup": "^4.18.0", | ||
"rollup-plugin-dts": "^6.1.1", | ||
"typescript": "^5.3.2" | ||
}, | ||
"scripts": { | ||
"build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles && npm run build:validate-dts", | ||
"build:dts-bundles": "test -f config/rollup-config.js && NODE_OPTIONS=--max-old-space-size=8192 rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'", | ||
"build:validate-dts": "tsc type-bundles/*.d.ts --noEmit", | ||
"build": "tsc -b tsconfig.json tsconfig.esm.json", | ||
"test": ":" | ||
@@ -51,3 +54,3 @@ }, | ||
}, | ||
"falconPackageHash": "dddab29113c247dec10604fd8af5981c7de99bc273c3351f72a06501" | ||
"falconPackageHash": "b168765332b2ad68db5a6a4f48f8f0c3e9992025770a8bec11b635fc" | ||
} |
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
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
1
567721
57
11083