@wix/auto_sdk_pro-gallery_pro-gallery 1.0.8 → 1.0.9

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.
Files changed (134) hide show
  1. package/build/index.d.mts +213 -0
  2. package/build/index.d.ts +213 -0
  3. package/build/index.js +1834 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1784 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +213 -0
  8. package/build/internal/index.d.ts +213 -0
  9. package/build/internal/index.js +1834 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1784 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +498 -0
  14. package/build/internal/meta.d.ts +498 -0
  15. package/build/internal/meta.js +1054 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +1016 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → internal/pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.d.mts} +438 -516
  20. package/build/{cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → internal/pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.d.ts} +438 -516
  21. package/build/meta.d.mts +498 -0
  22. package/build/meta.d.ts +498 -0
  23. package/build/meta.js +1054 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +1016 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.d.mts} +438 -516
  28. package/build/{internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.d.ts → pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.d.ts} +438 -516
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  40. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -69
  41. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  42. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  43. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -875
  44. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  45. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  46. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -256
  47. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  48. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  49. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -309
  50. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  51. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -103
  52. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  53. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  54. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -850
  55. package/build/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  67. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -56
  68. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  69. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  70. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -860
  71. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  72. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  73. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -218
  74. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  75. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  76. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -284
  77. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  78. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -100
  79. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  80. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  81. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -812
  82. package/build/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  93. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -69
  94. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  95. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  96. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -875
  97. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  98. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  99. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -256
  100. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  101. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  102. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -309
  103. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  104. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -103
  105. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  106. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  107. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -850
  108. package/build/internal/cjs/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.d.ts +0 -56
  119. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js +0 -56
  120. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.context.js.map +0 -1
  121. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.d.ts +0 -90
  122. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js +0 -860
  123. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.http.js.map +0 -1
  124. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.meta.d.ts +0 -47
  125. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js +0 -218
  126. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.meta.js.map +0 -1
  127. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.d.ts +0 -167
  128. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.js +0 -284
  129. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.public.js.map +0 -1
  130. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js +0 -100
  131. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.types.js.map +0 -1
  132. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.d.ts +0 -1830
  133. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js +0 -812
  134. package/build/internal/es/src/pro-gallery-v2-gallery-pro-gallery.universal.js.map +0 -1
