@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,390 +0,0 @@
1
- import * as wrapper from './proto/proto-generated';
2
- var FilesService = wrapper.com.wix.media.site_media.v1.FilesService;
3
- /**
4
- * Run Image Annotation process on provided list of file ids
5
- * Note - the processes of this endpoint are synchronous and may take time to complete
6
- */
7
- export function bulkAnnotateImages(payload) {
8
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
9
- var serviceProtoClass = FilesService;
10
- var methodName = 'bulkAnnotateImages';
11
- var requestData = payload;
12
- return {
13
- serviceProtoClass: serviceProtoClass,
14
- serviceArtifactId: serviceArtifactId,
15
- methodName: methodName,
16
- requestData: requestData,
17
- };
18
- }
19
- /**
20
- * Generates a URL for downloading a compressed file containing specific files in the Media Manager.
21
- *
22
- * The compressed file can contain up to 1000 files.
23
- *
24
- * 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.
25
- * You can use the `expirationInMinutes` parameter to set the URL expiration time, making it more secure than the Generate Files Download URL endpoint.
26
- * 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.
27
- */
28
- export function generateFilesDownloadUrl(payload) {
29
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
30
- var serviceProtoClass = FilesService;
31
- var methodName = 'generateFilesDownloadUrl';
32
- var requestData = payload;
33
- return {
34
- serviceProtoClass: serviceProtoClass,
35
- serviceArtifactId: serviceArtifactId,
36
- methodName: methodName,
37
- requestData: requestData,
38
- };
39
- }
40
- /**
41
- * Generates one or more temporary URLs for downloading a specific file in the Media Manager.
42
- *
43
- * To download different assets of the file, use the `assetKeys` parameter which generates a download URL for each asset.
44
- * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
45
- *
46
- * 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.
47
- *
48
- * 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.
49
- * Since this is a permanent URL, it is less secure.
50
- * 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.
51
- */
52
- export function generateFileDownloadUrl(payload) {
53
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
54
- var serviceProtoClass = FilesService;
55
- var methodName = 'generateFileDownloadUrl';
56
- var requestData = payload;
57
- return {
58
- serviceProtoClass: serviceProtoClass,
59
- serviceArtifactId: serviceArtifactId,
60
- methodName: methodName,
61
- requestData: requestData,
62
- };
63
- }
64
- /** Gets information about a specific file in the Media Manager. */
65
- export function getFileDescriptor(payload) {
66
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
67
- var serviceProtoClass = FilesService;
68
- var methodName = 'getFileDescriptor';
69
- var requestData = payload;
70
- return {
71
- serviceProtoClass: serviceProtoClass,
72
- serviceArtifactId: serviceArtifactId,
73
- methodName: methodName,
74
- requestData: requestData,
75
- };
76
- }
77
- /** Gets information about specific files in the Media Manager. */
78
- export function getFileDescriptors(payload) {
79
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
80
- var serviceProtoClass = FilesService;
81
- var methodName = 'getFileDescriptors';
82
- var requestData = payload;
83
- return {
84
- serviceProtoClass: serviceProtoClass,
85
- serviceArtifactId: serviceArtifactId,
86
- methodName: methodName,
87
- requestData: requestData,
88
- };
89
- }
90
- /**
91
- * Updates a file. <br />
92
- *
93
- * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
94
- */
95
- export function updateFileDescriptor(payload) {
96
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
97
- var serviceProtoClass = FilesService;
98
- var methodName = 'updateFileDescriptor';
99
- var requestData = payload;
100
- return {
101
- serviceProtoClass: serviceProtoClass,
102
- serviceArtifactId: serviceArtifactId,
103
- methodName: methodName,
104
- requestData: requestData,
105
- };
106
- }
107
- /**
108
- * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
109
- *
110
- * 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.
111
- * > **Notes:**
112
- * > - 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).
113
- * > - 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.
114
- */
115
- export function generateFileUploadUrl(payload) {
116
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
117
- var serviceProtoClass = FilesService;
118
- var methodName = 'generateFileUploadUrl';
119
- var requestData = payload;
120
- return {
121
- serviceProtoClass: serviceProtoClass,
122
- serviceArtifactId: serviceArtifactId,
123
- methodName: methodName,
124
- requestData: requestData,
125
- };
126
- }
127
- /**
128
- * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
129
- *
130
- * 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.
131
- * 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.
132
- *
133
- * > **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).
134
- */
135
- export function generateFileResumableUploadUrl(payload) {
136
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
137
- var serviceProtoClass = FilesService;
138
- var methodName = 'generateFileResumableUploadUrl';
139
- var requestData = payload;
140
- return {
141
- serviceProtoClass: serviceProtoClass,
142
- serviceArtifactId: serviceArtifactId,
143
- methodName: methodName,
144
- requestData: requestData,
145
- };
146
- }
147
- /**
148
- * Imports a file to the Media Manager using an external url.
149
- *
150
- * Returns information about the imported file.
151
- * Use the `parentFolderId` and `filePath` parameters to specify which folder you want the file to be imported to.
152
- * If no folder is specified, the file is imported to the `media-root` folder.
153
- *
154
- * >**Notes:**
155
- * > - The `media` property isn't returned in the `files` response object.
156
- * > - 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).
157
- *
158
- * To import a file, you need to do one of the following:
159
- * - 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'`.
160
- * - 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`.
161
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
162
- * > **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'`.
163
- */
164
- export function importFile(payload) {
165
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
166
- var serviceProtoClass = FilesService;
167
- var methodName = 'importFile';
168
- var requestData = payload;
169
- return {
170
- serviceProtoClass: serviceProtoClass,
171
- serviceArtifactId: serviceArtifactId,
172
- methodName: methodName,
173
- requestData: requestData,
174
- };
175
- }
176
- /**
177
- * Imports a bulk of files to the Media Manager using external urls. <br/>
178
- * <blockquote class='warning'>
179
- *
180
- * __Deprecation Notice:__
181
- *
182
- * 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.
183
- *
184
- * </blockquote>
185
- * Returns information about the imported files.
186
- *
187
- * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
188
- * If no folder is specified, the file is imported to the `media-root` folder.
189
- *
190
- * >**Note:** The `media` property isn't returned in the `files` response object.
191
- *
192
- * To import files, you need to do one of the following for each file:
193
- * - 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'`.
194
- * - 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`.
195
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
196
- *
197
- * > **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'`.
198
- * @deprecated It has been replaced with com.wix.media.site_media.v1.FilesService.BulkImportFile(), and will be removed on 2024-03-31.
199
- */
200
- export function bulkImportFiles(payload) {
201
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
202
- var serviceProtoClass = FilesService;
203
- var methodName = 'bulkImportFiles';
204
- var requestData = payload;
205
- return {
206
- serviceProtoClass: serviceProtoClass,
207
- serviceArtifactId: serviceArtifactId,
208
- methodName: methodName,
209
- requestData: requestData,
210
- };
211
- }
212
- /**
213
- * Imports a bulk of files to the Media Manager using external urls. <br/>
214
- *
215
- * Returns information about the imported files.
216
- *
217
- * Use the `parentFolderId` and `filePath` parameters to specify the folder you want each file to be imported to.
218
- * If no folder is specified, the file is imported to the `media-root` folder.
219
- *
220
- * >**Notes:**
221
- * > - The `media` property isn't returned in the `files` response object.
222
- * > - 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).
223
- *
224
- * To import files, you need to do one of the following for each file:
225
- * - 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'`.
226
- * - 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`.
227
- * - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server.
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
- */
230
- export function bulkImportFile(payload) {
231
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
232
- var serviceProtoClass = FilesService;
233
- var methodName = 'bulkImportFile';
234
- var requestData = payload;
235
- return {
236
- serviceProtoClass: serviceProtoClass,
237
- serviceArtifactId: serviceArtifactId,
238
- methodName: methodName,
239
- requestData: requestData,
240
- };
241
- }
242
- /**
243
- * Retrieves a list of files in the Media Manager.
244
- *
245
- * 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.
246
- */
247
- export function listFiles(payload) {
248
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
249
- var serviceProtoClass = FilesService;
250
- var methodName = 'listFiles';
251
- var requestData = payload;
252
- return {
253
- serviceProtoClass: serviceProtoClass,
254
- serviceArtifactId: serviceArtifactId,
255
- methodName: methodName,
256
- requestData: requestData,
257
- };
258
- }
259
- /**
260
- * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
261
- *
262
- * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
263
- */
264
- export function searchFiles(payload) {
265
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
266
- var serviceProtoClass = FilesService;
267
- var methodName = 'searchFiles';
268
- var requestData = payload;
269
- return {
270
- serviceProtoClass: serviceProtoClass,
271
- serviceArtifactId: serviceArtifactId,
272
- methodName: methodName,
273
- requestData: requestData,
274
- };
275
- }
276
- /**
277
- * Generates a URL for streaming a specific video file in the Media Manager. <br/>
278
- *
279
- * 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.
280
- */
281
- export function generateVideoStreamingUrl(payload) {
282
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
283
- var serviceProtoClass = FilesService;
284
- var methodName = 'generateVideoStreamingUrl';
285
- var requestData = payload;
286
- return {
287
- serviceProtoClass: serviceProtoClass,
288
- serviceArtifactId: serviceArtifactId,
289
- methodName: methodName,
290
- requestData: requestData,
291
- };
292
- }
293
- /**
294
- * Return a token for a direct web socket notification channel
295
- * This API is not platformized (Contact the Media team for use instructions)
296
- * This API should be internal only
297
- */
298
- export function generateWebSocketToken(payload) {
299
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
300
- var serviceProtoClass = FilesService;
301
- var methodName = 'generateWebSocketToken';
302
- var requestData = payload;
303
- return {
304
- serviceProtoClass: serviceProtoClass,
305
- serviceArtifactId: serviceArtifactId,
306
- methodName: methodName,
307
- requestData: requestData,
308
- };
309
- }
310
- /**
311
- * Deletes the specified files from the Media Manager. <br/>
312
- *
313
- * 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.
314
- *
315
- * Note the following:
316
- * * The specified files can be from different folders.
317
- * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
318
- * * Attempting to delete files that are already in the trash bin doesn't result in an error.
319
- * * 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).
320
- * * 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.
321
- */
322
- export function bulkDeleteFiles(payload) {
323
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
324
- var serviceProtoClass = FilesService;
325
- var methodName = 'bulkDeleteFiles';
326
- var requestData = payload;
327
- return {
328
- serviceProtoClass: serviceProtoClass,
329
- serviceArtifactId: serviceArtifactId,
330
- methodName: methodName,
331
- requestData: requestData,
332
- };
333
- }
334
- /** Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. */
335
- export function bulkRestoreFilesFromTrashBin(payload) {
336
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
337
- var serviceProtoClass = FilesService;
338
- var methodName = 'bulkRestoreFilesFromTrashBin';
339
- var requestData = payload;
340
- return {
341
- serviceProtoClass: serviceProtoClass,
342
- serviceArtifactId: serviceArtifactId,
343
- methodName: methodName,
344
- requestData: requestData,
345
- };
346
- }
347
- /**
348
- * Retrieves a list of files in the Media Manager's trash bin. <br/>
349
- *
350
- * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
351
- */
352
- export function listDeletedFiles(payload) {
353
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
354
- var serviceProtoClass = FilesService;
355
- var methodName = 'listDeletedFiles';
356
- var requestData = payload;
357
- return {
358
- serviceProtoClass: serviceProtoClass,
359
- serviceArtifactId: serviceArtifactId,
360
- methodName: methodName,
361
- requestData: requestData,
362
- };
363
- }
364
- /**
365
- * Updates a file.
366
- *
367
- * <blockquote class='warning'>
368
- *
369
- * __Deprecation Notice:__
370
- *
371
- * 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.
372
- *
373
- * </blockquote>
374
- *
375
- * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
376
- * @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.
377
- */
378
- export function updateFile(payload) {
379
- var serviceArtifactId = 'com.wixpress.prospero.wix-privatemedia-proxy-server';
380
- var serviceProtoClass = FilesService;
381
- var methodName = 'updateFile';
382
- var requestData = payload;
383
- return {
384
- serviceProtoClass: serviceProtoClass,
385
- serviceArtifactId: serviceArtifactId,
386
- methodName: methodName,
387
- requestData: requestData,
388
- };
389
- }
390
- //# sourceMappingURL=rpc.impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rpc.impl.js","sourceRoot":"","sources":["../../rpc.impl.ts"],"names":[],"mappings":"AAwCA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAEnD,IAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,YAAY,CAAC;AAUtE;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAkC;IAElC,IAAM,iBAAiB,GACrB,qDAAqD,CAAC;IACxD,IAAM,iBAAiB,GAAwB,YAAY,CAAC;IAC5D,IAAM,UAAU,GAAW,oBAAoB,CAAC;IAChD,IAAM,WAAW,GAA8B,OAAO,CAAC;IACvD,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,wBAAwB,CACtC,OAAwC;IAExC,IAAM,iBAAiB,GACrB,qDAAqD,CAAC;IACxD,IAAM,iBAAiB,GAAwB,YAAY,CAAC;IAC5D,IAAM,UAAU,GAAW,0BAA0B,CAAC;IACtD,IAAM,WAAW,GAAoC,OAAO,CAAC;IAC7D,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAuC;IAEvC,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