@wix/bex-utils 2.31.0 → 2.32.0

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 (114) hide show
  1. package/package.json +2 -3
  2. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.d.ts +0 -89
  3. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js +0 -2249
  4. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js.map +0 -1
  5. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.d.ts +0 -1
  6. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js +0 -5
  7. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js.map +0 -1
  8. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.d.ts +0 -6
  9. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js +0 -24
  10. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js.map +0 -1
  11. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.d.ts +0 -180
  12. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js +0 -971
  13. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js.map +0 -1
  14. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.d.ts +0 -30
  15. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js +0 -385
  16. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js.map +0 -1
  17. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.d.ts +0 -10010
  18. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.js +0 -2
  19. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.d.ts +0 -5002
  20. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.js +0 -78224
  21. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.d.ts +0 -9973
  22. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.js +0 -2
  23. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.d.ts +0 -189
  24. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js +0 -431
  25. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js.map +0 -1
  26. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.d.ts +0 -1387
  27. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js +0 -117
  28. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js.map +0 -1
  29. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.d.ts +0 -89
  30. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js +0 -2145
  31. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js.map +0 -1
  32. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.d.ts +0 -1
  33. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js +0 -2
  34. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js.map +0 -1
  35. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.d.ts +0 -6
  36. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js +0 -19
  37. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js.map +0 -1
  38. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.d.ts +0 -180
  39. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js +0 -949
  40. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js.map +0 -1
  41. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.d.ts +0 -30
  42. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js +0 -344
  43. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js.map +0 -1
  44. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.d.ts +0 -189
  45. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js +0 -390
  46. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js.map +0 -1
  47. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.d.ts +0 -1387
  48. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js +0 -114
  49. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js.map +0 -1
  50. package/@wix/ambassador-media-site-media-v1-file-descriptor/builders/package.json +0 -7
  51. package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/http/package.json +0 -7
  52. package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/rpc/package.json +0 -6
  53. package/@wix/ambassador-media-site-media-v1-file-descriptor/http/package.json +0 -7
  54. package/@wix/ambassador-media-site-media-v1-file-descriptor/meta/package.json +0 -7
  55. package/@wix/ambassador-media-site-media-v1-file-descriptor/package.json +0 -53
  56. package/@wix/ambassador-media-site-media-v1-file-descriptor/rpc/package.json +0 -6
  57. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_entity.proto +0 -17
  58. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_service.proto +0 -121
  59. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_result.proto +0 -17
  60. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_service.proto +0 -76
  61. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_quota_api.proto +0 -159
  62. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/identification.proto +0 -41
  63. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/media.proto +0 -242
  64. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/paging.proto +0 -121
  65. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/audio_v2.proto +0 -31
  66. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/content_disposition.proto +0 -11
  67. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/download_url.proto +0 -12
  68. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/error_code.proto +0 -49
  69. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/errors.proto +0 -41
  70. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/file_descriptor.proto +0 -140
  71. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/files_service.proto +0 -1030
  72. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folder.proto +0 -48
  73. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folders_service.proto +0 -367
  74. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/identity_info.proto +0 -13
  75. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/image_media.proto +0 -84
  76. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/media_type.proto +0 -15
  77. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/namespace.proto +0 -21
  78. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/operation_status.proto +0 -27
  79. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/other_media.proto +0 -22
  80. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/root_folders.proto +0 -12
  81. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_info.proto +0 -24
  82. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_service.proto +0 -179
  83. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/upload_protocol.proto +0 -9
  84. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/action_payload.proto +0 -33
  85. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/annotations.proto +0 -393
  86. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/api_errors.proto +0 -117
  87. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/callback.proto +0 -156
  88. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/context.proto +0 -19
  89. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/entity.proto +0 -122
  90. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/errors.proto +0 -119
  91. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/idempotency.proto +0 -25
  92. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/permissions.proto +0 -40
  93. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/sla.proto +0 -24
  94. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/subscription.proto +0 -32
  95. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/validations.proto +0 -137
  96. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/address.proto +0 -148
  97. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/bulk.proto +0 -53
  98. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/identification.proto +0 -40
  99. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/image.proto +0 -8
  100. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/media.proto +0 -236
  101. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/money.proto +0 -32
  102. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/pageurl.proto +0 -32
  103. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/paging.proto +0 -121
  104. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/query.proto +0 -795
  105. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/sorting.proto +0 -36
  106. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/spi.proto +0 -85
  107. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/tags.proto +0 -55
  108. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/wixlink.proto +0 -201
  109. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/graphql/definitions.proto +0 -13
  110. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/http/field_mask.proto +0 -46
  111. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/sdk/definitions.proto +0 -191
  112. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/definitions.proto +0 -186
  113. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/http_error_status.proto +0 -24
  114. package/@wix/ambassador-media-site-media-v1-file-descriptor/types/package.json +0 -7
