@wix/auto_sdk_fast-gallery_galleries 1.0.3 → 1.0.4
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 +12 -27
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +11 -29
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +12 -27
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +11 -29
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +12 -27
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +11 -29
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +12 -27
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +11 -29
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -573,7 +573,6 @@ interface GalleryRemovedFromTrashBinEnvelope {
|
|
|
573
573
|
* @documentationMaturity preview
|
|
574
574
|
*/
|
|
575
575
|
declare function onGalleryRemovedFromTrashBin(handler: (event: GalleryRemovedFromTrashBinEnvelope) => void | Promise<void>): void;
|
|
576
|
-
type GalleryNonNullablePaths = `variant`;
|
|
577
576
|
/**
|
|
578
577
|
* Creates a new Gallery
|
|
579
578
|
* @param gallery - Gallery to be created.
|
|
@@ -585,7 +584,7 @@ type GalleryNonNullablePaths = `variant`;
|
|
|
585
584
|
* @returns The created Gallery.
|
|
586
585
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.CreateGallery
|
|
587
586
|
*/
|
|
588
|
-
declare function createGallery(gallery: Gallery): Promise<NonNullablePaths<Gallery,
|
|
587
|
+
declare function createGallery(gallery: Gallery): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
|
|
589
588
|
/**
|
|
590
589
|
* Get a Gallery by id
|
|
591
590
|
* @param galleryId - ID of the Gallery to retrieve.
|
|
@@ -594,11 +593,10 @@ declare function createGallery(gallery: Gallery): Promise<NonNullablePaths<Galle
|
|
|
594
593
|
* @requiredField galleryId
|
|
595
594
|
* @permissionId FAST_GALLERY.READ
|
|
596
595
|
* @applicableIdentity APP
|
|
597
|
-
* @applicableIdentity VISITOR
|
|
598
596
|
* @returns The requested Gallery.
|
|
599
597
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.GetGallery
|
|
600
598
|
*/
|
|
601
|
-
declare function getGallery(galleryId: string): Promise<NonNullablePaths<Gallery,
|
|
599
|
+
declare function getGallery(galleryId: string): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
|
|
602
600
|
/**
|
|
603
601
|
* Get a Gallery by draft gallery id
|
|
604
602
|
* @param draftGalleryId - Id of the draftGallery the Gallery originates from
|
|
@@ -607,12 +605,9 @@ declare function getGallery(galleryId: string): Promise<NonNullablePaths<Gallery
|
|
|
607
605
|
* @requiredField draftGalleryId
|
|
608
606
|
* @permissionId FAST_GALLERY.READ
|
|
609
607
|
* @applicableIdentity APP
|
|
610
|
-
* @applicableIdentity VISITOR
|
|
611
608
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.GetGalleryByDraftGalleryId
|
|
612
609
|
*/
|
|
613
|
-
declare function getGalleryByDraftGalleryId(draftGalleryId: string): Promise<NonNullablePaths<GetGalleryByDraftGalleryIdResponse,
|
|
614
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
615
|
-
}[GalleryNonNullablePaths]>>;
|
|
610
|
+
declare function getGalleryByDraftGalleryId(draftGalleryId: string): Promise<NonNullablePaths<GetGalleryByDraftGalleryIdResponse, `gallery.variant`, 3>>;
|
|
616
611
|
/**
|
|
617
612
|
* Update a Gallery, supports partial update
|
|
618
613
|
* Pass the latest `revision` for a successful update
|
|
@@ -627,7 +622,7 @@ declare function getGalleryByDraftGalleryId(draftGalleryId: string): Promise<Non
|
|
|
627
622
|
* @returns Updated Gallery.
|
|
628
623
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.UpdateGallery
|
|
629
624
|
*/
|
|
630
|
-
declare function updateGallery(_id: string, gallery: NonNullablePaths<UpdateGallery, `revision
|
|
625
|
+
declare function updateGallery(_id: string, gallery: NonNullablePaths<UpdateGallery, `revision`, 2>): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
|
|
631
626
|
interface UpdateGallery {
|
|
632
627
|
/**
|
|
633
628
|
* Gallery ID.
|
|
@@ -683,7 +678,6 @@ interface UpdateGallery {
|
|
|
683
678
|
* @documentationMaturity preview
|
|
684
679
|
* @permissionId FAST_GALLERY.READ
|
|
685
680
|
* @applicableIdentity APP
|
|
686
|
-
* @applicableIdentity VISITOR
|
|
687
681
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.QueryGalleries
|
|
688
682
|
*/
|
|
689
683
|
declare function queryGalleries(): GalleriesQueryBuilder;
|
|
@@ -778,9 +772,7 @@ interface GalleriesQueryBuilder {
|
|
|
778
772
|
* @applicableIdentity APP
|
|
779
773
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.UpdateExtendedFields
|
|
780
774
|
*/
|
|
781
|
-
declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData
|
|
782
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
783
|
-
}[GalleryNonNullablePaths]>>;
|
|
775
|
+
declare function updateExtendedFields(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `gallery.variant`, 3>>;
|
|
784
776
|
interface UpdateExtendedFieldsOptions {
|
|
785
777
|
/** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */
|
|
786
778
|
namespaceData: Record<string, any> | null;
|
|
@@ -795,9 +787,7 @@ interface UpdateExtendedFieldsOptions {
|
|
|
795
787
|
* @applicableIdentity APP
|
|
796
788
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.BulkCreateGalleries
|
|
797
789
|
*/
|
|
798
|
-
declare function bulkCreateGalleries(galleries: Gallery[], options?: BulkCreateGalleriesOptions): Promise<NonNullablePaths<BulkCreateGalleriesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
799
|
-
[P in GalleryNonNullablePaths]: `results.${number}.item.${P}`;
|
|
800
|
-
}[GalleryNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
790
|
+
declare function bulkCreateGalleries(galleries: Gallery[], options?: BulkCreateGalleriesOptions): Promise<NonNullablePaths<BulkCreateGalleriesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.variant` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
801
791
|
interface BulkCreateGalleriesOptions {
|
|
802
792
|
/** set to `true` if you wish to receive back the created Galleries in the response */
|
|
803
793
|
returnEntity?: boolean;
|
|
@@ -813,9 +803,7 @@ interface BulkCreateGalleriesOptions {
|
|
|
813
803
|
* @applicableIdentity APP
|
|
814
804
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.BulkUpdateGalleries
|
|
815
805
|
*/
|
|
816
|
-
declare function bulkUpdateGalleries(galleries: NonNullablePaths<MaskedGallery, `gallery.revision
|
|
817
|
-
[P in GalleryNonNullablePaths]: `results.${number}.item.${P}`;
|
|
818
|
-
}[GalleryNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
806
|
+
declare function bulkUpdateGalleries(galleries: NonNullablePaths<MaskedGallery, `gallery.revision`, 3>[], options?: BulkUpdateGalleriesOptions): Promise<NonNullablePaths<BulkUpdateGalleriesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.variant` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
819
807
|
interface BulkUpdateGalleriesOptions {
|
|
820
808
|
/** set to `true` if you wish to receive back the updated Galleries in the response */
|
|
821
809
|
returnEntity?: boolean;
|
|
@@ -830,7 +818,7 @@ interface BulkUpdateGalleriesOptions {
|
|
|
830
818
|
* @applicableIdentity APP
|
|
831
819
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.BulkDeleteGalleries
|
|
832
820
|
*/
|
|
833
|
-
declare function bulkDeleteGalleries(galleryIds: string[]): Promise<NonNullablePaths<BulkDeleteGalleriesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures
|
|
821
|
+
declare function bulkDeleteGalleries(galleryIds: string[]): Promise<NonNullablePaths<BulkDeleteGalleriesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
834
822
|
/**
|
|
835
823
|
* Get a deleted Gallery by id
|
|
836
824
|
* @param galleryId - Id of the deleted Gallery to retrieve
|
|
@@ -841,9 +829,7 @@ declare function bulkDeleteGalleries(galleryIds: string[]): Promise<NonNullableP
|
|
|
841
829
|
* @applicableIdentity APP
|
|
842
830
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.GetDeletedGallery
|
|
843
831
|
*/
|
|
844
|
-
declare function getDeletedGallery(galleryId: string): Promise<NonNullablePaths<GetDeletedGalleryResponse,
|
|
845
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
846
|
-
}[GalleryNonNullablePaths]>>;
|
|
832
|
+
declare function getDeletedGallery(galleryId: string): Promise<NonNullablePaths<GetDeletedGalleryResponse, `gallery.variant`, 3>>;
|
|
847
833
|
/**
|
|
848
834
|
* Get all deleted Galleries, or specific ones specified by ids
|
|
849
835
|
* @public
|
|
@@ -852,9 +838,7 @@ declare function getDeletedGallery(galleryId: string): Promise<NonNullablePaths<
|
|
|
852
838
|
* @applicableIdentity APP
|
|
853
839
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.ListDeletedGalleries
|
|
854
840
|
*/
|
|
855
|
-
declare function listDeletedGalleries(options?: ListDeletedGalleriesOptions): Promise<NonNullablePaths<ListDeletedGalleriesResponse, {
|
|
856
|
-
[P in GalleryNonNullablePaths]: `galleries.${number}.${P}`;
|
|
857
|
-
}[GalleryNonNullablePaths]>>;
|
|
841
|
+
declare function listDeletedGalleries(options?: ListDeletedGalleriesOptions): Promise<NonNullablePaths<ListDeletedGalleriesResponse, `galleries` | `galleries.${number}.variant`, 4>>;
|
|
858
842
|
interface ListDeletedGalleriesOptions {
|
|
859
843
|
/** WQL expression */
|
|
860
844
|
cursorPaging?: CursorPaging;
|
|
@@ -875,9 +859,7 @@ interface ListDeletedGalleriesOptions {
|
|
|
875
859
|
* @applicableIdentity APP
|
|
876
860
|
* @fqn wix.fastgallery.gallery.v1.GalleryService.RestoreGalleryFromTrashBin
|
|
877
861
|
*/
|
|
878
|
-
declare function restoreGalleryFromTrashBin(galleryId: string): Promise<NonNullablePaths<RestoreGalleryFromTrashBinResponse,
|
|
879
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
880
|
-
}[GalleryNonNullablePaths]>>;
|
|
862
|
+
declare function restoreGalleryFromTrashBin(galleryId: string): Promise<NonNullablePaths<RestoreGalleryFromTrashBinResponse, `gallery.variant`, 3>>;
|
|
881
863
|
/**
|
|
882
864
|
* Permanently delete a Gallery from the trash bin by id
|
|
883
865
|
* @param galleryId - Id of the Gallery to delete permanently
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/fastgallery-gallery-v1-gallery-galleries.universal.ts","../../../src/fastgallery-gallery-v1-gallery-galleries.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFastgalleryGalleryV1Gallery from './fastgallery-gallery-v1-gallery-galleries.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Gallery is the main entity of GalleryService */\nexport interface Gallery {\n /**\n * Gallery ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * DraftGallery ID this Gallery was published from\n * @format GUID\n * @immutable\n */\n draftGalleryId?: string | null;\n /**\n * The site version the gallery was published to\n * @readonly\n */\n siteVersion?: string | null;\n /** Total number of items this Gallery contains */\n itemsCount?: number | null;\n /**\n * Represents the time this Gallery was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Gallery was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data extensions ExtendedFields */\n extendedFields?: ExtendedFields;\n /**\n * Variant of the gallery, whether it's a live or RC\n * @immutable\n */\n variant?: VariantWithLiterals;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport enum Variant {\n /** Default value, unused */\n UNKNOWN_VARIANT = 'UNKNOWN_VARIANT',\n /** Live version, there can be only one live */\n LIVE = 'LIVE',\n /** Release Candidate version */\n RC = 'RC',\n}\n\n/** @enumType */\nexport type VariantWithLiterals = Variant | 'UNKNOWN_VARIANT' | 'LIVE' | 'RC';\n\nexport interface GalleryRemovedFromTrashBin {\n /** The Gallery that was removed from the trash bin */\n gallery?: Gallery;\n}\n\nexport interface CreateGalleryRequest {\n /** Gallery to be created. */\n gallery: Gallery;\n}\n\nexport interface CreateGalleryResponse {\n /** The created Gallery. */\n gallery?: Gallery;\n}\n\nexport interface GetGalleryRequest {\n /**\n * ID of the Gallery to retrieve.\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface GetGalleryResponse {\n /** The requested Gallery. */\n gallery?: Gallery;\n}\n\nexport interface GetGalleryByDraftGalleryIdRequest {\n /**\n * Id of the draftGallery the Gallery originates from\n * @format GUID\n */\n draftGalleryId: string;\n}\n\nexport interface GetGalleryByDraftGalleryIdResponse {\n /** The retrieved Gallery */\n gallery?: Gallery;\n}\n\nexport interface UpdateGalleryRequest {\n /** Gallery to be updated, may be partial. */\n gallery: Gallery;\n}\n\nexport interface UpdateGalleryResponse {\n /** Updated Gallery. */\n gallery?: Gallery;\n}\n\nexport interface DeleteGalleryRequest {\n /**\n * Id of the Gallery to delete.\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface DeleteGalleryResponse {}\n\nexport interface QueryGalleriesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryGalleriesResponse {\n /** List of Galleries. */\n galleries?: Gallery[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated Gallery. */\n gallery?: Gallery;\n}\n\nexport interface BulkCreateGalleriesRequest {\n /**\n * List of Galleries to be created\n * @minSize 1\n * @maxSize 100\n */\n galleries: Gallery[];\n /** set to `true` if you wish to receive back the created Galleries in the response */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateGalleriesResponse {\n /**\n * List of the bulk create operation results including the Galleries and metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkGalleryResult[];\n /** Metadata regarding the bulk create operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkGalleryResult {\n /** Metadata regarding the specific single create operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Gallery;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateGalleriesRequest {\n /**\n * List of Galleries to be updated.\n * @minSize 1\n * @maxSize 100\n */\n galleries: MaskedGallery[];\n /** set to `true` if you wish to receive back the updated Galleries in the response */\n returnEntity?: boolean;\n}\n\nexport interface MaskedGallery {\n /** Gallery to be updated, may be partial */\n gallery?: Gallery;\n}\n\nexport interface BulkUpdateGalleriesResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateGalleriesResponseBulkGalleryResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateGalleriesResponseBulkGalleryResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Gallery;\n}\n\nexport interface BulkDeleteGalleriesRequest {\n /**\n * Gallery ids to be deleted\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n galleryIds: string[];\n}\n\nexport interface BulkDeleteGalleriesResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteGalleriesResponseBulkGalleryResult[];\n /** Metadata regarding the bulk delete operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteGalleriesResponseBulkGalleryResult {\n /** Metadata regarding the specific single delete operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface GetDeletedGalleryRequest {\n /**\n * Id of the deleted Gallery to retrieve\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface GetDeletedGalleryResponse {\n /** The retrieved Gallery */\n gallery?: Gallery;\n}\n\nexport interface ListDeletedGalleriesRequest {\n /** WQL expression */\n cursorPaging?: CursorPaging;\n /**\n * gallery ids to list\n * @format GUID\n * @maxSize 100\n */\n galleryIds?: string[];\n}\n\nexport interface ListDeletedGalleriesResponse {\n /**\n * The retrieved deleted Galleries\n * @maxSize 100\n */\n galleries?: Gallery[];\n /** WQL expression */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface RestoreGalleryFromTrashBinRequest {\n /**\n * Id of the deleted Gallery to restore\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface RestoreGalleryFromTrashBinResponse {\n /** The retrieved Gallery */\n gallery?: Gallery;\n}\n\nexport interface RemoveGalleryFromTrashBinRequest {\n /**\n * Id of the Gallery to delete permanently\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface RemoveGalleryFromTrashBinResponse {}\n\nexport interface DeleteOutdatedGalleryVersionsRequest {\n /** galleries with site version smaller than this will be deleted */\n publishedSiteVersion?: string;\n}\n\nexport interface DeleteOutdatedGalleryVersionsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface GalleryRemovedFromTrashBinEnvelope {\n data: GalleryRemovedFromTrashBin;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Fast Gallery Manager\n * @permissionScopeId SCOPE.FAST-GALLERY.MANAGE\n * @permissionId FAST_GALLERY.READ\n * @webhook\n * @eventType wix.fastgallery.gallery.v1.gallery_gallery_removed_from_trash_bin\n * @serviceIdentifier wix.fastgallery.gallery.v1.GalleryService\n * @slug gallery_removed_from_trash_bin\n * @documentationMaturity preview\n */\nexport declare function onGalleryRemovedFromTrashBin(\n handler: (event: GalleryRemovedFromTrashBinEnvelope) => void | Promise<void>\n): void;\n\ntype GalleryNonNullablePaths = `variant`;\n\n/**\n * Creates a new Gallery\n * @param gallery - Gallery to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField gallery\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns The created Gallery.\n * @fqn wix.fastgallery.gallery.v1.GalleryService.CreateGallery\n */\nexport async function createGallery(\n gallery: Gallery\n): Promise<NonNullablePaths<Gallery, GalleryNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ gallery: gallery });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.createGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { gallery: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['gallery']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a Gallery by id\n * @param galleryId - ID of the Gallery to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @returns The requested Gallery.\n * @fqn wix.fastgallery.gallery.v1.GalleryService.GetGallery\n */\nexport async function getGallery(\n galleryId: string\n): Promise<NonNullablePaths<Gallery, GalleryNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts = ambassadorWixFastgalleryGalleryV1Gallery.getGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a Gallery by draft gallery id\n * @param draftGalleryId - Id of the draftGallery the Gallery originates from\n * @public\n * @documentationMaturity preview\n * @requiredField draftGalleryId\n * @permissionId FAST_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.fastgallery.gallery.v1.GalleryService.GetGalleryByDraftGalleryId\n */\nexport async function getGalleryByDraftGalleryId(\n draftGalleryId: string\n): Promise<\n NonNullablePaths<\n GetGalleryByDraftGalleryIdResponse,\n { [P in GalleryNonNullablePaths]: `gallery.${P}` }[GalleryNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n draftGalleryId: draftGalleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.getGalleryByDraftGalleryId(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { draftGalleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['draftGalleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Update a Gallery, supports partial update\n * Pass the latest `revision` for a successful update\n * @param _id - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField gallery\n * @requiredField gallery.revision\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Updated Gallery.\n * @fqn wix.fastgallery.gallery.v1.GalleryService.UpdateGallery\n */\nexport async function updateGallery(\n _id: string,\n gallery: NonNullablePaths<UpdateGallery, `revision`>\n): Promise<NonNullablePaths<Gallery, GalleryNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n gallery: { ...gallery, id: _id },\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.updateGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { gallery: '$[1]' },\n explicitPathsToArguments: { 'gallery.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'gallery']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateGallery {\n /**\n * Gallery ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * DraftGallery ID this Gallery was published from\n * @format GUID\n * @immutable\n */\n draftGalleryId?: string | null;\n /**\n * The site version the gallery was published to\n * @readonly\n */\n siteVersion?: string | null;\n /** Total number of items this Gallery contains */\n itemsCount?: number | null;\n /**\n * Represents the time this Gallery was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Gallery was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data extensions ExtendedFields */\n extendedFields?: ExtendedFields;\n /**\n * Variant of the gallery, whether it's a live or RC\n * @immutable\n */\n variant?: VariantWithLiterals;\n}\n\n/**\n * Creates a query to retrieve a list of galleries.\n *\n * The `queryGalleries()` method builds a query to retrieve a list of galleries and returns a `GalleriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `GalleriesQueryBuilder` methods onto the query. `GalleriesQueryBuilder` methods enable you to filter, sort, and control the results that `queryGalleries()` returns.\n * @public\n * @documentationMaturity preview\n * @permissionId FAST_GALLERY.READ\n * @applicableIdentity APP\n * @applicableIdentity VISITOR\n * @fqn wix.fastgallery.gallery.v1.GalleryService.QueryGalleries\n */\nexport function queryGalleries(): GalleriesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Gallery,\n 'CURSOR',\n QueryGalleriesRequest,\n QueryGalleriesResponse\n >({\n func: async (payload: QueryGalleriesRequest) => {\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.queryGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryGalleriesRequest['query']) => {\n const args = [query, {}] as [QueryGalleriesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryGalleriesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.galleries,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface GalleriesQueryResult extends QueryCursorResult {\n items: Gallery[];\n query: GalleriesQueryBuilder;\n next: () => Promise<GalleriesQueryResult>;\n prev: () => Promise<GalleriesQueryResult>;\n}\n\nexport interface GalleriesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (propertyName: '_id', value: string) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any[]\n ) => GalleriesQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: boolean\n ) => GalleriesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n '_id' | 'siteVersion' | '_createdDate' | '_updatedDate'\n >\n ) => GalleriesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n '_id' | 'siteVersion' | '_createdDate' | '_updatedDate'\n >\n ) => GalleriesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => GalleriesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => GalleriesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<GalleriesQueryResult>;\n}\n\n/**\n * Updates extended fields of a Gallery without incrementing revision\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`>\n): Promise<\n NonNullablePaths<\n UpdateExtendedFieldsResponse,\n { [P in GalleryNonNullablePaths]: `gallery.${P}` }[GalleryNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\n/**\n * Create multiple Galleries in a single request. Works synchronously.\n * @param galleries - List of Galleries to be created\n * @public\n * @documentationMaturity preview\n * @requiredField galleries\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.BulkCreateGalleries\n */\nexport async function bulkCreateGalleries(\n galleries: Gallery[],\n options?: BulkCreateGalleriesOptions\n): Promise<\n NonNullablePaths<\n BulkCreateGalleriesResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | {\n [P in GalleryNonNullablePaths]: `results.${number}.item.${P}`;\n }[GalleryNonNullablePaths]\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleries: galleries,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.bulkCreateGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleries: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['galleries', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateGalleriesOptions {\n /** set to `true` if you wish to receive back the created Galleries in the response */\n returnEntity?: boolean;\n}\n\n/**\n * Update multiple Galleries in a single request. Works synchronously.\n * @param galleries - List of Galleries to be updated.\n * @public\n * @documentationMaturity preview\n * @requiredField galleries\n * @requiredField galleries.gallery.revision\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.BulkUpdateGalleries\n */\nexport async function bulkUpdateGalleries(\n galleries: NonNullablePaths<MaskedGallery, `gallery.revision`>[],\n options?: BulkUpdateGalleriesOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateGalleriesResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | {\n [P in GalleryNonNullablePaths]: `results.${number}.item.${P}`;\n }[GalleryNonNullablePaths]\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleries: galleries,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.bulkUpdateGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleries: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['galleries', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateGalleriesOptions {\n /** set to `true` if you wish to receive back the updated Galleries in the response */\n returnEntity?: boolean;\n}\n\n/**\n * Delete multiple Galleries in a single request. Works synchronously.\n * @param galleryIds - Gallery ids to be deleted\n * @public\n * @documentationMaturity preview\n * @requiredField galleryIds\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.BulkDeleteGalleries\n */\nexport async function bulkDeleteGalleries(\n galleryIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteGalleriesResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryIds: galleryIds,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.bulkDeleteGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a deleted Gallery by id\n * @param galleryId - Id of the deleted Gallery to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.GetDeletedGallery\n */\nexport async function getDeletedGallery(\n galleryId: string\n): Promise<\n NonNullablePaths<\n GetDeletedGalleryResponse,\n { [P in GalleryNonNullablePaths]: `gallery.${P}` }[GalleryNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.getDeletedGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get all deleted Galleries, or specific ones specified by ids\n * @public\n * @documentationMaturity preview\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.ListDeletedGalleries\n */\nexport async function listDeletedGalleries(\n options?: ListDeletedGalleriesOptions\n): Promise<\n NonNullablePaths<\n ListDeletedGalleriesResponse,\n {\n [P in GalleryNonNullablePaths]: `galleries.${number}.${P}`;\n }[GalleryNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n cursorPaging: options?.cursorPaging,\n galleryIds: options?.galleryIds,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.listDeletedGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n cursorPaging: '$[0].cursorPaging',\n galleryIds: '$[0].galleryIds',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeletedGalleriesOptions {\n /** WQL expression */\n cursorPaging?: CursorPaging;\n /**\n * gallery ids to list\n * @format GUID\n * @maxSize 100\n */\n galleryIds?: string[];\n}\n\n/**\n * Restore a deleted Gallery from the trash bin by id\n * @param galleryId - Id of the deleted Gallery to restore\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.RestoreGalleryFromTrashBin\n */\nexport async function restoreGalleryFromTrashBin(\n galleryId: string\n): Promise<\n NonNullablePaths<\n RestoreGalleryFromTrashBinResponse,\n { [P in GalleryNonNullablePaths]: `gallery.${P}` }[GalleryNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.restoreGalleryFromTrashBin(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Permanently delete a Gallery from the trash bin by id\n * @param galleryId - Id of the Gallery to delete permanently\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.RemoveGalleryFromTrashBin\n */\nexport async function removeGalleryFromTrashBin(\n galleryId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.removeGalleryFromTrashBin(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFastgalleryGalleryV1GalleryServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/fastgallery/gallery/v1/bulk/galleries',\n destPath: '/v1/bulk/galleries',\n },\n {\n srcPath: '/fastgallery/gallery/v1/galleries',\n destPath: '/v1/galleries',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_fast-gallery_galleries';\n\n/** Creates a new Gallery */\nexport function createGallery(payload: object): RequestOptionsFactory<any> {\n function __createGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.CreateGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createGallery;\n}\n\n/** Get a Gallery by id */\nexport function getGallery(payload: object): RequestOptionsFactory<any> {\n function __getGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.GetGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGallery;\n}\n\n/** Get a Gallery by draft gallery id */\nexport function getGalleryByDraftGalleryId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getGalleryByDraftGalleryId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.GetGalleryByDraftGalleryId',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/draft-gallery-id/{draftGalleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGalleryByDraftGalleryId;\n}\n\n/**\n * Update a Gallery, supports partial update\n * Pass the latest `revision` for a successful update\n */\nexport function updateGallery(payload: object): RequestOptionsFactory<any> {\n function __updateGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'PATCH' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.UpdateGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/{gallery.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateGallery;\n}\n\n/**\n * Creates a query to retrieve a list of galleries.\n *\n * The `queryGalleries()` method builds a query to retrieve a list of galleries and returns a `GalleriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `GalleriesQueryBuilder` methods onto the query. `GalleriesQueryBuilder` methods enable you to filter, sort, and control the results that `queryGalleries()` returns.\n */\nexport function queryGalleries(payload: object): RequestOptionsFactory<any> {\n function __queryGalleries({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.QueryGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryGalleries;\n}\n\n/** Updates extended fields of a Gallery without incrementing revision */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n\n/** Create multiple Galleries in a single request. Works synchronously. */\nexport function bulkCreateGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateGalleries({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.BulkCreateGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/bulk/galleries/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateGalleries;\n}\n\n/** Update multiple Galleries in a single request. Works synchronously. */\nexport function bulkUpdateGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateGalleries({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'galleries.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'galleries.gallery.createdDate' },\n { path: 'galleries.gallery.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.BulkUpdateGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/bulk/galleries/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateGalleries;\n}\n\n/** Delete multiple Galleries in a single request. Works synchronously. */\nexport function bulkDeleteGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteGalleries({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.BulkDeleteGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/bulk/galleries/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteGalleries;\n}\n\n/** Get a deleted Gallery by id */\nexport function getDeletedGallery(payload: object): RequestOptionsFactory<any> {\n function __getDeletedGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.GetDeletedGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeletedGallery;\n}\n\n/** Get all deleted Galleries, or specific ones specified by ids */\nexport function listDeletedGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDeletedGalleries({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.ListDeletedGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDeletedGalleries;\n}\n\n/** Restore a deleted Gallery from the trash bin by id */\nexport function restoreGalleryFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __restoreGalleryFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.RestoreGalleryFromTrashBin',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin/{galleryId}/restore',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __restoreGalleryFromTrashBin;\n}\n\n/** Permanently delete a Gallery from the trash bin by id */\nexport function removeGalleryFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeGalleryFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.RemoveGalleryFromTrashBin',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __removeGalleryFromTrashBin;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,gDACP,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,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACqC,0BAA0B,OAAO;AAE5E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAAA,EACjC,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,WAAW,OAAO;AAAA,QAC9C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,WAAW;AAAA,IACd;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","Variant","SortOrder","WebhookIdentityType","createGallery","getGallery","getGalleryByDraftGalleryId","updateGallery","queryGalleries","updateExtendedFields","bulkCreateGalleries","bulkUpdateGalleries","bulkDeleteGalleries","getDeletedGallery","listDeletedGalleries","restoreGalleryFromTrashBin","removeGalleryFromTrashBin"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/fastgallery-gallery-v1-gallery-galleries.universal.ts","../../../src/fastgallery-gallery-v1-gallery-galleries.http.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixFastgalleryGalleryV1Gallery from './fastgallery-gallery-v1-gallery-galleries.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** Gallery is the main entity of GalleryService */\nexport interface Gallery {\n /**\n * Gallery ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * DraftGallery ID this Gallery was published from\n * @format GUID\n * @immutable\n */\n draftGalleryId?: string | null;\n /**\n * The site version the gallery was published to\n * @readonly\n */\n siteVersion?: string | null;\n /** Total number of items this Gallery contains */\n itemsCount?: number | null;\n /**\n * Represents the time this Gallery was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Gallery was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data extensions ExtendedFields */\n extendedFields?: ExtendedFields;\n /**\n * Variant of the gallery, whether it's a live or RC\n * @immutable\n */\n variant?: VariantWithLiterals;\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport enum Variant {\n /** Default value, unused */\n UNKNOWN_VARIANT = 'UNKNOWN_VARIANT',\n /** Live version, there can be only one live */\n LIVE = 'LIVE',\n /** Release Candidate version */\n RC = 'RC',\n}\n\n/** @enumType */\nexport type VariantWithLiterals = Variant | 'UNKNOWN_VARIANT' | 'LIVE' | 'RC';\n\nexport interface GalleryRemovedFromTrashBin {\n /** The Gallery that was removed from the trash bin */\n gallery?: Gallery;\n}\n\nexport interface CreateGalleryRequest {\n /** Gallery to be created. */\n gallery: Gallery;\n}\n\nexport interface CreateGalleryResponse {\n /** The created Gallery. */\n gallery?: Gallery;\n}\n\nexport interface GetGalleryRequest {\n /**\n * ID of the Gallery to retrieve.\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface GetGalleryResponse {\n /** The requested Gallery. */\n gallery?: Gallery;\n}\n\nexport interface GetGalleryByDraftGalleryIdRequest {\n /**\n * Id of the draftGallery the Gallery originates from\n * @format GUID\n */\n draftGalleryId: string;\n}\n\nexport interface GetGalleryByDraftGalleryIdResponse {\n /** The retrieved Gallery */\n gallery?: Gallery;\n}\n\nexport interface UpdateGalleryRequest {\n /** Gallery to be updated, may be partial. */\n gallery: Gallery;\n}\n\nexport interface UpdateGalleryResponse {\n /** Updated Gallery. */\n gallery?: Gallery;\n}\n\nexport interface DeleteGalleryRequest {\n /**\n * Id of the Gallery to delete.\n * @format GUID\n */\n galleryId?: string;\n}\n\nexport interface DeleteGalleryResponse {}\n\nexport interface QueryGalleriesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryGalleriesResponse {\n /** List of Galleries. */\n galleries?: Gallery[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n /** ID of the entity to update. */\n _id: string;\n /** Identifier for the app whose extended fields are being updated. */\n namespace: string;\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n /** Updated Gallery. */\n gallery?: Gallery;\n}\n\nexport interface BulkCreateGalleriesRequest {\n /**\n * List of Galleries to be created\n * @minSize 1\n * @maxSize 100\n */\n galleries: Gallery[];\n /** set to `true` if you wish to receive back the created Galleries in the response */\n returnEntity?: boolean;\n}\n\nexport interface BulkCreateGalleriesResponse {\n /**\n * List of the bulk create operation results including the Galleries and metadata.\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkGalleryResult[];\n /** Metadata regarding the bulk create operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface ItemMetadata {\n /**\n * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\n * @format GUID\n */\n _id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkGalleryResult {\n /** Metadata regarding the specific single create operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Gallery;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface BulkUpdateGalleriesRequest {\n /**\n * List of Galleries to be updated.\n * @minSize 1\n * @maxSize 100\n */\n galleries: MaskedGallery[];\n /** set to `true` if you wish to receive back the updated Galleries in the response */\n returnEntity?: boolean;\n}\n\nexport interface MaskedGallery {\n /** Gallery to be updated, may be partial */\n gallery?: Gallery;\n}\n\nexport interface BulkUpdateGalleriesResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkUpdateGalleriesResponseBulkGalleryResult[];\n /** Metadata regarding the bulk update operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkUpdateGalleriesResponseBulkGalleryResult {\n /** Metadata regarding the specific single update operation */\n itemMetadata?: ItemMetadata;\n /** Only exists if `returnEntity` was set to true in the request */\n item?: Gallery;\n}\n\nexport interface BulkDeleteGalleriesRequest {\n /**\n * Gallery ids to be deleted\n * @minSize 1\n * @maxSize 100\n * @format GUID\n */\n galleryIds: string[];\n}\n\nexport interface BulkDeleteGalleriesResponse {\n /**\n * Results\n * @minSize 1\n * @maxSize 100\n */\n results?: BulkDeleteGalleriesResponseBulkGalleryResult[];\n /** Metadata regarding the bulk delete operation */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkDeleteGalleriesResponseBulkGalleryResult {\n /** Metadata regarding the specific single delete operation */\n itemMetadata?: ItemMetadata;\n}\n\nexport interface GetDeletedGalleryRequest {\n /**\n * Id of the deleted Gallery to retrieve\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface GetDeletedGalleryResponse {\n /** The retrieved Gallery */\n gallery?: Gallery;\n}\n\nexport interface ListDeletedGalleriesRequest {\n /** WQL expression */\n cursorPaging?: CursorPaging;\n /**\n * gallery ids to list\n * @format GUID\n * @maxSize 100\n */\n galleryIds?: string[];\n}\n\nexport interface ListDeletedGalleriesResponse {\n /**\n * The retrieved deleted Galleries\n * @maxSize 100\n */\n galleries?: Gallery[];\n /** WQL expression */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface RestoreGalleryFromTrashBinRequest {\n /**\n * Id of the deleted Gallery to restore\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface RestoreGalleryFromTrashBinResponse {\n /** The retrieved Gallery */\n gallery?: Gallery;\n}\n\nexport interface RemoveGalleryFromTrashBinRequest {\n /**\n * Id of the Gallery to delete permanently\n * @format GUID\n */\n galleryId: string;\n}\n\nexport interface RemoveGalleryFromTrashBinResponse {}\n\nexport interface DeleteOutdatedGalleryVersionsRequest {\n /** galleries with site version smaller than this will be deleted */\n publishedSiteVersion?: string;\n}\n\nexport interface DeleteOutdatedGalleryVersionsResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface GalleryRemovedFromTrashBinEnvelope {\n data: GalleryRemovedFromTrashBin;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Fast Gallery Manager\n * @permissionScopeId SCOPE.FAST-GALLERY.MANAGE\n * @permissionId FAST_GALLERY.READ\n * @webhook\n * @eventType wix.fastgallery.gallery.v1.gallery_gallery_removed_from_trash_bin\n * @serviceIdentifier wix.fastgallery.gallery.v1.GalleryService\n * @slug gallery_removed_from_trash_bin\n * @documentationMaturity preview\n */\nexport declare function onGalleryRemovedFromTrashBin(\n handler: (event: GalleryRemovedFromTrashBinEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a new Gallery\n * @param gallery - Gallery to be created.\n * @public\n * @documentationMaturity preview\n * @requiredField gallery\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns The created Gallery.\n * @fqn wix.fastgallery.gallery.v1.GalleryService.CreateGallery\n */\nexport async function createGallery(\n gallery: Gallery\n): Promise<NonNullablePaths<Gallery, `variant`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ gallery: gallery });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.createGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { gallery: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['gallery']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a Gallery by id\n * @param galleryId - ID of the Gallery to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.READ\n * @applicableIdentity APP\n * @returns The requested Gallery.\n * @fqn wix.fastgallery.gallery.v1.GalleryService.GetGallery\n */\nexport async function getGallery(\n galleryId: string\n): Promise<NonNullablePaths<Gallery, `variant`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts = ambassadorWixFastgalleryGalleryV1Gallery.getGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a Gallery by draft gallery id\n * @param draftGalleryId - Id of the draftGallery the Gallery originates from\n * @public\n * @documentationMaturity preview\n * @requiredField draftGalleryId\n * @permissionId FAST_GALLERY.READ\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.GetGalleryByDraftGalleryId\n */\nexport async function getGalleryByDraftGalleryId(\n draftGalleryId: string\n): Promise<\n NonNullablePaths<GetGalleryByDraftGalleryIdResponse, `gallery.variant`, 3>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n draftGalleryId: draftGalleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.getGalleryByDraftGalleryId(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { draftGalleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['draftGalleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Update a Gallery, supports partial update\n * Pass the latest `revision` for a successful update\n * @param _id - Gallery ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField gallery\n * @requiredField gallery.revision\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @returns Updated Gallery.\n * @fqn wix.fastgallery.gallery.v1.GalleryService.UpdateGallery\n */\nexport async function updateGallery(\n _id: string,\n gallery: NonNullablePaths<UpdateGallery, `revision`, 2>\n): Promise<NonNullablePaths<Gallery, `variant`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n gallery: { ...gallery, id: _id },\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.updateGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.gallery!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { gallery: '$[1]' },\n explicitPathsToArguments: { 'gallery.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'gallery']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateGallery {\n /**\n * Gallery ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Represents the current state of the Gallery. Each time the gallery is modified, its `revision` changes by the server. for an update operation to succeed, you MUST pass the latest revision\n * @readonly\n */\n revision?: string | null;\n /**\n * DraftGallery ID this Gallery was published from\n * @format GUID\n * @immutable\n */\n draftGalleryId?: string | null;\n /**\n * The site version the gallery was published to\n * @readonly\n */\n siteVersion?: string | null;\n /** Total number of items this Gallery contains */\n itemsCount?: number | null;\n /**\n * Represents the time this Gallery was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Represents the time this Gallery was last updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Data extensions ExtendedFields */\n extendedFields?: ExtendedFields;\n /**\n * Variant of the gallery, whether it's a live or RC\n * @immutable\n */\n variant?: VariantWithLiterals;\n}\n\n/**\n * Creates a query to retrieve a list of galleries.\n *\n * The `queryGalleries()` method builds a query to retrieve a list of galleries and returns a `GalleriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `GalleriesQueryBuilder` methods onto the query. `GalleriesQueryBuilder` methods enable you to filter, sort, and control the results that `queryGalleries()` returns.\n * @public\n * @documentationMaturity preview\n * @permissionId FAST_GALLERY.READ\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.QueryGalleries\n */\nexport function queryGalleries(): GalleriesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n Gallery,\n 'CURSOR',\n QueryGalleriesRequest,\n QueryGalleriesResponse\n >({\n func: async (payload: QueryGalleriesRequest) => {\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.queryGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryGalleriesRequest['query']) => {\n const args = [query, {}] as [QueryGalleriesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({ data }: HttpResponse<QueryGalleriesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.galleries,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface GalleriesQueryResult extends QueryCursorResult {\n items: Gallery[];\n query: GalleriesQueryBuilder;\n next: () => Promise<GalleriesQueryResult>;\n prev: () => Promise<GalleriesQueryResult>;\n}\n\nexport interface GalleriesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (propertyName: '_id', value: string) => GalleriesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any[]\n ) => GalleriesQueryBuilder;\n /** @documentationMaturity preview */\n in: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: any\n ) => GalleriesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (\n propertyName: '_id' | 'siteVersion' | '_createdDate' | '_updatedDate',\n value: boolean\n ) => GalleriesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (\n ...propertyNames: Array<\n '_id' | 'siteVersion' | '_createdDate' | '_updatedDate'\n >\n ) => GalleriesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (\n ...propertyNames: Array<\n '_id' | 'siteVersion' | '_createdDate' | '_updatedDate'\n >\n ) => GalleriesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => GalleriesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => GalleriesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<GalleriesQueryResult>;\n}\n\n/**\n * Updates extended fields of a Gallery without incrementing revision\n * @param _id - ID of the entity to update.\n * @param namespace - Identifier for the app whose extended fields are being updated.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField namespace\n * @requiredField options\n * @requiredField options.namespaceData\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.UpdateExtendedFields\n */\nexport async function updateExtendedFields(\n _id: string,\n namespace: string,\n options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>\n): Promise<\n NonNullablePaths<UpdateExtendedFieldsResponse, `gallery.variant`, 3>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n namespace: namespace,\n namespaceData: options?.namespaceData,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.updateExtendedFields(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n namespace: '$[1]',\n namespaceData: '$[2].namespaceData',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'namespace', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateExtendedFieldsOptions {\n /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n namespaceData: Record<string, any> | null;\n}\n\n/**\n * Create multiple Galleries in a single request. Works synchronously.\n * @param galleries - List of Galleries to be created\n * @public\n * @documentationMaturity preview\n * @requiredField galleries\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.BulkCreateGalleries\n */\nexport async function bulkCreateGalleries(\n galleries: Gallery[],\n options?: BulkCreateGalleriesOptions\n): Promise<\n NonNullablePaths<\n BulkCreateGalleriesResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.variant`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleries: galleries,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.bulkCreateGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleries: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['galleries', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkCreateGalleriesOptions {\n /** set to `true` if you wish to receive back the created Galleries in the response */\n returnEntity?: boolean;\n}\n\n/**\n * Update multiple Galleries in a single request. Works synchronously.\n * @param galleries - List of Galleries to be updated.\n * @public\n * @documentationMaturity preview\n * @requiredField galleries\n * @requiredField galleries.gallery.revision\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.BulkUpdateGalleries\n */\nexport async function bulkUpdateGalleries(\n galleries: NonNullablePaths<MaskedGallery, `gallery.revision`, 3>[],\n options?: BulkUpdateGalleriesOptions\n): Promise<\n NonNullablePaths<\n BulkUpdateGalleriesResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `results.${number}.item.variant`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleries: galleries,\n returnEntity: options?.returnEntity,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.bulkUpdateGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n galleries: '$[0]',\n returnEntity: '$[1].returnEntity',\n },\n singleArgumentUnchanged: false,\n },\n ['galleries', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface BulkUpdateGalleriesOptions {\n /** set to `true` if you wish to receive back the updated Galleries in the response */\n returnEntity?: boolean;\n}\n\n/**\n * Delete multiple Galleries in a single request. Works synchronously.\n * @param galleryIds - Gallery ids to be deleted\n * @public\n * @documentationMaturity preview\n * @requiredField galleryIds\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.BulkDeleteGalleries\n */\nexport async function bulkDeleteGalleries(\n galleryIds: string[]\n): Promise<\n NonNullablePaths<\n BulkDeleteGalleriesResponse,\n | `results`\n | `results.${number}.itemMetadata.originalIndex`\n | `results.${number}.itemMetadata.success`\n | `results.${number}.itemMetadata.error.code`\n | `results.${number}.itemMetadata.error.description`\n | `bulkActionMetadata.totalSuccesses`\n | `bulkActionMetadata.totalFailures`\n | `bulkActionMetadata.undetailedFailures`,\n 6\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryIds: galleryIds,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.bulkDeleteGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryIds: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get a deleted Gallery by id\n * @param galleryId - Id of the deleted Gallery to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.GetDeletedGallery\n */\nexport async function getDeletedGallery(\n galleryId: string\n): Promise<NonNullablePaths<GetDeletedGalleryResponse, `gallery.variant`, 3>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.getDeletedGallery(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Get all deleted Galleries, or specific ones specified by ids\n * @public\n * @documentationMaturity preview\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.ListDeletedGalleries\n */\nexport async function listDeletedGalleries(\n options?: ListDeletedGalleriesOptions\n): Promise<\n NonNullablePaths<\n ListDeletedGalleriesResponse,\n `galleries` | `galleries.${number}.variant`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n cursorPaging: options?.cursorPaging,\n galleryIds: options?.galleryIds,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.listDeletedGalleries(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n cursorPaging: '$[0].cursorPaging',\n galleryIds: '$[0].galleryIds',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListDeletedGalleriesOptions {\n /** WQL expression */\n cursorPaging?: CursorPaging;\n /**\n * gallery ids to list\n * @format GUID\n * @maxSize 100\n */\n galleryIds?: string[];\n}\n\n/**\n * Restore a deleted Gallery from the trash bin by id\n * @param galleryId - Id of the deleted Gallery to restore\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.RestoreGalleryFromTrashBin\n */\nexport async function restoreGalleryFromTrashBin(\n galleryId: string\n): Promise<\n NonNullablePaths<RestoreGalleryFromTrashBinResponse, `gallery.variant`, 3>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.restoreGalleryFromTrashBin(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Permanently delete a Gallery from the trash bin by id\n * @param galleryId - Id of the Gallery to delete permanently\n * @public\n * @documentationMaturity preview\n * @requiredField galleryId\n * @permissionId FAST_GALLERY.MANAGE\n * @applicableIdentity APP\n * @fqn wix.fastgallery.gallery.v1.GalleryService.RemoveGalleryFromTrashBin\n */\nexport async function removeGalleryFromTrashBin(\n galleryId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n galleryId: galleryId,\n });\n\n const reqOpts =\n ambassadorWixFastgalleryGalleryV1Gallery.removeGalleryFromTrashBin(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { galleryId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['galleryId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixFastgalleryGalleryV1GalleryServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/gallery',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/fastgallery/gallery/v1/bulk/galleries',\n destPath: '/v1/bulk/galleries',\n },\n {\n srcPath: '/fastgallery/gallery/v1/galleries',\n destPath: '/v1/galleries',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_fast-gallery_galleries';\n\n/** Creates a new Gallery */\nexport function createGallery(payload: object): RequestOptionsFactory<any> {\n function __createGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.CreateGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createGallery;\n}\n\n/** Get a Gallery by id */\nexport function getGallery(payload: object): RequestOptionsFactory<any> {\n function __getGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.GetGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGallery;\n}\n\n/** Get a Gallery by draft gallery id */\nexport function getGalleryByDraftGalleryId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getGalleryByDraftGalleryId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.GetGalleryByDraftGalleryId',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/draft-gallery-id/{draftGalleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getGalleryByDraftGalleryId;\n}\n\n/**\n * Update a Gallery, supports partial update\n * Pass the latest `revision` for a successful update\n */\nexport function updateGallery(payload: object): RequestOptionsFactory<any> {\n function __updateGallery({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'PATCH' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.UpdateGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/{gallery.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateGallery;\n}\n\n/**\n * Creates a query to retrieve a list of galleries.\n *\n * The `queryGalleries()` method builds a query to retrieve a list of galleries and returns a `GalleriesQueryBuilder` object.\n *\n * The returned object contains the query definition, which is used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `GalleriesQueryBuilder` methods onto the query. `GalleriesQueryBuilder` methods enable you to filter, sort, and control the results that `queryGalleries()` returns.\n */\nexport function queryGalleries(payload: object): RequestOptionsFactory<any> {\n function __queryGalleries({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.QueryGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryGalleries;\n}\n\n/** Updates extended fields of a Gallery without incrementing revision */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n\n/** Create multiple Galleries in a single request. Works synchronously. */\nexport function bulkCreateGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkCreateGalleries({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.BulkCreateGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/bulk/galleries/create',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkCreateGalleries;\n}\n\n/** Update multiple Galleries in a single request. Works synchronously. */\nexport function bulkUpdateGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkUpdateGalleries({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'galleries.fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'galleries.gallery.createdDate' },\n { path: 'galleries.gallery.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.BulkUpdateGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/bulk/galleries/update',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'results.item.createdDate' },\n { path: 'results.item.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __bulkUpdateGalleries;\n}\n\n/** Delete multiple Galleries in a single request. Works synchronously. */\nexport function bulkDeleteGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __bulkDeleteGalleries({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.BulkDeleteGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/bulk/galleries/delete',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __bulkDeleteGalleries;\n}\n\n/** Get a deleted Gallery by id */\nexport function getDeletedGallery(payload: object): RequestOptionsFactory<any> {\n function __getDeletedGallery({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn: 'wix.fastgallery.gallery.v1.GalleryService.GetDeletedGallery',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getDeletedGallery;\n}\n\n/** Get all deleted Galleries, or specific ones specified by ids */\nexport function listDeletedGalleries(\n payload: object\n): RequestOptionsFactory<any> {\n function __listDeletedGalleries({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'GET' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.ListDeletedGalleries',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'galleries.createdDate' },\n { path: 'galleries.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listDeletedGalleries;\n}\n\n/** Restore a deleted Gallery from the trash bin by id */\nexport function restoreGalleryFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __restoreGalleryFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'POST' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.RestoreGalleryFromTrashBin',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin/{galleryId}/restore',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'gallery.createdDate' },\n { path: 'gallery.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __restoreGalleryFromTrashBin;\n}\n\n/** Permanently delete a Gallery from the trash bin by id */\nexport function removeGalleryFromTrashBin(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeGalleryFromTrashBin({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.fastgallery.gallery.v1.gallery',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.fastgallery.gallery.v1.GalleryService.RemoveGalleryFromTrashBin',\n packageName: PACKAGE_NAME,\n url: resolveWixFastgalleryGalleryV1GalleryServiceUrl({\n protoPath: '/v1/galleries/trash-bin/{galleryId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __removeGalleryFromTrashBin;\n}\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AA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AAAA,IACd;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAYA,eAAsBC,2BACpB,WACe;AAEf,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,UAAU,sCAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACqC,0BAA0B,OAAO;AAE5E,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAAA,EACjC,SAAS,KAAU;AACjB,UAAM,mBAAmB;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,WAAW,OAAO;AAAA,QAC9C,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,WAAW;AAAA,IACd;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["payload","transformPaths","Variant","SortOrder","WebhookIdentityType","createGallery","getGallery","getGalleryByDraftGalleryId","updateGallery","queryGalleries","updateExtendedFields","bulkCreateGalleries","bulkUpdateGalleries","bulkDeleteGalleries","getDeletedGallery","listDeletedGalleries","restoreGalleryFromTrashBin","removeGalleryFromTrashBin"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_fast-gallery_galleries",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@wix/sdk-runtime": "^0.3.55",
|
|
33
|
-
"@wix/sdk-types": "^1.13.
|
|
33
|
+
"@wix/sdk-types": "^1.13.35"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.fastgallery.gallery.v1.gallery"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "a94e022daa206a1c32636a20276555f1b34202118673f9808506a879"
|
|
54
54
|
}
|