@wix/auto_sdk_fast-gallery_galleries 1.0.2 → 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.
@@ -1,6 +1,6 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { Gallery, GetGalleryByDraftGalleryIdResponse, UpdateGallery, GalleriesQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, BulkCreateGalleriesOptions, BulkCreateGalleriesResponse, MaskedGallery, BulkUpdateGalleriesOptions, BulkUpdateGalleriesResponse, BulkDeleteGalleriesResponse, GetDeletedGalleryResponse, ListDeletedGalleriesOptions, ListDeletedGalleriesResponse, RestoreGalleryFromTrashBinResponse, GalleryRemovedFromTrashBinEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateGalleriesRequest, BulkDeleteGalleriesRequest, BulkDeleteGalleriesResponseBulkGalleryResult, BulkGalleryResult, BulkUpdateGalleriesRequest, BulkUpdateGalleriesResponseBulkGalleryResult, CreateGalleryRequest, CreateGalleryResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteGalleryRequest, DeleteGalleryResponse, DeleteOutdatedGalleryVersionsRequest, DeleteOutdatedGalleryVersionsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GalleriesQueryResult, GalleryRemovedFromTrashBin, GetDeletedGalleryRequest, GetGalleryByDraftGalleryIdRequest, GetGalleryRequest, GetGalleryResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListDeletedGalleriesRequest, MessageEnvelope, QueryGalleriesRequest, QueryGalleriesResponse, RemoveGalleryFromTrashBinRequest, RemoveGalleryFromTrashBinResponse, RestoreGalleryFromTrashBinRequest, RestoreInfo, SortOrder, Sorting, UpdateExtendedFieldsRequest, UpdateGalleryRequest, UpdateGalleryResponse, Variant, WebhookIdentityType } from './index.typings.mjs';
3
+ export { ActionEvent, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateGalleriesRequest, BulkDeleteGalleriesRequest, BulkDeleteGalleriesResponseBulkGalleryResult, BulkGalleryResult, BulkUpdateGalleriesRequest, BulkUpdateGalleriesResponseBulkGalleryResult, CreateGalleryRequest, CreateGalleryResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteGalleryRequest, DeleteGalleryResponse, DeleteOutdatedGalleryVersionsRequest, DeleteOutdatedGalleryVersionsResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GalleriesQueryResult, GalleryRemovedFromTrashBin, GetDeletedGalleryRequest, GetGalleryByDraftGalleryIdRequest, GetGalleryRequest, GetGalleryResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListDeletedGalleriesRequest, MessageEnvelope, QueryGalleriesRequest, QueryGalleriesResponse, RemoveGalleryFromTrashBinRequest, RemoveGalleryFromTrashBinResponse, RestoreGalleryFromTrashBinRequest, RestoreInfo, SortOrder, SortOrderWithLiterals, Sorting, UpdateExtendedFieldsRequest, UpdateGalleryRequest, UpdateGalleryResponse, Variant, VariantWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function createGallery$1(httpClient: HttpClient): CreateGallerySignature;
6
6
  interface CreateGallerySignature {
@@ -9,7 +9,7 @@ interface CreateGallerySignature {
9
9
  * @param - Gallery to be created.
10
10
  * @returns The created Gallery.
11
11
  */
12
- (gallery: Gallery): Promise<Gallery>;
12
+ (gallery: Gallery): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
13
13
  }
14
14
  declare function getGallery$1(httpClient: HttpClient): GetGallerySignature;
15
15
  interface GetGallerySignature {
@@ -18,7 +18,7 @@ interface GetGallerySignature {
18
18
  * @param - ID of the Gallery to retrieve.
19
19
  * @returns The requested Gallery.
20
20
  */
21
- (galleryId: string): Promise<Gallery>;
21
+ (galleryId: string): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
22
22
  }
23
23
  declare function getGalleryByDraftGalleryId$1(httpClient: HttpClient): GetGalleryByDraftGalleryIdSignature;
24
24
  interface GetGalleryByDraftGalleryIdSignature {
@@ -26,7 +26,7 @@ interface GetGalleryByDraftGalleryIdSignature {
26
26
  * Get a Gallery by draft gallery id
27
27
  * @param - Id of the draftGallery the Gallery originates from
28
28
  */
29
- (draftGalleryId: string): Promise<GetGalleryByDraftGalleryIdResponse>;
29
+ (draftGalleryId: string): Promise<NonNullablePaths<GetGalleryByDraftGalleryIdResponse, `gallery.variant`, 3>>;
30
30
  }
31
31
  declare function updateGallery$1(httpClient: HttpClient): UpdateGallerySignature;
32
32
  interface UpdateGallerySignature {
@@ -36,7 +36,7 @@ interface UpdateGallerySignature {
36
36
  * @param - Gallery ID.
37
37
  * @returns Updated Gallery.
38
38
  */
39
- (_id: string, gallery: UpdateGallery): Promise<Gallery>;
39
+ (_id: string, gallery: NonNullablePaths<UpdateGallery, `revision`, 2>): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
40
40
  }
41
41
  declare function queryGalleries$1(httpClient: HttpClient): QueryGalleriesSignature;
42
42
  interface QueryGalleriesSignature {
@@ -58,7 +58,7 @@ interface UpdateExtendedFieldsSignature {
58
58
  * @param - ID of the entity to update.
59
59
  * @param - Identifier for the app whose extended fields are being updated.
60
60
  */
61
- (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise<UpdateExtendedFieldsResponse>;
61
+ (_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `gallery.variant`, 3>>;
62
62
  }
63
63
  declare function bulkCreateGalleries$1(httpClient: HttpClient): BulkCreateGalleriesSignature;
64
64
  interface BulkCreateGalleriesSignature {
@@ -66,7 +66,7 @@ interface BulkCreateGalleriesSignature {
66
66
  * Create multiple Galleries in a single request. Works synchronously.
67
67
  * @param - List of Galleries to be created
68
68
  */
69
- (galleries: Gallery[], options?: BulkCreateGalleriesOptions | undefined): Promise<BulkCreateGalleriesResponse>;
69
+ (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>>;
70
70
  }
71
71
  declare function bulkUpdateGalleries$1(httpClient: HttpClient): BulkUpdateGalleriesSignature;
72
72
  interface BulkUpdateGalleriesSignature {
@@ -74,7 +74,7 @@ interface BulkUpdateGalleriesSignature {
74
74
  * Update multiple Galleries in a single request. Works synchronously.
75
75
  * @param - List of Galleries to be updated.
76
76
  */
77
- (galleries: MaskedGallery[], options?: BulkUpdateGalleriesOptions | undefined): Promise<BulkUpdateGalleriesResponse>;
77
+ (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>>;
78
78
  }
79
79
  declare function bulkDeleteGalleries$1(httpClient: HttpClient): BulkDeleteGalleriesSignature;
80
80
  interface BulkDeleteGalleriesSignature {
@@ -82,7 +82,7 @@ interface BulkDeleteGalleriesSignature {
82
82
  * Delete multiple Galleries in a single request. Works synchronously.
83
83
  * @param - Gallery ids to be deleted
84
84
  */
85
- (galleryIds: string[]): Promise<BulkDeleteGalleriesResponse>;
85
+ (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>>;
86
86
  }
87
87
  declare function getDeletedGallery$1(httpClient: HttpClient): GetDeletedGallerySignature;
88
88
  interface GetDeletedGallerySignature {
@@ -90,14 +90,14 @@ interface GetDeletedGallerySignature {
90
90
  * Get a deleted Gallery by id
91
91
  * @param - Id of the deleted Gallery to retrieve
92
92
  */
93
- (galleryId: string): Promise<GetDeletedGalleryResponse>;
93
+ (galleryId: string): Promise<NonNullablePaths<GetDeletedGalleryResponse, `gallery.variant`, 3>>;
94
94
  }
95
95
  declare function listDeletedGalleries$1(httpClient: HttpClient): ListDeletedGalleriesSignature;
96
96
  interface ListDeletedGalleriesSignature {
97
97
  /**
98
98
  * Get all deleted Galleries, or specific ones specified by ids
99
99
  */
100
- (options?: ListDeletedGalleriesOptions | undefined): Promise<ListDeletedGalleriesResponse>;
100
+ (options?: ListDeletedGalleriesOptions): Promise<NonNullablePaths<ListDeletedGalleriesResponse, `galleries` | `galleries.${number}.variant`, 4>>;
101
101
  }
102
102
  declare function restoreGalleryFromTrashBin$1(httpClient: HttpClient): RestoreGalleryFromTrashBinSignature;
103
103
  interface RestoreGalleryFromTrashBinSignature {
@@ -105,7 +105,7 @@ interface RestoreGalleryFromTrashBinSignature {
105
105
  * Restore a deleted Gallery from the trash bin by id
106
106
  * @param - Id of the deleted Gallery to restore
107
107
  */
108
- (galleryId: string): Promise<RestoreGalleryFromTrashBinResponse>;
108
+ (galleryId: string): Promise<NonNullablePaths<RestoreGalleryFromTrashBinResponse, `gallery.variant`, 3>>;
109
109
  }
110
110
  declare function removeGalleryFromTrashBin$1(httpClient: HttpClient): RemoveGalleryFromTrashBinSignature;
111
111
  interface RemoveGalleryFromTrashBinSignature {