@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
package/build/es/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
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
|
-
type GalleryNonNullablePaths = `variant`;
|
|
6
5
|
declare function createGallery$1(httpClient: HttpClient): CreateGallerySignature;
|
|
7
6
|
interface CreateGallerySignature {
|
|
8
7
|
/**
|
|
@@ -10,7 +9,7 @@ interface CreateGallerySignature {
|
|
|
10
9
|
* @param - Gallery to be created.
|
|
11
10
|
* @returns The created Gallery.
|
|
12
11
|
*/
|
|
13
|
-
(gallery: Gallery): Promise<NonNullablePaths<Gallery,
|
|
12
|
+
(gallery: Gallery): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
|
|
14
13
|
}
|
|
15
14
|
declare function getGallery$1(httpClient: HttpClient): GetGallerySignature;
|
|
16
15
|
interface GetGallerySignature {
|
|
@@ -19,7 +18,7 @@ interface GetGallerySignature {
|
|
|
19
18
|
* @param - ID of the Gallery to retrieve.
|
|
20
19
|
* @returns The requested Gallery.
|
|
21
20
|
*/
|
|
22
|
-
(galleryId: string): Promise<NonNullablePaths<Gallery,
|
|
21
|
+
(galleryId: string): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
|
|
23
22
|
}
|
|
24
23
|
declare function getGalleryByDraftGalleryId$1(httpClient: HttpClient): GetGalleryByDraftGalleryIdSignature;
|
|
25
24
|
interface GetGalleryByDraftGalleryIdSignature {
|
|
@@ -27,9 +26,7 @@ interface GetGalleryByDraftGalleryIdSignature {
|
|
|
27
26
|
* Get a Gallery by draft gallery id
|
|
28
27
|
* @param - Id of the draftGallery the Gallery originates from
|
|
29
28
|
*/
|
|
30
|
-
(draftGalleryId: string): Promise<NonNullablePaths<GetGalleryByDraftGalleryIdResponse,
|
|
31
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
32
|
-
}[GalleryNonNullablePaths]>>;
|
|
29
|
+
(draftGalleryId: string): Promise<NonNullablePaths<GetGalleryByDraftGalleryIdResponse, `gallery.variant`, 3>>;
|
|
33
30
|
}
|
|
34
31
|
declare function updateGallery$1(httpClient: HttpClient): UpdateGallerySignature;
|
|
35
32
|
interface UpdateGallerySignature {
|
|
@@ -39,7 +36,7 @@ interface UpdateGallerySignature {
|
|
|
39
36
|
* @param - Gallery ID.
|
|
40
37
|
* @returns Updated Gallery.
|
|
41
38
|
*/
|
|
42
|
-
(_id: string, gallery: NonNullablePaths<UpdateGallery, `revision
|
|
39
|
+
(_id: string, gallery: NonNullablePaths<UpdateGallery, `revision`, 2>): Promise<NonNullablePaths<Gallery, `variant`, 2>>;
|
|
43
40
|
}
|
|
44
41
|
declare function queryGalleries$1(httpClient: HttpClient): QueryGalleriesSignature;
|
|
45
42
|
interface QueryGalleriesSignature {
|
|
@@ -61,9 +58,7 @@ interface UpdateExtendedFieldsSignature {
|
|
|
61
58
|
* @param - ID of the entity to update.
|
|
62
59
|
* @param - Identifier for the app whose extended fields are being updated.
|
|
63
60
|
*/
|
|
64
|
-
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData
|
|
65
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
66
|
-
}[GalleryNonNullablePaths]>>;
|
|
61
|
+
(_id: string, namespace: string, options: NonNullablePaths<UpdateExtendedFieldsOptions, `namespaceData`, 2>): Promise<NonNullablePaths<UpdateExtendedFieldsResponse, `gallery.variant`, 3>>;
|
|
67
62
|
}
|
|
68
63
|
declare function bulkCreateGalleries$1(httpClient: HttpClient): BulkCreateGalleriesSignature;
|
|
69
64
|
interface BulkCreateGalleriesSignature {
|
|
@@ -71,9 +66,7 @@ interface BulkCreateGalleriesSignature {
|
|
|
71
66
|
* Create multiple Galleries in a single request. Works synchronously.
|
|
72
67
|
* @param - List of Galleries to be created
|
|
73
68
|
*/
|
|
74
|
-
(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` | {
|
|
75
|
-
[P in GalleryNonNullablePaths]: `results.${number}.item.${P}`;
|
|
76
|
-
}[GalleryNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
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>>;
|
|
77
70
|
}
|
|
78
71
|
declare function bulkUpdateGalleries$1(httpClient: HttpClient): BulkUpdateGalleriesSignature;
|
|
79
72
|
interface BulkUpdateGalleriesSignature {
|
|
@@ -81,9 +74,7 @@ interface BulkUpdateGalleriesSignature {
|
|
|
81
74
|
* Update multiple Galleries in a single request. Works synchronously.
|
|
82
75
|
* @param - List of Galleries to be updated.
|
|
83
76
|
*/
|
|
84
|
-
(galleries: NonNullablePaths<MaskedGallery, `gallery.revision
|
|
85
|
-
[P in GalleryNonNullablePaths]: `results.${number}.item.${P}`;
|
|
86
|
-
}[GalleryNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
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>>;
|
|
87
78
|
}
|
|
88
79
|
declare function bulkDeleteGalleries$1(httpClient: HttpClient): BulkDeleteGalleriesSignature;
|
|
89
80
|
interface BulkDeleteGalleriesSignature {
|
|
@@ -91,7 +82,7 @@ interface BulkDeleteGalleriesSignature {
|
|
|
91
82
|
* Delete multiple Galleries in a single request. Works synchronously.
|
|
92
83
|
* @param - Gallery ids to be deleted
|
|
93
84
|
*/
|
|
94
|
-
(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
|
|
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>>;
|
|
95
86
|
}
|
|
96
87
|
declare function getDeletedGallery$1(httpClient: HttpClient): GetDeletedGallerySignature;
|
|
97
88
|
interface GetDeletedGallerySignature {
|
|
@@ -99,18 +90,14 @@ interface GetDeletedGallerySignature {
|
|
|
99
90
|
* Get a deleted Gallery by id
|
|
100
91
|
* @param - Id of the deleted Gallery to retrieve
|
|
101
92
|
*/
|
|
102
|
-
(galleryId: string): Promise<NonNullablePaths<GetDeletedGalleryResponse,
|
|
103
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
104
|
-
}[GalleryNonNullablePaths]>>;
|
|
93
|
+
(galleryId: string): Promise<NonNullablePaths<GetDeletedGalleryResponse, `gallery.variant`, 3>>;
|
|
105
94
|
}
|
|
106
95
|
declare function listDeletedGalleries$1(httpClient: HttpClient): ListDeletedGalleriesSignature;
|
|
107
96
|
interface ListDeletedGalleriesSignature {
|
|
108
97
|
/**
|
|
109
98
|
* Get all deleted Galleries, or specific ones specified by ids
|
|
110
99
|
*/
|
|
111
|
-
(options?: ListDeletedGalleriesOptions): Promise<NonNullablePaths<ListDeletedGalleriesResponse, {
|
|
112
|
-
[P in GalleryNonNullablePaths]: `galleries.${number}.${P}`;
|
|
113
|
-
}[GalleryNonNullablePaths]>>;
|
|
100
|
+
(options?: ListDeletedGalleriesOptions): Promise<NonNullablePaths<ListDeletedGalleriesResponse, `galleries` | `galleries.${number}.variant`, 4>>;
|
|
114
101
|
}
|
|
115
102
|
declare function restoreGalleryFromTrashBin$1(httpClient: HttpClient): RestoreGalleryFromTrashBinSignature;
|
|
116
103
|
interface RestoreGalleryFromTrashBinSignature {
|
|
@@ -118,9 +105,7 @@ interface RestoreGalleryFromTrashBinSignature {
|
|
|
118
105
|
* Restore a deleted Gallery from the trash bin by id
|
|
119
106
|
* @param - Id of the deleted Gallery to restore
|
|
120
107
|
*/
|
|
121
|
-
(galleryId: string): Promise<NonNullablePaths<RestoreGalleryFromTrashBinResponse,
|
|
122
|
-
[P in GalleryNonNullablePaths]: `gallery.${P}`;
|
|
123
|
-
}[GalleryNonNullablePaths]>>;
|
|
108
|
+
(galleryId: string): Promise<NonNullablePaths<RestoreGalleryFromTrashBinResponse, `gallery.variant`, 3>>;
|
|
124
109
|
}
|
|
125
110
|
declare function removeGalleryFromTrashBin$1(httpClient: HttpClient): RemoveGalleryFromTrashBinSignature;
|
|
126
111
|
interface RemoveGalleryFromTrashBinSignature {
|