@wix/media 1.0.99 → 1.0.101
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.
- package/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +121 -250
- package/type-bundles/index.bundle.d.ts +86 -203
- package/type-bundles/meta.bundle.d.ts +30 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.101",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/media_enterprise-media-categories": "1.0.24",
|
|
22
22
|
"@wix/media_enterprise-media-items": "1.0.27",
|
|
23
|
-
"@wix/media_files": "1.0.
|
|
23
|
+
"@wix/media_files": "1.0.37",
|
|
24
24
|
"@wix/media_folders": "1.0.27"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"fqdn": ""
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
-
"falconPackageHash": "
|
|
48
|
+
"falconPackageHash": "c76d28058cb06cdb69d13faed46ebe090783381220604da41c83a9db"
|
|
49
49
|
}
|
|
@@ -181,41 +181,41 @@ interface EnterpriseOnboardingOptions {
|
|
|
181
181
|
accountName?: string;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
type RESTFunctionDescriptor
|
|
185
|
-
interface HttpClient
|
|
186
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
184
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
185
|
+
interface HttpClient {
|
|
186
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
187
187
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
188
188
|
}
|
|
189
|
-
type RequestOptionsFactory
|
|
190
|
-
type HttpResponse
|
|
189
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
190
|
+
type HttpResponse<T = any> = {
|
|
191
191
|
data: T;
|
|
192
192
|
status: number;
|
|
193
193
|
statusText: string;
|
|
194
194
|
headers: any;
|
|
195
195
|
request?: any;
|
|
196
196
|
};
|
|
197
|
-
type RequestOptions
|
|
197
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
198
198
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
199
199
|
url: string;
|
|
200
200
|
data?: Data;
|
|
201
201
|
params?: URLSearchParams;
|
|
202
|
-
} & APIMetadata
|
|
203
|
-
type APIMetadata
|
|
202
|
+
} & APIMetadata;
|
|
203
|
+
type APIMetadata = {
|
|
204
204
|
methodFqn?: string;
|
|
205
205
|
entityFqdn?: string;
|
|
206
206
|
packageName?: string;
|
|
207
207
|
};
|
|
208
|
-
type BuildRESTFunction
|
|
209
|
-
type EventDefinition
|
|
208
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
209
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
210
210
|
__type: 'event-definition';
|
|
211
211
|
type: Type;
|
|
212
212
|
isDomainEvent?: boolean;
|
|
213
213
|
transformations?: (envelope: unknown) => Payload;
|
|
214
214
|
__payload: Payload;
|
|
215
215
|
};
|
|
216
|
-
declare function EventDefinition
|
|
217
|
-
type EventHandler
|
|
218
|
-
type BuildEventDefinition
|
|
216
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
217
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
218
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
219
219
|
|
|
220
220
|
declare global {
|
|
221
221
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -224,37 +224,37 @@ declare global {
|
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
declare function createCategory$1(httpClient: HttpClient
|
|
227
|
+
declare function createCategory$1(httpClient: HttpClient): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
|
|
228
228
|
_id: string;
|
|
229
229
|
publishStatus: PublishStatus$1;
|
|
230
230
|
}>;
|
|
231
|
-
declare function deleteCategory$1(httpClient: HttpClient
|
|
232
|
-
declare function updateCategory$1(httpClient: HttpClient
|
|
231
|
+
declare function deleteCategory$1(httpClient: HttpClient): (categoryId: string) => Promise<void>;
|
|
232
|
+
declare function updateCategory$1(httpClient: HttpClient): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
|
|
233
233
|
_id: string;
|
|
234
234
|
publishStatus: PublishStatus$1;
|
|
235
235
|
}>;
|
|
236
|
-
declare function getCategory$1(httpClient: HttpClient
|
|
236
|
+
declare function getCategory$1(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
|
|
237
237
|
category?: {
|
|
238
238
|
_id: string;
|
|
239
239
|
publishStatus: PublishStatus$1;
|
|
240
240
|
} | undefined;
|
|
241
241
|
subCategories: (any | undefined)[];
|
|
242
242
|
}>;
|
|
243
|
-
declare function enterpriseOnboarding$1(httpClient: HttpClient
|
|
244
|
-
declare function getMediaManagerCategories$1(httpClient: HttpClient
|
|
245
|
-
declare const onEnterpriseCategoryCreated$1: EventDefinition
|
|
246
|
-
declare const onEnterpriseCategoryDeleted$1: EventDefinition
|
|
247
|
-
declare const onEnterpriseCategoryUpdated$1: EventDefinition
|
|
243
|
+
declare function enterpriseOnboarding$1(httpClient: HttpClient): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
|
|
244
|
+
declare function getMediaManagerCategories$1(httpClient: HttpClient): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
|
|
245
|
+
declare const onEnterpriseCategoryCreated$1: EventDefinition<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
|
|
246
|
+
declare const onEnterpriseCategoryDeleted$1: EventDefinition<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
|
|
247
|
+
declare const onEnterpriseCategoryUpdated$1: EventDefinition<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
|
|
248
248
|
|
|
249
|
-
declare const createCategory: BuildRESTFunction
|
|
250
|
-
declare const deleteCategory: BuildRESTFunction
|
|
251
|
-
declare const updateCategory: BuildRESTFunction
|
|
252
|
-
declare const getCategory: BuildRESTFunction
|
|
253
|
-
declare const enterpriseOnboarding: BuildRESTFunction
|
|
254
|
-
declare const getMediaManagerCategories: BuildRESTFunction
|
|
255
|
-
declare const onEnterpriseCategoryCreated: BuildEventDefinition
|
|
256
|
-
declare const onEnterpriseCategoryDeleted: BuildEventDefinition
|
|
257
|
-
declare const onEnterpriseCategoryUpdated: BuildEventDefinition
|
|
249
|
+
declare const createCategory: BuildRESTFunction<typeof createCategory$1>;
|
|
250
|
+
declare const deleteCategory: BuildRESTFunction<typeof deleteCategory$1>;
|
|
251
|
+
declare const updateCategory: BuildRESTFunction<typeof updateCategory$1>;
|
|
252
|
+
declare const getCategory: BuildRESTFunction<typeof getCategory$1>;
|
|
253
|
+
declare const enterpriseOnboarding: BuildRESTFunction<typeof enterpriseOnboarding$1>;
|
|
254
|
+
declare const getMediaManagerCategories: BuildRESTFunction<typeof getMediaManagerCategories$1>;
|
|
255
|
+
declare const onEnterpriseCategoryCreated: BuildEventDefinition<typeof onEnterpriseCategoryCreated$1>;
|
|
256
|
+
declare const onEnterpriseCategoryDeleted: BuildEventDefinition<typeof onEnterpriseCategoryDeleted$1>;
|
|
257
|
+
declare const onEnterpriseCategoryUpdated: BuildEventDefinition<typeof onEnterpriseCategoryUpdated$1>;
|
|
258
258
|
|
|
259
259
|
declare const context$3_createCategory: typeof createCategory;
|
|
260
260
|
declare const context$3_deleteCategory: typeof deleteCategory;
|
|
@@ -903,55 +903,12 @@ interface OverwriteItemCategoriesOptions {
|
|
|
903
903
|
categoryIds?: string[];
|
|
904
904
|
}
|
|
905
905
|
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
type HttpResponse$2<T = any> = {
|
|
913
|
-
data: T;
|
|
914
|
-
status: number;
|
|
915
|
-
statusText: string;
|
|
916
|
-
headers: any;
|
|
917
|
-
request?: any;
|
|
918
|
-
};
|
|
919
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
920
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
921
|
-
url: string;
|
|
922
|
-
data?: Data;
|
|
923
|
-
params?: URLSearchParams;
|
|
924
|
-
} & APIMetadata$2;
|
|
925
|
-
type APIMetadata$2 = {
|
|
926
|
-
methodFqn?: string;
|
|
927
|
-
entityFqdn?: string;
|
|
928
|
-
packageName?: string;
|
|
929
|
-
};
|
|
930
|
-
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
931
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
932
|
-
__type: 'event-definition';
|
|
933
|
-
type: Type;
|
|
934
|
-
isDomainEvent?: boolean;
|
|
935
|
-
transformations?: (envelope: unknown) => Payload;
|
|
936
|
-
__payload: Payload;
|
|
937
|
-
};
|
|
938
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
939
|
-
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
940
|
-
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
941
|
-
|
|
942
|
-
declare global {
|
|
943
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
944
|
-
interface SymbolConstructor {
|
|
945
|
-
readonly observable: symbol;
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
declare function itemUploadCallback$1(httpClient: HttpClient$2): (options?: ItemUploadCallbackOptions) => Promise<void>;
|
|
950
|
-
declare function generateFileUploadUrl$3(httpClient: HttpClient$2): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
|
|
951
|
-
declare function importFile$3(httpClient: HttpClient$2): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
|
|
952
|
-
declare function searchItems$1(httpClient: HttpClient$2): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
|
|
953
|
-
declare function queryItems$1(httpClient: HttpClient$2): () => ItemsQueryBuilder;
|
|
954
|
-
declare function updateItem$1(httpClient: HttpClient$2): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
|
|
906
|
+
declare function itemUploadCallback$1(httpClient: HttpClient): (options?: ItemUploadCallbackOptions) => Promise<void>;
|
|
907
|
+
declare function generateFileUploadUrl$3(httpClient: HttpClient): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
|
|
908
|
+
declare function importFile$3(httpClient: HttpClient): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
|
|
909
|
+
declare function searchItems$1(httpClient: HttpClient): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
|
|
910
|
+
declare function queryItems$1(httpClient: HttpClient): () => ItemsQueryBuilder;
|
|
911
|
+
declare function updateItem$1(httpClient: HttpClient): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
|
|
955
912
|
_id: string;
|
|
956
913
|
mediaType: MediaType$1;
|
|
957
914
|
assets?: {
|
|
@@ -972,8 +929,8 @@ declare function updateItem$1(httpClient: HttpClient$2): (_id: string, item: Upd
|
|
|
972
929
|
} | undefined;
|
|
973
930
|
publishStatus: PublishStatus;
|
|
974
931
|
}>;
|
|
975
|
-
declare function bulkUpdateItem$1(httpClient: HttpClient
|
|
976
|
-
declare function getItem$1(httpClient: HttpClient
|
|
932
|
+
declare function bulkUpdateItem$1(httpClient: HttpClient): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
|
|
933
|
+
declare function getItem$1(httpClient: HttpClient): (itemId: string) => Promise<EnterpriseMediaItem & {
|
|
977
934
|
_id: string;
|
|
978
935
|
mediaType: MediaType$1;
|
|
979
936
|
assets?: {
|
|
@@ -994,29 +951,29 @@ declare function getItem$1(httpClient: HttpClient$2): (itemId: string) => Promis
|
|
|
994
951
|
} | undefined;
|
|
995
952
|
publishStatus: PublishStatus;
|
|
996
953
|
}>;
|
|
997
|
-
declare function linkItemToCategories$1(httpClient: HttpClient
|
|
998
|
-
declare function unlinkItemFromCategories$1(httpClient: HttpClient
|
|
999
|
-
declare function overwriteItemCategories$1(httpClient: HttpClient
|
|
1000
|
-
declare const onEnterpriseItemCreated$1: EventDefinition
|
|
1001
|
-
declare const onEnterpriseItemUpdated$1: EventDefinition
|
|
1002
|
-
declare const onEnterpriseItemItemCategoriesChanged$1: EventDefinition
|
|
1003
|
-
declare const onEnterpriseItemPublishStatusChanged$1: EventDefinition
|
|
954
|
+
declare function linkItemToCategories$1(httpClient: HttpClient): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
|
|
955
|
+
declare function unlinkItemFromCategories$1(httpClient: HttpClient): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
|
|
956
|
+
declare function overwriteItemCategories$1(httpClient: HttpClient): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
|
|
957
|
+
declare const onEnterpriseItemCreated$1: EventDefinition<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
|
|
958
|
+
declare const onEnterpriseItemUpdated$1: EventDefinition<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
|
|
959
|
+
declare const onEnterpriseItemItemCategoriesChanged$1: EventDefinition<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
|
|
960
|
+
declare const onEnterpriseItemPublishStatusChanged$1: EventDefinition<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
|
|
1004
961
|
|
|
1005
|
-
declare const itemUploadCallback: BuildRESTFunction
|
|
1006
|
-
declare const generateFileUploadUrl$2: BuildRESTFunction
|
|
1007
|
-
declare const importFile$2: BuildRESTFunction
|
|
1008
|
-
declare const searchItems: BuildRESTFunction
|
|
1009
|
-
declare const queryItems: BuildRESTFunction
|
|
1010
|
-
declare const updateItem: BuildRESTFunction
|
|
1011
|
-
declare const bulkUpdateItem: BuildRESTFunction
|
|
1012
|
-
declare const getItem: BuildRESTFunction
|
|
1013
|
-
declare const linkItemToCategories: BuildRESTFunction
|
|
1014
|
-
declare const unlinkItemFromCategories: BuildRESTFunction
|
|
1015
|
-
declare const overwriteItemCategories: BuildRESTFunction
|
|
1016
|
-
declare const onEnterpriseItemCreated: BuildEventDefinition
|
|
1017
|
-
declare const onEnterpriseItemUpdated: BuildEventDefinition
|
|
1018
|
-
declare const onEnterpriseItemItemCategoriesChanged: BuildEventDefinition
|
|
1019
|
-
declare const onEnterpriseItemPublishStatusChanged: BuildEventDefinition
|
|
962
|
+
declare const itemUploadCallback: BuildRESTFunction<typeof itemUploadCallback$1>;
|
|
963
|
+
declare const generateFileUploadUrl$2: BuildRESTFunction<typeof generateFileUploadUrl$3>;
|
|
964
|
+
declare const importFile$2: BuildRESTFunction<typeof importFile$3>;
|
|
965
|
+
declare const searchItems: BuildRESTFunction<typeof searchItems$1>;
|
|
966
|
+
declare const queryItems: BuildRESTFunction<typeof queryItems$1>;
|
|
967
|
+
declare const updateItem: BuildRESTFunction<typeof updateItem$1>;
|
|
968
|
+
declare const bulkUpdateItem: BuildRESTFunction<typeof bulkUpdateItem$1>;
|
|
969
|
+
declare const getItem: BuildRESTFunction<typeof getItem$1>;
|
|
970
|
+
declare const linkItemToCategories: BuildRESTFunction<typeof linkItemToCategories$1>;
|
|
971
|
+
declare const unlinkItemFromCategories: BuildRESTFunction<typeof unlinkItemFromCategories$1>;
|
|
972
|
+
declare const overwriteItemCategories: BuildRESTFunction<typeof overwriteItemCategories$1>;
|
|
973
|
+
declare const onEnterpriseItemCreated: BuildEventDefinition<typeof onEnterpriseItemCreated$1>;
|
|
974
|
+
declare const onEnterpriseItemUpdated: BuildEventDefinition<typeof onEnterpriseItemUpdated$1>;
|
|
975
|
+
declare const onEnterpriseItemItemCategoriesChanged: BuildEventDefinition<typeof onEnterpriseItemItemCategoriesChanged$1>;
|
|
976
|
+
declare const onEnterpriseItemPublishStatusChanged: BuildEventDefinition<typeof onEnterpriseItemPublishStatusChanged$1>;
|
|
1020
977
|
|
|
1021
978
|
declare const context$2_bulkUpdateItem: typeof bulkUpdateItem;
|
|
1022
979
|
declare const context$2_getItem: typeof getItem;
|
|
@@ -1379,6 +1336,7 @@ interface ImportFileRequest {
|
|
|
1379
1336
|
displayName?: string | null;
|
|
1380
1337
|
/**
|
|
1381
1338
|
* ID of the file's parent folder. <br />
|
|
1339
|
+
* This folder is the path root for the `filePath`. <br />
|
|
1382
1340
|
* Default: `media-root`.
|
|
1383
1341
|
*/
|
|
1384
1342
|
parentFolderId?: string | null;
|
|
@@ -1395,11 +1353,10 @@ interface ImportFileRequest {
|
|
|
1395
1353
|
/** Optional headers that should be sent with the external URL. */
|
|
1396
1354
|
urlHeaders?: Record<string, any> | null;
|
|
1397
1355
|
/**
|
|
1398
|
-
*
|
|
1399
|
-
*
|
|
1400
|
-
* If
|
|
1401
|
-
*
|
|
1402
|
-
* example: 'videos/2024/december'
|
|
1356
|
+
* Path to the folder where the file will be stored.
|
|
1357
|
+
* For example, `/videos/2024/december`. <br/>
|
|
1358
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
1359
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
1403
1360
|
*/
|
|
1404
1361
|
filePath?: string | null;
|
|
1405
1362
|
}
|
|
@@ -2103,6 +2060,7 @@ interface GenerateFileUploadUrlOptions {
|
|
|
2103
2060
|
sizeInBytes?: string | null;
|
|
2104
2061
|
/**
|
|
2105
2062
|
* ID of the file's parent folder. <br />
|
|
2063
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2106
2064
|
* Default: `media-root`.
|
|
2107
2065
|
*/
|
|
2108
2066
|
parentFolderId?: string | null;
|
|
@@ -2113,11 +2071,10 @@ interface GenerateFileUploadUrlOptions {
|
|
|
2113
2071
|
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
2114
2072
|
externalInfo?: ExternalInfo;
|
|
2115
2073
|
/**
|
|
2116
|
-
*
|
|
2117
|
-
*
|
|
2118
|
-
* If
|
|
2119
|
-
*
|
|
2120
|
-
* example: 'videos/2024/december'
|
|
2074
|
+
* Path to the folder where the file will be stored.
|
|
2075
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2076
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2077
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2121
2078
|
*/
|
|
2122
2079
|
filePath?: string | null;
|
|
2123
2080
|
}
|
|
@@ -2134,6 +2091,7 @@ interface GenerateFileResumableUploadUrlOptions {
|
|
|
2134
2091
|
sizeInBytes?: string | null;
|
|
2135
2092
|
/**
|
|
2136
2093
|
* ID of the file's parent folder. <br />
|
|
2094
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2137
2095
|
* Default: `media-root`.
|
|
2138
2096
|
*/
|
|
2139
2097
|
parentFolderId?: string | null;
|
|
@@ -2148,11 +2106,10 @@ interface GenerateFileResumableUploadUrlOptions {
|
|
|
2148
2106
|
*/
|
|
2149
2107
|
uploadProtocol?: UploadProtocol;
|
|
2150
2108
|
/**
|
|
2151
|
-
*
|
|
2152
|
-
*
|
|
2153
|
-
* If
|
|
2154
|
-
*
|
|
2155
|
-
* example: 'videos/2024/december'
|
|
2109
|
+
* Path to the folder where the file will be stored.
|
|
2110
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2111
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2112
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2156
2113
|
*/
|
|
2157
2114
|
filePath?: string | null;
|
|
2158
2115
|
}
|
|
@@ -2163,6 +2120,7 @@ interface ImportFileOptions {
|
|
|
2163
2120
|
displayName?: string | null;
|
|
2164
2121
|
/**
|
|
2165
2122
|
* ID of the file's parent folder. <br />
|
|
2123
|
+
* This folder is the path root for the `filePath`. <br />
|
|
2166
2124
|
* Default: `media-root`.
|
|
2167
2125
|
*/
|
|
2168
2126
|
parentFolderId?: string | null;
|
|
@@ -2179,11 +2137,10 @@ interface ImportFileOptions {
|
|
|
2179
2137
|
/** Optional headers that should be sent with the external URL. */
|
|
2180
2138
|
urlHeaders?: Record<string, any> | null;
|
|
2181
2139
|
/**
|
|
2182
|
-
*
|
|
2183
|
-
*
|
|
2184
|
-
* If
|
|
2185
|
-
*
|
|
2186
|
-
* example: 'videos/2024/december'
|
|
2140
|
+
* Path to the folder where the file will be stored.
|
|
2141
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2142
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2143
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2187
2144
|
*/
|
|
2188
2145
|
filePath?: string | null;
|
|
2189
2146
|
}
|
|
@@ -2287,52 +2244,9 @@ interface ListDeletedFilesOptions {
|
|
|
2287
2244
|
paging?: CursorPaging$1;
|
|
2288
2245
|
}
|
|
2289
2246
|
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2294
|
-
}
|
|
2295
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
2296
|
-
type HttpResponse$1<T = any> = {
|
|
2297
|
-
data: T;
|
|
2298
|
-
status: number;
|
|
2299
|
-
statusText: string;
|
|
2300
|
-
headers: any;
|
|
2301
|
-
request?: any;
|
|
2302
|
-
};
|
|
2303
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
2304
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2305
|
-
url: string;
|
|
2306
|
-
data?: Data;
|
|
2307
|
-
params?: URLSearchParams;
|
|
2308
|
-
} & APIMetadata$1;
|
|
2309
|
-
type APIMetadata$1 = {
|
|
2310
|
-
methodFqn?: string;
|
|
2311
|
-
entityFqdn?: string;
|
|
2312
|
-
packageName?: string;
|
|
2313
|
-
};
|
|
2314
|
-
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
2315
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
2316
|
-
__type: 'event-definition';
|
|
2317
|
-
type: Type;
|
|
2318
|
-
isDomainEvent?: boolean;
|
|
2319
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2320
|
-
__payload: Payload;
|
|
2321
|
-
};
|
|
2322
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
2323
|
-
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
2324
|
-
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
2325
|
-
|
|
2326
|
-
declare global {
|
|
2327
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2328
|
-
interface SymbolConstructor {
|
|
2329
|
-
readonly observable: symbol;
|
|
2330
|
-
}
|
|
2331
|
-
}
|
|
2332
|
-
|
|
2333
|
-
declare function generateFilesDownloadUrl$1(httpClient: HttpClient$1): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
|
|
2334
|
-
declare function generateFileDownloadUrl$1(httpClient: HttpClient$1): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
2335
|
-
declare function getFileDescriptor$1(httpClient: HttpClient$1): (fileId: string) => Promise<FileDescriptor & {
|
|
2247
|
+
declare function generateFilesDownloadUrl$1(httpClient: HttpClient): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
|
|
2248
|
+
declare function generateFileDownloadUrl$1(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
2249
|
+
declare function getFileDescriptor$1(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & {
|
|
2336
2250
|
_id: string;
|
|
2337
2251
|
displayName: string;
|
|
2338
2252
|
url: string;
|
|
@@ -2389,8 +2303,8 @@ declare function getFileDescriptor$1(httpClient: HttpClient$1): (fileId: string)
|
|
|
2389
2303
|
siteId: string;
|
|
2390
2304
|
state: State$1;
|
|
2391
2305
|
}>;
|
|
2392
|
-
declare function getFileDescriptors$1(httpClient: HttpClient
|
|
2393
|
-
declare function updateFileDescriptor$1(httpClient: HttpClient
|
|
2306
|
+
declare function getFileDescriptors$1(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
2307
|
+
declare function updateFileDescriptor$1(httpClient: HttpClient): (file: FileDescriptor) => Promise<FileDescriptor & {
|
|
2394
2308
|
_id: string;
|
|
2395
2309
|
displayName: string;
|
|
2396
2310
|
url: string;
|
|
@@ -2447,42 +2361,42 @@ declare function updateFileDescriptor$1(httpClient: HttpClient$1): (file: FileDe
|
|
|
2447
2361
|
siteId: string;
|
|
2448
2362
|
state: State$1;
|
|
2449
2363
|
}>;
|
|
2450
|
-
declare function generateFileUploadUrl$1(httpClient: HttpClient
|
|
2451
|
-
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient
|
|
2452
|
-
declare function importFile$1(httpClient: HttpClient
|
|
2453
|
-
declare function bulkImportFiles$1(httpClient: HttpClient
|
|
2454
|
-
declare function bulkImportFile$1(httpClient: HttpClient
|
|
2455
|
-
declare function listFiles$1(httpClient: HttpClient
|
|
2456
|
-
declare function searchFiles$1(httpClient: HttpClient
|
|
2457
|
-
declare function generateVideoStreamingUrl$1(httpClient: HttpClient
|
|
2458
|
-
declare function bulkDeleteFiles$1(httpClient: HttpClient
|
|
2459
|
-
declare function bulkRestoreFilesFromTrashBin$1(httpClient: HttpClient
|
|
2460
|
-
declare function listDeletedFiles$1(httpClient: HttpClient
|
|
2461
|
-
declare const onFileDescriptorUpdated$1: EventDefinition
|
|
2462
|
-
declare const onFileDescriptorDeleted$1: EventDefinition
|
|
2463
|
-
declare const onFileDescriptorFileReady$1: EventDefinition
|
|
2464
|
-
declare const onFileDescriptorFileFailed$1: EventDefinition
|
|
2364
|
+
declare function generateFileUploadUrl$1(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
2365
|
+
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
2366
|
+
declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|
|
2367
|
+
declare function bulkImportFiles$1(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
|
|
2368
|
+
declare function bulkImportFile$1(httpClient: HttpClient): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
|
|
2369
|
+
declare function listFiles$1(httpClient: HttpClient): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
|
|
2370
|
+
declare function searchFiles$1(httpClient: HttpClient): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
|
|
2371
|
+
declare function generateVideoStreamingUrl$1(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
2372
|
+
declare function bulkDeleteFiles$1(httpClient: HttpClient): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
|
|
2373
|
+
declare function bulkRestoreFilesFromTrashBin$1(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
|
|
2374
|
+
declare function listDeletedFiles$1(httpClient: HttpClient): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
|
|
2375
|
+
declare const onFileDescriptorUpdated$1: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
|
|
2376
|
+
declare const onFileDescriptorDeleted$1: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
|
|
2377
|
+
declare const onFileDescriptorFileReady$1: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
|
|
2378
|
+
declare const onFileDescriptorFileFailed$1: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
|
|
2465
2379
|
|
|
2466
|
-
declare const generateFilesDownloadUrl: BuildRESTFunction
|
|
2467
|
-
declare const generateFileDownloadUrl: BuildRESTFunction
|
|
2468
|
-
declare const getFileDescriptor: BuildRESTFunction
|
|
2469
|
-
declare const getFileDescriptors: BuildRESTFunction
|
|
2470
|
-
declare const updateFileDescriptor: BuildRESTFunction
|
|
2471
|
-
declare const generateFileUploadUrl: BuildRESTFunction
|
|
2472
|
-
declare const generateFileResumableUploadUrl: BuildRESTFunction
|
|
2473
|
-
declare const importFile: BuildRESTFunction
|
|
2474
|
-
declare const bulkImportFiles: BuildRESTFunction
|
|
2475
|
-
declare const bulkImportFile: BuildRESTFunction
|
|
2476
|
-
declare const listFiles: BuildRESTFunction
|
|
2477
|
-
declare const searchFiles: BuildRESTFunction
|
|
2478
|
-
declare const generateVideoStreamingUrl: BuildRESTFunction
|
|
2479
|
-
declare const bulkDeleteFiles: BuildRESTFunction
|
|
2480
|
-
declare const bulkRestoreFilesFromTrashBin: BuildRESTFunction
|
|
2481
|
-
declare const listDeletedFiles: BuildRESTFunction
|
|
2482
|
-
declare const onFileDescriptorUpdated: BuildEventDefinition
|
|
2483
|
-
declare const onFileDescriptorDeleted: BuildEventDefinition
|
|
2484
|
-
declare const onFileDescriptorFileReady: BuildEventDefinition
|
|
2485
|
-
declare const onFileDescriptorFileFailed: BuildEventDefinition
|
|
2380
|
+
declare const generateFilesDownloadUrl: BuildRESTFunction<typeof generateFilesDownloadUrl$1>;
|
|
2381
|
+
declare const generateFileDownloadUrl: BuildRESTFunction<typeof generateFileDownloadUrl$1>;
|
|
2382
|
+
declare const getFileDescriptor: BuildRESTFunction<typeof getFileDescriptor$1>;
|
|
2383
|
+
declare const getFileDescriptors: BuildRESTFunction<typeof getFileDescriptors$1>;
|
|
2384
|
+
declare const updateFileDescriptor: BuildRESTFunction<typeof updateFileDescriptor$1>;
|
|
2385
|
+
declare const generateFileUploadUrl: BuildRESTFunction<typeof generateFileUploadUrl$1>;
|
|
2386
|
+
declare const generateFileResumableUploadUrl: BuildRESTFunction<typeof generateFileResumableUploadUrl$1>;
|
|
2387
|
+
declare const importFile: BuildRESTFunction<typeof importFile$1>;
|
|
2388
|
+
declare const bulkImportFiles: BuildRESTFunction<typeof bulkImportFiles$1>;
|
|
2389
|
+
declare const bulkImportFile: BuildRESTFunction<typeof bulkImportFile$1>;
|
|
2390
|
+
declare const listFiles: BuildRESTFunction<typeof listFiles$1>;
|
|
2391
|
+
declare const searchFiles: BuildRESTFunction<typeof searchFiles$1>;
|
|
2392
|
+
declare const generateVideoStreamingUrl: BuildRESTFunction<typeof generateVideoStreamingUrl$1>;
|
|
2393
|
+
declare const bulkDeleteFiles: BuildRESTFunction<typeof bulkDeleteFiles$1>;
|
|
2394
|
+
declare const bulkRestoreFilesFromTrashBin: BuildRESTFunction<typeof bulkRestoreFilesFromTrashBin$1>;
|
|
2395
|
+
declare const listDeletedFiles: BuildRESTFunction<typeof listDeletedFiles$1>;
|
|
2396
|
+
declare const onFileDescriptorUpdated: BuildEventDefinition<typeof onFileDescriptorUpdated$1>;
|
|
2397
|
+
declare const onFileDescriptorDeleted: BuildEventDefinition<typeof onFileDescriptorDeleted$1>;
|
|
2398
|
+
declare const onFileDescriptorFileReady: BuildEventDefinition<typeof onFileDescriptorFileReady$1>;
|
|
2399
|
+
declare const onFileDescriptorFileFailed: BuildEventDefinition<typeof onFileDescriptorFileFailed$1>;
|
|
2486
2400
|
|
|
2487
2401
|
declare const context$1_bulkDeleteFiles: typeof bulkDeleteFiles;
|
|
2488
2402
|
declare const context$1_bulkImportFile: typeof bulkImportFile;
|
|
@@ -2811,49 +2725,6 @@ interface ListDeletedFoldersOptions {
|
|
|
2811
2725
|
paging?: CursorPaging;
|
|
2812
2726
|
}
|
|
2813
2727
|
|
|
2814
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2815
|
-
interface HttpClient {
|
|
2816
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
2817
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
2818
|
-
}
|
|
2819
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
2820
|
-
type HttpResponse<T = any> = {
|
|
2821
|
-
data: T;
|
|
2822
|
-
status: number;
|
|
2823
|
-
statusText: string;
|
|
2824
|
-
headers: any;
|
|
2825
|
-
request?: any;
|
|
2826
|
-
};
|
|
2827
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
2828
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
2829
|
-
url: string;
|
|
2830
|
-
data?: Data;
|
|
2831
|
-
params?: URLSearchParams;
|
|
2832
|
-
} & APIMetadata;
|
|
2833
|
-
type APIMetadata = {
|
|
2834
|
-
methodFqn?: string;
|
|
2835
|
-
entityFqdn?: string;
|
|
2836
|
-
packageName?: string;
|
|
2837
|
-
};
|
|
2838
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
2839
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
2840
|
-
__type: 'event-definition';
|
|
2841
|
-
type: Type;
|
|
2842
|
-
isDomainEvent?: boolean;
|
|
2843
|
-
transformations?: (envelope: unknown) => Payload;
|
|
2844
|
-
__payload: Payload;
|
|
2845
|
-
};
|
|
2846
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
2847
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
2848
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
2849
|
-
|
|
2850
|
-
declare global {
|
|
2851
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
2852
|
-
interface SymbolConstructor {
|
|
2853
|
-
readonly observable: symbol;
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
|
|
2857
2728
|
declare function createFolder$1(httpClient: HttpClient): (displayName: string, options?: CreateFolderOptions) => Promise<CreateFolderResponse & CreateFolderResponseNonNullableFields>;
|
|
2858
2729
|
declare function getFolder$1(httpClient: HttpClient): (folderId: string) => Promise<Folder & {
|
|
2859
2730
|
_id: string;
|
|
@@ -347,37 +347,37 @@ interface EnterpriseOnboardingOptions {
|
|
|
347
347
|
accountName?: string;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
interface HttpClient
|
|
351
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory
|
|
350
|
+
interface HttpClient {
|
|
351
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
352
352
|
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
353
353
|
}
|
|
354
|
-
type RequestOptionsFactory
|
|
355
|
-
type HttpResponse
|
|
354
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
355
|
+
type HttpResponse<T = any> = {
|
|
356
356
|
data: T;
|
|
357
357
|
status: number;
|
|
358
358
|
statusText: string;
|
|
359
359
|
headers: any;
|
|
360
360
|
request?: any;
|
|
361
361
|
};
|
|
362
|
-
type RequestOptions
|
|
362
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
363
363
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
364
364
|
url: string;
|
|
365
365
|
data?: Data;
|
|
366
366
|
params?: URLSearchParams;
|
|
367
|
-
} & APIMetadata
|
|
368
|
-
type APIMetadata
|
|
367
|
+
} & APIMetadata;
|
|
368
|
+
type APIMetadata = {
|
|
369
369
|
methodFqn?: string;
|
|
370
370
|
entityFqdn?: string;
|
|
371
371
|
packageName?: string;
|
|
372
372
|
};
|
|
373
|
-
type EventDefinition
|
|
373
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
374
374
|
__type: 'event-definition';
|
|
375
375
|
type: Type;
|
|
376
376
|
isDomainEvent?: boolean;
|
|
377
377
|
transformations?: (envelope: unknown) => Payload;
|
|
378
378
|
__payload: Payload;
|
|
379
379
|
};
|
|
380
|
-
declare function EventDefinition
|
|
380
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
381
381
|
|
|
382
382
|
declare global {
|
|
383
383
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -389,27 +389,27 @@ declare global {
|
|
|
389
389
|
declare const __metadata$3: {
|
|
390
390
|
PACKAGE_NAME: string;
|
|
391
391
|
};
|
|
392
|
-
declare function createCategory(httpClient: HttpClient
|
|
392
|
+
declare function createCategory(httpClient: HttpClient): (category: EnterpriseCategory) => Promise<EnterpriseCategory & {
|
|
393
393
|
_id: string;
|
|
394
394
|
publishStatus: PublishStatus$1;
|
|
395
395
|
}>;
|
|
396
|
-
declare function deleteCategory(httpClient: HttpClient
|
|
397
|
-
declare function updateCategory(httpClient: HttpClient
|
|
396
|
+
declare function deleteCategory(httpClient: HttpClient): (categoryId: string) => Promise<void>;
|
|
397
|
+
declare function updateCategory(httpClient: HttpClient): (_id: string, category: UpdateCategory) => Promise<EnterpriseCategory & {
|
|
398
398
|
_id: string;
|
|
399
399
|
publishStatus: PublishStatus$1;
|
|
400
400
|
}>;
|
|
401
|
-
declare function getCategory(httpClient: HttpClient
|
|
401
|
+
declare function getCategory(httpClient: HttpClient): (categoryId: string, options?: GetCategoryOptions) => Promise<EnterpriseCategoryTree & {
|
|
402
402
|
category?: {
|
|
403
403
|
_id: string;
|
|
404
404
|
publishStatus: PublishStatus$1;
|
|
405
405
|
} | undefined;
|
|
406
406
|
subCategories: (any | undefined)[];
|
|
407
407
|
}>;
|
|
408
|
-
declare function enterpriseOnboarding(httpClient: HttpClient
|
|
409
|
-
declare function getMediaManagerCategories(httpClient: HttpClient
|
|
410
|
-
declare const onEnterpriseCategoryCreated: EventDefinition
|
|
411
|
-
declare const onEnterpriseCategoryDeleted: EventDefinition
|
|
412
|
-
declare const onEnterpriseCategoryUpdated: EventDefinition
|
|
408
|
+
declare function enterpriseOnboarding(httpClient: HttpClient): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
|
|
409
|
+
declare function getMediaManagerCategories(httpClient: HttpClient): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
|
|
410
|
+
declare const onEnterpriseCategoryCreated: EventDefinition<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
|
|
411
|
+
declare const onEnterpriseCategoryDeleted: EventDefinition<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
|
|
412
|
+
declare const onEnterpriseCategoryUpdated: EventDefinition<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
|
|
413
413
|
|
|
414
414
|
type index_d$3_CreateCategoryRequest = CreateCategoryRequest;
|
|
415
415
|
type index_d$3_CreateCategoryResponse = CreateCategoryResponse;
|
|
@@ -1369,54 +1369,15 @@ interface OverwriteItemCategoriesOptions {
|
|
|
1369
1369
|
categoryIds?: string[];
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
|
-
interface HttpClient$2 {
|
|
1373
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
1374
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
1375
|
-
}
|
|
1376
|
-
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
1377
|
-
type HttpResponse$2<T = any> = {
|
|
1378
|
-
data: T;
|
|
1379
|
-
status: number;
|
|
1380
|
-
statusText: string;
|
|
1381
|
-
headers: any;
|
|
1382
|
-
request?: any;
|
|
1383
|
-
};
|
|
1384
|
-
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
1385
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1386
|
-
url: string;
|
|
1387
|
-
data?: Data;
|
|
1388
|
-
params?: URLSearchParams;
|
|
1389
|
-
} & APIMetadata$2;
|
|
1390
|
-
type APIMetadata$2 = {
|
|
1391
|
-
methodFqn?: string;
|
|
1392
|
-
entityFqdn?: string;
|
|
1393
|
-
packageName?: string;
|
|
1394
|
-
};
|
|
1395
|
-
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
1396
|
-
__type: 'event-definition';
|
|
1397
|
-
type: Type;
|
|
1398
|
-
isDomainEvent?: boolean;
|
|
1399
|
-
transformations?: (envelope: unknown) => Payload;
|
|
1400
|
-
__payload: Payload;
|
|
1401
|
-
};
|
|
1402
|
-
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
1403
|
-
|
|
1404
|
-
declare global {
|
|
1405
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1406
|
-
interface SymbolConstructor {
|
|
1407
|
-
readonly observable: symbol;
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
1372
|
declare const __metadata$2: {
|
|
1412
1373
|
PACKAGE_NAME: string;
|
|
1413
1374
|
};
|
|
1414
|
-
declare function itemUploadCallback(httpClient: HttpClient
|
|
1415
|
-
declare function generateFileUploadUrl$1(httpClient: HttpClient
|
|
1416
|
-
declare function importFile$1(httpClient: HttpClient
|
|
1417
|
-
declare function searchItems(httpClient: HttpClient
|
|
1418
|
-
declare function queryItems(httpClient: HttpClient
|
|
1419
|
-
declare function updateItem(httpClient: HttpClient
|
|
1375
|
+
declare function itemUploadCallback(httpClient: HttpClient): (options?: ItemUploadCallbackOptions) => Promise<void>;
|
|
1376
|
+
declare function generateFileUploadUrl$1(httpClient: HttpClient): (options?: GenerateFileUploadUrlOptions$1) => Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
|
|
1377
|
+
declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions$1) => Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
|
|
1378
|
+
declare function searchItems(httpClient: HttpClient): (options?: SearchItemsOptions) => Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
|
|
1379
|
+
declare function queryItems(httpClient: HttpClient): () => ItemsQueryBuilder;
|
|
1380
|
+
declare function updateItem(httpClient: HttpClient): (_id: string, item: UpdateItem) => Promise<EnterpriseMediaItem & {
|
|
1420
1381
|
_id: string;
|
|
1421
1382
|
mediaType: MediaType$1;
|
|
1422
1383
|
assets?: {
|
|
@@ -1437,8 +1398,8 @@ declare function updateItem(httpClient: HttpClient$2): (_id: string, item: Updat
|
|
|
1437
1398
|
} | undefined;
|
|
1438
1399
|
publishStatus: PublishStatus;
|
|
1439
1400
|
}>;
|
|
1440
|
-
declare function bulkUpdateItem(httpClient: HttpClient
|
|
1441
|
-
declare function getItem(httpClient: HttpClient
|
|
1401
|
+
declare function bulkUpdateItem(httpClient: HttpClient): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
|
|
1402
|
+
declare function getItem(httpClient: HttpClient): (itemId: string) => Promise<EnterpriseMediaItem & {
|
|
1442
1403
|
_id: string;
|
|
1443
1404
|
mediaType: MediaType$1;
|
|
1444
1405
|
assets?: {
|
|
@@ -1459,13 +1420,13 @@ declare function getItem(httpClient: HttpClient$2): (itemId: string) => Promise<
|
|
|
1459
1420
|
} | undefined;
|
|
1460
1421
|
publishStatus: PublishStatus;
|
|
1461
1422
|
}>;
|
|
1462
|
-
declare function linkItemToCategories(httpClient: HttpClient
|
|
1463
|
-
declare function unlinkItemFromCategories(httpClient: HttpClient
|
|
1464
|
-
declare function overwriteItemCategories(httpClient: HttpClient
|
|
1465
|
-
declare const onEnterpriseItemCreated: EventDefinition
|
|
1466
|
-
declare const onEnterpriseItemUpdated: EventDefinition
|
|
1467
|
-
declare const onEnterpriseItemItemCategoriesChanged: EventDefinition
|
|
1468
|
-
declare const onEnterpriseItemPublishStatusChanged: EventDefinition
|
|
1423
|
+
declare function linkItemToCategories(httpClient: HttpClient): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
|
|
1424
|
+
declare function unlinkItemFromCategories(httpClient: HttpClient): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
|
|
1425
|
+
declare function overwriteItemCategories(httpClient: HttpClient): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
|
|
1426
|
+
declare const onEnterpriseItemCreated: EventDefinition<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
|
|
1427
|
+
declare const onEnterpriseItemUpdated: EventDefinition<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
|
|
1428
|
+
declare const onEnterpriseItemItemCategoriesChanged: EventDefinition<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
|
|
1429
|
+
declare const onEnterpriseItemPublishStatusChanged: EventDefinition<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
|
|
1469
1430
|
|
|
1470
1431
|
type index_d$2_BulkItemUpdateResult = BulkItemUpdateResult;
|
|
1471
1432
|
type index_d$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
|
|
@@ -2010,6 +1971,7 @@ interface GenerateFileUploadUrlRequest {
|
|
|
2010
1971
|
sizeInBytes?: string | null;
|
|
2011
1972
|
/**
|
|
2012
1973
|
* ID of the file's parent folder. <br />
|
|
1974
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2013
1975
|
* Default: `media-root`.
|
|
2014
1976
|
*/
|
|
2015
1977
|
parentFolderId?: string | null;
|
|
@@ -2020,11 +1982,10 @@ interface GenerateFileUploadUrlRequest {
|
|
|
2020
1982
|
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
2021
1983
|
externalInfo?: ExternalInfo;
|
|
2022
1984
|
/**
|
|
2023
|
-
*
|
|
2024
|
-
*
|
|
2025
|
-
* If
|
|
2026
|
-
*
|
|
2027
|
-
* example: 'videos/2024/december'
|
|
1985
|
+
* Path to the folder where the file will be stored.
|
|
1986
|
+
* For example, `/videos/2024/december`. <br/>
|
|
1987
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
1988
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2028
1989
|
*/
|
|
2029
1990
|
filePath?: string | null;
|
|
2030
1991
|
}
|
|
@@ -2047,6 +2008,7 @@ interface GenerateFileResumableUploadUrlRequest {
|
|
|
2047
2008
|
sizeInBytes?: string | null;
|
|
2048
2009
|
/**
|
|
2049
2010
|
* ID of the file's parent folder. <br />
|
|
2011
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2050
2012
|
* Default: `media-root`.
|
|
2051
2013
|
*/
|
|
2052
2014
|
parentFolderId?: string | null;
|
|
@@ -2057,11 +2019,10 @@ interface GenerateFileResumableUploadUrlRequest {
|
|
|
2057
2019
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
2058
2020
|
uploadProtocol?: UploadProtocol;
|
|
2059
2021
|
/**
|
|
2060
|
-
*
|
|
2061
|
-
*
|
|
2062
|
-
* If
|
|
2063
|
-
*
|
|
2064
|
-
* example: 'videos/2024/december'
|
|
2022
|
+
* Path to the folder where the file will be stored.
|
|
2023
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2024
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2025
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2065
2026
|
*/
|
|
2066
2027
|
filePath?: string | null;
|
|
2067
2028
|
}
|
|
@@ -2090,6 +2051,7 @@ interface ImportFileRequest {
|
|
|
2090
2051
|
displayName?: string | null;
|
|
2091
2052
|
/**
|
|
2092
2053
|
* ID of the file's parent folder. <br />
|
|
2054
|
+
* This folder is the path root for the `filePath`. <br />
|
|
2093
2055
|
* Default: `media-root`.
|
|
2094
2056
|
*/
|
|
2095
2057
|
parentFolderId?: string | null;
|
|
@@ -2106,11 +2068,10 @@ interface ImportFileRequest {
|
|
|
2106
2068
|
/** Optional headers that should be sent with the external URL. */
|
|
2107
2069
|
urlHeaders?: Record<string, any> | null;
|
|
2108
2070
|
/**
|
|
2109
|
-
*
|
|
2110
|
-
*
|
|
2111
|
-
* If
|
|
2112
|
-
*
|
|
2113
|
-
* example: 'videos/2024/december'
|
|
2071
|
+
* Path to the folder where the file will be stored.
|
|
2072
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2073
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2074
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2114
2075
|
*/
|
|
2115
2076
|
filePath?: string | null;
|
|
2116
2077
|
}
|
|
@@ -2442,7 +2403,7 @@ interface DomainEventBodyOneOf$1 {
|
|
|
2442
2403
|
interface EntityCreatedEvent$1 {
|
|
2443
2404
|
entity?: string;
|
|
2444
2405
|
}
|
|
2445
|
-
interface
|
|
2406
|
+
interface RestoreInfo {
|
|
2446
2407
|
deletedDate?: Date;
|
|
2447
2408
|
}
|
|
2448
2409
|
interface EntityUpdatedEvent$1 {
|
|
@@ -3176,6 +3137,7 @@ interface GenerateFileUploadUrlOptions {
|
|
|
3176
3137
|
sizeInBytes?: string | null;
|
|
3177
3138
|
/**
|
|
3178
3139
|
* ID of the file's parent folder. <br />
|
|
3140
|
+
* This folder is the path root for the `filePath`.<br />
|
|
3179
3141
|
* Default: `media-root`.
|
|
3180
3142
|
*/
|
|
3181
3143
|
parentFolderId?: string | null;
|
|
@@ -3186,11 +3148,10 @@ interface GenerateFileUploadUrlOptions {
|
|
|
3186
3148
|
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
3187
3149
|
externalInfo?: ExternalInfo;
|
|
3188
3150
|
/**
|
|
3189
|
-
*
|
|
3190
|
-
*
|
|
3191
|
-
* If
|
|
3192
|
-
*
|
|
3193
|
-
* example: 'videos/2024/december'
|
|
3151
|
+
* Path to the folder where the file will be stored.
|
|
3152
|
+
* For example, `/videos/2024/december`. <br/>
|
|
3153
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
3154
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
3194
3155
|
*/
|
|
3195
3156
|
filePath?: string | null;
|
|
3196
3157
|
}
|
|
@@ -3207,6 +3168,7 @@ interface GenerateFileResumableUploadUrlOptions {
|
|
|
3207
3168
|
sizeInBytes?: string | null;
|
|
3208
3169
|
/**
|
|
3209
3170
|
* ID of the file's parent folder. <br />
|
|
3171
|
+
* This folder is the path root for the `filePath`.<br />
|
|
3210
3172
|
* Default: `media-root`.
|
|
3211
3173
|
*/
|
|
3212
3174
|
parentFolderId?: string | null;
|
|
@@ -3221,11 +3183,10 @@ interface GenerateFileResumableUploadUrlOptions {
|
|
|
3221
3183
|
*/
|
|
3222
3184
|
uploadProtocol?: UploadProtocol;
|
|
3223
3185
|
/**
|
|
3224
|
-
*
|
|
3225
|
-
*
|
|
3226
|
-
* If
|
|
3227
|
-
*
|
|
3228
|
-
* example: 'videos/2024/december'
|
|
3186
|
+
* Path to the folder where the file will be stored.
|
|
3187
|
+
* For example, `/videos/2024/december`. <br/>
|
|
3188
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
3189
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
3229
3190
|
*/
|
|
3230
3191
|
filePath?: string | null;
|
|
3231
3192
|
}
|
|
@@ -3236,6 +3197,7 @@ interface ImportFileOptions {
|
|
|
3236
3197
|
displayName?: string | null;
|
|
3237
3198
|
/**
|
|
3238
3199
|
* ID of the file's parent folder. <br />
|
|
3200
|
+
* This folder is the path root for the `filePath`. <br />
|
|
3239
3201
|
* Default: `media-root`.
|
|
3240
3202
|
*/
|
|
3241
3203
|
parentFolderId?: string | null;
|
|
@@ -3252,11 +3214,10 @@ interface ImportFileOptions {
|
|
|
3252
3214
|
/** Optional headers that should be sent with the external URL. */
|
|
3253
3215
|
urlHeaders?: Record<string, any> | null;
|
|
3254
3216
|
/**
|
|
3255
|
-
*
|
|
3256
|
-
*
|
|
3257
|
-
* If
|
|
3258
|
-
*
|
|
3259
|
-
* example: 'videos/2024/december'
|
|
3217
|
+
* Path to the folder where the file will be stored.
|
|
3218
|
+
* For example, `/videos/2024/december`. <br/>
|
|
3219
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
3220
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
3260
3221
|
*/
|
|
3261
3222
|
filePath?: string | null;
|
|
3262
3223
|
}
|
|
@@ -3360,51 +3321,12 @@ interface ListDeletedFilesOptions {
|
|
|
3360
3321
|
paging?: CursorPaging$1;
|
|
3361
3322
|
}
|
|
3362
3323
|
|
|
3363
|
-
interface HttpClient$1 {
|
|
3364
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
3365
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3366
|
-
}
|
|
3367
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
3368
|
-
type HttpResponse$1<T = any> = {
|
|
3369
|
-
data: T;
|
|
3370
|
-
status: number;
|
|
3371
|
-
statusText: string;
|
|
3372
|
-
headers: any;
|
|
3373
|
-
request?: any;
|
|
3374
|
-
};
|
|
3375
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
3376
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3377
|
-
url: string;
|
|
3378
|
-
data?: Data;
|
|
3379
|
-
params?: URLSearchParams;
|
|
3380
|
-
} & APIMetadata$1;
|
|
3381
|
-
type APIMetadata$1 = {
|
|
3382
|
-
methodFqn?: string;
|
|
3383
|
-
entityFqdn?: string;
|
|
3384
|
-
packageName?: string;
|
|
3385
|
-
};
|
|
3386
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
3387
|
-
__type: 'event-definition';
|
|
3388
|
-
type: Type;
|
|
3389
|
-
isDomainEvent?: boolean;
|
|
3390
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3391
|
-
__payload: Payload;
|
|
3392
|
-
};
|
|
3393
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
3394
|
-
|
|
3395
|
-
declare global {
|
|
3396
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3397
|
-
interface SymbolConstructor {
|
|
3398
|
-
readonly observable: symbol;
|
|
3399
|
-
}
|
|
3400
|
-
}
|
|
3401
|
-
|
|
3402
3324
|
declare const __metadata$1: {
|
|
3403
3325
|
PACKAGE_NAME: string;
|
|
3404
3326
|
};
|
|
3405
|
-
declare function generateFilesDownloadUrl(httpClient: HttpClient
|
|
3406
|
-
declare function generateFileDownloadUrl(httpClient: HttpClient
|
|
3407
|
-
declare function getFileDescriptor(httpClient: HttpClient
|
|
3327
|
+
declare function generateFilesDownloadUrl(httpClient: HttpClient): (fileIds: string[]) => Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
|
|
3328
|
+
declare function generateFileDownloadUrl(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
3329
|
+
declare function getFileDescriptor(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & {
|
|
3408
3330
|
_id: string;
|
|
3409
3331
|
displayName: string;
|
|
3410
3332
|
url: string;
|
|
@@ -3461,8 +3383,8 @@ declare function getFileDescriptor(httpClient: HttpClient$1): (fileId: string) =
|
|
|
3461
3383
|
siteId: string;
|
|
3462
3384
|
state: State$1;
|
|
3463
3385
|
}>;
|
|
3464
|
-
declare function getFileDescriptors(httpClient: HttpClient
|
|
3465
|
-
declare function updateFileDescriptor(httpClient: HttpClient
|
|
3386
|
+
declare function getFileDescriptors(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
3387
|
+
declare function updateFileDescriptor(httpClient: HttpClient): (file: FileDescriptor) => Promise<FileDescriptor & {
|
|
3466
3388
|
_id: string;
|
|
3467
3389
|
displayName: string;
|
|
3468
3390
|
url: string;
|
|
@@ -3519,21 +3441,21 @@ declare function updateFileDescriptor(httpClient: HttpClient$1): (file: FileDesc
|
|
|
3519
3441
|
siteId: string;
|
|
3520
3442
|
state: State$1;
|
|
3521
3443
|
}>;
|
|
3522
|
-
declare function generateFileUploadUrl(httpClient: HttpClient
|
|
3523
|
-
declare function generateFileResumableUploadUrl(httpClient: HttpClient
|
|
3524
|
-
declare function importFile(httpClient: HttpClient
|
|
3525
|
-
declare function bulkImportFiles(httpClient: HttpClient
|
|
3526
|
-
declare function bulkImportFile(httpClient: HttpClient
|
|
3527
|
-
declare function listFiles(httpClient: HttpClient
|
|
3528
|
-
declare function searchFiles(httpClient: HttpClient
|
|
3529
|
-
declare function generateVideoStreamingUrl(httpClient: HttpClient
|
|
3530
|
-
declare function bulkDeleteFiles(httpClient: HttpClient
|
|
3531
|
-
declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient
|
|
3532
|
-
declare function listDeletedFiles(httpClient: HttpClient
|
|
3533
|
-
declare const onFileDescriptorUpdated: EventDefinition
|
|
3534
|
-
declare const onFileDescriptorDeleted: EventDefinition
|
|
3535
|
-
declare const onFileDescriptorFileReady: EventDefinition
|
|
3536
|
-
declare const onFileDescriptorFileFailed: EventDefinition
|
|
3444
|
+
declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
3445
|
+
declare function generateFileResumableUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
3446
|
+
declare function importFile(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|
|
3447
|
+
declare function bulkImportFiles(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
|
|
3448
|
+
declare function bulkImportFile(httpClient: HttpClient): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
|
|
3449
|
+
declare function listFiles(httpClient: HttpClient): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
|
|
3450
|
+
declare function searchFiles(httpClient: HttpClient): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
|
|
3451
|
+
declare function generateVideoStreamingUrl(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
3452
|
+
declare function bulkDeleteFiles(httpClient: HttpClient): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
|
|
3453
|
+
declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
|
|
3454
|
+
declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
|
|
3455
|
+
declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
|
|
3456
|
+
declare const onFileDescriptorDeleted: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
|
|
3457
|
+
declare const onFileDescriptorFileReady: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
|
|
3458
|
+
declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
|
|
3537
3459
|
|
|
3538
3460
|
type index_d$1_ApplicationError = ApplicationError;
|
|
3539
3461
|
type index_d$1_Archive = Archive;
|
|
@@ -3619,13 +3541,13 @@ type index_d$1_Model3D = Model3D;
|
|
|
3619
3541
|
type index_d$1_OperationStatus = OperationStatus;
|
|
3620
3542
|
declare const index_d$1_OperationStatus: typeof OperationStatus;
|
|
3621
3543
|
type index_d$1_OtherMedia = OtherMedia;
|
|
3544
|
+
type index_d$1_RestoreInfo = RestoreInfo;
|
|
3622
3545
|
type index_d$1_SearchFilesOptions = SearchFilesOptions;
|
|
3623
3546
|
type index_d$1_SearchFilesRequest = SearchFilesRequest;
|
|
3624
3547
|
type index_d$1_SearchFilesResponse = SearchFilesResponse;
|
|
3625
3548
|
type index_d$1_SearchFilesResponseNonNullableFields = SearchFilesResponseNonNullableFields;
|
|
3626
3549
|
type index_d$1_StreamFormat = StreamFormat;
|
|
3627
3550
|
declare const index_d$1_StreamFormat: typeof StreamFormat;
|
|
3628
|
-
type index_d$1_UndeleteInfo = UndeleteInfo;
|
|
3629
3551
|
type index_d$1_UpdateFileDescriptorRequest = UpdateFileDescriptorRequest;
|
|
3630
3552
|
type index_d$1_UpdateFileDescriptorResponse = UpdateFileDescriptorResponse;
|
|
3631
3553
|
type index_d$1_UpdateFileDescriptorResponseNonNullableFields = UpdateFileDescriptorResponseNonNullableFields;
|
|
@@ -3655,7 +3577,7 @@ declare const index_d$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
|
|
|
3655
3577
|
declare const index_d$1_searchFiles: typeof searchFiles;
|
|
3656
3578
|
declare const index_d$1_updateFileDescriptor: typeof updateFileDescriptor;
|
|
3657
3579
|
declare namespace index_d$1 {
|
|
3658
|
-
export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$
|
|
3580
|
+
export { type ActionEvent$1 as ActionEvent, type index_d$1_ApplicationError as ApplicationError, type index_d$1_Archive as Archive, type index_d$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type index_d$1_BulkActionMetadata as BulkActionMetadata, type index_d$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type index_d$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type index_d$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type index_d$1_BulkImportFileOptions as BulkImportFileOptions, type index_d$1_BulkImportFileRequest as BulkImportFileRequest, type index_d$1_BulkImportFileResponse as BulkImportFileResponse, type index_d$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type index_d$1_BulkImportFileResult as BulkImportFileResult, type index_d$1_BulkImportFilesRequest as BulkImportFilesRequest, type index_d$1_BulkImportFilesResponse as BulkImportFilesResponse, type index_d$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type index_d$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type index_d$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type index_d$1_Color as Color, type index_d$1_ColorRGB as ColorRGB, type index_d$1_Colors as Colors, index_d$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type index_d$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type index_d$1_ExternalInfo as ExternalInfo, type index_d$1_FaceRecognition as FaceRecognition, type index_d$1_FileDescriptor as FileDescriptor, type index_d$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type index_d$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type index_d$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type index_d$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type index_d$1_FileFailed as FileFailed, type index_d$1_FileMedia as FileMedia, type index_d$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type index_d$1_FileReady as FileReady, type index_d$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type index_d$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type index_d$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type index_d$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type index_d$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type index_d$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type index_d$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type index_d$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type index_d$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type index_d$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type index_d$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type index_d$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type index_d$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type index_d$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type index_d$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type index_d$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type index_d$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type index_d$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type index_d$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type index_d$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type index_d$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type index_d$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type index_d$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type index_d$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type index_d$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type index_d$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type index_d$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type index_d$1_IdentityInfo as IdentityInfo, index_d$1_IdentityType as IdentityType, type index_d$1_ImageMedia as ImageMedia, type index_d$1_ImportFileOptions as ImportFileOptions, type index_d$1_ImportFileRequest as ImportFileRequest, type index_d$1_ImportFileResponse as ImportFileResponse, type index_d$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type index_d$1_ItemMetadata as ItemMetadata, type index_d$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type index_d$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type index_d$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type index_d$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type index_d$1_ListFilesOptions as ListFilesOptions, type index_d$1_ListFilesRequest as ListFilesRequest, type index_d$1_ListFilesResponse as ListFilesResponse, type index_d$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, index_d$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type index_d$1_Model3D as Model3D, Namespace$1 as Namespace, index_d$1_OperationStatus as OperationStatus, type index_d$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type index_d$1_RestoreInfo as RestoreInfo, RootFolder$1 as RootFolder, type index_d$1_SearchFilesOptions as SearchFilesOptions, type index_d$1_SearchFilesRequest as SearchFilesRequest, type index_d$1_SearchFilesResponse as SearchFilesResponse, type index_d$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, index_d$1_StreamFormat as StreamFormat, type index_d$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type index_d$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type index_d$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type index_d$1_UpdateFileRequest as UpdateFileRequest, type index_d$1_UpdateFileResponse as UpdateFileResponse, index_d$1_UploadProtocol as UploadProtocol, type index_d$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, __metadata$1 as __metadata, index_d$1_bulkDeleteFiles as bulkDeleteFiles, index_d$1_bulkImportFile as bulkImportFile, index_d$1_bulkImportFiles as bulkImportFiles, index_d$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, index_d$1_generateFileDownloadUrl as generateFileDownloadUrl, index_d$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, index_d$1_generateFileUploadUrl as generateFileUploadUrl, index_d$1_generateFilesDownloadUrl as generateFilesDownloadUrl, index_d$1_generateVideoStreamingUrl as generateVideoStreamingUrl, index_d$1_getFileDescriptor as getFileDescriptor, index_d$1_getFileDescriptors as getFileDescriptors, index_d$1_importFile as importFile, index_d$1_listDeletedFiles as listDeletedFiles, index_d$1_listFiles as listFiles, index_d$1_onFileDescriptorDeleted as onFileDescriptorDeleted, index_d$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, index_d$1_onFileDescriptorFileReady as onFileDescriptorFileReady, index_d$1_onFileDescriptorUpdated as onFileDescriptorUpdated, index_d$1_searchFiles as searchFiles, index_d$1_updateFileDescriptor as updateFileDescriptor };
|
|
3659
3581
|
}
|
|
3660
3582
|
|
|
3661
3583
|
interface Folder {
|
|
@@ -4175,45 +4097,6 @@ interface ListDeletedFoldersOptions {
|
|
|
4175
4097
|
paging?: CursorPaging;
|
|
4176
4098
|
}
|
|
4177
4099
|
|
|
4178
|
-
interface HttpClient {
|
|
4179
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4180
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4181
|
-
}
|
|
4182
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
4183
|
-
type HttpResponse<T = any> = {
|
|
4184
|
-
data: T;
|
|
4185
|
-
status: number;
|
|
4186
|
-
statusText: string;
|
|
4187
|
-
headers: any;
|
|
4188
|
-
request?: any;
|
|
4189
|
-
};
|
|
4190
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
4191
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4192
|
-
url: string;
|
|
4193
|
-
data?: Data;
|
|
4194
|
-
params?: URLSearchParams;
|
|
4195
|
-
} & APIMetadata;
|
|
4196
|
-
type APIMetadata = {
|
|
4197
|
-
methodFqn?: string;
|
|
4198
|
-
entityFqdn?: string;
|
|
4199
|
-
packageName?: string;
|
|
4200
|
-
};
|
|
4201
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
4202
|
-
__type: 'event-definition';
|
|
4203
|
-
type: Type;
|
|
4204
|
-
isDomainEvent?: boolean;
|
|
4205
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4206
|
-
__payload: Payload;
|
|
4207
|
-
};
|
|
4208
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
4209
|
-
|
|
4210
|
-
declare global {
|
|
4211
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4212
|
-
interface SymbolConstructor {
|
|
4213
|
-
readonly observable: symbol;
|
|
4214
|
-
}
|
|
4215
|
-
}
|
|
4216
|
-
|
|
4217
4100
|
declare const __metadata: {
|
|
4218
4101
|
PACKAGE_NAME: string;
|
|
4219
4102
|
};
|
|
@@ -2265,6 +2265,7 @@ interface GenerateFileUploadUrlRequest$1 {
|
|
|
2265
2265
|
sizeInBytes?: string | null;
|
|
2266
2266
|
/**
|
|
2267
2267
|
* ID of the file's parent folder. <br />
|
|
2268
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2268
2269
|
* Default: `media-root`.
|
|
2269
2270
|
*/
|
|
2270
2271
|
parentFolderId?: string | null;
|
|
@@ -2275,11 +2276,10 @@ interface GenerateFileUploadUrlRequest$1 {
|
|
|
2275
2276
|
/** A place to map an external entity to an uploaded file in the Wix Media Manager. */
|
|
2276
2277
|
externalInfo?: ExternalInfo$1;
|
|
2277
2278
|
/**
|
|
2278
|
-
*
|
|
2279
|
-
*
|
|
2280
|
-
* If
|
|
2281
|
-
*
|
|
2282
|
-
* example: 'videos/2024/december'
|
|
2279
|
+
* Path to the folder where the file will be stored.
|
|
2280
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2281
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2282
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2283
2283
|
*/
|
|
2284
2284
|
filePath?: string | null;
|
|
2285
2285
|
}
|
|
@@ -2302,6 +2302,7 @@ interface GenerateFileResumableUploadUrlRequest$1 {
|
|
|
2302
2302
|
sizeInBytes?: string | null;
|
|
2303
2303
|
/**
|
|
2304
2304
|
* ID of the file's parent folder. <br />
|
|
2305
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2305
2306
|
* Default: `media-root`.
|
|
2306
2307
|
*/
|
|
2307
2308
|
parentFolderId?: string | null;
|
|
@@ -2312,11 +2313,10 @@ interface GenerateFileResumableUploadUrlRequest$1 {
|
|
|
2312
2313
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
2313
2314
|
uploadProtocol?: UploadProtocol$1;
|
|
2314
2315
|
/**
|
|
2315
|
-
*
|
|
2316
|
-
*
|
|
2317
|
-
* If
|
|
2318
|
-
*
|
|
2319
|
-
* example: 'videos/2024/december'
|
|
2316
|
+
* Path to the folder where the file will be stored.
|
|
2317
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2318
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2319
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2320
2320
|
*/
|
|
2321
2321
|
filePath?: string | null;
|
|
2322
2322
|
}
|
|
@@ -2344,6 +2344,7 @@ interface ImportFileRequest$1 {
|
|
|
2344
2344
|
displayName?: string | null;
|
|
2345
2345
|
/**
|
|
2346
2346
|
* ID of the file's parent folder. <br />
|
|
2347
|
+
* This folder is the path root for the `filePath`. <br />
|
|
2347
2348
|
* Default: `media-root`.
|
|
2348
2349
|
*/
|
|
2349
2350
|
parentFolderId?: string | null;
|
|
@@ -2360,11 +2361,10 @@ interface ImportFileRequest$1 {
|
|
|
2360
2361
|
/** Optional headers that should be sent with the external URL. */
|
|
2361
2362
|
urlHeaders?: Record<string, any> | null;
|
|
2362
2363
|
/**
|
|
2363
|
-
*
|
|
2364
|
-
*
|
|
2365
|
-
* If
|
|
2366
|
-
*
|
|
2367
|
-
* example: 'videos/2024/december'
|
|
2364
|
+
* Path to the folder where the file will be stored.
|
|
2365
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2366
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2367
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2368
2368
|
*/
|
|
2369
2369
|
filePath?: string | null;
|
|
2370
2370
|
}
|
|
@@ -4117,6 +4117,7 @@ interface GenerateFileUploadUrlRequest {
|
|
|
4117
4117
|
sizeInBytes?: string | null;
|
|
4118
4118
|
/**
|
|
4119
4119
|
* ID of the file's parent folder. <br />
|
|
4120
|
+
* This folder is the path root for the `filePath`.<br />
|
|
4120
4121
|
* Default: `media-root`.
|
|
4121
4122
|
*/
|
|
4122
4123
|
parentFolderId?: string | null;
|
|
@@ -4127,11 +4128,10 @@ interface GenerateFileUploadUrlRequest {
|
|
|
4127
4128
|
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
4128
4129
|
externalInfo?: ExternalInfo;
|
|
4129
4130
|
/**
|
|
4130
|
-
*
|
|
4131
|
-
*
|
|
4132
|
-
* If
|
|
4133
|
-
*
|
|
4134
|
-
* example: 'videos/2024/december'
|
|
4131
|
+
* Path to the folder where the file will be stored.
|
|
4132
|
+
* For example, `/videos/2024/december`. <br/>
|
|
4133
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
4134
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
4135
4135
|
*/
|
|
4136
4136
|
filePath?: string | null;
|
|
4137
4137
|
}
|
|
@@ -4154,6 +4154,7 @@ interface GenerateFileResumableUploadUrlRequest {
|
|
|
4154
4154
|
sizeInBytes?: string | null;
|
|
4155
4155
|
/**
|
|
4156
4156
|
* ID of the file's parent folder. <br />
|
|
4157
|
+
* This folder is the path root for the `filePath`.<br />
|
|
4157
4158
|
* Default: `media-root`.
|
|
4158
4159
|
*/
|
|
4159
4160
|
parentFolderId?: string | null;
|
|
@@ -4164,11 +4165,10 @@ interface GenerateFileResumableUploadUrlRequest {
|
|
|
4164
4165
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
4165
4166
|
uploadProtocol?: UploadProtocol;
|
|
4166
4167
|
/**
|
|
4167
|
-
*
|
|
4168
|
-
*
|
|
4169
|
-
* If
|
|
4170
|
-
*
|
|
4171
|
-
* example: 'videos/2024/december'
|
|
4168
|
+
* Path to the folder where the file will be stored.
|
|
4169
|
+
* For example, `/videos/2024/december`. <br/>
|
|
4170
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
4171
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
4172
4172
|
*/
|
|
4173
4173
|
filePath?: string | null;
|
|
4174
4174
|
}
|
|
@@ -4197,6 +4197,7 @@ interface ImportFileRequest {
|
|
|
4197
4197
|
displayName?: string | null;
|
|
4198
4198
|
/**
|
|
4199
4199
|
* ID of the file's parent folder. <br />
|
|
4200
|
+
* This folder is the path root for the `filePath`. <br />
|
|
4200
4201
|
* Default: `media-root`.
|
|
4201
4202
|
*/
|
|
4202
4203
|
parentFolderId?: string | null;
|
|
@@ -4213,11 +4214,10 @@ interface ImportFileRequest {
|
|
|
4213
4214
|
/** Optional headers that should be sent with the external URL. */
|
|
4214
4215
|
urlHeaders?: Record<string, any> | null;
|
|
4215
4216
|
/**
|
|
4216
|
-
*
|
|
4217
|
-
*
|
|
4218
|
-
* If
|
|
4219
|
-
*
|
|
4220
|
-
* example: 'videos/2024/december'
|
|
4217
|
+
* Path to the folder where the file will be stored.
|
|
4218
|
+
* For example, `/videos/2024/december`. <br/>
|
|
4219
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
4220
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
4221
4221
|
*/
|
|
4222
4222
|
filePath?: string | null;
|
|
4223
4223
|
}
|