@@ -0,0 +1,213 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { L as ListGalleriesOptions, a as ListGalleriesResponse, G as GetGalleryOptions, b as Gallery, c as ListGalleryItemsOptions, d as ListGalleryItemsResponse, e as GetGalleryItemIdentifiers, I as Item, C as CreateGalleryOptions, U as UpdateGallery, D as DeleteGalleryResponse, f as DeleteGalleryItemsOptions, g as DeleteGalleryItemsResponse, B as BulkDeleteGalleryItemsResponse, h as UpdateGalleryItemIdentifiers, i as UpdateGalleryItem, j as DeleteGalleryItemIdentifiers, k as DeleteGalleryItemResponse, l as GalleryCreatedEnvelope, m as GalleryDeletedEnvelope, n as GalleryItemCreatedEnvelope, o as GalleryItemDeletedEnvelope, p as GalleryItemUpdatedEnvelope, q as GalleryUpdatedEnvelope } from './pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.mjs';
3
+ export { aJ as ActionEvent, M as AddressLink, A as AnchorLink, aV as BaseEventMetadata, at as BulkDeleteGalleryItemsRequest, au as CreateGalleryItemRequest, av as CreateGalleryItemResponse, aw as CreateGalleryItemsRequest, ax as CreateGalleryItemsResponse, an as CreateGalleryRequest, ao as CreateGalleryResponse, aR as DeleteByFilterOperation, aQ as DeleteByIdsOperation, aA as DeleteGalleryItemRequest, as as DeleteGalleryItemsRequest, ar as DeleteGalleryRequest, aP as DocumentImage, H as DocumentLink, aO as DocumentPayload, aM as DocumentUpdateOperation, aD as DomainEvent, aE as DomainEventBodyOneOf, F as DynamicPageLink, J as EmailLink, a9 as Empty, aF as EntityCreatedEvent, aI as EntityDeletedEvent, aH as EntityUpdatedEvent, E as Enum, aW as EventMetadata, z as ExternalLink, ad as GalleryItemCreated, af as GalleryItemDeleted, ae as GalleryItemUpdated, al as GetGalleryItemRequest, am as GetGalleryItemResponse, aX as GetGalleryOptionsVersionOneOf, ah as GetGalleryRequest, ai as GetGalleryRequestVersionOneOf, aj as GetGalleryResponse, ab as IdentificationData, ac as IdentificationDataIdOneOf, Q as Image, t as ImageType, aN as IndexDocument, a4 as ItemId, v as ItemMetadataOneOf, a6 as ItemsInGallery, w as Link, s as LinkRel, r as LinkType, a3 as ListGalleriesItemsRequest, a5 as ListGalleriesItemsResponse, ag as ListGalleriesRequest, ak as ListGalleryItemsRequest, aa as MessageEnvelope, P as PageLink, K as PhoneLink, R as Point, aB as PublishGalleryRequest, aC as PublishGalleryResponse, a2 as RestoreAllGalleriesEvent, aG as RestoreInfo, aU as SearchIndexingNotification, u as SearchIndexingNotificationState, a0 as SecondaryMedia, a1 as SecondaryMediaMetadataOneOf, S as State, $ as Tags, _ as Text, O as TpaPageLink, a7 as TriggerRestoreAllGalleriesAsyncRequest, a8 as TriggerRestoreAllGalleriesAsyncResponse, T as Type, X as UnsharpMasking, aS as UpdateByFilterOperation, aK as UpdateDocumentsEvent, aL as UpdateDocumentsEventOperationOneOf, aT as UpdateExistingOperation, ay as UpdateGalleryItemRequest, az as UpdateGalleryItemResponse, ap as UpdateGalleryRequest, aq as UpdateGalleryResponse, Y as Video, Z as VideoResolution, V as VideoType, W as WebhookIdentityType, N as WhatsAppLink, x as WixLink, y as WixLinkLinkOneOf } from './pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.mjs';
4
+
5
+ declare function listGalleries$1(httpClient: HttpClient): ListGalleriesSignature;
6
+ interface ListGalleriesSignature {
7
+ /**
8
+ * Retrieves a list of galleries.
9
+ *
10
+ * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.
11
+ * @param - Options to use when getting the list of galleries.
12
+ */
13
+ (options?: ListGalleriesOptions | undefined): Promise<ListGalleriesResponse>;
14
+ }
15
+ declare function getGallery$1(httpClient: HttpClient): GetGallerySignature;
16
+ interface GetGallerySignature {
17
+ /**
18
+ * Retrieves a gallery by ID.
19
+ * @param - Gallery ID.
20
+ * @param - Options to use when getting the gallery.
21
+ * @returns Returned gallery.
22
+ */
23
+ (galleryId: string, options?: GetGalleryOptions | undefined): Promise<Gallery>;
24
+ }
25
+ declare function listGalleryItems$1(httpClient: HttpClient): ListGalleryItemsSignature;
26
+ interface ListGalleryItemsSignature {
27
+ /**
28
+ * Retrieves a list of media items in a specified gallery.
29
+ *
30
+ * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.
31
+ * @param - Gallery ID.
32
+ * @param - Options to use when getting the list of gallery items.
33
+ */
34
+ (galleryId: string, options?: ListGalleryItemsOptions | undefined): Promise<ListGalleryItemsResponse>;
35
+ }
36
+ declare function getGalleryItem$1(httpClient: HttpClient): GetGalleryItemSignature;
37
+ interface GetGalleryItemSignature {
38
+ /**
39
+ * Retrieves a gallery item by ID.
40
+ * @param - Gallery ID and Item ID.
41
+ * @returns Returned media item.
42
+ */
43
+ (identifiers: GetGalleryItemIdentifiers): Promise<Item>;
44
+ }
45
+ declare function createGallery$1(httpClient: HttpClient): CreateGallerySignature;
46
+ interface CreateGallerySignature {
47
+ /**
48
+ * Creates a new gallery.
49
+ *
50
+ * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.
51
+ *
52
+ * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, "Create a gallery and display it on your live site". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).
53
+ *
54
+ * <blockquote class="important">
55
+ *
56
+ * __Important:__
57
+ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
58
+ *
59
+ * </blockquote>
60
+ * @param - Options to use when creating the gallery.
61
+ * @returns Created gallery.
62
+ */
63
+ (options?: CreateGalleryOptions | undefined): Promise<Gallery>;
64
+ }
65
+ declare function updateGallery$1(httpClient: HttpClient): UpdateGallerySignature;
66
+ interface UpdateGallerySignature {
67
+ /**
68
+ * Updates a gallery.
69
+ *
70
+ * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
71
+ *
72
+ * <blockquote class="important">
73
+ *
74
+ * __Important:__
75
+ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
76
+ *
77
+ * </blockquote>
78
+ * @param - ID of the gallery to update.
79
+ * @param - The information for the gallery being updated.
80
+ * @returns Updated gallery.
81
+ */
82
+ (_id: string, gallery: UpdateGallery): Promise<Gallery>;
83
+ }
84
+ declare function deleteGallery$1(httpClient: HttpClient): DeleteGallerySignature;
85
+ interface DeleteGallerySignature {
86
+ /**
87
+ * Deletes a gallery.
88
+ *
89
+ * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function.
90
+ * @param - ID of the gallery to delete.
91
+ */
92
+ (galleryId: string): Promise<DeleteGalleryResponse>;
93
+ }
94
+ declare function deleteGalleryItems$1(httpClient: HttpClient): DeleteGalleryItemsSignature;
95
+ interface DeleteGalleryItemsSignature {
96
+ /**
97
+ * Deletes multiple media items from a gallery.
98
+ * @param - Gallery ID.
99
+ * @deprecated
100
+ */
101
+ (galleryId: string, options?: DeleteGalleryItemsOptions | undefined): Promise<DeleteGalleryItemsResponse>;
102
+ }
103
+ declare function bulkDeleteGalleryItems$1(httpClient: HttpClient): BulkDeleteGalleryItemsSignature;
104
+ interface BulkDeleteGalleryItemsSignature {
105
+ /**
106
+ * Deletes multiple media items from a gallery.
107
+ * @param - Gallery ID.
108
+ * @param - IDs of the media items to delete.
109
+ */
110
+ (galleryId: string, itemIds: string[]): Promise<BulkDeleteGalleryItemsResponse>;
111
+ }
112
+ declare function createGalleryItem$1(httpClient: HttpClient): CreateGalleryItemSignature;
113
+ interface CreateGalleryItemSignature {
114
+ /**
115
+ * Creates a media item in a specified gallery.
116
+ *
117
+ * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.
118
+ *
119
+ * <blockquote class="important">
120
+ *
121
+ * __Important:__
122
+ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
123
+ *
124
+ * </blockquote>
125
+ * @param - Gallery ID.
126
+ * @param - Media item to create.
127
+ * @returns Created media item.
128
+ */
129
+ (galleryId: string, item: Item): Promise<Item>;
130
+ }
131
+ declare function updateGalleryItem$1(httpClient: HttpClient): UpdateGalleryItemSignature;
132
+ interface UpdateGalleryItemSignature {
133
+ /**
134
+ * Updates a media item in a specified gallery.
135
+ *
136
+ * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
137
+ *
138
+ * <blockquote class="important">
139
+ *
140
+ * __Important:__
141
+ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
142
+ *
143
+ * </blockquote>
144
+ * @param - The information for the gallery item being updated.
145
+ * @param - Gallery ID and Item ID.
146
+ * @returns Updated media item.
147
+ */
148
+ (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item>;
149
+ }
150
+ declare function deleteGalleryItem$1(httpClient: HttpClient): DeleteGalleryItemSignature;
151
+ interface DeleteGalleryItemSignature {
152
+ /**
153
+ * Deletes a media item from a gallery.
154
+ *
155
+ * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function.
156
+ * @param - Gallery ID and Item ID.
157
+ */
158
+ (identifiers: DeleteGalleryItemIdentifiers): Promise<DeleteGalleryItemResponse>;
159
+ }
160
+ declare const onGalleryCreated$1: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">;
161
+ declare const onGalleryDeleted$1: EventDefinition<GalleryDeletedEnvelope, "wix.pro_gallery.gallery_v2_deleted">;
162
+ declare const onGalleryItemCreated$1: EventDefinition<GalleryItemCreatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_created">;
163
+ declare const onGalleryItemDeleted$1: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">;
164
+ declare const onGalleryItemUpdated$1: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">;
165
+ declare const onGalleryUpdated$1: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">;
166
+
167
+ declare const listGalleries: MaybeContext<BuildRESTFunction<typeof listGalleries$1> & typeof listGalleries$1>;
168
+ declare const getGallery: MaybeContext<BuildRESTFunction<typeof getGallery$1> & typeof getGallery$1>;
169
+ declare const listGalleryItems: MaybeContext<BuildRESTFunction<typeof listGalleryItems$1> & typeof listGalleryItems$1>;
170
+ declare const getGalleryItem: MaybeContext<BuildRESTFunction<typeof getGalleryItem$1> & typeof getGalleryItem$1>;
171
+ declare const createGallery: MaybeContext<BuildRESTFunction<typeof createGallery$1> & typeof createGallery$1>;
172
+ declare const updateGallery: MaybeContext<BuildRESTFunction<typeof updateGallery$1> & typeof updateGallery$1>;
173
+ declare const deleteGallery: MaybeContext<BuildRESTFunction<typeof deleteGallery$1> & typeof deleteGallery$1>;
174
+ declare const deleteGalleryItems: MaybeContext<BuildRESTFunction<typeof deleteGalleryItems$1> & typeof deleteGalleryItems$1>;
175
+ declare const bulkDeleteGalleryItems: MaybeContext<BuildRESTFunction<typeof bulkDeleteGalleryItems$1> & typeof bulkDeleteGalleryItems$1>;
176
+ declare const createGalleryItem: MaybeContext<BuildRESTFunction<typeof createGalleryItem$1> & typeof createGalleryItem$1>;
177
+ declare const updateGalleryItem: MaybeContext<BuildRESTFunction<typeof updateGalleryItem$1> & typeof updateGalleryItem$1>;
178
+ declare const deleteGalleryItem: MaybeContext<BuildRESTFunction<typeof deleteGalleryItem$1> & typeof deleteGalleryItem$1>;
179
+ /**
180
+ * Triggered when a gallery is created.
181
+ *
182
+ * > __Note:__ The event data doesn't include gallery items or their IDs.
183
+ * > To receive information about the created items you need to listen to the [Gallery Item Created webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-created-webhook).
184
+ */
185
+ declare const onGalleryCreated: BuildEventDefinition<typeof onGalleryCreated$1>;
186
+ /**
187
+ * Triggered when a gallery is deleted.
188
+ */
189
+ declare const onGalleryDeleted: BuildEventDefinition<typeof onGalleryDeleted$1>;
190
+ /**
191
+ * Triggered when a media item in a specified gallery is created.
192
+ */
193
+ declare const onGalleryItemCreated: BuildEventDefinition<typeof onGalleryItemCreated$1>;
194
+ /**
195
+ * Triggered when a media item in a specified gallery is deleted.
196
+ *
197
+ * > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted.
198
+ * > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty.
199
+ */
200
+ declare const onGalleryItemDeleted: BuildEventDefinition<typeof onGalleryItemDeleted$1>;
201
+ /**
202
+ * Triggered when a media item in a specified gallery is updated.
203
+ */
204
+ declare const onGalleryItemUpdated: BuildEventDefinition<typeof onGalleryItemUpdated$1>;
205
+ /**
206
+ * Triggered when a gallery is updated.
207
+ *
208
+ * > __Note:__ The event data doesn't include gallery items or their IDs.
209
+ * > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook).
210
+ */
211
+ declare const onGalleryUpdated: BuildEventDefinition<typeof onGalleryUpdated$1>;
212
+
213
+ export { BulkDeleteGalleryItemsResponse, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryResponse, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ListGalleriesOptions, ListGalleriesResponse, ListGalleryItemsOptions, ListGalleryItemsResponse, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, bulkDeleteGalleryItems, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem };
@@ -0,0 +1,213 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { L as ListGalleriesOptions, a as ListGalleriesResponse, G as GetGalleryOptions, b as Gallery, c as ListGalleryItemsOptions, d as ListGalleryItemsResponse, e as GetGalleryItemIdentifiers, I as Item, C as CreateGalleryOptions, U as UpdateGallery, D as DeleteGalleryResponse, f as DeleteGalleryItemsOptions, g as DeleteGalleryItemsResponse, B as BulkDeleteGalleryItemsResponse, h as UpdateGalleryItemIdentifiers, i as UpdateGalleryItem, j as DeleteGalleryItemIdentifiers, k as DeleteGalleryItemResponse, l as GalleryCreatedEnvelope, m as GalleryDeletedEnvelope, n as GalleryItemCreatedEnvelope, o as GalleryItemDeletedEnvelope, p as GalleryItemUpdatedEnvelope, q as GalleryUpdatedEnvelope } from './pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.js';
3
+ export { aJ as ActionEvent, M as AddressLink, A as AnchorLink, aV as BaseEventMetadata, at as BulkDeleteGalleryItemsRequest, au as CreateGalleryItemRequest, av as CreateGalleryItemResponse, aw as CreateGalleryItemsRequest, ax as CreateGalleryItemsResponse, an as CreateGalleryRequest, ao as CreateGalleryResponse, aR as DeleteByFilterOperation, aQ as DeleteByIdsOperation, aA as DeleteGalleryItemRequest, as as DeleteGalleryItemsRequest, ar as DeleteGalleryRequest, aP as DocumentImage, H as DocumentLink, aO as DocumentPayload, aM as DocumentUpdateOperation, aD as DomainEvent, aE as DomainEventBodyOneOf, F as DynamicPageLink, J as EmailLink, a9 as Empty, aF as EntityCreatedEvent, aI as EntityDeletedEvent, aH as EntityUpdatedEvent, E as Enum, aW as EventMetadata, z as ExternalLink, ad as GalleryItemCreated, af as GalleryItemDeleted, ae as GalleryItemUpdated, al as GetGalleryItemRequest, am as GetGalleryItemResponse, aX as GetGalleryOptionsVersionOneOf, ah as GetGalleryRequest, ai as GetGalleryRequestVersionOneOf, aj as GetGalleryResponse, ab as IdentificationData, ac as IdentificationDataIdOneOf, Q as Image, t as ImageType, aN as IndexDocument, a4 as ItemId, v as ItemMetadataOneOf, a6 as ItemsInGallery, w as Link, s as LinkRel, r as LinkType, a3 as ListGalleriesItemsRequest, a5 as ListGalleriesItemsResponse, ag as ListGalleriesRequest, ak as ListGalleryItemsRequest, aa as MessageEnvelope, P as PageLink, K as PhoneLink, R as Point, aB as PublishGalleryRequest, aC as PublishGalleryResponse, a2 as RestoreAllGalleriesEvent, aG as RestoreInfo, aU as SearchIndexingNotification, u as SearchIndexingNotificationState, a0 as SecondaryMedia, a1 as SecondaryMediaMetadataOneOf, S as State, $ as Tags, _ as Text, O as TpaPageLink, a7 as TriggerRestoreAllGalleriesAsyncRequest, a8 as TriggerRestoreAllGalleriesAsyncResponse, T as Type, X as UnsharpMasking, aS as UpdateByFilterOperation, aK as UpdateDocumentsEvent, aL as UpdateDocumentsEventOperationOneOf, aT as UpdateExistingOperation, ay as UpdateGalleryItemRequest, az as UpdateGalleryItemResponse, ap as UpdateGalleryRequest, aq as UpdateGalleryResponse, Y as Video, Z as VideoResolution, V as VideoType, W as WebhookIdentityType, N as WhatsAppLink, x as WixLink, y as WixLinkLinkOneOf } from './pro-gallery-v2-gallery-pro-gallery.universal-KXp1KG3k.js';
4
+
5
+ declare function listGalleries$1(httpClient: HttpClient): ListGalleriesSignature;
6
+ interface ListGalleriesSignature {
7
+ /**
8
+ * Retrieves a list of galleries.
9
+ *
10
+ * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter.
11
+ * @param - Options to use when getting the list of galleries.
12
+ */
13
+ (options?: ListGalleriesOptions | undefined): Promise<ListGalleriesResponse>;
14
+ }
15
+ declare function getGallery$1(httpClient: HttpClient): GetGallerySignature;
16
+ interface GetGallerySignature {
17
+ /**
18
+ * Retrieves a gallery by ID.
19
+ * @param - Gallery ID.
20
+ * @param - Options to use when getting the gallery.
21
+ * @returns Returned gallery.
22
+ */
23
+ (galleryId: string, options?: GetGalleryOptions | undefined): Promise<Gallery>;
24
+ }
25
+ declare function listGalleryItems$1(httpClient: HttpClient): ListGalleryItemsSignature;
26
+ interface ListGalleryItemsSignature {
27
+ /**
28
+ * Retrieves a list of media items in a specified gallery.
29
+ *
30
+ * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order.
31
+ * @param - Gallery ID.
32
+ * @param - Options to use when getting the list of gallery items.
33
+ */
34
+ (galleryId: string, options?: ListGalleryItemsOptions | undefined): Promise<ListGalleryItemsResponse>;
35
+ }
36
+ declare function getGalleryItem$1(httpClient: HttpClient): GetGalleryItemSignature;
37
+ interface GetGalleryItemSignature {
38
+ /**
39
+ * Retrieves a gallery item by ID.
40
+ * @param - Gallery ID and Item ID.
41
+ * @returns Returned media item.
42
+ */
43
+ (identifiers: GetGalleryItemIdentifiers): Promise<Item>;
44
+ }
45
+ declare function createGallery$1(httpClient: HttpClient): CreateGallerySignature;
46
+ interface CreateGallerySignature {
47
+ /**
48
+ * Creates a new gallery.
49
+ *
50
+ * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates.
51
+ *
52
+ * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, "Create a gallery and display it on your live site". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api).
53
+ *
54
+ * <blockquote class="important">
55
+ *
56
+ * __Important:__
57
+ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
58
+ *
59
+ * </blockquote>
60
+ * @param - Options to use when creating the gallery.
61
+ * @returns Created gallery.
62
+ */
63
+ (options?: CreateGalleryOptions | undefined): Promise<Gallery>;
64
+ }
65
+ declare function updateGallery$1(httpClient: HttpClient): UpdateGallerySignature;
66
+ interface UpdateGallerySignature {
67
+ /**
68
+ * Updates a gallery.
69
+ *
70
+ * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
71
+ *
72
+ * <blockquote class="important">
73
+ *
74
+ * __Important:__
75
+ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
76
+ *
77
+ * </blockquote>
78
+ * @param - ID of the gallery to update.
79
+ * @param - The information for the gallery being updated.
80
+ * @returns Updated gallery.
81
+ */
82
+ (_id: string, gallery: UpdateGallery): Promise<Gallery>;
83
+ }
84
+ declare function deleteGallery$1(httpClient: HttpClient): DeleteGallerySignature;
85
+ interface DeleteGallerySignature {
86
+ /**
87
+ * Deletes a gallery.
88
+ *
89
+ * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function.
90
+ * @param - ID of the gallery to delete.
91
+ */
92
+ (galleryId: string): Promise<DeleteGalleryResponse>;
93
+ }
94
+ declare function deleteGalleryItems$1(httpClient: HttpClient): DeleteGalleryItemsSignature;
95
+ interface DeleteGalleryItemsSignature {
96
+ /**
97
+ * Deletes multiple media items from a gallery.
98
+ * @param - Gallery ID.
99
+ * @deprecated
100
+ */
101
+ (galleryId: string, options?: DeleteGalleryItemsOptions | undefined): Promise<DeleteGalleryItemsResponse>;
102
+ }
103
+ declare function bulkDeleteGalleryItems$1(httpClient: HttpClient): BulkDeleteGalleryItemsSignature;
104
+ interface BulkDeleteGalleryItemsSignature {
105
+ /**
106
+ * Deletes multiple media items from a gallery.
107
+ * @param - Gallery ID.
108
+ * @param - IDs of the media items to delete.
109
+ */
110
+ (galleryId: string, itemIds: string[]): Promise<BulkDeleteGalleryItemsResponse>;
111
+ }
112
+ declare function createGalleryItem$1(httpClient: HttpClient): CreateGalleryItemSignature;
113
+ interface CreateGalleryItemSignature {
114
+ /**
115
+ * Creates a media item in a specified gallery.
116
+ *
117
+ * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created.
118
+ *
119
+ * <blockquote class="important">
120
+ *
121
+ * __Important:__
122
+ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
123
+ *
124
+ * </blockquote>
125
+ * @param - Gallery ID.
126
+ * @param - Media item to create.
127
+ * @returns Created media item.
128
+ */
129
+ (galleryId: string, item: Item): Promise<Item>;
130
+ }
131
+ declare function updateGalleryItem$1(httpClient: HttpClient): UpdateGalleryItemSignature;
132
+ interface UpdateGalleryItemSignature {
133
+ /**
134
+ * Updates a media item in a specified gallery.
135
+ *
136
+ * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same.
137
+ *
138
+ * <blockquote class="important">
139
+ *
140
+ * __Important:__
141
+ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL.
142
+ *
143
+ * </blockquote>
144
+ * @param - The information for the gallery item being updated.
145
+ * @param - Gallery ID and Item ID.
146
+ * @returns Updated media item.
147
+ */
148
+ (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise<Item>;
149
+ }
150
+ declare function deleteGalleryItem$1(httpClient: HttpClient): DeleteGalleryItemSignature;
151
+ interface DeleteGalleryItemSignature {
152
+ /**
153
+ * Deletes a media item from a gallery.
154
+ *
155
+ * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function.
156
+ * @param - Gallery ID and Item ID.
157
+ */
158
+ (identifiers: DeleteGalleryItemIdentifiers): Promise<DeleteGalleryItemResponse>;
159
+ }
160
+ declare const onGalleryCreated$1: EventDefinition<GalleryCreatedEnvelope, "wix.pro_gallery.gallery_v2_created">;
161
+ declare const onGalleryDeleted$1: EventDefinition<GalleryDeletedEnvelope, "wix.pro_gallery.gallery_v2_deleted">;
162
+ declare const onGalleryItemCreated$1: EventDefinition<GalleryItemCreatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_created">;
163
+ declare const onGalleryItemDeleted$1: EventDefinition<GalleryItemDeletedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_deleted">;
164
+ declare const onGalleryItemUpdated$1: EventDefinition<GalleryItemUpdatedEnvelope, "wix.pro_gallery.gallery_v2_gallery_item_updated">;
165
+ declare const onGalleryUpdated$1: EventDefinition<GalleryUpdatedEnvelope, "wix.pro_gallery.gallery_v2_updated">;
166
+
167
+ declare const listGalleries: MaybeContext<BuildRESTFunction<typeof listGalleries$1> & typeof listGalleries$1>;
168
+ declare const getGallery: MaybeContext<BuildRESTFunction<typeof getGallery$1> & typeof getGallery$1>;
169
+ declare const listGalleryItems: MaybeContext<BuildRESTFunction<typeof listGalleryItems$1> & typeof listGalleryItems$1>;
170
+ declare const getGalleryItem: MaybeContext<BuildRESTFunction<typeof getGalleryItem$1> & typeof getGalleryItem$1>;
171
+ declare const createGallery: MaybeContext<BuildRESTFunction<typeof createGallery$1> & typeof createGallery$1>;
172
+ declare const updateGallery: MaybeContext<BuildRESTFunction<typeof updateGallery$1> & typeof updateGallery$1>;
173
+ declare const deleteGallery: MaybeContext<BuildRESTFunction<typeof deleteGallery$1> & typeof deleteGallery$1>;
174
+ declare const deleteGalleryItems: MaybeContext<BuildRESTFunction<typeof deleteGalleryItems$1> & typeof deleteGalleryItems$1>;
175
+ declare const bulkDeleteGalleryItems: MaybeContext<BuildRESTFunction<typeof bulkDeleteGalleryItems$1> & typeof bulkDeleteGalleryItems$1>;
176
+ declare const createGalleryItem: MaybeContext<BuildRESTFunction<typeof createGalleryItem$1> & typeof createGalleryItem$1>;
177
+ declare const updateGalleryItem: MaybeContext<BuildRESTFunction<typeof updateGalleryItem$1> & typeof updateGalleryItem$1>;
178
+ declare const deleteGalleryItem: MaybeContext<BuildRESTFunction<typeof deleteGalleryItem$1> & typeof deleteGalleryItem$1>;
179
+ /**
180
+ * Triggered when a gallery is created.
181
+ *
182
+ * > __Note:__ The event data doesn't include gallery items or their IDs.
183
+ * > To receive information about the created items you need to listen to the [Gallery Item Created webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-created-webhook).
184
+ */
185
+ declare const onGalleryCreated: BuildEventDefinition<typeof onGalleryCreated$1>;
186
+ /**
187
+ * Triggered when a gallery is deleted.
188
+ */
189
+ declare const onGalleryDeleted: BuildEventDefinition<typeof onGalleryDeleted$1>;
190
+ /**
191
+ * Triggered when a media item in a specified gallery is created.
192
+ */
193
+ declare const onGalleryItemCreated: BuildEventDefinition<typeof onGalleryItemCreated$1>;
194
+ /**
195
+ * Triggered when a media item in a specified gallery is deleted.
196
+ *
197
+ * > __Note:__ The event is triggered when a gallery item is deleted individually and when a gallery item is deleted because its gallery is deleted.
198
+ * > The property `originatedFrom` has the value `Gallery Deleted` if the entire gallery is deleted. If the gallery item is deleted individually, this field is empty.
199
+ */
200
+ declare const onGalleryItemDeleted: BuildEventDefinition<typeof onGalleryItemDeleted$1>;
201
+ /**
202
+ * Triggered when a media item in a specified gallery is updated.
203
+ */
204
+ declare const onGalleryItemUpdated: BuildEventDefinition<typeof onGalleryItemUpdated$1>;
205
+ /**
206
+ * Triggered when a gallery is updated.
207
+ *
208
+ * > __Note:__ The event data doesn't include gallery items or their IDs.
209
+ * > To receive information about the updated items you need to listen to the [Gallery Item Updated webhook](https://dev.wix.com/api/rest/site-content/pro-gallery/gallery-item-updated-webhook).
210
+ */
211
+ declare const onGalleryUpdated: BuildEventDefinition<typeof onGalleryUpdated$1>;
212
+
213
+ export { BulkDeleteGalleryItemsResponse, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryResponse, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ListGalleriesOptions, ListGalleriesResponse, ListGalleryItemsOptions, ListGalleryItemsResponse, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, bulkDeleteGalleryItems, createGallery, createGalleryItem, deleteGallery, deleteGalleryItem, deleteGalleryItems, getGallery, getGalleryItem, listGalleries, listGalleryItems, onGalleryCreated, onGalleryDeleted, onGalleryItemCreated, onGalleryItemDeleted, onGalleryItemUpdated, onGalleryUpdated, updateGallery, updateGalleryItem };