@wix/auto_sdk_pro-gallery_pro-gallery 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +4 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +7 -60
- package/build/cjs/index.typings.js +4 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -6
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +4 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +7 -60
- package/build/es/index.typings.mjs +4 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -6
- package/build/es/meta.mjs +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.js +4 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +7 -60
- package/build/internal/cjs/index.typings.js +4 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -6
- package/build/internal/cjs/meta.js +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.mjs +4 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +7 -60
- package/build/internal/es/index.typings.mjs +4 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -6
- package/build/internal/es/meta.mjs +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +5 -4
|
@@ -40,7 +40,7 @@ interface Item extends ItemMetadataOneOf {
|
|
|
40
40
|
* @readonly
|
|
41
41
|
* @format GUID
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
itemId?: string | null;
|
|
44
44
|
/**
|
|
45
45
|
* Index that determines which position a media item is displayed in the gallery. <br />
|
|
46
46
|
*
|
|
@@ -158,8 +158,6 @@ interface ExternalLink {
|
|
|
158
158
|
* Following are the accepted 'rel' types by Wix applications.
|
|
159
159
|
*/
|
|
160
160
|
declare enum LinkRel {
|
|
161
|
-
/** default (not implemented) */
|
|
162
|
-
unknown_link_rel = "unknown_link_rel",
|
|
163
161
|
/** Indicates that the current document's original author or publisher does not endorse the referenced document. */
|
|
164
162
|
nofollow = "nofollow",
|
|
165
163
|
/** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
|
|
@@ -170,7 +168,7 @@ declare enum LinkRel {
|
|
|
170
168
|
sponsored = "sponsored"
|
|
171
169
|
}
|
|
172
170
|
/** @enumType */
|
|
173
|
-
type LinkRelWithLiterals = LinkRel | '
|
|
171
|
+
type LinkRelWithLiterals = LinkRel | 'nofollow' | 'noopener' | 'noreferrer' | 'sponsored';
|
|
174
172
|
interface PageLink {
|
|
175
173
|
/** The page id we want from the site */
|
|
176
174
|
pageId?: string;
|
|
@@ -707,10 +705,11 @@ declare enum RCLabel {
|
|
|
707
705
|
SEO = "SEO",
|
|
708
706
|
FEEDBACK = "FEEDBACK",
|
|
709
707
|
ACCESSIBILITY = "ACCESSIBILITY",
|
|
710
|
-
ENTERPRISE_APPROVALS = "ENTERPRISE_APPROVALS"
|
|
708
|
+
ENTERPRISE_APPROVALS = "ENTERPRISE_APPROVALS",
|
|
709
|
+
EXPORT_SITE = "EXPORT_SITE"
|
|
711
710
|
}
|
|
712
711
|
/** @enumType */
|
|
713
|
-
type RCLabelWithLiterals = RCLabel | 'UNKNOWN' | 'RELEASE_MANAGER' | 'BLOCKS' | 'WIX_CLI' | 'MOBILE_APP_BUILDER' | 'SEO' | 'FEEDBACK' | 'ACCESSIBILITY' | 'ENTERPRISE_APPROVALS';
|
|
712
|
+
type RCLabelWithLiterals = RCLabel | 'UNKNOWN' | 'RELEASE_MANAGER' | 'BLOCKS' | 'WIX_CLI' | 'MOBILE_APP_BUILDER' | 'SEO' | 'FEEDBACK' | 'ACCESSIBILITY' | 'ENTERPRISE_APPROVALS' | 'EXPORT_SITE';
|
|
714
713
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
715
714
|
/** Information about a newly-created gallery. */
|
|
716
715
|
createdEvent?: EntityCreatedEvent;
|
|
@@ -1778,7 +1777,6 @@ declare function createGalleryItem(galleryId: string, item: NonNullablePaths<Ite
|
|
|
1778
1777
|
* @documentationMaturity preview
|
|
1779
1778
|
* @requiredField identifiers
|
|
1780
1779
|
* @requiredField identifiers.galleryId
|
|
1781
|
-
* @requiredField identifiers.itemId
|
|
1782
1780
|
* @requiredField item
|
|
1783
1781
|
* @requiredField item.metadata.image.imageInfo
|
|
1784
1782
|
* @requiredField item.metadata.text.html
|
|
@@ -1790,64 +1788,13 @@ declare function createGalleryItem(galleryId: string, item: NonNullablePaths<Ite
|
|
|
1790
1788
|
* @returns Updated media item.
|
|
1791
1789
|
* @fqn com.wixpress.exposure.progallery.ProGallery.UpdateGalleryItem
|
|
1792
1790
|
*/
|
|
1793
|
-
declare function updateGalleryItem(identifiers: NonNullablePaths<UpdateGalleryItemIdentifiers, `galleryId
|
|
1791
|
+
declare function updateGalleryItem(identifiers: NonNullablePaths<UpdateGalleryItemIdentifiers, `galleryId`, 2>, item: NonNullablePaths<Item, `image.imageInfo` | `text.html` | `video.videoInfo`, 3>): Promise<NonNullablePaths<Item, `image.focalPoint.x` | `image.focalPoint.y` | `video.type` | `type` | `tags.values`, 4>>;
|
|
1794
1792
|
interface UpdateGalleryItemIdentifiers {
|
|
1795
1793
|
/**
|
|
1796
1794
|
* ID of the gallery containing the item to update.
|
|
1797
1795
|
* @format GUID
|
|
1798
1796
|
*/
|
|
1799
1797
|
galleryId: string;
|
|
1800
|
-
/**
|
|
1801
|
-
* ID of the item to update.
|
|
1802
|
-
* @readonly
|
|
1803
|
-
* @format GUID
|
|
1804
|
-
*/
|
|
1805
|
-
itemId?: string | null;
|
|
1806
|
-
}
|
|
1807
|
-
interface UpdateGalleryItem {
|
|
1808
|
-
/** Details about the image. */
|
|
1809
|
-
image?: Image;
|
|
1810
|
-
/** Details about the video. */
|
|
1811
|
-
video?: Video;
|
|
1812
|
-
/** Details about the text file. */
|
|
1813
|
-
text?: Text;
|
|
1814
|
-
/**
|
|
1815
|
-
* Item ID.
|
|
1816
|
-
* @readonly
|
|
1817
|
-
* @format GUID
|
|
1818
|
-
*/
|
|
1819
|
-
_id?: string | null;
|
|
1820
|
-
/**
|
|
1821
|
-
* Index that determines which position a media item is displayed in the gallery. <br />
|
|
1822
|
-
*
|
|
1823
|
-
* Default: [Epoch](https://www.epoch101.com/) timestamp. <br />
|
|
1824
|
-
*
|
|
1825
|
-
* >**Note:** If you assign the same sort order index to more than one media item in a gallery, the function fails.
|
|
1826
|
-
*/
|
|
1827
|
-
sortOrder?: number | null;
|
|
1828
|
-
/** Item title. */
|
|
1829
|
-
title?: string | null;
|
|
1830
|
-
/** Item description. */
|
|
1831
|
-
description?: string | null;
|
|
1832
|
-
/** Link from the item. You can link to Wix sites or external URLs. */
|
|
1833
|
-
link?: Link;
|
|
1834
|
-
/**
|
|
1835
|
-
* Type of item.
|
|
1836
|
-
* @readonly
|
|
1837
|
-
*/
|
|
1838
|
-
type?: TypeWithLiterals;
|
|
1839
|
-
/**
|
|
1840
|
-
* Date and time the item was created.
|
|
1841
|
-
* @readonly
|
|
1842
|
-
*/
|
|
1843
|
-
_createdDate?: Date | null;
|
|
1844
|
-
/**
|
|
1845
|
-
* Date and time the item was last updated.
|
|
1846
|
-
* @readonly
|
|
1847
|
-
*/
|
|
1848
|
-
_updatedDate?: Date | null;
|
|
1849
|
-
/** Item tags. */
|
|
1850
|
-
tags?: Tags;
|
|
1851
1798
|
}
|
|
1852
1799
|
/**
|
|
1853
1800
|
* Deletes a media item from a gallery.
|
|
@@ -1877,4 +1824,4 @@ interface DeleteGalleryItemIdentifiers {
|
|
|
1877
1824
|
itemId: string;
|
|
1878
1825
|
}
|
|
1879
1826
|
|
|
1880
|
-
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type BulkDeleteGalleryItemsRequest, type BulkDeleteGalleryItemsResponse, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CustomTag, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryRequest, type DeleteGalleryResponse, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryPublished, type GalleryUpdatedEnvelope, type GetActiveGalleryRevisionRequest, type GetActiveGalleryRevisionResponse, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryOptions, type GetGalleryOptionsVersionOneOf, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryRevisionRequest, type GetGalleryRevisionResponse, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type ImageTypeWithLiterals, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemsInGallery, type Link, LinkRel, type LinkRelWithLiterals, LinkType, type LinkTypeWithLiterals, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type MessageEnvelope, type Page, type PageLink, type Pages, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, RCLabel, type RCLabelWithLiterals, type RestoreAllGalleriesEvent, type RestoreInfo, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type StateWithLiterals, type Tags, type Text, type TpaPageLink, type TriggerRestoreAllGalleriesAsyncRequest, type TriggerRestoreAllGalleriesAsyncResponse, Type, type TypeWithLiterals, type URI, type URIs, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type
|
|
1827
|
+
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLink, type AnchorLink, type App, type BaseEventMetadata, type BulkDeleteGalleryItemsRequest, type BulkDeleteGalleryItemsResponse, type CleanDeletedGalleriesEvent, type CreateGalleryItemRequest, type CreateGalleryItemResponse, type CreateGalleryItemsRequest, type CreateGalleryItemsResponse, type CreateGalleryOptions, type CreateGalleryRequest, type CreateGalleryResponse, type CustomTag, type DeleteByFilterOperation, type DeleteByIdsOperation, type DeleteGalleryItemIdentifiers, type DeleteGalleryItemRequest, type DeleteGalleryItemResponse, type DeleteGalleryItemsOptions, type DeleteGalleryItemsRequest, type DeleteGalleryItemsResponse, type DeleteGalleryRequest, type DeleteGalleryResponse, type DocumentImage, type DocumentLink, type DocumentPayload, type DocumentUpdateOperation, type DomainEvent, type DomainEventBodyOneOf, type DynamicPageLink, type EmailLink, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, Enum, type EnumWithLiterals, type EventMetadata, type EventsPage, type ExternalLink, type File, type Gallery, type GalleryCreatedEnvelope, type GalleryDeletedEnvelope, type GalleryItemCreated, type GalleryItemCreatedEnvelope, type GalleryItemDeleted, type GalleryItemDeletedEnvelope, type GalleryItemUpdated, type GalleryItemUpdatedEnvelope, type GalleryPublished, type GalleryUpdatedEnvelope, type GetActiveGalleryRevisionRequest, type GetActiveGalleryRevisionResponse, type GetGalleryItemIdentifiers, type GetGalleryItemRequest, type GetGalleryItemResponse, type GetGalleryOptions, type GetGalleryOptionsVersionOneOf, type GetGalleryRequest, type GetGalleryRequestVersionOneOf, type GetGalleryResponse, type GetGalleryRevisionRequest, type GetGalleryRevisionResponse, type HtmlSitePublished, type HtmlSiteRCPublished, type IdentificationData, type IdentificationDataIdOneOf, type Image, ImageType, type ImageTypeWithLiterals, type IndexDocument, type InvalidateCache, type InvalidateCacheGetByOneOf, type Item, type ItemId, type ItemMetadataOneOf, type ItemsInGallery, type Link, LinkRel, type LinkRelWithLiterals, LinkType, type LinkTypeWithLiterals, type ListGalleriesItemsRequest, type ListGalleriesItemsResponse, type ListGalleriesOptions, type ListGalleriesRequest, type ListGalleriesResponse, type ListGalleryItemsOptions, type ListGalleryItemsRequest, type ListGalleryItemsResponse, type MessageEnvelope, type Page, type PageLink, type Pages, type PhoneLink, type Point, type ProgallerypublisherPublishGalleryRequest, type ProgallerypublisherPublishGalleryResponse, type PublishGalleryItemRequest, type PublishGalleryItemResponse, type PublishGalleryItemsRequest, type PublishGalleryItemsResponse, type PublishGalleryRequest, type PublishGalleryResponse, RCLabel, type RCLabelWithLiterals, type RestoreAllGalleriesEvent, type RestoreInfo, type SearchIndexingNotification, SearchIndexingNotificationState, type SearchIndexingNotificationStateWithLiterals, type SecondaryMedia, type SecondaryMediaMetadataOneOf, State, type StateWithLiterals, type Tags, type Text, type TpaPageLink, type TriggerRestoreAllGalleriesAsyncRequest, type TriggerRestoreAllGalleriesAsyncResponse, Type, type TypeWithLiterals, type URI, type URIs, type UnsharpMasking, type UpdateByFilterOperation, type UpdateDocumentsEvent, type UpdateDocumentsEventOperationOneOf, type UpdateExistingOperation, type UpdateGallery, type UpdateGalleryItemIdentifiers, type UpdateGalleryItemRequest, type UpdateGalleryItemResponse, type UpdateGalleryRequest, type UpdateGalleryResponse, type Video, type VideoResolution, VideoType, type VideoTypeWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, type WhatsAppLink, type WixLink, type WixLinkLinkOneOf, bulkDeleteGalleryItems, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem };
|
|
@@ -886,7 +886,6 @@ var LinkType = /* @__PURE__ */ ((LinkType2) => {
|
|
|
886
886
|
return LinkType2;
|
|
887
887
|
})(LinkType || {});
|
|
888
888
|
var LinkRel = /* @__PURE__ */ ((LinkRel2) => {
|
|
889
|
-
LinkRel2["unknown_link_rel"] = "unknown_link_rel";
|
|
890
889
|
LinkRel2["nofollow"] = "nofollow";
|
|
891
890
|
LinkRel2["noopener"] = "noopener";
|
|
892
891
|
LinkRel2["noreferrer"] = "noreferrer";
|
|
@@ -923,6 +922,7 @@ var RCLabel = /* @__PURE__ */ ((RCLabel2) => {
|
|
|
923
922
|
RCLabel2["FEEDBACK"] = "FEEDBACK";
|
|
924
923
|
RCLabel2["ACCESSIBILITY"] = "ACCESSIBILITY";
|
|
925
924
|
RCLabel2["ENTERPRISE_APPROVALS"] = "ENTERPRISE_APPROVALS";
|
|
925
|
+
RCLabel2["EXPORT_SITE"] = "EXPORT_SITE";
|
|
926
926
|
return RCLabel2;
|
|
927
927
|
})(RCLabel || {});
|
|
928
928
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
@@ -1393,7 +1393,7 @@ async function updateGalleryItem2(identifiers, item) {
|
|
|
1393
1393
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1394
1394
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1395
1395
|
galleryId: identifiers?.galleryId,
|
|
1396
|
-
item
|
|
1396
|
+
item
|
|
1397
1397
|
}),
|
|
1398
1398
|
[
|
|
1399
1399
|
{
|
|
@@ -1433,11 +1433,8 @@ async function updateGalleryItem2(identifiers, item) {
|
|
|
1433
1433
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1434
1434
|
err,
|
|
1435
1435
|
{
|
|
1436
|
-
spreadPathsToArguments: {
|
|
1437
|
-
explicitPathsToArguments: {
|
|
1438
|
-
galleryId: "$[0].galleryId",
|
|
1439
|
-
"item.id": "$[0].itemId"
|
|
1440
|
-
},
|
|
1436
|
+
spreadPathsToArguments: {},
|
|
1437
|
+
explicitPathsToArguments: { galleryId: "$[0].galleryId", item: "$[1]" },
|
|
1441
1438
|
singleArgumentUnchanged: false
|
|
1442
1439
|
},
|
|
1443
1440
|
["identifiers", "item"]
|