@wix/auto_sdk_media_folders 1.0.11 → 1.0.13

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 (123) hide show
  1. package/build/cjs/index.d.ts +133 -1
  2. package/build/cjs/index.js +813 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +807 -1
  5. package/build/cjs/index.typings.js +669 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +278 -1
  8. package/build/cjs/meta.js +529 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/{src/media-site-media-v1-folder-folders.public.d.ts → index.d.mts} +47 -19
  11. package/build/es/index.mjs +776 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{cjs/src/media-site-media-v1-folder-folders.universal.d.ts → es/index.typings.d.mts} +75 -256
  14. package/build/es/index.typings.mjs +635 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/es/meta.d.mts +278 -0
  17. package/build/es/meta.mjs +497 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +133 -1
  20. package/build/internal/cjs/index.js +813 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +807 -1
  23. package/build/internal/cjs/index.typings.js +669 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +278 -1
  26. package/build/internal/cjs/meta.js +529 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/{cjs/src/media-site-media-v1-folder-folders.public.d.ts → es/index.d.mts} +47 -19
  29. package/build/internal/es/index.mjs +776 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/es/{src/media-site-media-v1-folder-folders.universal.d.ts → index.typings.d.mts} +75 -256
  32. package/build/internal/es/index.typings.mjs +635 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/internal/es/meta.d.mts +278 -0
  35. package/build/internal/es/meta.mjs +497 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +10 -9
  38. package/build/cjs/src/media-site-media-v1-folder-folders.context.d.ts +0 -33
  39. package/build/cjs/src/media-site-media-v1-folder-folders.context.js +0 -41
  40. package/build/cjs/src/media-site-media-v1-folder-folders.context.js.map +0 -1
  41. package/build/cjs/src/media-site-media-v1-folder-folders.http.d.ts +0 -48
  42. package/build/cjs/src/media-site-media-v1-folder-folders.http.js +0 -371
  43. package/build/cjs/src/media-site-media-v1-folder-folders.http.js.map +0 -1
  44. package/build/cjs/src/media-site-media-v1-folder-folders.meta.d.ts +0 -27
  45. package/build/cjs/src/media-site-media-v1-folder-folders.meta.js +0 -199
  46. package/build/cjs/src/media-site-media-v1-folder-folders.meta.js.map +0 -1
  47. package/build/cjs/src/media-site-media-v1-folder-folders.public.d.ts +0 -105
  48. package/build/cjs/src/media-site-media-v1-folder-folders.public.js +0 -100
  49. package/build/cjs/src/media-site-media-v1-folder-folders.public.js.map +0 -1
  50. package/build/cjs/src/media-site-media-v1-folder-folders.types.d.ts +0 -426
  51. package/build/cjs/src/media-site-media-v1-folder-folders.types.js +0 -60
  52. package/build/cjs/src/media-site-media-v1-folder-folders.types.js.map +0 -1
  53. package/build/cjs/src/media-site-media-v1-folder-folders.universal.js +0 -615
  54. package/build/cjs/src/media-site-media-v1-folder-folders.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/media-site-media-v1-folder-folders.context.d.ts +0 -33
  65. package/build/es/src/media-site-media-v1-folder-folders.context.js +0 -33
  66. package/build/es/src/media-site-media-v1-folder-folders.context.js.map +0 -1
  67. package/build/es/src/media-site-media-v1-folder-folders.http.d.ts +0 -48
  68. package/build/es/src/media-site-media-v1-folder-folders.http.js +0 -359
  69. package/build/es/src/media-site-media-v1-folder-folders.http.js.map +0 -1
  70. package/build/es/src/media-site-media-v1-folder-folders.meta.d.ts +0 -27
  71. package/build/es/src/media-site-media-v1-folder-folders.meta.js +0 -164
  72. package/build/es/src/media-site-media-v1-folder-folders.meta.js.map +0 -1
  73. package/build/es/src/media-site-media-v1-folder-folders.public.js +0 -83
  74. package/build/es/src/media-site-media-v1-folder-folders.public.js.map +0 -1
  75. package/build/es/src/media-site-media-v1-folder-folders.types.d.ts +0 -426
  76. package/build/es/src/media-site-media-v1-folder-folders.types.js +0 -57
  77. package/build/es/src/media-site-media-v1-folder-folders.types.js.map +0 -1
  78. package/build/es/src/media-site-media-v1-folder-folders.universal.d.ts +0 -988
  79. package/build/es/src/media-site-media-v1-folder-folders.universal.js +0 -580
  80. package/build/es/src/media-site-media-v1-folder-folders.universal.js.map +0 -1
  81. package/build/internal/cjs/src/media-site-media-v1-folder-folders.context.d.ts +0 -33
  82. package/build/internal/cjs/src/media-site-media-v1-folder-folders.context.js +0 -41
  83. package/build/internal/cjs/src/media-site-media-v1-folder-folders.context.js.map +0 -1
  84. package/build/internal/cjs/src/media-site-media-v1-folder-folders.http.d.ts +0 -48
  85. package/build/internal/cjs/src/media-site-media-v1-folder-folders.http.js +0 -371
  86. package/build/internal/cjs/src/media-site-media-v1-folder-folders.http.js.map +0 -1
  87. package/build/internal/cjs/src/media-site-media-v1-folder-folders.meta.d.ts +0 -27
  88. package/build/internal/cjs/src/media-site-media-v1-folder-folders.meta.js +0 -199
  89. package/build/internal/cjs/src/media-site-media-v1-folder-folders.meta.js.map +0 -1
  90. package/build/internal/cjs/src/media-site-media-v1-folder-folders.public.js +0 -100
  91. package/build/internal/cjs/src/media-site-media-v1-folder-folders.public.js.map +0 -1
  92. package/build/internal/cjs/src/media-site-media-v1-folder-folders.types.d.ts +0 -426
  93. package/build/internal/cjs/src/media-site-media-v1-folder-folders.types.js +0 -60
  94. package/build/internal/cjs/src/media-site-media-v1-folder-folders.types.js.map +0 -1
  95. package/build/internal/cjs/src/media-site-media-v1-folder-folders.universal.d.ts +0 -988
  96. package/build/internal/cjs/src/media-site-media-v1-folder-folders.universal.js +0 -615
  97. package/build/internal/cjs/src/media-site-media-v1-folder-folders.universal.js.map +0 -1
  98. package/build/internal/es/index.d.ts +0 -1
  99. package/build/internal/es/index.js +0 -2
  100. package/build/internal/es/index.js.map +0 -1
  101. package/build/internal/es/index.typings.d.ts +0 -1
  102. package/build/internal/es/index.typings.js +0 -2
  103. package/build/internal/es/index.typings.js.map +0 -1
  104. package/build/internal/es/meta.d.ts +0 -1
  105. package/build/internal/es/meta.js +0 -2
  106. package/build/internal/es/meta.js.map +0 -1
  107. package/build/internal/es/src/media-site-media-v1-folder-folders.context.d.ts +0 -33
  108. package/build/internal/es/src/media-site-media-v1-folder-folders.context.js +0 -33
  109. package/build/internal/es/src/media-site-media-v1-folder-folders.context.js.map +0 -1
  110. package/build/internal/es/src/media-site-media-v1-folder-folders.http.d.ts +0 -48
  111. package/build/internal/es/src/media-site-media-v1-folder-folders.http.js +0 -359
  112. package/build/internal/es/src/media-site-media-v1-folder-folders.http.js.map +0 -1
  113. package/build/internal/es/src/media-site-media-v1-folder-folders.meta.d.ts +0 -27
  114. package/build/internal/es/src/media-site-media-v1-folder-folders.meta.js +0 -164
  115. package/build/internal/es/src/media-site-media-v1-folder-folders.meta.js.map +0 -1
  116. package/build/internal/es/src/media-site-media-v1-folder-folders.public.d.ts +0 -105
  117. package/build/internal/es/src/media-site-media-v1-folder-folders.public.js +0 -83
  118. package/build/internal/es/src/media-site-media-v1-folder-folders.public.js.map +0 -1
  119. package/build/internal/es/src/media-site-media-v1-folder-folders.types.d.ts +0 -426
  120. package/build/internal/es/src/media-site-media-v1-folder-folders.types.js +0 -57
  121. package/build/internal/es/src/media-site-media-v1-folder-folders.types.js.map +0 -1
  122. package/build/internal/es/src/media-site-media-v1-folder-folders.universal.js +0 -580
  123. package/build/internal/es/src/media-site-media-v1-folder-folders.universal.js.map +0 -1
