@wix/auto_sdk_media-collections_media-collections 1.0.4 → 1.0.5

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/{es/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.mts} +413 -247
  2. package/build/{cjs/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.ts} +413 -247
  3. package/build/index.d.mts +120 -0
  4. package/build/index.d.ts +120 -0
  5. package/build/index.js +1151 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1105 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.mts} +413 -247
  10. package/build/internal/{es/src/collections-v1-collection-media-collections.types.d.ts → collections-v1-collection-media-collections.universal-CG3Rf3hZ.d.ts} +413 -247
  11. package/build/internal/index.d.mts +120 -0
  12. package/build/internal/index.d.ts +120 -0
  13. package/build/internal/index.js +1151 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1105 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +765 -0
  18. package/build/internal/meta.d.ts +765 -0
  19. package/build/internal/meta.js +783 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +744 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +765 -0
  24. package/build/meta.d.ts +765 -0
  25. package/build/meta.js +783 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +744 -0
  28. package/build/meta.mjs.map +1 -0
  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/collections-v1-collection-media-collections.context.d.ts +0 -21
  40. package/build/cjs/src/collections-v1-collection-media-collections.context.js +0 -33
  41. package/build/cjs/src/collections-v1-collection-media-collections.context.js.map +0 -1
  42. package/build/cjs/src/collections-v1-collection-media-collections.http.d.ts +0 -25
  43. package/build/cjs/src/collections-v1-collection-media-collections.http.js +0 -490
  44. package/build/cjs/src/collections-v1-collection-media-collections.http.js.map +0 -1
  45. package/build/cjs/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
  46. package/build/cjs/src/collections-v1-collection-media-collections.meta.js +0 -278
  47. package/build/cjs/src/collections-v1-collection-media-collections.meta.js.map +0 -1
  48. package/build/cjs/src/collections-v1-collection-media-collections.public.d.ts +0 -104
  49. package/build/cjs/src/collections-v1-collection-media-collections.public.js +0 -123
  50. package/build/cjs/src/collections-v1-collection-media-collections.public.js.map +0 -1
  51. package/build/cjs/src/collections-v1-collection-media-collections.types.js +0 -94
  52. package/build/cjs/src/collections-v1-collection-media-collections.types.js.map +0 -1
  53. package/build/cjs/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
  54. package/build/cjs/src/collections-v1-collection-media-collections.universal.js +0 -574
  55. package/build/cjs/src/collections-v1-collection-media-collections.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/collections-v1-collection-media-collections.context.d.ts +0 -21
  67. package/build/es/src/collections-v1-collection-media-collections.context.js +0 -21
  68. package/build/es/src/collections-v1-collection-media-collections.context.js.map +0 -1
  69. package/build/es/src/collections-v1-collection-media-collections.http.d.ts +0 -25
  70. package/build/es/src/collections-v1-collection-media-collections.http.js +0 -474
  71. package/build/es/src/collections-v1-collection-media-collections.http.js.map +0 -1
  72. package/build/es/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
  73. package/build/es/src/collections-v1-collection-media-collections.meta.js +0 -239
  74. package/build/es/src/collections-v1-collection-media-collections.meta.js.map +0 -1
  75. package/build/es/src/collections-v1-collection-media-collections.public.d.ts +0 -104
  76. package/build/es/src/collections-v1-collection-media-collections.public.js +0 -98
  77. package/build/es/src/collections-v1-collection-media-collections.public.js.map +0 -1
  78. package/build/es/src/collections-v1-collection-media-collections.types.js +0 -91
  79. package/build/es/src/collections-v1-collection-media-collections.types.js.map +0 -1
  80. package/build/es/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
  81. package/build/es/src/collections-v1-collection-media-collections.universal.js +0 -535
  82. package/build/es/src/collections-v1-collection-media-collections.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/collections-v1-collection-media-collections.context.d.ts +0 -21
  93. package/build/internal/cjs/src/collections-v1-collection-media-collections.context.js +0 -33
  94. package/build/internal/cjs/src/collections-v1-collection-media-collections.context.js.map +0 -1
  95. package/build/internal/cjs/src/collections-v1-collection-media-collections.http.d.ts +0 -25
  96. package/build/internal/cjs/src/collections-v1-collection-media-collections.http.js +0 -490
  97. package/build/internal/cjs/src/collections-v1-collection-media-collections.http.js.map +0 -1
  98. package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
  99. package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.js +0 -278
  100. package/build/internal/cjs/src/collections-v1-collection-media-collections.meta.js.map +0 -1
  101. package/build/internal/cjs/src/collections-v1-collection-media-collections.public.d.ts +0 -104
  102. package/build/internal/cjs/src/collections-v1-collection-media-collections.public.js +0 -123
  103. package/build/internal/cjs/src/collections-v1-collection-media-collections.public.js.map +0 -1
  104. package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js +0 -94
  105. package/build/internal/cjs/src/collections-v1-collection-media-collections.types.js.map +0 -1
  106. package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
  107. package/build/internal/cjs/src/collections-v1-collection-media-collections.universal.js +0 -574
  108. package/build/internal/cjs/src/collections-v1-collection-media-collections.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/collections-v1-collection-media-collections.context.d.ts +0 -21
  119. package/build/internal/es/src/collections-v1-collection-media-collections.context.js +0 -21
  120. package/build/internal/es/src/collections-v1-collection-media-collections.context.js.map +0 -1
  121. package/build/internal/es/src/collections-v1-collection-media-collections.http.d.ts +0 -25
  122. package/build/internal/es/src/collections-v1-collection-media-collections.http.js +0 -474
  123. package/build/internal/es/src/collections-v1-collection-media-collections.http.js.map +0 -1
  124. package/build/internal/es/src/collections-v1-collection-media-collections.meta.d.ts +0 -48
  125. package/build/internal/es/src/collections-v1-collection-media-collections.meta.js +0 -239
  126. package/build/internal/es/src/collections-v1-collection-media-collections.meta.js.map +0 -1
  127. package/build/internal/es/src/collections-v1-collection-media-collections.public.d.ts +0 -104
  128. package/build/internal/es/src/collections-v1-collection-media-collections.public.js +0 -98
  129. package/build/internal/es/src/collections-v1-collection-media-collections.public.js.map +0 -1
  130. package/build/internal/es/src/collections-v1-collection-media-collections.types.js +0 -91
  131. package/build/internal/es/src/collections-v1-collection-media-collections.types.js.map +0 -1
  132. package/build/internal/es/src/collections-v1-collection-media-collections.universal.d.ts +0 -1338
  133. package/build/internal/es/src/collections-v1-collection-media-collections.universal.js +0 -535
  134. package/build/internal/es/src/collections-v1-collection-media-collections.universal.js.map +0 -1