@@ -1,2 +0,0 @@
1
- const wrapper = require('../proto-generated');
2
- module.exports = {services: wrapper, requests: wrapper, responses: wrapper};
@@ -1,189 +0,0 @@
1
- import { BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, ImportFileRequest, ImportFileResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, ListFilesRequest, ListFilesResponse, UpdateFileRequest, UpdateFileResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, BulkImportFilesRequest, BulkImportFilesResponse, SearchFilesRequest, SearchFilesResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, BulkImportFileRequest, BulkImportFileResponse, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse } from './types.impl';
2
- import * as wrapper from './proto/proto-generated';
3
- declare const FilesService: typeof wrapper.com.wix.media.site_media.v1.FilesService;
4
- export declare type RequestOptions<T = any, U = any> = {
5
- _?: T;
6
- requestData: any;
7
- serviceArtifactId: string;
8
- serviceProtoClass: U;
9
- methodName: string;
10
- };
11
- /**
12
- * Run Image Annotation process on provided list of file ids
13
- * Note - the processes of this endpoint are synchronous and may take time to complete
14
- */
15
- export declare function bulkAnnotateImages(payload: BulkAnnotateImagesRequest): RequestOptions<BulkAnnotateImagesResponse, typeof FilesService>;
16
- /**
17
- * Generates a URL for downloading a compressed file containing specific files in the Media Manager.
18
- *
19
- * The compressed file can contain up to 1000 files.
20
- *
21
- * To generate one or more temporary URLs for downloading a specific file in the Media Manager, use the [Generate File Download URL](/generate-file-download-url) endpoint.
22
- * You can use the `expirationInMinutes` parameter to set the URL expiration time, making it more secure than the Generate Files Download URL endpoint.
23
- * Therefore, to download private files, use the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
24
- */
25
- export declare function generateFilesDownloadUrl(payload: GenerateFilesDownloadUrlRequest): RequestOptions<GenerateFilesDownloadUrlResponse, typeof FilesService>;
26
- /**
27
- * Generates one or more temporary URLs for downloading a specific file in the Media Manager.
28
- *
29
- * To download different assets of the file, use the `assetKeys` parameter which generates a download URL for each asset.
30
- * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
31
- *
32
- * Use this endpoint to grant external clients access to a private media file. Use the `expirationInMinutes` parameter to set the URL expiration time, and the `expirationRedirectUrl` parameter to add a redirect url when the URL expires.
33
- *
34
- * To generate a permanent URL for downloading a compressed file that contains multiple files in the Media Manager, use the [Generate Files Download URL](/generate-files-download-url) endpoint.
35
- * Since this is a permanent URL, it is less secure.
36
- * Therefore, to download private files, use the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
37
- */
38
- export declare function generateFileDownloadUrl(payload: GenerateFileDownloadUrlRequest): RequestOptions<GenerateFileDownloadUrlResponse, typeof FilesService>;
39
- /** Gets information about a specific file in the Media Manager. */
40
- export declare function getFileDescriptor(payload: GetFileDescriptorRequest): RequestOptions<GetFileDescriptorResponse, typeof FilesService>;
41
- /** Gets information about specific files in the Media Manager. */
42
- export declare function getFileDescriptors(payload: GetFileDescriptorsRequest): RequestOptions<GetFileDescriptorsResponse, typeof FilesService>;
43
- /**
44
- * Updates a file. <br />
45
- *
46
- * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
47
- */
48
- export declare function updateFileDescriptor(payload: UpdateFileDescriptorRequest): RequestOptions<UpdateFileDescriptorResponse, typeof FilesService>;
49
- /**
50
- * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
51
- *
52
- * To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see the [Upload API](https://dev.wix.com/docs/rest/assets/media/media-manager/upload-api) article.
53
- * > **Notes:**
54
- * > - When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
55
- * > - Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, use the [Generate File Resumable Upload URL](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-resumable-upload-url) instead. With the resumable upload URL, any interruption in the upload process pauses the file upload, and resumes the file upload process after the interruption.
56
- */
57
- export declare function generateFileUploadUrl(payload: GenerateFileUploadUrlRequest): RequestOptions<GenerateFileUploadUrlResponse, typeof FilesService>;
58
- /**
59
- * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
60
- *
61
- * With the resumable upload URL, any interruptions in the upload process pauses the file upload, and resumes the file upload process after the interruption. The resumable upload URL is also helpful when network connection is poor.
62
- * To learn how external clients can use the generated upload URL in the response to upload large files to the Media Manager, see the [Resumable Upload API](https://dev.wix.com/api/rest/media/media-manager/resumable-upload-api) article.
63
- *
64
- * > **Note:** When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
65
- */
66
- export declare function generateFileResumableUploadUrl(payload: GenerateFileResumableUploadUrlRequest): RequestOptions<GenerateFileResumableUploadUrlResponse, typeof FilesService>;
67
- /**
68
- * Imports a file to the Media Manager using an external url.
69
- *
70
- * Returns information about the imported file.
71
- * Use the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.
72
- * If no folder is specified, the file is imported to the `media-root` folder.
73
- *
74
- * >**Notes:**
75
- * > - The `media` property isn't returned in the `files` response object.
76
- * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
77
- *
78
- * To import a file, you need to do one of the following:
79
- * - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
80
- * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
81
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
82
- * > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
83
- */
84
- export declare function importFile(payload: ImportFileRequest): RequestOptions<ImportFileResponse, typeof FilesService>;
85
- /**
86
- * Imports a bulk of files to the Media Manager using external urls. <br/>
87
- * <blockquote class='warning'>
88
- *
89
- * __Deprecation Notice:__
90
- *
91
- * This endpoint has been replaced with [Bulk Import File](https://dev.wix.com/api/rest/media/media-manager/files/bulk-import-file) and will be removed on March 31, 2024.
92
- *
93
- * </blockquote>
94
- * Returns information about the imported files.
95
- *
96
- * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
97
- * If no folder is specified, the file is imported to the `media-root` folder.
98
- *
99
- * >**Note:** The `media` property isn't returned in the `files` response object.
100
- *
101
- * To import files, you need to do one of the following for each file:
102
- * - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
103
- * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
104
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
105
- *
106
- * > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
107
- * @deprecated It has been replaced with com.wix.media.site_media.v1.FilesService.BulkImportFile(), and will be removed on 2024-03-31.
108
- */
109
- export declare function bulkImportFiles(payload: BulkImportFilesRequest): RequestOptions<BulkImportFilesResponse, typeof FilesService>;
110
- /**
111
- * Imports a bulk of files to the Media Manager using external urls. <br/>
112
- *
113
- * Returns information about the imported files.
114
- *
115
- * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
116
- * If no folder is specified, the file is imported to the `media-root` folder.
117
- *
118
- * >**Notes:**
119
- * > - The `media` property isn't returned in the `files` response object.
120
- * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
121
- *
122
- * To import files, you need to do one of the following for each file:
123
- * - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
124
- * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
125
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
126
- * > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
127
- */
128
- export declare function bulkImportFile(payload: BulkImportFileRequest): RequestOptions<BulkImportFileResponse, typeof FilesService>;
129
- /**
130
- * Retrieves a list of files in the Media Manager.
131
- *
132
- * To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves the list of files in the root folder of the Media Manager.
133
- */
134
- export declare function listFiles(payload: ListFilesRequest): RequestOptions<ListFilesResponse, typeof FilesService>;
135
- /**
136
- * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
137
- *
138
- * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
139
- */
140
- export declare function searchFiles(payload: SearchFilesRequest): RequestOptions<SearchFilesResponse, typeof FilesService>;
141
- /**
142
- * Generates a URL for streaming a specific video file in the Media Manager. <br/>
143
- *
144
- * To stream different assets of the file, use the `assetKeys` parameter which generates a video streaming URL for each asset. If no assetKey is specified, it defaults to `src`, which generates one video streaming URL in the original file's format and quality.
145
- */
146
- export declare function generateVideoStreamingUrl(payload: GenerateVideoStreamingUrlRequest): RequestOptions<GenerateVideoStreamingUrlResponse, typeof FilesService>;
147
- /**
148
- * Return a token for a direct web socket notification channel
149
- * This API is not platformized (Contact the Media team for use instructions)
150
- * This API should be internal only
151
- */
152
- export declare function generateWebSocketToken(payload: GenerateWebSocketTokenRequest): RequestOptions<GenerateWebSocketTokenResponse, typeof FilesService>;
153
- /**
154
- * Deletes the specified files from the Media Manager. <br/>
155
- *
156
- * The deleted files are moved to the Media Manager's trash bin (`TRASH-ROOT` folder) unless permanently deleted. To permanently delete files, pass the `permanent` parameter with the value `true`. Permanently deleting files isn't reversible, so make sure that these files aren't being used in a site or in any other way as the files will no longer be accessible.
157
- *
158
- * Note the following:
159
- * * The specified files can be from different folders.
160
- * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
161
- * * Attempting to delete files that are already in the trash bin doesn't result in an error.
162
- * * If your site contains deleted media files, the deleted media files still appear on your site as the files are still in the Media Manager (in the trash bin).
163
- * * You can use the [Bulk Restore Files From Trash Bin](https://dev.wix.com/api/rest/media/media-manager/files/bulk-restore-files-from-trash-bin) endpoint to restore files from the Media Manager's trash bin.
164
- */
165
- export declare function bulkDeleteFiles(payload: BulkDeleteFilesRequest): RequestOptions<BulkDeleteFilesResponse, typeof FilesService>;
166
- /** Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. */
167
- export declare function bulkRestoreFilesFromTrashBin(payload: BulkRestoreFilesFromTrashBinRequest): RequestOptions<BulkRestoreFilesFromTrashBinResponse, typeof FilesService>;
168
- /**
169
- * Retrieves a list of files in the Media Manager's trash bin. <br/>
170
- *
171
- * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
172
- */
173
- export declare function listDeletedFiles(payload: ListDeletedFilesRequest): RequestOptions<ListDeletedFilesResponse, typeof FilesService>;
174
- /**
175
- * Updates a file.
176
- *
177
- * <blockquote class='warning'>
178
- *
179
- * __Deprecation Notice:__
180
- *
181
- * This endpoint has been replaced with [Update File Descriptor](https://dev.wix.com/api/rest/media/media-manager/files/update-file-descriptor) and will be removed on March 31, 2023.
182
- *
183
- * </blockquote>
184
- *
185
- * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
186
- * @deprecated method is deprecated due to standard aligning, it has been replaced with com.wix.media.site_media.v1.filesService.UpdateFileDescriptor(), and will be removed on 2023-03-31.
187
- */
188
- export declare function updateFile(payload: UpdateFileRequest): RequestOptions<UpdateFileResponse, typeof FilesService>;
189
- export {};
@@ -1,431 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.updateFile = exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateWebSocketToken = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFile = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFileDescriptor = exports.getFileDescriptors = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = exports.bulkAnnotateImages = void 0;
23
- var wrapper = __importStar(require("./proto/proto-generated"));
24
- var FilesService = wrapper.com.wix.media.site_media.v1.FilesService;
25
- /**
26
- * Run Image Annotation process on provided list of file ids
27
- * Note - the processes of this endpoint are synchronous and may take time to complete
28
- */
29
- function bulkAnnotateImages(payload) {
30
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
31
- var serviceProtoClass = FilesService;
32
- var methodName = 'bulkAnnotateImages';
33
- var requestData = payload;
34
- return {
35
- serviceProtoClass: serviceProtoClass,
36
- serviceArtifactId: serviceArtifactId,
37
- methodName: methodName,
38
- requestData: requestData,
39
- };
40
- }
41
- exports.bulkAnnotateImages = bulkAnnotateImages;
42
- /**
43
- * Generates a URL for downloading a compressed file containing specific files in the Media Manager.
44
- *
45
- * The compressed file can contain up to 1000 files.
46
- *
47
- * To generate one or more temporary URLs for downloading a specific file in the Media Manager, use the [Generate File Download URL](/generate-file-download-url) endpoint.
48
- * You can use the `expirationInMinutes` parameter to set the URL expiration time, making it more secure than the Generate Files Download URL endpoint.
49
- * Therefore, to download private files, use the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
50
- */
51
- function generateFilesDownloadUrl(payload) {
52
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
53
- var serviceProtoClass = FilesService;
54
- var methodName = 'generateFilesDownloadUrl';
55
- var requestData = payload;
56
- return {
57
- serviceProtoClass: serviceProtoClass,
58
- serviceArtifactId: serviceArtifactId,
59
- methodName: methodName,
60
- requestData: requestData,
61
- };
62
- }
63
- exports.generateFilesDownloadUrl = generateFilesDownloadUrl;
64
- /**
65
- * Generates one or more temporary URLs for downloading a specific file in the Media Manager.
66
- *
67
- * To download different assets of the file, use the `assetKeys` parameter which generates a download URL for each asset.
68
- * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
69
- *
70
- * Use this endpoint to grant external clients access to a private media file. Use the `expirationInMinutes` parameter to set the URL expiration time, and the `expirationRedirectUrl` parameter to add a redirect url when the URL expires.
71
- *
72
- * To generate a permanent URL for downloading a compressed file that contains multiple files in the Media Manager, use the [Generate Files Download URL](/generate-files-download-url) endpoint.
73
- * Since this is a permanent URL, it is less secure.
74
- * Therefore, to download private files, use the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
75
- */
76
- function generateFileDownloadUrl(payload) {
77
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
78
- var serviceProtoClass = FilesService;
79
- var methodName = 'generateFileDownloadUrl';
80
- var requestData = payload;
81
- return {
82
- serviceProtoClass: serviceProtoClass,
83
- serviceArtifactId: serviceArtifactId,
84
- methodName: methodName,
85
- requestData: requestData,
86
- };
87
- }
88
- exports.generateFileDownloadUrl = generateFileDownloadUrl;
89
- /** Gets information about a specific file in the Media Manager. */
90
- function getFileDescriptor(payload) {
91
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
92
- var serviceProtoClass = FilesService;
93
- var methodName = 'getFileDescriptor';
94
- var requestData = payload;
95
- return {
96
- serviceProtoClass: serviceProtoClass,
97
- serviceArtifactId: serviceArtifactId,
98
- methodName: methodName,
99
- requestData: requestData,
100
- };
101
- }
102
- exports.getFileDescriptor = getFileDescriptor;
103
- /** Gets information about specific files in the Media Manager. */
104
- function getFileDescriptors(payload) {
105
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
106
- var serviceProtoClass = FilesService;
107
- var methodName = 'getFileDescriptors';
108
- var requestData = payload;
109
- return {
110
- serviceProtoClass: serviceProtoClass,
111
- serviceArtifactId: serviceArtifactId,
112
- methodName: methodName,
113
- requestData: requestData,
114
- };
115
- }
116
- exports.getFileDescriptors = getFileDescriptors;
117
- /**
118
- * Updates a file. <br />
119
- *
120
- * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
121
- */
122
- function updateFileDescriptor(payload) {
123
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
124
- var serviceProtoClass = FilesService;
125
- var methodName = 'updateFileDescriptor';
126
- var requestData = payload;
127
- return {
128
- serviceProtoClass: serviceProtoClass,
129
- serviceArtifactId: serviceArtifactId,
130
- methodName: methodName,
131
- requestData: requestData,
132
- };
133
- }
134
- exports.updateFileDescriptor = updateFileDescriptor;
135
- /**
136
- * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
137
- *
138
- * To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see the [Upload API](https://dev.wix.com/docs/rest/assets/media/media-manager/upload-api) article.
139
- * > **Notes:**
140
- * > - When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
141
- * > - Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, use the [Generate File Resumable Upload URL](https://dev.wix.com/api/rest/media/media-manager/files/generate-file-resumable-upload-url) instead. With the resumable upload URL, any interruption in the upload process pauses the file upload, and resumes the file upload process after the interruption.
142
- */
143
- function generateFileUploadUrl(payload) {
144
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
145
- var serviceProtoClass = FilesService;
146
- var methodName = 'generateFileUploadUrl';
147
- var requestData = payload;
148
- return {
149
- serviceProtoClass: serviceProtoClass,
150
- serviceArtifactId: serviceArtifactId,
151
- methodName: methodName,
152
- requestData: requestData,
153
- };
154
- }
155
- exports.generateFileUploadUrl = generateFileUploadUrl;
156
- /**
157
- * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
158
- *
159
- * With the resumable upload URL, any interruptions in the upload process pauses the file upload, and resumes the file upload process after the interruption. The resumable upload URL is also helpful when network connection is poor.
160
- * To learn how external clients can use the generated upload URL in the response to upload large files to the Media Manager, see the [Resumable Upload API](https://dev.wix.com/api/rest/media/media-manager/resumable-upload-api) article.
161
- *
162
- * > **Note:** When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
163
- */
164
- function generateFileResumableUploadUrl(payload) {
165
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
166
- var serviceProtoClass = FilesService;
167
- var methodName = 'generateFileResumableUploadUrl';
168
- var requestData = payload;
169
- return {
170
- serviceProtoClass: serviceProtoClass,
171
- serviceArtifactId: serviceArtifactId,
172
- methodName: methodName,
173
- requestData: requestData,
174
- };
175
- }
176
- exports.generateFileResumableUploadUrl = generateFileResumableUploadUrl;
177
- /**
178
- * Imports a file to the Media Manager using an external url.
179
- *
180
- * Returns information about the imported file.
181
- * Use the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.
182
- * If no folder is specified, the file is imported to the `media-root` folder.
183
- *
184
- * >**Notes:**
185
- * > - The `media` property isn't returned in the `files` response object.
186
- * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
187
- *
188
- * To import a file, you need to do one of the following:
189
- * - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
190
- * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
191
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
192
- * > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
193
- */
194
- function importFile(payload) {
195
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
196
- var serviceProtoClass = FilesService;
197
- var methodName = 'importFile';
198
- var requestData = payload;
199
- return {
200
- serviceProtoClass: serviceProtoClass,
201
- serviceArtifactId: serviceArtifactId,
202
- methodName: methodName,
203
- requestData: requestData,
204
- };
205
- }
206
- exports.importFile = importFile;
207
- /**
208
- * Imports a bulk of files to the Media Manager using external urls. <br/>
209
- * <blockquote class='warning'>
210
- *
211
- * __Deprecation Notice:__
212
- *
213
- * This endpoint has been replaced with [Bulk Import File](https://dev.wix.com/api/rest/media/media-manager/files/bulk-import-file) and will be removed on March 31, 2024.
214
- *
215
- * </blockquote>
216
- * Returns information about the imported files.
217
- *
218
- * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
219
- * If no folder is specified, the file is imported to the `media-root` folder.
220
- *
221
- * >**Note:** The `media` property isn't returned in the `files` response object.
222
- *
223
- * To import files, you need to do one of the following for each file:
224
- * - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
225
- * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
226
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
227
- *
228
- * > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
229
- * @deprecated It has been replaced with com.wix.media.site_media.v1.FilesService.BulkImportFile(), and will be removed on 2024-03-31.
230
- */
231
- function bulkImportFiles(payload) {
232
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
233
- var serviceProtoClass = FilesService;
234
- var methodName = 'bulkImportFiles';
235
- var requestData = payload;
236
- return {
237
- serviceProtoClass: serviceProtoClass,
238
- serviceArtifactId: serviceArtifactId,
239
- methodName: methodName,
240
- requestData: requestData,
241
- };
242
- }
243
- exports.bulkImportFiles = bulkImportFiles;
244
- /**
245
- * Imports a bulk of files to the Media Manager using external urls. <br/>
246
- *
247
- * Returns information about the imported files.
248
- *
249
- * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
250
- * If no folder is specified, the file is imported to the `media-root` folder.
251
- *
252
- * >**Notes:**
253
- * > - The `media` property isn't returned in the `files` response object.
254
- * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](/media-manager/importing-files#knowing-when-a-file-is-ready).
255
- *
256
- * To import files, you need to do one of the following for each file:
257
- * - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
258
- * - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`.
259
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
260
- * > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`.
261
- */
262
- function bulkImportFile(payload) {
263
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
264
- var serviceProtoClass = FilesService;
265
- var methodName = 'bulkImportFile';
266
- var requestData = payload;
267
- return {
268
- serviceProtoClass: serviceProtoClass,
269
- serviceArtifactId: serviceArtifactId,
270
- methodName: methodName,
271
- requestData: requestData,
272
- };
273
- }
274
- exports.bulkImportFile = bulkImportFile;
275
- /**
276
- * Retrieves a list of files in the Media Manager.
277
- *
278
- * To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves the list of files in the root folder of the Media Manager.
279
- */
280
- function listFiles(payload) {
281
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
282
- var serviceProtoClass = FilesService;
283
- var methodName = 'listFiles';
284
- var requestData = payload;
285
- return {
286
- serviceProtoClass: serviceProtoClass,
287
- serviceArtifactId: serviceArtifactId,
288
- methodName: methodName,
289
- requestData: requestData,
290
- };
291
- }
292
- exports.listFiles = listFiles;
293
- /**
294
- * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
295
- *
296
- * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
297
- */
298
- function searchFiles(payload) {
299
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
300
- var serviceProtoClass = FilesService;
301
- var methodName = 'searchFiles';
302
- var requestData = payload;
303
- return {
304
- serviceProtoClass: serviceProtoClass,
305
- serviceArtifactId: serviceArtifactId,
306
- methodName: methodName,
307
- requestData: requestData,
308
- };
309
- }
310
- exports.searchFiles = searchFiles;
311
- /**
312
- * Generates a URL for streaming a specific video file in the Media Manager. <br/>
313
- *
314
- * To stream different assets of the file, use the `assetKeys` parameter which generates a video streaming URL for each asset. If no assetKey is specified, it defaults to `src`, which generates one video streaming URL in the original file's format and quality.
315
- */
316
- function generateVideoStreamingUrl(payload) {
317
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
318
- var serviceProtoClass = FilesService;
319
- var methodName = 'generateVideoStreamingUrl';
320
- var requestData = payload;
321
- return {
322
- serviceProtoClass: serviceProtoClass,
323
- serviceArtifactId: serviceArtifactId,
324
- methodName: methodName,
325
- requestData: requestData,
326
- };
327
- }
328
- exports.generateVideoStreamingUrl = generateVideoStreamingUrl;
329
- /**
330
- * Return a token for a direct web socket notification channel
331
- * This API is not platformized (Contact the Media team for use instructions)
332
- * This API should be internal only
333
- */
334
- function generateWebSocketToken(payload) {
335
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
336
- var serviceProtoClass = FilesService;
337
- var methodName = 'generateWebSocketToken';
338
- var requestData = payload;
339
- return {
340
- serviceProtoClass: serviceProtoClass,
341
- serviceArtifactId: serviceArtifactId,
342
- methodName: methodName,
343
- requestData: requestData,
344
- };
345
- }
346
- exports.generateWebSocketToken = generateWebSocketToken;
347
- /**
348
- * Deletes the specified files from the Media Manager. <br/>
349
- *
350
- * The deleted files are moved to the Media Manager's trash bin (`TRASH-ROOT` folder) unless permanently deleted. To permanently delete files, pass the `permanent` parameter with the value `true`. Permanently deleting files isn't reversible, so make sure that these files aren't being used in a site or in any other way as the files will no longer be accessible.
351
- *
352
- * Note the following:
353
- * * The specified files can be from different folders.
354
- * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
355
- * * Attempting to delete files that are already in the trash bin doesn't result in an error.
356
- * * If your site contains deleted media files, the deleted media files still appear on your site as the files are still in the Media Manager (in the trash bin).
357
- * * You can use the [Bulk Restore Files From Trash Bin](https://dev.wix.com/api/rest/media/media-manager/files/bulk-restore-files-from-trash-bin) endpoint to restore files from the Media Manager's trash bin.
358
- */
359
- function bulkDeleteFiles(payload) {
360
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
361
- var serviceProtoClass = FilesService;
362
- var methodName = 'bulkDeleteFiles';
363
- var requestData = payload;
364
- return {
365
- serviceProtoClass: serviceProtoClass,
366
- serviceArtifactId: serviceArtifactId,
367
- methodName: methodName,
368
- requestData: requestData,
369
- };
370
- }
371
- exports.bulkDeleteFiles = bulkDeleteFiles;
372
- /** Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. */
373
- function bulkRestoreFilesFromTrashBin(payload) {
374
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
375
- var serviceProtoClass = FilesService;
376
- var methodName = 'bulkRestoreFilesFromTrashBin';
377
- var requestData = payload;
378
- return {
379
- serviceProtoClass: serviceProtoClass,
380
- serviceArtifactId: serviceArtifactId,
381
- methodName: methodName,
382
- requestData: requestData,
383
- };
384
- }
385
- exports.bulkRestoreFilesFromTrashBin = bulkRestoreFilesFromTrashBin;
386
- /**
387
- * Retrieves a list of files in the Media Manager's trash bin. <br/>
388
- *
389
- * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
390
- */
391
- function listDeletedFiles(payload) {
392
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
393
- var serviceProtoClass = FilesService;
394
- var methodName = 'listDeletedFiles';
395
- var requestData = payload;
396
- return {
397
- serviceProtoClass: serviceProtoClass,
398
- serviceArtifactId: serviceArtifactId,
399
- methodName: methodName,
400
- requestData: requestData,
401
- };
402
- }
403
- exports.listDeletedFiles = listDeletedFiles;
404
- /**
405
- * Updates a file.
406
- *
407
- * <blockquote class='warning'>
408
- *
409
- * __Deprecation Notice:__
410
- *
411
- * This endpoint has been replaced with [Update File Descriptor](https://dev.wix.com/api/rest/media/media-manager/files/update-file-descriptor) and will be removed on March 31, 2023.
412
- *
413
- * </blockquote>
414
- *
415
- * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
416
- * @deprecated method is deprecated due to standard aligning, it has been replaced with com.wix.media.site_media.v1.filesService.UpdateFileDescriptor(), and will be removed on 2023-03-31.
417
- */
418
- function updateFile(payload) {
419
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
420
- var serviceProtoClass = FilesService;
421
- var methodName = 'updateFile';
422
- var requestData = payload;
423
- return {
424
- serviceProtoClass: serviceProtoClass,
425
- serviceArtifactId: serviceArtifactId,
426
- methodName: methodName,
427
- requestData: requestData,
428
- };
429
- }
430
- exports.updateFile = updateFile;
431
- //# sourceMappingURL=rpc.impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpc.impl.js","sourceRoot":"","sources":["../../rpc.impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAwCA,+DAAmD;AAEnD,IAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,YAAY,CAAC;AAUtE;;;GAGG;AACH,SAAgB,kBAAkB,CAChC,OAAkC;IAElC,IAAM,iBAAiB,GACrB,qDAAqD,CAAC;IACxD,IAAM,iBAAiB,G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