@@ -1,988 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface Folder {
3
- /**
4
- * Folder ID. Generated when a folder is created in the Media Manager.
5
- * @maxLength 100
6
- */
7
- _id?: string;
8
- /**
9
- * Folder name as it appears in the Media Manager.
10
- * @maxLength 256
11
- */
12
- displayName?: string;
13
- /**
14
- * ID of the folder's parent folder. <br /> Default: `media-root` folder.
15
- * @maxLength 100
16
- */
17
- parentFolderId?: string;
18
- /**
19
- * Date the folder was created.
20
- * @readonly
21
- */
22
- _createdDate?: Date | null;
23
- /**
24
- * Date the folder was updated.
25
- * @readonly
26
- */
27
- _updatedDate?: Date | null;
28
- /**
29
- * State of the folder.
30
- * @readonly
31
- */
32
- state?: StateWithLiterals;
33
- }
34
- export declare enum State {
35
- OK = "OK",
36
- DELETED = "DELETED"
37
- }
38
- /** @enumType */
39
- export type StateWithLiterals = State | 'OK' | 'DELETED';
40
- export declare enum Namespace {
41
- NO_NAMESPACE = "NO_NAMESPACE",
42
- OTHERS = "OTHERS",
43
- /** ANY = 2; */
44
- WIX_VIDEO = "WIX_VIDEO",
45
- /** _nsWixMusic */
46
- WIX_MUSIC = "WIX_MUSIC",
47
- /** _nsArtStore */
48
- ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
49
- /** _nsDigitalProduct */
50
- WIX_ECOM = "WIX_ECOM",
51
- /** _nsPhotoShareApp */
52
- PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
53
- /** _nsSharingApp, */
54
- SHARING_APP = "SHARING_APP",
55
- /** engage */
56
- CHAT = "CHAT",
57
- /** logobuilder */
58
- LOGO_BUILDER = "LOGO_BUILDER",
59
- /** WixExposure */
60
- ALBUMS_OLD = "ALBUMS_OLD",
61
- /** chat-mobile-uploads */
62
- CHAT_MOBILE = "CHAT_MOBILE",
63
- /** _nsWixForms */
64
- WIX_FORMS = "WIX_FORMS",
65
- /** _nsWixLegends */
66
- WIX_LEGENDS = "WIX_LEGENDS"
67
- }
68
- /** @enumType */
69
- export type NamespaceWithLiterals = Namespace | 'NO_NAMESPACE' | 'OTHERS' | 'WIX_VIDEO' | 'WIX_MUSIC' | 'ALBUMS_AND_ART_STORE' | 'WIX_ECOM' | 'PHOTO_SHARE_APP' | 'SHARING_APP' | 'CHAT' | 'LOGO_BUILDER' | 'ALBUMS_OLD' | 'CHAT_MOBILE' | 'WIX_FORMS' | 'WIX_LEGENDS';
70
- export interface CreateFolderRequest {
71
- /**
72
- * Folder name that appears in the Media Manager.
73
- * @maxLength 200
74
- */
75
- displayName: string;
76
- /**
77
- * ID of the folder's parent folder.
78
- * @maxLength 100
79
- */
80
- parentFolderId?: string | null;
81
- }
82
- export interface CreateFolderResponse {
83
- /** Information about the newly created folder. */
84
- folder?: Folder;
85
- }
86
- export interface GetFolderRequest {
87
- /**
88
- * Folder ID.
89
- * @maxLength 100
90
- */
91
- folderId: string;
92
- }
93
- export interface GetFolderResponse {
94
- /** Information about the folder. */
95
- folder?: Folder;
96
- }
97
- export interface ListFoldersRequest {
98
- /**
99
- * ID of the folder's parent folder.
100
- * <br /> Default: `media-root` folder.
101
- * @maxLength 100
102
- */
103
- parentFolderId?: string | null;
104
- /**
105
- * Field name and order to sort by. One of: <br />
106
- * * `displayName`
107
- * * `updatedDate`
108
- * Default: `updatedDate` in `desc` order.
109
- */
110
- sort?: Sorting;
111
- /** Cursor and paging information. */
112
- paging?: CursorPaging;
113
- }
114
- export interface Sorting {
115
- /**
116
- * Name of the field to sort by.
117
- * @maxLength 512
118
- */
119
- fieldName?: string;
120
- /** Sort order. */
121
- order?: SortOrderWithLiterals;
122
- }
123
- export declare enum SortOrder {
124
- ASC = "ASC",
125
- DESC = "DESC"
126
- }
127
- /** @enumType */
128
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
129
- export interface CursorPaging {
130
- /**
131
- * Maximum number of items to return in the results.
132
- * @max 100
133
- */
134
- limit?: number | null;
135
- /**
136
- * Pointer to the next or previous page in the list of results.
137
- *
138
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
139
- * Not relevant for the first request.
140
- * @maxLength 16000
141
- */
142
- cursor?: string | null;
143
- }
144
- export interface ListFoldersResponse {
145
- /**
146
- * Information about the folders in the requested folder.
147
- * @maxSize 200
148
- */
149
- folders?: Folder[];
150
- /** The next cursor if it exists. */
151
- nextCursor?: PagingMetadataV2;
152
- }
153
- export interface PagingMetadataV2 {
154
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
155
- total?: number | null;
156
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
157
- cursors?: Cursors;
158
- }
159
- export interface Cursors {
160
- /**
161
- * Cursor string pointing to the next page in the list of results.
162
- * @maxLength 16000
163
- */
164
- next?: string | null;
165
- }
166
- export interface SearchFoldersRequest {
167
- /**
168
- * A root folder in the Media Manager to search in. <br />
169
- * Default: `MEDIA_ROOT`.
170
- */
171
- rootFolder?: RootFolderWithLiterals;
172
- /**
173
- * Field name and order to sort by. One of:
174
- * * `displayName`
175
- * * `updatedDate`
176
- * Default: `updatedDate` in `desc` order.
177
- */
178
- sort?: Sorting;
179
- /** Cursor and paging information. */
180
- paging?: CursorPaging;
181
- /**
182
- * Term to search for, such as the value of a folder's `displayName`. <br />
183
- * For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
184
- * @maxLength 200
185
- */
186
- search?: string | null;
187
- }
188
- export declare enum RootFolder {
189
- /** Root of all site media */
190
- MEDIA_ROOT = "MEDIA_ROOT",
191
- /** Root of the trash system folder */
192
- TRASH_ROOT = "TRASH_ROOT",
193
- /** Root of all visitor uploads */
194
- VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
195
- }
196
- /** @enumType */
197
- export type RootFolderWithLiterals = RootFolder | 'MEDIA_ROOT' | 'TRASH_ROOT' | 'VISITOR_UPLOADS_ROOT';
198
- export interface SearchFoldersResponse {
199
- /**
200
- * Information about the folders in the requested folder.
201
- * @maxSize 200
202
- */
203
- folders?: Folder[];
204
- /** The next cursor if it exists. */
205
- nextCursor?: PagingMetadataV2;
206
- }
207
- export interface UpdateFolderRequest {
208
- /** Folder to update. */
209
- folder: Folder;
210
- }
211
- export interface UpdateFolderResponse {
212
- /** Information about the updated folder. */
213
- folder?: Folder;
214
- }
215
- export interface UnsupportedRequestValueError {
216
- /**
217
- * Optional A list of allowed values
218
- * @maxSize 100
219
- * @maxLength 200
220
- */
221
- allowedValues?: string[];
222
- /**
223
- * The unsupported value send in the request
224
- * @maxLength 200
225
- */
226
- requestValue?: string;
227
- }
228
- export interface GenerateFolderDownloadUrlRequest {
229
- /**
230
- * Folder ID.
231
- * @maxLength 100
232
- */
233
- folderId: string;
234
- }
235
- export interface GenerateFolderDownloadUrlResponse {
236
- /**
237
- * URL for downloading a specific folder in the Media Manager.
238
- * @format WEB_URL
239
- */
240
- downloadUrl?: string;
241
- }
242
- export interface BulkDeleteFoldersRequest {
243
- /**
244
- * IDs of the folders to move to the Media Manager's trash bin.
245
- * @maxSize 100
246
- * @maxLength 100
247
- */
248
- folderIds: string[];
249
- /**
250
- * Whether the specified folders are permanently deleted. <br />
251
- * Default: `false`
252
- */
253
- permanent?: boolean;
254
- }
255
- export interface BulkDeleteFoldersResponse {
256
- }
257
- export interface BulkRestoreFoldersFromTrashBinRequest {
258
- /**
259
- * IDs of the folders to restore from the Media Manager's trash bin.
260
- * @maxSize 100
261
- * @maxLength 100
262
- */
263
- folderIds: string[];
264
- }
265
- export interface BulkRestoreFoldersFromTrashBinResponse {
266
- }
267
- export interface ListDeletedFoldersRequest {
268
- /**
269
- * ID of the folder's parent folder.
270
- * @maxLength 100
271
- */
272
- parentFolderId?: string | null;
273
- /**
274
- * Field name and order to sort by. One of:
275
- * * `displayName`
276
- * * `updatedDate`
277
- * Default: `updatedDate` in `desc` order.
278
- */
279
- sort?: Sorting;
280
- /** Cursor and paging information. */
281
- paging?: CursorPaging;
282
- }
283
- export interface ListDeletedFoldersResponse {
284
- /**
285
- * List of folders in the Media Manager's trash bin.
286
- * @maxSize 200
287
- */
288
- folders?: Folder[];
289
- /** The next cursor if it exists. */
290
- nextCursor?: PagingMetadataV2;
291
- }
292
- export interface DomainEvent extends DomainEventBodyOneOf {
293
- createdEvent?: EntityCreatedEvent;
294
- updatedEvent?: EntityUpdatedEvent;
295
- deletedEvent?: EntityDeletedEvent;
296
- actionEvent?: ActionEvent;
297
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
298
- _id?: string;
299
- /**
300
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
301
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
302
- */
303
- entityFqdn?: string;
304
- /**
305
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
306
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
307
- */
308
- slug?: string;
309
- /** ID of the entity associated with the event. */
310
- entityId?: string;
311
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
312
- eventTime?: Date | null;
313
- /**
314
- * Whether the event was triggered as a result of a privacy regulation application
315
- * (for example, GDPR).
316
- */
317
- triggeredByAnonymizeRequest?: boolean | null;
318
- /** If present, indicates the action that triggered the event. */
319
- originatedFrom?: string | null;
320
- /**
321
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
322
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
323
- */
324
- entityEventSequence?: string | null;
325
- }
326
- /** @oneof */
327
- export interface DomainEventBodyOneOf {
328
- createdEvent?: EntityCreatedEvent;
329
- updatedEvent?: EntityUpdatedEvent;
330
- deletedEvent?: EntityDeletedEvent;
331
- actionEvent?: ActionEvent;
332
- }
333
- export interface EntityCreatedEvent {
334
- entity?: string;
335
- }
336
- export interface RestoreInfo {
337
- deletedDate?: Date | null;
338
- }
339
- export interface EntityUpdatedEvent {
340
- /**
341
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
342
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
343
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
344
- */
345
- currentEntity?: string;
346
- }
347
- export interface EntityDeletedEvent {
348
- /** Entity that was deleted. */
349
- deletedEntity?: string | null;
350
- }
351
- export interface ActionEvent {
352
- body?: string;
353
- }
354
- export interface MessageEnvelope {
355
- /**
356
- * App instance ID.
357
- * @format GUID
358
- */
359
- instanceId?: string | null;
360
- /**
361
- * Event type.
362
- * @maxLength 150
363
- */
364
- eventType?: string;
365
- /** The identification type and identity data. */
366
- identity?: IdentificationData;
367
- /** Stringify payload. */
368
- data?: string;
369
- }
370
- export interface IdentificationData extends IdentificationDataIdOneOf {
371
- /**
372
- * ID of a site visitor that has not logged in to the site.
373
- * @format GUID
374
- */
375
- anonymousVisitorId?: string;
376
- /**
377
- * ID of a site visitor that has logged in to the site.
378
- * @format GUID
379
- */
380
- memberId?: string;
381
- /**
382
- * ID of a Wix user (site owner, contributor, etc.).
383
- * @format GUID
384
- */
385
- wixUserId?: string;
386
- /**
387
- * ID of an app.
388
- * @format GUID
389
- */
390
- appId?: string;
391
- /** @readonly */
392
- identityType?: WebhookIdentityTypeWithLiterals;
393
- }
394
- /** @oneof */
395
- export interface IdentificationDataIdOneOf {
396
- /**
397
- * ID of a site visitor that has not logged in to the site.
398
- * @format GUID
399
- */
400
- anonymousVisitorId?: string;
401
- /**
402
- * ID of a site visitor that has logged in to the site.
403
- * @format GUID
404
- */
405
- memberId?: string;
406
- /**
407
- * ID of a Wix user (site owner, contributor, etc.).
408
- * @format GUID
409
- */
410
- wixUserId?: string;
411
- /**
412
- * ID of an app.
413
- * @format GUID
414
- */
415
- appId?: string;
416
- }
417
- export declare enum WebhookIdentityType {
418
- UNKNOWN = "UNKNOWN",
419
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
420
- MEMBER = "MEMBER",
421
- WIX_USER = "WIX_USER",
422
- APP = "APP"
423
- }
424
- /** @enumType */
425
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
426
- export interface BaseEventMetadata {
427
- /**
428
- * App instance ID.
429
- * @format GUID
430
- */
431
- instanceId?: string | null;
432
- /**
433
- * Event type.
434
- * @maxLength 150
435
- */
436
- eventType?: string;
437
- /** The identification type and identity data. */
438
- identity?: IdentificationData;
439
- }
440
- export interface EventMetadata extends BaseEventMetadata {
441
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
442
- _id?: string;
443
- /**
444
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
445
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
446
- */
447
- entityFqdn?: string;
448
- /**
449
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
450
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
451
- */
452
- slug?: string;
453
- /** ID of the entity associated with the event. */
454
- entityId?: string;
455
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
456
- eventTime?: Date | null;
457
- /**
458
- * Whether the event was triggered as a result of a privacy regulation application
459
- * (for example, GDPR).
460
- */
461
- triggeredByAnonymizeRequest?: boolean | null;
462
- /** If present, indicates the action that triggered the event. */
463
- originatedFrom?: string | null;
464
- /**
465
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
466
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
467
- */
468
- entityEventSequence?: string | null;
469
- }
470
- export interface FolderCreatedEnvelope {
471
- entity: Folder;
472
- metadata: EventMetadata;
473
- }
474
- /**
475
- * Triggered when a folder is created.
476
- *
477
- * This event is also triggered when a folder is restored from the Media Manager's trash bin.
478
- * @permissionScope Manage Stores
479
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
480
- * @permissionScope Manage Bookings Services and Settings
481
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
482
- * @permissionScope Manage Events
483
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
484
- * @permissionScope Manage Challenges
485
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
486
- * @permissionScope Read Media Manager
487
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
488
- * @permissionScope Manage Media Manager
489
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
490
- * @permissionScope Manage Portfolio
491
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
492
- * @permissionScope Manage Blog
493
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
494
- * @permissionScope Access Verticals by Automations
495
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
496
- * @permissionScope Manage Restaurants - all permissions
497
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
498
- * @permissionScope Set Up Automations
499
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
500
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_READ
501
- * @webhook
502
- * @eventType wix.media.site_media.v1.folder_created
503
- * @serviceIdentifier com.wix.media.site_media.v1.FoldersService
504
- * @slug created
505
- */
506
- export declare function onFolderCreated(handler: (event: FolderCreatedEnvelope) => void | Promise<void>): void;
507
- export interface FolderDeletedEnvelope {
508
- metadata: EventMetadata;
509
- }
510
- /**
511
- * Triggered when a folder is deleted.
512
- *
513
- * If the `movedToTrash` property in the event object is `true`, the folder was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the folder was permanently deleted.
514
- * @permissionScope Manage Stores
515
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
516
- * @permissionScope Manage Bookings Services and Settings
517
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
518
- * @permissionScope Manage Events
519
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
520
- * @permissionScope Manage Challenges
521
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
522
- * @permissionScope Read Media Manager
523
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
524
- * @permissionScope Manage Media Manager
525
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
526
- * @permissionScope Manage Portfolio
527
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
528
- * @permissionScope Manage Blog
529
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
530
- * @permissionScope Access Verticals by Automations
531
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
532
- * @permissionScope Manage Restaurants - all permissions
533
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
534
- * @permissionScope Set Up Automations
535
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
536
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_READ
537
- * @webhook
538
- * @eventType wix.media.site_media.v1.folder_deleted
539
- * @serviceIdentifier com.wix.media.site_media.v1.FoldersService
540
- * @slug deleted
541
- */
542
- export declare function onFolderDeleted(handler: (event: FolderDeletedEnvelope) => void | Promise<void>): void;
543
- export interface FolderUpdatedEnvelope {
544
- entity: Folder;
545
- metadata: EventMetadata;
546
- }
547
- /**
548
- * Triggered when a folder is updated, including when a folder is moved to a different parent folder.
549
- * @permissionScope Manage Stores
550
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
551
- * @permissionScope Manage Bookings Services and Settings
552
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
553
- * @permissionScope Manage Events
554
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
555
- * @permissionScope Manage Challenges
556
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
557
- * @permissionScope Read Media Manager
558
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
559
- * @permissionScope Manage Media Manager
560
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
561
- * @permissionScope Manage Portfolio
562
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
563
- * @permissionScope Manage Blog
564
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
565
- * @permissionScope Access Verticals by Automations
566
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
567
- * @permissionScope Manage Restaurants - all permissions
568
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
569
- * @permissionScope Set Up Automations
570
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
571
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_READ
572
- * @webhook
573
- * @eventType wix.media.site_media.v1.folder_updated
574
- * @serviceIdentifier com.wix.media.site_media.v1.FoldersService
575
- * @slug updated
576
- */
577
- export declare function onFolderUpdated(handler: (event: FolderUpdatedEnvelope) => void | Promise<void>): void;
578
- type FolderNonNullablePaths = `_id` | `displayName` | `parentFolderId` | `state`;
579
- /**
580
- * Creates a new folder in the Media Manager. <br/>
581
- *
582
- * Use the `parentFolderId` parameter to specify in which existing folder you want the new folder to be created.
583
- * If no folder is specified, the new folder is created in the `media-root` folder.
584
- * @param displayName - Folder name that appears in the Media Manager.
585
- * @public
586
- * @requiredField displayName
587
- * @param options - Options for specifying where to create a folder.
588
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_CREATE
589
- * @permissionScope Manage Stores
590
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
591
- * @permissionScope Manage Bookings Services and Settings
592
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
593
- * @permissionScope Manage Events
594
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
595
- * @permissionScope Manage Challenges
596
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
597
- * @permissionScope Manage Media Manager
598
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
599
- * @permissionScope Manage Portfolio
600
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
601
- * @permissionScope Manage Blog
602
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
603
- * @permissionScope Access Verticals by Automations
604
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
605
- * @permissionScope Manage Restaurants - all permissions
606
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
607
- * @permissionScope Set Up Automations
608
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
609
- * @applicableIdentity APP
610
- * @fqn com.wix.media.site_media.v1.FoldersService.CreateFolder
611
- */
612
- export declare function createFolder(displayName: string, options?: CreateFolderOptions): Promise<NonNullablePaths<CreateFolderResponse, {
613
- [P in FolderNonNullablePaths]: `folder.${P}`;
614
- }[FolderNonNullablePaths]>>;
615
- export interface CreateFolderOptions {
616
- /**
617
- * ID of the folder's parent folder.
618
- * @maxLength 100
619
- */
620
- parentFolderId?: string | null;
621
- }
622
- /**
623
- * Gets information from a specific folder in the Media Manager.
624
- * @param folderId - Folder ID.
625
- * @public
626
- * @requiredField folderId
627
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_READ
628
- * @permissionScope Manage Stores
629
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
630
- * @permissionScope Manage Bookings Services and Settings
631
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
632
- * @permissionScope Manage Events
633
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
634
- * @permissionScope Manage Challenges
635
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
636
- * @permissionScope Read Media Manager
637
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
638
- * @permissionScope Manage Media Manager
639
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
640
- * @permissionScope Manage Portfolio
641
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
642
- * @permissionScope Manage Blog
643
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
644
- * @permissionScope Access Verticals by Automations
645
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
646
- * @permissionScope Manage Restaurants - all permissions
647
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
648
- * @permissionScope Set Up Automations
649
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
650
- * @applicableIdentity APP
651
- * @returns Information about the folder.
652
- * @fqn com.wix.media.site_media.v1.FoldersService.GetFolder
653
- */
654
- export declare function getFolder(folderId: string): Promise<NonNullablePaths<Folder, FolderNonNullablePaths>>;
655
- /**
656
- * Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, specify the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the method retrieves a list of folders within the root folder of the Media Manager.
657
- * @public
658
- * @param options - Options to use when listing folders from the Media Manager.
659
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_LIST
660
- * @permissionScope Manage Stores
661
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
662
- * @permissionScope Manage Bookings Services and Settings
663
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
664
- * @permissionScope Manage Events
665
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
666
- * @permissionScope Manage Challenges
667
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
668
- * @permissionScope Read Media Manager
669
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
670
- * @permissionScope Manage Media Manager
671
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
672
- * @permissionScope Manage Portfolio
673
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
674
- * @permissionScope Manage Blog
675
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
676
- * @permissionScope Access Verticals by Automations
677
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
678
- * @permissionScope Manage Restaurants - all permissions
679
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
680
- * @permissionScope Set Up Automations
681
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
682
- * @applicableIdentity APP
683
- * @fqn com.wix.media.site_media.v1.FoldersService.ListFolders
684
- */
685
- export declare function listFolders(options?: ListFoldersOptions): Promise<NonNullablePaths<ListFoldersResponse, {
686
- [P in FolderNonNullablePaths]: `folders.${number}.${P}`;
687
- }[FolderNonNullablePaths]>>;
688
- export interface ListFoldersOptions {
689
- /**
690
- * ID of the folder's parent folder.
691
- * <br /> Default: `media-root` folder.
692
- * @maxLength 100
693
- */
694
- parentFolderId?: string | null;
695
- /**
696
- * Field name and order to sort by. One of: <br />
697
- * * `displayName`
698
- * * `updatedDate`
699
- * Default: `updatedDate` in `desc` order.
700
- */
701
- sort?: Sorting;
702
- /** Cursor and paging information. */
703
- paging?: CursorPaging;
704
- }
705
- /**
706
- * Searches the Media Manager and returns a list of folders that match the terms specified in the parameters. <br/>
707
- *
708
- * If no parameters are specified, the method returns all folders in the `MEDIA_ROOT` folder.
709
- * @public
710
- * @param options - Options specifying which folders to search.
711
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_LIST
712
- * @permissionScope Manage Stores
713
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
714
- * @permissionScope Manage Bookings Services and Settings
715
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
716
- * @permissionScope Manage Events
717
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
718
- * @permissionScope Manage Challenges
719
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
720
- * @permissionScope Read Media Manager
721
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
722
- * @permissionScope Manage Media Manager
723
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
724
- * @permissionScope Manage Portfolio
725
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
726
- * @permissionScope Manage Blog
727
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
728
- * @permissionScope Access Verticals by Automations
729
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
730
- * @permissionScope Manage Restaurants - all permissions
731
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
732
- * @permissionScope Set Up Automations
733
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
734
- * @applicableIdentity APP
735
- * @fqn com.wix.media.site_media.v1.FoldersService.SearchFolders
736
- */
737
- export declare function searchFolders(options?: SearchFoldersOptions): Promise<NonNullablePaths<SearchFoldersResponse, {
738
- [P in FolderNonNullablePaths]: `folders.${number}.${P}`;
739
- }[FolderNonNullablePaths]>>;
740
- export interface SearchFoldersOptions {
741
- /**
742
- * A root folder in the Media Manager to search in. <br />
743
- * Default: `MEDIA_ROOT`.
744
- */
745
- rootFolder?: RootFolderWithLiterals;
746
- /**
747
- * Field name and order to sort by. One of:
748
- * * `displayName`
749
- * * `updatedDate`
750
- * Default: `updatedDate` in `desc` order.
751
- */
752
- sort?: Sorting;
753
- /** Cursor and paging information. */
754
- paging?: CursorPaging;
755
- /**
756
- * Term to search for, such as the value of a folder's `displayName`. <br />
757
- * For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
758
- * @maxLength 200
759
- */
760
- search?: string | null;
761
- }
762
- /**
763
- * Updates a folder. <br />
764
- *
765
- * You can use the `parentFolderId` parameter to move a folder from its current parent folder to a different parent folder.
766
- * @param _id - Folder ID. Generated when a folder is created in the Media Manager.
767
- * @public
768
- * @requiredField _id
769
- * @requiredField folder
770
- * @param folder - Folder to update.
771
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_UPDATE
772
- * @permissionScope Manage Stores
773
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
774
- * @permissionScope Manage Bookings Services and Settings
775
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
776
- * @permissionScope Manage Events
777
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
778
- * @permissionScope Manage Challenges
779
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
780
- * @permissionScope Manage Media Manager
781
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
782
- * @permissionScope Manage Portfolio
783
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
784
- * @permissionScope Manage Blog
785
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
786
- * @permissionScope Access Verticals by Automations
787
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
788
- * @permissionScope Manage Restaurants - all permissions
789
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
790
- * @permissionScope Set Up Automations
791
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
792
- * @applicableIdentity APP
793
- * @returns Information about the updated folder.
794
- * @fqn com.wix.media.site_media.v1.FoldersService.UpdateFolder
795
- */
796
- export declare function updateFolder(_id: string, folder: UpdateFolder): Promise<NonNullablePaths<Folder, FolderNonNullablePaths>>;
797
- export interface UpdateFolder {
798
- /**
799
- * Folder ID. Generated when a folder is created in the Media Manager.
800
- * @maxLength 100
801
- */
802
- _id?: string;
803
- /**
804
- * Folder name as it appears in the Media Manager.
805
- * @maxLength 256
806
- */
807
- displayName?: string;
808
- /**
809
- * ID of the folder's parent folder. <br /> Default: `media-root` folder.
810
- * @maxLength 100
811
- */
812
- parentFolderId?: string;
813
- /**
814
- * Date the folder was created.
815
- * @readonly
816
- */
817
- _createdDate?: Date | null;
818
- /**
819
- * Date the folder was updated.
820
- * @readonly
821
- */
822
- _updatedDate?: Date | null;
823
- /**
824
- * State of the folder.
825
- * @readonly
826
- */
827
- state?: StateWithLiterals;
828
- }
829
- /**
830
- * Generates a URL for downloading a compressed file containing a specific folder in the Media Manager. <br/>
831
- *
832
- * The compressed file can contain sub-folders, and up to 1000 files.
833
- * @param folderId - Folder ID.
834
- * @public
835
- * @requiredField folderId
836
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_DOWNLOAD
837
- * @permissionScope Manage Stores
838
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
839
- * @permissionScope Manage Bookings Services and Settings
840
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
841
- * @permissionScope Manage Events
842
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
843
- * @permissionScope Manage Challenges
844
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
845
- * @permissionScope Manage Media Manager
846
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
847
- * @permissionScope Manage Portfolio
848
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
849
- * @permissionScope Manage Blog
850
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
851
- * @permissionScope Access Verticals by Automations
852
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
853
- * @permissionScope Manage Restaurants - all permissions
854
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
855
- * @permissionScope Set Up Automations
856
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
857
- * @applicableIdentity APP
858
- * @fqn com.wix.media.site_media.v1.FoldersService.GenerateFolderDownloadUrl
859
- */
860
- export declare function generateFolderDownloadUrl(folderId: string): Promise<NonNullablePaths<GenerateFolderDownloadUrlResponse, `downloadUrl`>>;
861
- /**
862
- * Temporarily deletes the specified folders from the Media Manager. <br/>
863
- *
864
- * The deleted folders are moved to the Media Manager's `trash-root` folder (trash bin) unless permanently deleted. To permanently delete folders, specify the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
865
- *
866
- * Note the following:
867
- * * When a folder is deleted, the files in that folder are deleted.
868
- * * The specified folders can be from different parent folders.
869
- * * Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
870
- * * Attempting to delete folders that are already in the trash bin doesn't result in an error.
871
- * * If a site contains files from a deleted media folder, the files still appear on the site as the deleted folder is still in the Media Manager (in the trash bin).
872
- * * You can also use the Bulk Restore Folders From Trash Bin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/folders/bulk-restore-folders-from-trash-bin) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/folders/bulk-restore-folders-from-trash-bin)) method to restore folders from the Media Manager's trash bin.
873
- * @param folderIds - IDs of the folders to move to the Media Manager's trash bin.
874
- * @public
875
- * @requiredField folderIds
876
- * @param options - Options to use when deleting folders.
877
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_MOVE_TO_TRASH
878
- * @permissionScope Manage Stores
879
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
880
- * @permissionScope Manage Bookings Services and Settings
881
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
882
- * @permissionScope Manage Events
883
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
884
- * @permissionScope Manage Challenges
885
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
886
- * @permissionScope Manage Media Manager
887
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
888
- * @permissionScope Manage Portfolio
889
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
890
- * @permissionScope Manage Blog
891
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
892
- * @permissionScope Access Verticals by Automations
893
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
894
- * @permissionScope Manage Restaurants - all permissions
895
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
896
- * @permissionScope Set Up Automations
897
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
898
- * @applicableIdentity APP
899
- * @fqn com.wix.media.site_media.v1.FoldersService.BulkDeleteFolders
900
- */
901
- export declare function bulkDeleteFolders(folderIds: string[], options?: BulkDeleteFoldersOptions): Promise<void>;
902
- export interface BulkDeleteFoldersOptions {
903
- /**
904
- * Whether the specified folders are permanently deleted. <br />
905
- * Default: `false`
906
- */
907
- permanent?: boolean;
908
- }
909
- /**
910
- * Restores the specified folders from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
911
- * @param folderIds - IDs of the folders to restore from the Media Manager's trash bin.
912
- * @public
913
- * @requiredField folderIds
914
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_RESTORE_FROM_TRASH
915
- * @permissionScope Manage Stores
916
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
917
- * @permissionScope Manage Bookings Services and Settings
918
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
919
- * @permissionScope Manage Events
920
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
921
- * @permissionScope Manage Challenges
922
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
923
- * @permissionScope Manage Media Manager
924
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
925
- * @permissionScope Manage Portfolio
926
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
927
- * @permissionScope Manage Blog
928
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
929
- * @permissionScope Access Verticals by Automations
930
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
931
- * @permissionScope Manage Restaurants - all permissions
932
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
933
- * @permissionScope Set Up Automations
934
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
935
- * @applicableIdentity APP
936
- * @fqn com.wix.media.site_media.v1.FoldersService.BulkRestoreFoldersFromTrashBin
937
- */
938
- export declare function bulkRestoreFoldersFromTrashBin(folderIds: string[]): Promise<void>;
939
- /**
940
- * Retrieves a list of folders in the Media Manager's trash bin.
941
- * @public
942
- * @param options - Options to use when listing deleted folders from the trash bin.
943
- * @permissionId MEDIA.SITE_MEDIA_FOLDERS_LIST_DELETED
944
- * @permissionScope Manage Stores
945
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
946
- * @permissionScope Manage Bookings Services and Settings
947
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
948
- * @permissionScope Manage Events
949
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
950
- * @permissionScope Manage Challenges
951
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
952
- * @permissionScope Read Media Manager
953
- * @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
954
- * @permissionScope Manage Media Manager
955
- * @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
956
- * @permissionScope Manage Portfolio
957
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
958
- * @permissionScope Manage Blog
959
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
960
- * @permissionScope Access Verticals by Automations
961
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
962
- * @permissionScope Manage Restaurants - all permissions
963
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
964
- * @permissionScope Set Up Automations
965
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
966
- * @applicableIdentity APP
967
- * @fqn com.wix.media.site_media.v1.FoldersService.ListDeletedFolders
968
- */
969
- export declare function listDeletedFolders(options?: ListDeletedFoldersOptions): Promise<NonNullablePaths<ListDeletedFoldersResponse, {
970
- [P in FolderNonNullablePaths]: `folders.${number}.${P}`;
971
- }[FolderNonNullablePaths]>>;
972
- export interface ListDeletedFoldersOptions {
973
- /**
974
- * ID of the folder's parent folder.
975
- * @maxLength 100
976
- */
977
- parentFolderId?: string | null;
978
- /**
979
- * Field name and order to sort by. One of:
980
- * * `displayName`
981
- * * `updatedDate`
982
- * Default: `updatedDate` in `desc` order.
983
- */
984
- sort?: Sorting;
985
- /** Cursor and paging information. */
986
- paging?: CursorPaging;
987
- }
988
- export {};