@@ -0,0 +1,765 @@
1
+ import { ac as GetMediaCollectionRequest$1, ad as GetMediaCollectionResponse$1, ae as ListCollectionsForItemRequest$1, a as ListCollectionsForItemResponse$1, ag as GetCollectionItemRequest$1, c as GetCollectionItemResponse$1, ah as ListMediaCollectionsRequest$1, e as ListMediaCollectionsResponse$1, ak as CreateMediaCollectionRequest$1, f as CreateMediaCollectionResponse$1, am as PartiallyUpdateMediaCollectionRequest$1, an as PartiallyUpdateMediaCollectionResponse$1, aq as DeleteMediaCollectionRequest$1, ar as DeleteMediaCollectionResponse$1, as as ListCollectionMembersRequest$1, i as ListCollectionMembersResponse$1, av as AddItemsRequest$1, aw as AddItemsResponse$1, ax as RemoveItemsRequest$1, ay as RemoveItemsResponse$1, aC as JoinToCollectionRequest$1, aD as JoinToCollectionResponse$1, aG as LeaveCollectionRequest$1, aH as LeaveCollectionResponse$1, aI as ListCollectionItemsRequest$1, j as ListCollectionItemsResponse$1 } from './collections-v1-collection-media-collections.universal-CG3Rf3hZ.mjs';
2
+
3
+ interface MediaCollection {
4
+ /**
5
+ * Collection id
6
+ * @readonly
7
+ * @format GUID
8
+ */
9
+ id?: string;
10
+ /**
11
+ * Collection name
12
+ * @maxLength 100
13
+ */
14
+ name?: string;
15
+ /** @maxLength 500 */
16
+ description?: string | null;
17
+ /**
18
+ * total count of MediaCollection members
19
+ * @readonly
20
+ */
21
+ membersCount?: number;
22
+ /**
23
+ * the member who created the MediaCollection
24
+ * @readonly
25
+ */
26
+ creator?: CollectionMember;
27
+ /**
28
+ * when MediaCollection was created
29
+ * @readonly
30
+ */
31
+ createdDate?: Date | null;
32
+ /** Items in the collection */
33
+ items?: MediaCollectionItem[];
34
+ /**
35
+ * total count of items
36
+ * @readonly
37
+ */
38
+ itemsCount?: number;
39
+ /** Privacy settings */
40
+ privacySettings?: PrivacySettingsWithLiterals;
41
+ /** If true, the collection is locked and should not be updated */
42
+ locked?: boolean;
43
+ }
44
+ interface CollectionMember {
45
+ /**
46
+ * Member id
47
+ * @readonly
48
+ * @format GUID
49
+ */
50
+ memberId?: string;
51
+ /**
52
+ * Member nickname
53
+ * @maxLength 100
54
+ */
55
+ nickname?: string | null;
56
+ /**
57
+ * Member slug
58
+ * @maxLength 100
59
+ */
60
+ slug?: string | null;
61
+ /**
62
+ * Member photo url
63
+ * @maxLength 200
64
+ */
65
+ photoUrl?: string | null;
66
+ }
67
+ interface MediaCollectionItem extends MediaCollectionItemMetadataOneOf {
68
+ /** Photo metadata */
69
+ photoMetadata?: PhotoMetadata;
70
+ /** Video metadata */
71
+ videoMetadata?: VideoMetadata;
72
+ /** Text metadata */
73
+ textMetadata?: TextMetadata;
74
+ /**
75
+ * item id
76
+ * @readonly
77
+ * @format GUID
78
+ */
79
+ id?: string | null;
80
+ /** item url for photos or video */
81
+ mediaUrl?: string | null;
82
+ /** if not present in an update it mean the item will be added as currentTimestamp */
83
+ sortOrder?: number | null;
84
+ /** item's original filename */
85
+ name?: string | null;
86
+ /** item's title */
87
+ title?: string | null;
88
+ /** item's description */
89
+ description?: string | null;
90
+ /** a link from the item to something else */
91
+ link?: Link;
92
+ /** item type: text, photo or video */
93
+ dataType?: DataTypeWithLiterals;
94
+ /**
95
+ * When the item was added to the collection
96
+ * @readonly
97
+ */
98
+ addedDate?: Date | null;
99
+ /**
100
+ * When the item was last updated
101
+ * @readonly
102
+ */
103
+ updatedDate?: Date | null;
104
+ /** The owner of the media */
105
+ mediaOwner?: MediaOwnerWithLiterals;
106
+ /** Tags for media */
107
+ tags?: string[];
108
+ /** Token for media */
109
+ token?: string | null;
110
+ /** Gallery id */
111
+ galleryId?: string;
112
+ }
113
+ /** @oneof */
114
+ interface MediaCollectionItemMetadataOneOf {
115
+ /** Photo metadata */
116
+ photoMetadata?: PhotoMetadata;
117
+ /** Video metadata */
118
+ videoMetadata?: VideoMetadata;
119
+ /** Text metadata */
120
+ textMetadata?: TextMetadata;
121
+ }
122
+ interface Link {
123
+ type?: TypeWithLiterals;
124
+ /** Link text */
125
+ text?: string | null;
126
+ /** Link url */
127
+ url?: string | null;
128
+ /** Link target */
129
+ target?: string | null;
130
+ /** Data on how to construct the link from wix editor inputs */
131
+ wixLinkData?: WixLink;
132
+ }
133
+ declare enum Type {
134
+ /** Undefined */
135
+ Undefined = "Undefined",
136
+ /** external link */
137
+ External = "External",
138
+ /** link to wix pages */
139
+ Internal = "Internal"
140
+ }
141
+ /** @enumType */
142
+ type TypeWithLiterals = Type | 'Undefined' | 'External' | 'Internal';
143
+ /** The link object generated by panels in the editor and used by applications in Wix */
144
+ interface WixLink extends WixLinkLinkOneOf {
145
+ /** External link type */
146
+ external?: ExternalLink;
147
+ /** Page link type */
148
+ page?: PageLink;
149
+ /** Anchor link type */
150
+ anchor?: AnchorLink;
151
+ /** Dynamic page link type */
152
+ dynamicPage?: DynamicPageLink;
153
+ /** Document link type */
154
+ document?: DocumentLink;
155
+ /** Email link type */
156
+ email?: EmailLink;
157
+ /** Phone link type */
158
+ phone?: PhoneLink;
159
+ /** Address link type */
160
+ address?: AddressLink;
161
+ /** WhatsApp link type */
162
+ whatsApp?: WhatsAppLink;
163
+ /** TPA link type */
164
+ tpaPage?: TpaPageLink;
165
+ }
166
+ /** @oneof */
167
+ interface WixLinkLinkOneOf {
168
+ /** External link type */
169
+ external?: ExternalLink;
170
+ /** Page link type */
171
+ page?: PageLink;
172
+ /** Anchor link type */
173
+ anchor?: AnchorLink;
174
+ /** Dynamic page link type */
175
+ dynamicPage?: DynamicPageLink;
176
+ /** Document link type */
177
+ document?: DocumentLink;
178
+ /** Email link type */
179
+ email?: EmailLink;
180
+ /** Phone link type */
181
+ phone?: PhoneLink;
182
+ /** Address link type */
183
+ address?: AddressLink;
184
+ /** WhatsApp link type */
185
+ whatsApp?: WhatsAppLink;
186
+ /** TPA link type */
187
+ tpaPage?: TpaPageLink;
188
+ }
189
+ interface ExternalLink {
190
+ /**
191
+ * The url of the page
192
+ * @format WEB_URL
193
+ */
194
+ url?: string;
195
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
196
+ target?: string | null;
197
+ }
198
+ /**
199
+ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
200
+ * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
201
+ * Following are the accepted 'rel' types by Wix applications.
202
+ */
203
+ declare enum LinkRel {
204
+ /** default (not implemented) */
205
+ unknown_link_rel = "unknown_link_rel",
206
+ /** Indicates that the current document's original author or publisher does not endorse the referenced document. */
207
+ nofollow = "nofollow",
208
+ /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
209
+ noopener = "noopener",
210
+ /** No Referer header will be included. Additionally, has the same effect as noopener. */
211
+ noreferrer = "noreferrer",
212
+ /** Indicates a link that resulted from advertisements or paid placements. */
213
+ sponsored = "sponsored"
214
+ }
215
+ /** @enumType */
216
+ type LinkRelWithLiterals = LinkRel | 'unknown_link_rel' | 'nofollow' | 'noopener' | 'noreferrer' | 'sponsored';
217
+ interface PageLink {
218
+ /** The page id we want from the site */
219
+ pageId?: string;
220
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
221
+ target?: string | null;
222
+ /**
223
+ * rel of link
224
+ * @maxSize 20
225
+ */
226
+ rel?: LinkRelWithLiterals[];
227
+ }
228
+ interface AnchorLink {
229
+ /** The name of the anchor */
230
+ anchorName?: string;
231
+ /** The data id (from the JSON page) of the anchor that should be used */
232
+ anchorDataId?: string;
233
+ /** The page id we want from the site */
234
+ pageId?: string;
235
+ /**
236
+ * rel of link
237
+ * @maxSize 20
238
+ */
239
+ rel?: LinkRelWithLiterals[];
240
+ }
241
+ interface DynamicPageLink {
242
+ /** The router that handles this link */
243
+ routerId?: string;
244
+ /** The path data we'd like */
245
+ innerRoute?: string;
246
+ /** The data id (from the JSON page) of the anchor that should be used */
247
+ anchorDataId?: string | null;
248
+ /**
249
+ * rel of link
250
+ * @maxSize 20
251
+ */
252
+ rel?: LinkRelWithLiterals[];
253
+ }
254
+ interface DocumentLink {
255
+ /** The id of the document */
256
+ docId?: string;
257
+ /** The name of the document for download purposes */
258
+ name?: string | null;
259
+ /** If this document can be indexed by scrapers, default is false */
260
+ indexable?: boolean;
261
+ }
262
+ interface EmailLink {
263
+ /**
264
+ * The email we will be sending a message to
265
+ * @format EMAIL
266
+ */
267
+ recipient?: string;
268
+ /** The subject of the email */
269
+ subject?: string | null;
270
+ /** The body of the email */
271
+ body?: string | null;
272
+ }
273
+ interface PhoneLink {
274
+ /**
275
+ * The phone number we want to link to
276
+ * @format PHONE
277
+ * @maxLength 100
278
+ */
279
+ phoneNumber?: string;
280
+ }
281
+ interface AddressLink {
282
+ /** An address that we can link to */
283
+ address?: string;
284
+ }
285
+ interface WhatsAppLink {
286
+ /**
287
+ * The whatsApp phone number we want to connect with
288
+ * @format PHONE
289
+ */
290
+ phoneNumber?: string;
291
+ }
292
+ /** Link to a TPA page */
293
+ interface TpaPageLink {
294
+ /** Type of item (e.g. 'wix.stores.sub_pages.product') */
295
+ itemTypeIdentifier?: string;
296
+ /** Id of linked item */
297
+ itemId?: string;
298
+ /** Id of linked page */
299
+ pageId?: string;
300
+ /** Id of app being linked to (AppDefId) */
301
+ appDefinitionId?: string;
302
+ /** The relativepath of linked page */
303
+ path?: string;
304
+ /**
305
+ * rel of link
306
+ * @maxSize 20
307
+ */
308
+ rel?: LinkRelWithLiterals[];
309
+ }
310
+ declare enum DataType {
311
+ Undefined = "Undefined",
312
+ Photo = "Photo",
313
+ Video = "Video",
314
+ Text = "Text"
315
+ }
316
+ /** @enumType */
317
+ type DataTypeWithLiterals = DataType | 'Undefined' | 'Photo' | 'Video' | 'Text';
318
+ interface PhotoMetadata {
319
+ /** Photo width */
320
+ width?: number | null;
321
+ /** Photo height */
322
+ height?: number | null;
323
+ /** The focal point of the image */
324
+ focalPoint?: Point;
325
+ /** aka Exchangeable image file format */
326
+ exif?: Record<string, any> | null;
327
+ /**
328
+ * the image quality
329
+ * @min 30
330
+ * @max 100
331
+ */
332
+ quality?: number | null;
333
+ /** photo sharpening */
334
+ unsharpMasking?: UnsharpMasking;
335
+ /** id in WixMedia */
336
+ mediaId?: string | null;
337
+ }
338
+ interface Point {
339
+ /** x coordinate */
340
+ x?: number;
341
+ /** y coordinate */
342
+ y?: number;
343
+ }
344
+ interface UnsharpMasking {
345
+ /**
346
+ * number controls the amount of contrast that is added at the edges.
347
+ * @max 5
348
+ */
349
+ amount?: number | null;
350
+ /** number in pixels. The size of the edges to be enhanced */
351
+ radius?: number | null;
352
+ /**
353
+ * The minimal level of brightness change that will be sharpened
354
+ * @max 1
355
+ */
356
+ threshold?: number | null;
357
+ }
358
+ interface VideoMetadata {
359
+ /** Video width */
360
+ width?: number | null;
361
+ /** Video height */
362
+ height?: number | null;
363
+ /** Video duration in milliseconds */
364
+ duration?: string | null;
365
+ /** Video source */
366
+ source?: SourceWithLiterals;
367
+ /** Video posters */
368
+ posters?: Thumbnail[];
369
+ /** Video resolutions */
370
+ resolutions?: Resolution[];
371
+ /** External source's representation for this video's id */
372
+ externalId?: string | null;
373
+ }
374
+ declare enum Source {
375
+ /** Undefined */
376
+ Undefined = "Undefined",
377
+ /** Youtube */
378
+ Youtube = "Youtube",
379
+ /** Vimeo */
380
+ Vimeo = "Vimeo",
381
+ /** Custom */
382
+ Custom = "Custom"
383
+ }
384
+ /** @enumType */
385
+ type SourceWithLiterals = Source | 'Undefined' | 'Youtube' | 'Vimeo' | 'Custom';
386
+ interface Thumbnail {
387
+ /** Thumbnail url */
388
+ url?: string | null;
389
+ /** Thumbnail width */
390
+ width?: number | null;
391
+ /** Thumbnail height */
392
+ height?: number | null;
393
+ /** Is this the default thumbnail */
394
+ default?: boolean | null;
395
+ /** The focal point of the image */
396
+ focalPoint?: Point;
397
+ }
398
+ interface Resolution {
399
+ /** eg 720p, 1024p etc */
400
+ videoMode?: string | null;
401
+ /** Video width */
402
+ width?: number | null;
403
+ /** Video height */
404
+ height?: number | null;
405
+ /** Map representing the file format (eg mp4) to the url. In case of an external source the format can be youtube, vimeo, etc. */
406
+ urls?: Record<string, string>;
407
+ }
408
+ interface TextMetadata {
409
+ /** text data */
410
+ html?: string | null;
411
+ /** css style info for container */
412
+ style?: Record<string, any> | null;
413
+ /** populated via progallery app only (ck editor format) */
414
+ editorHtml?: string | null;
415
+ /** the wix editor's font Id used to display the text data */
416
+ editorFontId?: string | null;
417
+ }
418
+ declare enum MediaOwner {
419
+ /** Undefined */
420
+ Undefined = "Undefined",
421
+ /** Wix */
422
+ Wix = "Wix",
423
+ /** DeviantArt */
424
+ DeviantArt = "DeviantArt",
425
+ /** Custom */
426
+ Custom = "Custom"
427
+ }
428
+ /** @enumType */
429
+ type MediaOwnerWithLiterals = MediaOwner | 'Undefined' | 'Wix' | 'DeviantArt' | 'Custom';
430
+ declare enum PrivacySettings {
431
+ /** Undefined */
432
+ Undefined = "Undefined",
433
+ /** Public */
434
+ Public = "Public",
435
+ /** Secret */
436
+ Secret = "Secret"
437
+ }
438
+ /** @enumType */
439
+ type PrivacySettingsWithLiterals = PrivacySettings | 'Undefined' | 'Public' | 'Secret';
440
+ interface GetMediaCollectionRequest {
441
+ /**
442
+ * Collection id
443
+ * @format GUID
444
+ */
445
+ mediaCollectionId: string;
446
+ /** number of items to skip in the current sort order, default is 0 */
447
+ offset?: number | null;
448
+ /**
449
+ * The amount of items per response, default is 50
450
+ * @min 1
451
+ * @max 200
452
+ */
453
+ limit?: number | null;
454
+ }
455
+ interface GetMediaCollectionResponse {
456
+ /** The collection */
457
+ mediaCollection?: MediaCollection;
458
+ /** The member's status in the collection */
459
+ memberStatus?: MemberStatusWithLiterals;
460
+ }
461
+ declare enum MemberStatus {
462
+ /** Undefined */
463
+ UNDEFINED = "UNDEFINED",
464
+ /** Not a member */
465
+ NOT_MEMBER = "NOT_MEMBER",
466
+ /** Member */
467
+ MEMBER = "MEMBER",
468
+ /** Admin */
469
+ ADMIN = "ADMIN"
470
+ }
471
+ /** @enumType */
472
+ type MemberStatusWithLiterals = MemberStatus | 'UNDEFINED' | 'NOT_MEMBER' | 'MEMBER' | 'ADMIN';
473
+ interface ListCollectionsForItemRequest {
474
+ /**
475
+ * Gallery id
476
+ * @format GUID
477
+ */
478
+ galleryId?: string;
479
+ /**
480
+ * Item id
481
+ * @format GUID
482
+ */
483
+ itemId: string;
484
+ }
485
+ interface ListCollectionsForItemResponse {
486
+ /** The collections that the item belongs to */
487
+ itemInCollections?: ItemInCollection[];
488
+ }
489
+ interface ItemInCollection {
490
+ /**
491
+ * Collection id
492
+ * @format GUID
493
+ */
494
+ mediaCollectionId?: string;
495
+ /**
496
+ * Collection name
497
+ * @minLength 1
498
+ * @maxLength 100
499
+ */
500
+ name?: string;
501
+ /** Is the item in the collection */
502
+ isItemInCollection?: boolean;
503
+ /** Is the collection locked */
504
+ isLocked?: boolean;
505
+ /** Member's role in the collection */
506
+ role?: MemberStatusWithLiterals;
507
+ /** Total count of items in the collection */
508
+ totalItemsCount?: number | null;
509
+ /** The first item in the collection */
510
+ firstItem?: MediaCollectionItem;
511
+ /**
512
+ * The creator's nickname
513
+ * @maxLength 100
514
+ */
515
+ creatorNickname?: string | null;
516
+ }
517
+ interface GetCollectionItemRequest {
518
+ /**
519
+ * Collection id
520
+ * @format GUID
521
+ */
522
+ mediaCollectionId: string;
523
+ /**
524
+ * Item id
525
+ * @format GUID
526
+ */
527
+ itemId: string;
528
+ }
529
+ interface GetCollectionItemResponse {
530
+ /** The item */
531
+ item?: MediaCollectionItem;
532
+ }
533
+ interface ListMediaCollectionsRequest {
534
+ /**
535
+ * the amount of collections per response, default is 1000
536
+ * @min 1
537
+ * @max 2000
538
+ */
539
+ limit?: number | null;
540
+ /** number of collections to skip in the current sort order, default is 0 */
541
+ offset?: number | null;
542
+ /**
543
+ * If empty, no filter will be applied
544
+ * Else, will return only collections that the member has those roles on them. Currently supporting: MEMBER, ADMIN.
545
+ */
546
+ filterByRoles?: FilterByRoles;
547
+ }
548
+ interface FilterByRoles {
549
+ roles?: MemberStatusWithLiterals[];
550
+ }
551
+ interface ListMediaCollectionsResponse {
552
+ /** The collections and the member's role in them */
553
+ collectionsStatus?: CollectionAndStatus[];
554
+ /**
555
+ * total count of MediaCollection members
556
+ * @readonly
557
+ */
558
+ totalCollectionsCount?: number | null;
559
+ }
560
+ interface CollectionAndStatus {
561
+ /** The Media Collection */
562
+ mediaCollection?: MediaCollection;
563
+ /** The member's status in the collection */
564
+ memberStatus?: MemberStatusWithLiterals;
565
+ }
566
+ interface CreateMediaCollectionRequest {
567
+ /**
568
+ * Name of the collection
569
+ * @minLength 1
570
+ * @maxLength 100
571
+ */
572
+ name: string;
573
+ /**
574
+ * Description of the collection
575
+ * @maxLength 500
576
+ */
577
+ description?: string | null;
578
+ /** Privacy settings of the collection */
579
+ privacySettings?: PrivacySettingsWithLiterals;
580
+ /** Items to add to the collection */
581
+ items?: AddItem[];
582
+ }
583
+ interface AddItem {
584
+ /**
585
+ * Gallery id
586
+ * @format GUID
587
+ */
588
+ galleryId?: string;
589
+ /**
590
+ * Item id
591
+ * @format GUID
592
+ */
593
+ itemId?: string;
594
+ /** Order index of the item */
595
+ orderIndex?: number | null;
596
+ }
597
+ interface CreateMediaCollectionResponse {
598
+ /**
599
+ * id of the collection that was created
600
+ * @format GUID
601
+ */
602
+ mediaCollectionId?: string;
603
+ }
604
+ interface PartiallyUpdateMediaCollectionRequest {
605
+ /** Collection to update */
606
+ mediaCollection: MediaCollection;
607
+ /**
608
+ * fields to update
609
+ * supported fields: name, description, privacy_settings
610
+ */
611
+ fieldMask: string[];
612
+ }
613
+ interface PartiallyUpdateMediaCollectionResponse {
614
+ }
615
+ interface DeleteMediaCollectionRequest {
616
+ /**
617
+ * the collection to delete
618
+ * @format GUID
619
+ */
620
+ mediaCollectionId: string;
621
+ }
622
+ interface DeleteMediaCollectionResponse {
623
+ }
624
+ interface ListCollectionMembersRequest {
625
+ /**
626
+ * the collection to get its members
627
+ * @format GUID
628
+ */
629
+ mediaCollectionId: string;
630
+ /** Filter the members by their role in the collection */
631
+ filterBy?: FilterBy;
632
+ }
633
+ interface FilterBy {
634
+ /** Member's status in the collection */
635
+ memberStatus?: MemberStatusWithLiterals;
636
+ }
637
+ interface ListCollectionMembersResponse {
638
+ /** The collection's members and their roles */
639
+ membersRoles?: MemberAndStatus[];
640
+ }
641
+ interface MemberAndStatus {
642
+ /** The member */
643
+ member?: CollectionMember;
644
+ /** The member's role in the collection */
645
+ memberStatus?: MemberStatusWithLiterals;
646
+ }
647
+ interface AddItemsRequest {
648
+ /**
649
+ * Collection to add items
650
+ * @format GUID
651
+ */
652
+ mediaCollectionId: string;
653
+ /** Items to add */
654
+ items?: AddItem[];
655
+ }
656
+ interface AddItemsResponse {
657
+ }
658
+ interface RemoveItemsRequest {
659
+ /**
660
+ * Collection to remove items from
661
+ * @format GUID
662
+ */
663
+ mediaCollectionId: string;
664
+ /**
665
+ * Items to remove
666
+ * @format GUID
667
+ */
668
+ itemsIds?: string[];
669
+ }
670
+ interface RemoveItemsResponse {
671
+ }
672
+ interface JoinToCollectionRequest {
673
+ /**
674
+ * Collection to join
675
+ * @format GUID
676
+ */
677
+ mediaCollectionId: string;
678
+ }
679
+ interface JoinToCollectionResponse {
680
+ }
681
+ interface LeaveCollectionRequest {
682
+ /**
683
+ * Collection the member will be leaving
684
+ * @format GUID
685
+ */
686
+ mediaCollectionId: string;
687
+ }
688
+ interface LeaveCollectionResponse {
689
+ }
690
+ interface ListCollectionItemsRequest {
691
+ /**
692
+ * Collection to get its items
693
+ * @format GUID
694
+ */
695
+ mediaCollectionId: string;
696
+ }
697
+ interface ListCollectionItemsResponse {
698
+ /** The collection's items */
699
+ collectionItems?: CollectionItem[];
700
+ }
701
+ interface CollectionItem {
702
+ /**
703
+ * Gallery id
704
+ * @format GUID
705
+ */
706
+ galleryId?: string;
707
+ /**
708
+ * Item id
709
+ * @format GUID
710
+ */
711
+ itemId?: string;
712
+ /** Order index of the item */
713
+ orderIndex?: number | null;
714
+ /** Date the item was added to the collection */
715
+ addedDate?: Date | null;
716
+ }
717
+
718
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
719
+ getUrl: (context: any) => string;
720
+ httpMethod: K;
721
+ path: string;
722
+ pathParams: M;
723
+ __requestType: T;
724
+ __originalRequestType: S;
725
+ __responseType: Q;
726
+ __originalResponseType: R;
727
+ };
728
+ declare function get(): __PublicMethodMetaInfo<'GET', {
729
+ mediaCollectionId: string;
730
+ }, GetMediaCollectionRequest$1, GetMediaCollectionRequest, GetMediaCollectionResponse$1, GetMediaCollectionResponse>;
731
+ declare function listCollectionsForItem(): __PublicMethodMetaInfo<'GET', {
732
+ itemId: string;
733
+ }, ListCollectionsForItemRequest$1, ListCollectionsForItemRequest, ListCollectionsForItemResponse$1, ListCollectionsForItemResponse>;
734
+ declare function getCollectionItem(): __PublicMethodMetaInfo<'GET', {
735
+ mediaCollectionId: string;
736
+ itemId: string;
737
+ }, GetCollectionItemRequest$1, GetCollectionItemRequest, GetCollectionItemResponse$1, GetCollectionItemResponse>;
738
+ declare function list(): __PublicMethodMetaInfo<'GET', {}, ListMediaCollectionsRequest$1, ListMediaCollectionsRequest, ListMediaCollectionsResponse$1, ListMediaCollectionsResponse>;
739
+ declare function create(): __PublicMethodMetaInfo<'POST', {}, CreateMediaCollectionRequest$1, CreateMediaCollectionRequest, CreateMediaCollectionResponse$1, CreateMediaCollectionResponse>;
740
+ declare function partiallyUpdate(): __PublicMethodMetaInfo<'PUT', {
741
+ mediaCollectionId: string;
742
+ }, PartiallyUpdateMediaCollectionRequest$1, PartiallyUpdateMediaCollectionRequest, PartiallyUpdateMediaCollectionResponse$1, PartiallyUpdateMediaCollectionResponse>;
743
+ declare function _delete(): __PublicMethodMetaInfo<'DELETE', {
744
+ mediaCollectionId: string;
745
+ }, DeleteMediaCollectionRequest$1, DeleteMediaCollectionRequest, DeleteMediaCollectionResponse$1, DeleteMediaCollectionResponse>;
746
+ declare function listCollectionMembers(): __PublicMethodMetaInfo<'GET', {
747
+ mediaCollectionId: string;
748
+ }, ListCollectionMembersRequest$1, ListCollectionMembersRequest, ListCollectionMembersResponse$1, ListCollectionMembersResponse>;
749
+ declare function addItems(): __PublicMethodMetaInfo<'POST', {
750
+ mediaCollectionId: string;
751
+ }, AddItemsRequest$1, AddItemsRequest, AddItemsResponse$1, AddItemsResponse>;
752
+ declare function removeItems(): __PublicMethodMetaInfo<'DELETE', {
753
+ mediaCollectionId: string;
754
+ }, RemoveItemsRequest$1, RemoveItemsRequest, RemoveItemsResponse$1, RemoveItemsResponse>;
755
+ declare function joinToCollection(): __PublicMethodMetaInfo<'POST', {
756
+ mediaCollectionId: string;
757
+ }, JoinToCollectionRequest$1, JoinToCollectionRequest, JoinToCollectionResponse$1, JoinToCollectionResponse>;
758
+ declare function leaveCollection(): __PublicMethodMetaInfo<'DELETE', {
759
+ mediaCollectionId: string;
760
+ }, LeaveCollectionRequest$1, LeaveCollectionRequest, LeaveCollectionResponse$1, LeaveCollectionResponse>;
761
+ declare function listCollectionItems(): __PublicMethodMetaInfo<'GET', {
762
+ mediaCollectionId: string;
763
+ }, ListCollectionItemsRequest$1, ListCollectionItemsRequest, ListCollectionItemsResponse$1, ListCollectionItemsResponse>;
764
+
765
+ export { type __PublicMethodMetaInfo, _delete, addItems, create, get, getCollectionItem, joinToCollection, leaveCollection, list, listCollectionItems, listCollectionMembers, listCollectionsForItem, partiallyUpdate, removeItems };