@wix/media 1.0.124 → 1.0.126
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 +5 -2
- package/type-bundles/context.bundle.d.ts +225 -93
- package/type-bundles/index.bundle.d.ts +225 -93
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
|
-
interface HttpClient {
|
|
3
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
1
|
+
type RESTFunctionDescriptor$3<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$3) => T;
|
|
2
|
+
interface HttpClient$3 {
|
|
3
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$3<TResponse, TData>): Promise<HttpResponse$3<TResponse>>;
|
|
4
4
|
fetchWithAuth: typeof fetch;
|
|
5
5
|
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
6
6
|
}
|
|
7
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
8
|
-
type HttpResponse<T = any> = {
|
|
7
|
+
type RequestOptionsFactory$3<TResponse = any, TData = any> = (context: any) => RequestOptions$3<TResponse, TData>;
|
|
8
|
+
type HttpResponse$3<T = any> = {
|
|
9
9
|
data: T;
|
|
10
10
|
status: number;
|
|
11
11
|
statusText: string;
|
|
12
12
|
headers: any;
|
|
13
13
|
request?: any;
|
|
14
14
|
};
|
|
15
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
15
|
+
type RequestOptions$3<_TResponse = any, Data = any> = {
|
|
16
16
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
17
17
|
url: string;
|
|
18
18
|
data?: Data;
|
|
19
19
|
params?: URLSearchParams;
|
|
20
|
-
} & APIMetadata;
|
|
21
|
-
type APIMetadata = {
|
|
20
|
+
} & APIMetadata$3;
|
|
21
|
+
type APIMetadata$3 = {
|
|
22
22
|
methodFqn?: string;
|
|
23
23
|
entityFqdn?: string;
|
|
24
24
|
packageName?: string;
|
|
25
25
|
};
|
|
26
|
-
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
27
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
26
|
+
type BuildRESTFunction$3<T extends RESTFunctionDescriptor$3> = T extends RESTFunctionDescriptor$3<infer U> ? U : never;
|
|
27
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
28
28
|
__type: 'event-definition';
|
|
29
29
|
type: Type;
|
|
30
30
|
isDomainEvent?: boolean;
|
|
31
31
|
transformations?: (envelope: unknown) => Payload;
|
|
32
32
|
__payload: Payload;
|
|
33
33
|
};
|
|
34
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
35
|
-
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
-
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
34
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
35
|
+
type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
|
|
36
|
+
type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
|
|
37
37
|
|
|
38
38
|
declare global {
|
|
39
39
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -380,7 +380,7 @@ interface EnterpriseOnboardingOptions {
|
|
|
380
380
|
accountName?: string;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
declare function createCategory$1(httpClient: HttpClient): CreateCategorySignature;
|
|
383
|
+
declare function createCategory$1(httpClient: HttpClient$3): CreateCategorySignature;
|
|
384
384
|
interface CreateCategorySignature {
|
|
385
385
|
/**
|
|
386
386
|
* Fetch a list of random media from different providers, using site information to customize results when available
|
|
@@ -389,7 +389,7 @@ interface CreateCategorySignature {
|
|
|
389
389
|
*/
|
|
390
390
|
(category: EnterpriseCategory): Promise<EnterpriseCategory & EnterpriseCategoryNonNullableFields>;
|
|
391
391
|
}
|
|
392
|
-
declare function deleteCategory$1(httpClient: HttpClient): DeleteCategorySignature;
|
|
392
|
+
declare function deleteCategory$1(httpClient: HttpClient$3): DeleteCategorySignature;
|
|
393
393
|
interface DeleteCategorySignature {
|
|
394
394
|
/**
|
|
395
395
|
* Delete a category including all its subcategories - but not the items
|
|
@@ -397,7 +397,7 @@ interface DeleteCategorySignature {
|
|
|
397
397
|
*/
|
|
398
398
|
(categoryId: string): Promise<void>;
|
|
399
399
|
}
|
|
400
|
-
declare function updateCategory$1(httpClient: HttpClient): UpdateCategorySignature;
|
|
400
|
+
declare function updateCategory$1(httpClient: HttpClient$3): UpdateCategorySignature;
|
|
401
401
|
interface UpdateCategorySignature {
|
|
402
402
|
/**
|
|
403
403
|
* Update category details
|
|
@@ -406,7 +406,7 @@ interface UpdateCategorySignature {
|
|
|
406
406
|
*/
|
|
407
407
|
(_id: string, category: UpdateCategory): Promise<EnterpriseCategory & EnterpriseCategoryNonNullableFields>;
|
|
408
408
|
}
|
|
409
|
-
declare function getCategory$1(httpClient: HttpClient): GetCategorySignature;
|
|
409
|
+
declare function getCategory$1(httpClient: HttpClient$3): GetCategorySignature;
|
|
410
410
|
interface GetCategorySignature {
|
|
411
411
|
/**
|
|
412
412
|
* Get information about a specific category
|
|
@@ -415,7 +415,7 @@ interface GetCategorySignature {
|
|
|
415
415
|
*/
|
|
416
416
|
(categoryId: string, options?: GetCategoryOptions | undefined): Promise<EnterpriseCategoryTree & EnterpriseCategoryTreeNonNullableFields>;
|
|
417
417
|
}
|
|
418
|
-
declare function enterpriseOnboarding$1(httpClient: HttpClient): EnterpriseOnboardingSignature;
|
|
418
|
+
declare function enterpriseOnboarding$1(httpClient: HttpClient$3): EnterpriseOnboardingSignature;
|
|
419
419
|
interface EnterpriseOnboardingSignature {
|
|
420
420
|
/**
|
|
421
421
|
* Create the enterprise category under "enterprise-media" main category
|
|
@@ -424,25 +424,25 @@ interface EnterpriseOnboardingSignature {
|
|
|
424
424
|
*/
|
|
425
425
|
(accountId: string, options?: EnterpriseOnboardingOptions | undefined): Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
|
|
426
426
|
}
|
|
427
|
-
declare function getMediaManagerCategories$1(httpClient: HttpClient): GetMediaManagerCategoriesSignature;
|
|
427
|
+
declare function getMediaManagerCategories$1(httpClient: HttpClient$3): GetMediaManagerCategoriesSignature;
|
|
428
428
|
interface GetMediaManagerCategoriesSignature {
|
|
429
429
|
/**
|
|
430
430
|
* Get the account category tree details
|
|
431
431
|
*/
|
|
432
432
|
(): Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
|
|
433
433
|
}
|
|
434
|
-
declare const onEnterpriseCategoryCreated$1: EventDefinition<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
|
|
435
|
-
declare const onEnterpriseCategoryDeleted$1: EventDefinition<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
|
|
436
|
-
declare const onEnterpriseCategoryUpdated$1: EventDefinition<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
|
|
434
|
+
declare const onEnterpriseCategoryCreated$1: EventDefinition$3<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
|
|
435
|
+
declare const onEnterpriseCategoryDeleted$1: EventDefinition$3<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
|
|
436
|
+
declare const onEnterpriseCategoryUpdated$1: EventDefinition$3<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
|
|
437
437
|
|
|
438
|
-
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
438
|
+
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
439
439
|
|
|
440
|
-
declare const createCategory: BuildRESTFunction<typeof createCategory$1> & typeof createCategory$1;
|
|
441
|
-
declare const deleteCategory: BuildRESTFunction<typeof deleteCategory$1> & typeof deleteCategory$1;
|
|
442
|
-
declare const updateCategory: BuildRESTFunction<typeof updateCategory$1> & typeof updateCategory$1;
|
|
443
|
-
declare const getCategory: BuildRESTFunction<typeof getCategory$1> & typeof getCategory$1;
|
|
444
|
-
declare const enterpriseOnboarding: BuildRESTFunction<typeof enterpriseOnboarding$1> & typeof enterpriseOnboarding$1;
|
|
445
|
-
declare const getMediaManagerCategories: BuildRESTFunction<typeof getMediaManagerCategories$1> & typeof getMediaManagerCategories$1;
|
|
440
|
+
declare const createCategory: BuildRESTFunction$3<typeof createCategory$1> & typeof createCategory$1;
|
|
441
|
+
declare const deleteCategory: BuildRESTFunction$3<typeof deleteCategory$1> & typeof deleteCategory$1;
|
|
442
|
+
declare const updateCategory: BuildRESTFunction$3<typeof updateCategory$1> & typeof updateCategory$1;
|
|
443
|
+
declare const getCategory: BuildRESTFunction$3<typeof getCategory$1> & typeof getCategory$1;
|
|
444
|
+
declare const enterpriseOnboarding: BuildRESTFunction$3<typeof enterpriseOnboarding$1> & typeof enterpriseOnboarding$1;
|
|
445
|
+
declare const getMediaManagerCategories: BuildRESTFunction$3<typeof getMediaManagerCategories$1> & typeof getMediaManagerCategories$1;
|
|
446
446
|
|
|
447
447
|
type _publicOnEnterpriseCategoryCreatedType = typeof onEnterpriseCategoryCreated$1;
|
|
448
448
|
/** */
|
|
@@ -503,6 +503,50 @@ declare namespace context$3 {
|
|
|
503
503
|
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type context$3_CreateCategoryRequest as CreateCategoryRequest, type context$3_CreateCategoryResponse as CreateCategoryResponse, type context$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type context$3_DeleteCategoryRequest as DeleteCategoryRequest, type context$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$3_EnterpriseCategory as EnterpriseCategory, type context$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type context$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type context$3_EnterpriseCategoryNonNullableFields as EnterpriseCategoryNonNullableFields, type context$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type context$3_EnterpriseCategoryTreeNonNullableFields as EnterpriseCategoryTreeNonNullableFields, type context$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type context$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type context$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type context$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type context$3_EnterpriseOnboardingResponseNonNullableFields as EnterpriseOnboardingResponseNonNullableFields, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type context$3_GetCategoryOptions as GetCategoryOptions, type context$3_GetCategoryRequest as GetCategoryRequest, type context$3_GetCategoryResponse as GetCategoryResponse, type context$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type context$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type context$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type context$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type context$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type context$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type context$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type context$3_UpdateCategory as UpdateCategory, type context$3_UpdateCategoryRequest as UpdateCategoryRequest, type context$3_UpdateCategoryResponse as UpdateCategoryResponse, type context$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, type context$3__publicOnEnterpriseCategoryCreatedType as _publicOnEnterpriseCategoryCreatedType, type context$3__publicOnEnterpriseCategoryDeletedType as _publicOnEnterpriseCategoryDeletedType, type context$3__publicOnEnterpriseCategoryUpdatedType as _publicOnEnterpriseCategoryUpdatedType, context$3_createCategory as createCategory, context$3_deleteCategory as deleteCategory, context$3_enterpriseOnboarding as enterpriseOnboarding, context$3_getCategory as getCategory, context$3_getMediaManagerCategories as getMediaManagerCategories, context$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, context$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, context$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, onEnterpriseCategoryCreated$1 as publicOnEnterpriseCategoryCreated, onEnterpriseCategoryDeleted$1 as publicOnEnterpriseCategoryDeleted, onEnterpriseCategoryUpdated$1 as publicOnEnterpriseCategoryUpdated, context$3_updateCategory as updateCategory };
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
|
|
507
|
+
interface HttpClient$2 {
|
|
508
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
|
|
509
|
+
fetchWithAuth: typeof fetch;
|
|
510
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
511
|
+
}
|
|
512
|
+
type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
|
|
513
|
+
type HttpResponse$2<T = any> = {
|
|
514
|
+
data: T;
|
|
515
|
+
status: number;
|
|
516
|
+
statusText: string;
|
|
517
|
+
headers: any;
|
|
518
|
+
request?: any;
|
|
519
|
+
};
|
|
520
|
+
type RequestOptions$2<_TResponse = any, Data = any> = {
|
|
521
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
522
|
+
url: string;
|
|
523
|
+
data?: Data;
|
|
524
|
+
params?: URLSearchParams;
|
|
525
|
+
} & APIMetadata$2;
|
|
526
|
+
type APIMetadata$2 = {
|
|
527
|
+
methodFqn?: string;
|
|
528
|
+
entityFqdn?: string;
|
|
529
|
+
packageName?: string;
|
|
530
|
+
};
|
|
531
|
+
type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
|
|
532
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
533
|
+
__type: 'event-definition';
|
|
534
|
+
type: Type;
|
|
535
|
+
isDomainEvent?: boolean;
|
|
536
|
+
transformations?: (envelope: unknown) => Payload;
|
|
537
|
+
__payload: Payload;
|
|
538
|
+
};
|
|
539
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
540
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
541
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
542
|
+
|
|
543
|
+
declare global {
|
|
544
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
545
|
+
interface SymbolConstructor {
|
|
546
|
+
readonly observable: symbol;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
506
550
|
/**
|
|
507
551
|
* Duration for video fits better if there will be type specific media item.. however, is it ok to implement
|
|
508
552
|
* an additional one of field called details?
|
|
@@ -1332,21 +1376,21 @@ interface OverwriteItemCategoriesOptions {
|
|
|
1332
1376
|
categoryIds?: string[];
|
|
1333
1377
|
}
|
|
1334
1378
|
|
|
1335
|
-
declare function itemUploadCallback$1(httpClient: HttpClient): ItemUploadCallbackSignature;
|
|
1379
|
+
declare function itemUploadCallback$1(httpClient: HttpClient$2): ItemUploadCallbackSignature;
|
|
1336
1380
|
interface ItemUploadCallbackSignature {
|
|
1337
1381
|
/**
|
|
1338
1382
|
* Internal API called by the public media backend, notify about a file that was created enterprise public media server
|
|
1339
1383
|
*/
|
|
1340
1384
|
(options?: ItemUploadCallbackOptions | undefined): Promise<ItemUploadCallbackResponse>;
|
|
1341
1385
|
}
|
|
1342
|
-
declare function generateFileUploadUrl$3(httpClient: HttpClient): GenerateFileUploadUrlSignature$1;
|
|
1386
|
+
declare function generateFileUploadUrl$3(httpClient: HttpClient$2): GenerateFileUploadUrlSignature$1;
|
|
1343
1387
|
interface GenerateFileUploadUrlSignature$1 {
|
|
1344
1388
|
/**
|
|
1345
1389
|
* Generate an upload url that will make public media to call the enterprise callback endpoint
|
|
1346
1390
|
*/
|
|
1347
1391
|
(options?: GenerateFileUploadUrlOptions$1 | undefined): Promise<GenerateFileUploadUrlResponse$1 & GenerateFileUploadUrlResponseNonNullableFields$1>;
|
|
1348
1392
|
}
|
|
1349
|
-
declare function importFile$3(httpClient: HttpClient): ImportFileSignature$1;
|
|
1393
|
+
declare function importFile$3(httpClient: HttpClient$2): ImportFileSignature$1;
|
|
1350
1394
|
interface ImportFileSignature$1 {
|
|
1351
1395
|
/**
|
|
1352
1396
|
* Import a file using a url
|
|
@@ -1354,7 +1398,7 @@ interface ImportFileSignature$1 {
|
|
|
1354
1398
|
*/
|
|
1355
1399
|
(url: string, options?: ImportFileOptions$1 | undefined): Promise<ImportFileResponse$1 & ImportFileResponseNonNullableFields$1>;
|
|
1356
1400
|
}
|
|
1357
|
-
declare function searchItems$1(httpClient: HttpClient): SearchItemsSignature;
|
|
1401
|
+
declare function searchItems$1(httpClient: HttpClient$2): SearchItemsSignature;
|
|
1358
1402
|
interface SearchItemsSignature {
|
|
1359
1403
|
/**
|
|
1360
1404
|
* Search items, all filters only support equality
|
|
@@ -1362,7 +1406,7 @@ interface SearchItemsSignature {
|
|
|
1362
1406
|
*/
|
|
1363
1407
|
(options?: SearchItemsOptions | undefined): Promise<SearchItemsResponse & SearchItemsResponseNonNullableFields>;
|
|
1364
1408
|
}
|
|
1365
|
-
declare function queryItems$1(httpClient: HttpClient): QueryItemsSignature;
|
|
1409
|
+
declare function queryItems$1(httpClient: HttpClient$2): QueryItemsSignature;
|
|
1366
1410
|
interface QueryItemsSignature {
|
|
1367
1411
|
/**
|
|
1368
1412
|
* Query items allowing to sort by specified fields, all filters only support equality
|
|
@@ -1370,7 +1414,7 @@ interface QueryItemsSignature {
|
|
|
1370
1414
|
*/
|
|
1371
1415
|
(): ItemsQueryBuilder;
|
|
1372
1416
|
}
|
|
1373
|
-
declare function updateItem$1(httpClient: HttpClient): UpdateItemSignature;
|
|
1417
|
+
declare function updateItem$1(httpClient: HttpClient$2): UpdateItemSignature;
|
|
1374
1418
|
interface UpdateItemSignature {
|
|
1375
1419
|
/**
|
|
1376
1420
|
* Update an item
|
|
@@ -1379,7 +1423,7 @@ interface UpdateItemSignature {
|
|
|
1379
1423
|
*/
|
|
1380
1424
|
(_id: string, item: UpdateItem): Promise<EnterpriseMediaItem & EnterpriseMediaItemNonNullableFields>;
|
|
1381
1425
|
}
|
|
1382
|
-
declare function bulkUpdateItem$1(httpClient: HttpClient): BulkUpdateItemSignature;
|
|
1426
|
+
declare function bulkUpdateItem$1(httpClient: HttpClient$2): BulkUpdateItemSignature;
|
|
1383
1427
|
interface BulkUpdateItemSignature {
|
|
1384
1428
|
/**
|
|
1385
1429
|
* Bulk update an item
|
|
@@ -1387,7 +1431,7 @@ interface BulkUpdateItemSignature {
|
|
|
1387
1431
|
*/
|
|
1388
1432
|
(updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions | undefined): Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
|
|
1389
1433
|
}
|
|
1390
|
-
declare function getItem$1(httpClient: HttpClient): GetItemSignature;
|
|
1434
|
+
declare function getItem$1(httpClient: HttpClient$2): GetItemSignature;
|
|
1391
1435
|
interface GetItemSignature {
|
|
1392
1436
|
/**
|
|
1393
1437
|
* Get item details
|
|
@@ -1396,7 +1440,7 @@ interface GetItemSignature {
|
|
|
1396
1440
|
*/
|
|
1397
1441
|
(itemId: string): Promise<EnterpriseMediaItem & EnterpriseMediaItemNonNullableFields>;
|
|
1398
1442
|
}
|
|
1399
|
-
declare function linkItemToCategories$1(httpClient: HttpClient): LinkItemToCategoriesSignature;
|
|
1443
|
+
declare function linkItemToCategories$1(httpClient: HttpClient$2): LinkItemToCategoriesSignature;
|
|
1400
1444
|
interface LinkItemToCategoriesSignature {
|
|
1401
1445
|
/**
|
|
1402
1446
|
* Link the item to multiple categories
|
|
@@ -1404,7 +1448,7 @@ interface LinkItemToCategoriesSignature {
|
|
|
1404
1448
|
*/
|
|
1405
1449
|
(itemId: string, options?: LinkItemToCategoriesOptions | undefined): Promise<LinkItemToCategoriesResponse>;
|
|
1406
1450
|
}
|
|
1407
|
-
declare function unlinkItemFromCategories$1(httpClient: HttpClient): UnlinkItemFromCategoriesSignature;
|
|
1451
|
+
declare function unlinkItemFromCategories$1(httpClient: HttpClient$2): UnlinkItemFromCategoriesSignature;
|
|
1408
1452
|
interface UnlinkItemFromCategoriesSignature {
|
|
1409
1453
|
/**
|
|
1410
1454
|
* Unlink the item from multiple categories
|
|
@@ -1412,7 +1456,7 @@ interface UnlinkItemFromCategoriesSignature {
|
|
|
1412
1456
|
*/
|
|
1413
1457
|
(itemId: string, options?: UnlinkItemFromCategoriesOptions | undefined): Promise<UnlinkItemFromCategoriesResponse>;
|
|
1414
1458
|
}
|
|
1415
|
-
declare function overwriteItemCategories$1(httpClient: HttpClient): OverwriteItemCategoriesSignature;
|
|
1459
|
+
declare function overwriteItemCategories$1(httpClient: HttpClient$2): OverwriteItemCategoriesSignature;
|
|
1416
1460
|
interface OverwriteItemCategoriesSignature {
|
|
1417
1461
|
/**
|
|
1418
1462
|
* Overwrite item categories
|
|
@@ -1420,24 +1464,24 @@ interface OverwriteItemCategoriesSignature {
|
|
|
1420
1464
|
*/
|
|
1421
1465
|
(itemId: string, options?: OverwriteItemCategoriesOptions | undefined): Promise<OverwriteItemCategoriesResponse>;
|
|
1422
1466
|
}
|
|
1423
|
-
declare const onEnterpriseItemCreated$1: EventDefinition<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
|
|
1424
|
-
declare const onEnterpriseItemUpdated$1: EventDefinition<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
|
|
1425
|
-
declare const onEnterpriseItemItemCategoriesChanged$1: EventDefinition<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
|
|
1426
|
-
declare const onEnterpriseItemPublishStatusChanged$1: EventDefinition<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
|
|
1467
|
+
declare const onEnterpriseItemCreated$1: EventDefinition$2<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
|
|
1468
|
+
declare const onEnterpriseItemUpdated$1: EventDefinition$2<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
|
|
1469
|
+
declare const onEnterpriseItemItemCategoriesChanged$1: EventDefinition$2<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
|
|
1470
|
+
declare const onEnterpriseItemPublishStatusChanged$1: EventDefinition$2<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
|
|
1427
1471
|
|
|
1428
|
-
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1472
|
+
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
1429
1473
|
|
|
1430
|
-
declare const itemUploadCallback: BuildRESTFunction<typeof itemUploadCallback$1> & typeof itemUploadCallback$1;
|
|
1431
|
-
declare const generateFileUploadUrl$2: BuildRESTFunction<typeof generateFileUploadUrl$3> & typeof generateFileUploadUrl$3;
|
|
1432
|
-
declare const importFile$2: BuildRESTFunction<typeof importFile$3> & typeof importFile$3;
|
|
1433
|
-
declare const searchItems: BuildRESTFunction<typeof searchItems$1> & typeof searchItems$1;
|
|
1434
|
-
declare const queryItems: BuildRESTFunction<typeof queryItems$1> & typeof queryItems$1;
|
|
1435
|
-
declare const updateItem: BuildRESTFunction<typeof updateItem$1> & typeof updateItem$1;
|
|
1436
|
-
declare const bulkUpdateItem: BuildRESTFunction<typeof bulkUpdateItem$1> & typeof bulkUpdateItem$1;
|
|
1437
|
-
declare const getItem: BuildRESTFunction<typeof getItem$1> & typeof getItem$1;
|
|
1438
|
-
declare const linkItemToCategories: BuildRESTFunction<typeof linkItemToCategories$1> & typeof linkItemToCategories$1;
|
|
1439
|
-
declare const unlinkItemFromCategories: BuildRESTFunction<typeof unlinkItemFromCategories$1> & typeof unlinkItemFromCategories$1;
|
|
1440
|
-
declare const overwriteItemCategories: BuildRESTFunction<typeof overwriteItemCategories$1> & typeof overwriteItemCategories$1;
|
|
1474
|
+
declare const itemUploadCallback: BuildRESTFunction$2<typeof itemUploadCallback$1> & typeof itemUploadCallback$1;
|
|
1475
|
+
declare const generateFileUploadUrl$2: BuildRESTFunction$2<typeof generateFileUploadUrl$3> & typeof generateFileUploadUrl$3;
|
|
1476
|
+
declare const importFile$2: BuildRESTFunction$2<typeof importFile$3> & typeof importFile$3;
|
|
1477
|
+
declare const searchItems: BuildRESTFunction$2<typeof searchItems$1> & typeof searchItems$1;
|
|
1478
|
+
declare const queryItems: BuildRESTFunction$2<typeof queryItems$1> & typeof queryItems$1;
|
|
1479
|
+
declare const updateItem: BuildRESTFunction$2<typeof updateItem$1> & typeof updateItem$1;
|
|
1480
|
+
declare const bulkUpdateItem: BuildRESTFunction$2<typeof bulkUpdateItem$1> & typeof bulkUpdateItem$1;
|
|
1481
|
+
declare const getItem: BuildRESTFunction$2<typeof getItem$1> & typeof getItem$1;
|
|
1482
|
+
declare const linkItemToCategories: BuildRESTFunction$2<typeof linkItemToCategories$1> & typeof linkItemToCategories$1;
|
|
1483
|
+
declare const unlinkItemFromCategories: BuildRESTFunction$2<typeof unlinkItemFromCategories$1> & typeof unlinkItemFromCategories$1;
|
|
1484
|
+
declare const overwriteItemCategories: BuildRESTFunction$2<typeof overwriteItemCategories$1> & typeof overwriteItemCategories$1;
|
|
1441
1485
|
|
|
1442
1486
|
type _publicOnEnterpriseItemCreatedType = typeof onEnterpriseItemCreated$1;
|
|
1443
1487
|
/**
|
|
@@ -1535,6 +1579,50 @@ declare namespace context$2 {
|
|
|
1535
1579
|
export { type ActionEvent$2 as ActionEvent, type ApplicationError$1 as ApplicationError, type Archive$1 as Archive, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type context$2_BulkItemUpdateResult as BulkItemUpdateResult, type context$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type context$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type context$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type context$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type context$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type context$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type context$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type context$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type context$2_EnterpriseMediaItem as EnterpriseMediaItem, type context$2_EnterpriseMediaItemNonNullableFields as EnterpriseMediaItemNonNullableFields, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type GenerateFileUploadUrlOptions$1 as GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest$1 as GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse$1 as GenerateFileUploadUrlResponse, type GenerateFileUploadUrlResponseNonNullableFields$1 as GenerateFileUploadUrlResponseNonNullableFields, type context$2_GetItemRequest as GetItemRequest, type context$2_GetItemResponse as GetItemResponse, type context$2_GetItemResponseNonNullableFields as GetItemResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ImportFileOptions$1 as ImportFileOptions, type ImportFileRequest$1 as ImportFileRequest, type ImportFileResponse$1 as ImportFileResponse, type ImportFileResponseNonNullableFields$1 as ImportFileResponseNonNullableFields, type context$2_ItemAssets as ItemAssets, type context$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type context$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type context$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type context$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type context$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type context$2_ItemsQueryBuilder as ItemsQueryBuilder, type context$2_ItemsQueryResult as ItemsQueryResult, type context$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type context$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type context$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type context$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type context$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type context$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type context$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, context$2_PublishStatus as PublishStatus, type context$2_PublishStatusChanged as PublishStatusChanged, type context$2_QueryItemsRequest as QueryItemsRequest, type context$2_QueryItemsResponse as QueryItemsResponse, type context$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type context$2_QueryV2 as QueryV2, type context$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type RestoreInfo$2 as RestoreInfo, type context$2_Search as Search, type context$2_SearchDetails as SearchDetails, type context$2_SearchItemsOptions as SearchItemsOptions, type context$2_SearchItemsRequest as SearchItemsRequest, type context$2_SearchItemsResponse as SearchItemsResponse, type context$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type context$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type context$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type context$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type context$2_UpdateItem as UpdateItem, type context$2_UpdateItemRequest as UpdateItemRequest, type context$2_UpdateItemResponse as UpdateItemResponse, type context$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, type context$2__publicOnEnterpriseItemCreatedType as _publicOnEnterpriseItemCreatedType, type context$2__publicOnEnterpriseItemItemCategoriesChangedType as _publicOnEnterpriseItemItemCategoriesChangedType, type context$2__publicOnEnterpriseItemPublishStatusChangedType as _publicOnEnterpriseItemPublishStatusChangedType, type context$2__publicOnEnterpriseItemUpdatedType as _publicOnEnterpriseItemUpdatedType, context$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$2 as generateFileUploadUrl, context$2_getItem as getItem, importFile$2 as importFile, context$2_itemUploadCallback as itemUploadCallback, context$2_linkItemToCategories as linkItemToCategories, context$2_onEnterpriseItemCreated as onEnterpriseItemCreated, context$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, context$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, context$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, context$2_overwriteItemCategories as overwriteItemCategories, onEnterpriseItemCreated$1 as publicOnEnterpriseItemCreated, onEnterpriseItemItemCategoriesChanged$1 as publicOnEnterpriseItemItemCategoriesChanged, onEnterpriseItemPublishStatusChanged$1 as publicOnEnterpriseItemPublishStatusChanged, onEnterpriseItemUpdated$1 as publicOnEnterpriseItemUpdated, context$2_queryItems as queryItems, context$2_searchItems as searchItems, context$2_unlinkItemFromCategories as unlinkItemFromCategories, context$2_updateItem as updateItem };
|
|
1536
1580
|
}
|
|
1537
1581
|
|
|
1582
|
+
type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
|
|
1583
|
+
interface HttpClient$1 {
|
|
1584
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
1585
|
+
fetchWithAuth: typeof fetch;
|
|
1586
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
1587
|
+
}
|
|
1588
|
+
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
1589
|
+
type HttpResponse$1<T = any> = {
|
|
1590
|
+
data: T;
|
|
1591
|
+
status: number;
|
|
1592
|
+
statusText: string;
|
|
1593
|
+
headers: any;
|
|
1594
|
+
request?: any;
|
|
1595
|
+
};
|
|
1596
|
+
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
1597
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
1598
|
+
url: string;
|
|
1599
|
+
data?: Data;
|
|
1600
|
+
params?: URLSearchParams;
|
|
1601
|
+
} & APIMetadata$1;
|
|
1602
|
+
type APIMetadata$1 = {
|
|
1603
|
+
methodFqn?: string;
|
|
1604
|
+
entityFqdn?: string;
|
|
1605
|
+
packageName?: string;
|
|
1606
|
+
};
|
|
1607
|
+
type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
|
|
1608
|
+
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
1609
|
+
__type: 'event-definition';
|
|
1610
|
+
type: Type;
|
|
1611
|
+
isDomainEvent?: boolean;
|
|
1612
|
+
transformations?: (envelope: unknown) => Payload;
|
|
1613
|
+
__payload: Payload;
|
|
1614
|
+
};
|
|
1615
|
+
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
1616
|
+
type EventHandler$1<T extends EventDefinition$1> = (payload: T['__payload']) => void | Promise<void>;
|
|
1617
|
+
type BuildEventDefinition$1<T extends EventDefinition$1<any, string>> = (handler: EventHandler$1<T>) => void;
|
|
1618
|
+
|
|
1619
|
+
declare global {
|
|
1620
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
1621
|
+
interface SymbolConstructor {
|
|
1622
|
+
readonly observable: symbol;
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1538
1626
|
interface FileDescriptor {
|
|
1539
1627
|
/**
|
|
1540
1628
|
* File ID. Generated when a file is uploaded to the Media Manager.
|
|
@@ -2942,7 +3030,7 @@ interface ListDeletedFilesOptions {
|
|
|
2942
3030
|
paging?: CursorPaging$1;
|
|
2943
3031
|
}
|
|
2944
3032
|
|
|
2945
|
-
declare function generateFilesDownloadUrl$1(httpClient: HttpClient): GenerateFilesDownloadUrlSignature;
|
|
3033
|
+
declare function generateFilesDownloadUrl$1(httpClient: HttpClient$1): GenerateFilesDownloadUrlSignature;
|
|
2946
3034
|
interface GenerateFilesDownloadUrlSignature {
|
|
2947
3035
|
/**
|
|
2948
3036
|
* Generates a URL for downloading a compressed file containing specific files in the Media Manager.
|
|
@@ -2961,7 +3049,7 @@ interface GenerateFilesDownloadUrlSignature {
|
|
|
2961
3049
|
*/
|
|
2962
3050
|
(fileIds: string[]): Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
|
|
2963
3051
|
}
|
|
2964
|
-
declare function generateFileDownloadUrl$1(httpClient: HttpClient): GenerateFileDownloadUrlSignature;
|
|
3052
|
+
declare function generateFileDownloadUrl$1(httpClient: HttpClient$1): GenerateFileDownloadUrlSignature;
|
|
2965
3053
|
interface GenerateFileDownloadUrlSignature {
|
|
2966
3054
|
/**
|
|
2967
3055
|
* Generates one or more temporary URLs for downloading a specific file in the Media Manager.
|
|
@@ -2983,7 +3071,7 @@ interface GenerateFileDownloadUrlSignature {
|
|
|
2983
3071
|
*/
|
|
2984
3072
|
(fileId: string, options?: GenerateFileDownloadUrlOptions | undefined): Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
2985
3073
|
}
|
|
2986
|
-
declare function getFileDescriptor$1(httpClient: HttpClient): GetFileDescriptorSignature;
|
|
3074
|
+
declare function getFileDescriptor$1(httpClient: HttpClient$1): GetFileDescriptorSignature;
|
|
2987
3075
|
interface GetFileDescriptorSignature {
|
|
2988
3076
|
/**
|
|
2989
3077
|
* Gets information about the specified file in the Media Manager.
|
|
@@ -3000,7 +3088,7 @@ interface GetFileDescriptorSignature {
|
|
|
3000
3088
|
*/
|
|
3001
3089
|
(fileId: string): Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
3002
3090
|
}
|
|
3003
|
-
declare function getFileDescriptors$1(httpClient: HttpClient): GetFileDescriptorsSignature;
|
|
3091
|
+
declare function getFileDescriptors$1(httpClient: HttpClient$1): GetFileDescriptorsSignature;
|
|
3004
3092
|
interface GetFileDescriptorsSignature {
|
|
3005
3093
|
/**
|
|
3006
3094
|
* Gets information about the specified files in the Media Manager.
|
|
@@ -3016,7 +3104,7 @@ interface GetFileDescriptorsSignature {
|
|
|
3016
3104
|
*/
|
|
3017
3105
|
(fileIds: string[]): Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
3018
3106
|
}
|
|
3019
|
-
declare function updateFileDescriptor$1(httpClient: HttpClient): UpdateFileDescriptorSignature;
|
|
3107
|
+
declare function updateFileDescriptor$1(httpClient: HttpClient$1): UpdateFileDescriptorSignature;
|
|
3020
3108
|
interface UpdateFileDescriptorSignature {
|
|
3021
3109
|
/**
|
|
3022
3110
|
* Updates a file.
|
|
@@ -3030,7 +3118,7 @@ interface UpdateFileDescriptorSignature {
|
|
|
3030
3118
|
*/
|
|
3031
3119
|
(file: FileDescriptor): Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
3032
3120
|
}
|
|
3033
|
-
declare function generateFileUploadUrl$1(httpClient: HttpClient): GenerateFileUploadUrlSignature;
|
|
3121
|
+
declare function generateFileUploadUrl$1(httpClient: HttpClient$1): GenerateFileUploadUrlSignature;
|
|
3034
3122
|
interface GenerateFileUploadUrlSignature {
|
|
3035
3123
|
/**
|
|
3036
3124
|
* Generates an upload URL to allow external clients to upload a file to the Media Manager.
|
|
@@ -3047,7 +3135,7 @@ interface GenerateFileUploadUrlSignature {
|
|
|
3047
3135
|
*/
|
|
3048
3136
|
(mimeType: string | null, options?: GenerateFileUploadUrlOptions | undefined): Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
3049
3137
|
}
|
|
3050
|
-
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient): GenerateFileResumableUploadUrlSignature;
|
|
3138
|
+
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient$1): GenerateFileResumableUploadUrlSignature;
|
|
3051
3139
|
interface GenerateFileResumableUploadUrlSignature {
|
|
3052
3140
|
/**
|
|
3053
3141
|
* Generates a resumable upload URL to allow external clients to upload large files over 10MB to the Media Manager.
|
|
@@ -3064,7 +3152,7 @@ interface GenerateFileResumableUploadUrlSignature {
|
|
|
3064
3152
|
*/
|
|
3065
3153
|
(mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions | undefined): Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
3066
3154
|
}
|
|
3067
|
-
declare function importFile$1(httpClient: HttpClient): ImportFileSignature;
|
|
3155
|
+
declare function importFile$1(httpClient: HttpClient$1): ImportFileSignature;
|
|
3068
3156
|
interface ImportFileSignature {
|
|
3069
3157
|
/**
|
|
3070
3158
|
* Imports a file to the Media Manager using an external URL.
|
|
@@ -3087,7 +3175,7 @@ interface ImportFileSignature {
|
|
|
3087
3175
|
*/
|
|
3088
3176
|
(url: string, options?: ImportFileOptions | undefined): Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|
|
3089
3177
|
}
|
|
3090
|
-
declare function bulkImportFiles$1(httpClient: HttpClient): BulkImportFilesSignature;
|
|
3178
|
+
declare function bulkImportFiles$1(httpClient: HttpClient$1): BulkImportFilesSignature;
|
|
3091
3179
|
interface BulkImportFilesSignature {
|
|
3092
3180
|
/**
|
|
3093
3181
|
* > **Deprecated.**
|
|
@@ -3114,7 +3202,7 @@ interface BulkImportFilesSignature {
|
|
|
3114
3202
|
*/
|
|
3115
3203
|
(importFileRequests: ImportFileRequest[]): Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
|
|
3116
3204
|
}
|
|
3117
|
-
declare function bulkImportFile$1(httpClient: HttpClient): BulkImportFileSignature;
|
|
3205
|
+
declare function bulkImportFile$1(httpClient: HttpClient$1): BulkImportFileSignature;
|
|
3118
3206
|
interface BulkImportFileSignature {
|
|
3119
3207
|
/**
|
|
3120
3208
|
* Imports a bulk of files to the Media Manager using external urls.
|
|
@@ -3136,7 +3224,7 @@ interface BulkImportFileSignature {
|
|
|
3136
3224
|
*/
|
|
3137
3225
|
(importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions | undefined): Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
|
|
3138
3226
|
}
|
|
3139
|
-
declare function listFiles$1(httpClient: HttpClient): ListFilesSignature;
|
|
3227
|
+
declare function listFiles$1(httpClient: HttpClient$1): ListFilesSignature;
|
|
3140
3228
|
interface ListFilesSignature {
|
|
3141
3229
|
/**
|
|
3142
3230
|
* Retrieves a list of files in the Media Manager.
|
|
@@ -3150,7 +3238,7 @@ interface ListFilesSignature {
|
|
|
3150
3238
|
*/
|
|
3151
3239
|
(options?: ListFilesOptions | undefined): Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
|
|
3152
3240
|
}
|
|
3153
|
-
declare function searchFiles$1(httpClient: HttpClient): SearchFilesSignature;
|
|
3241
|
+
declare function searchFiles$1(httpClient: HttpClient$1): SearchFilesSignature;
|
|
3154
3242
|
interface SearchFilesSignature {
|
|
3155
3243
|
/**
|
|
3156
3244
|
* Searches all folders in the Media Manager and returns a list of files that match the terms specified in the optional parameters.
|
|
@@ -3162,7 +3250,7 @@ interface SearchFilesSignature {
|
|
|
3162
3250
|
*/
|
|
3163
3251
|
(options?: SearchFilesOptions | undefined): Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
|
|
3164
3252
|
}
|
|
3165
|
-
declare function generateVideoStreamingUrl$1(httpClient: HttpClient): GenerateVideoStreamingUrlSignature;
|
|
3253
|
+
declare function generateVideoStreamingUrl$1(httpClient: HttpClient$1): GenerateVideoStreamingUrlSignature;
|
|
3166
3254
|
interface GenerateVideoStreamingUrlSignature {
|
|
3167
3255
|
/**
|
|
3168
3256
|
* Generates a URL for streaming a specific video file in the Media Manager.
|
|
@@ -3179,7 +3267,7 @@ interface GenerateVideoStreamingUrlSignature {
|
|
|
3179
3267
|
*/
|
|
3180
3268
|
(fileId: string, options?: GenerateVideoStreamingUrlOptions | undefined): Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
3181
3269
|
}
|
|
3182
|
-
declare function bulkDeleteFiles$1(httpClient: HttpClient): BulkDeleteFilesSignature;
|
|
3270
|
+
declare function bulkDeleteFiles$1(httpClient: HttpClient$1): BulkDeleteFilesSignature;
|
|
3183
3271
|
interface BulkDeleteFilesSignature {
|
|
3184
3272
|
/**
|
|
3185
3273
|
* Deletes the specified files from the Media Manager.
|
|
@@ -3203,7 +3291,7 @@ interface BulkDeleteFilesSignature {
|
|
|
3203
3291
|
*/
|
|
3204
3292
|
(fileIds: string[], options?: BulkDeleteFilesOptions | undefined): Promise<void>;
|
|
3205
3293
|
}
|
|
3206
|
-
declare function bulkRestoreFilesFromTrashBin$1(httpClient: HttpClient): BulkRestoreFilesFromTrashBinSignature;
|
|
3294
|
+
declare function bulkRestoreFilesFromTrashBin$1(httpClient: HttpClient$1): BulkRestoreFilesFromTrashBinSignature;
|
|
3207
3295
|
interface BulkRestoreFilesFromTrashBinSignature {
|
|
3208
3296
|
/**
|
|
3209
3297
|
* Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
|
|
@@ -3216,7 +3304,7 @@ interface BulkRestoreFilesFromTrashBinSignature {
|
|
|
3216
3304
|
*/
|
|
3217
3305
|
(fileIds: string[]): Promise<void>;
|
|
3218
3306
|
}
|
|
3219
|
-
declare function listDeletedFiles$1(httpClient: HttpClient): ListDeletedFilesSignature;
|
|
3307
|
+
declare function listDeletedFiles$1(httpClient: HttpClient$1): ListDeletedFilesSignature;
|
|
3220
3308
|
interface ListDeletedFilesSignature {
|
|
3221
3309
|
/**
|
|
3222
3310
|
* Retrieves a list of files in the Media Manager's trash bin.
|
|
@@ -3230,29 +3318,29 @@ interface ListDeletedFilesSignature {
|
|
|
3230
3318
|
*/
|
|
3231
3319
|
(options?: ListDeletedFilesOptions | undefined): Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
|
|
3232
3320
|
}
|
|
3233
|
-
declare const onFileDescriptorUpdated$1: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
|
|
3234
|
-
declare const onFileDescriptorDeleted$1: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
|
|
3235
|
-
declare const onFileDescriptorFileReady$1: EventDefinition<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
|
|
3236
|
-
declare const onFileDescriptorFileFailed$1: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
|
|
3321
|
+
declare const onFileDescriptorUpdated$1: EventDefinition$1<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
|
|
3322
|
+
declare const onFileDescriptorDeleted$1: EventDefinition$1<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
|
|
3323
|
+
declare const onFileDescriptorFileReady$1: EventDefinition$1<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
|
|
3324
|
+
declare const onFileDescriptorFileFailed$1: EventDefinition$1<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
|
|
3237
3325
|
|
|
3238
|
-
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3326
|
+
declare function createEventModule$1<T extends EventDefinition$1<any, string>>(eventDefinition: T): BuildEventDefinition$1<T> & T;
|
|
3239
3327
|
|
|
3240
|
-
declare const generateFilesDownloadUrl: BuildRESTFunction<typeof generateFilesDownloadUrl$1> & typeof generateFilesDownloadUrl$1;
|
|
3241
|
-
declare const generateFileDownloadUrl: BuildRESTFunction<typeof generateFileDownloadUrl$1> & typeof generateFileDownloadUrl$1;
|
|
3242
|
-
declare const getFileDescriptor: BuildRESTFunction<typeof getFileDescriptor$1> & typeof getFileDescriptor$1;
|
|
3243
|
-
declare const getFileDescriptors: BuildRESTFunction<typeof getFileDescriptors$1> & typeof getFileDescriptors$1;
|
|
3244
|
-
declare const updateFileDescriptor: BuildRESTFunction<typeof updateFileDescriptor$1> & typeof updateFileDescriptor$1;
|
|
3245
|
-
declare const generateFileUploadUrl: BuildRESTFunction<typeof generateFileUploadUrl$1> & typeof generateFileUploadUrl$1;
|
|
3246
|
-
declare const generateFileResumableUploadUrl: BuildRESTFunction<typeof generateFileResumableUploadUrl$1> & typeof generateFileResumableUploadUrl$1;
|
|
3247
|
-
declare const importFile: BuildRESTFunction<typeof importFile$1> & typeof importFile$1;
|
|
3248
|
-
declare const bulkImportFiles: BuildRESTFunction<typeof bulkImportFiles$1> & typeof bulkImportFiles$1;
|
|
3249
|
-
declare const bulkImportFile: BuildRESTFunction<typeof bulkImportFile$1> & typeof bulkImportFile$1;
|
|
3250
|
-
declare const listFiles: BuildRESTFunction<typeof listFiles$1> & typeof listFiles$1;
|
|
3251
|
-
declare const searchFiles: BuildRESTFunction<typeof searchFiles$1> & typeof searchFiles$1;
|
|
3252
|
-
declare const generateVideoStreamingUrl: BuildRESTFunction<typeof generateVideoStreamingUrl$1> & typeof generateVideoStreamingUrl$1;
|
|
3253
|
-
declare const bulkDeleteFiles: BuildRESTFunction<typeof bulkDeleteFiles$1> & typeof bulkDeleteFiles$1;
|
|
3254
|
-
declare const bulkRestoreFilesFromTrashBin: BuildRESTFunction<typeof bulkRestoreFilesFromTrashBin$1> & typeof bulkRestoreFilesFromTrashBin$1;
|
|
3255
|
-
declare const listDeletedFiles: BuildRESTFunction<typeof listDeletedFiles$1> & typeof listDeletedFiles$1;
|
|
3328
|
+
declare const generateFilesDownloadUrl: BuildRESTFunction$1<typeof generateFilesDownloadUrl$1> & typeof generateFilesDownloadUrl$1;
|
|
3329
|
+
declare const generateFileDownloadUrl: BuildRESTFunction$1<typeof generateFileDownloadUrl$1> & typeof generateFileDownloadUrl$1;
|
|
3330
|
+
declare const getFileDescriptor: BuildRESTFunction$1<typeof getFileDescriptor$1> & typeof getFileDescriptor$1;
|
|
3331
|
+
declare const getFileDescriptors: BuildRESTFunction$1<typeof getFileDescriptors$1> & typeof getFileDescriptors$1;
|
|
3332
|
+
declare const updateFileDescriptor: BuildRESTFunction$1<typeof updateFileDescriptor$1> & typeof updateFileDescriptor$1;
|
|
3333
|
+
declare const generateFileUploadUrl: BuildRESTFunction$1<typeof generateFileUploadUrl$1> & typeof generateFileUploadUrl$1;
|
|
3334
|
+
declare const generateFileResumableUploadUrl: BuildRESTFunction$1<typeof generateFileResumableUploadUrl$1> & typeof generateFileResumableUploadUrl$1;
|
|
3335
|
+
declare const importFile: BuildRESTFunction$1<typeof importFile$1> & typeof importFile$1;
|
|
3336
|
+
declare const bulkImportFiles: BuildRESTFunction$1<typeof bulkImportFiles$1> & typeof bulkImportFiles$1;
|
|
3337
|
+
declare const bulkImportFile: BuildRESTFunction$1<typeof bulkImportFile$1> & typeof bulkImportFile$1;
|
|
3338
|
+
declare const listFiles: BuildRESTFunction$1<typeof listFiles$1> & typeof listFiles$1;
|
|
3339
|
+
declare const searchFiles: BuildRESTFunction$1<typeof searchFiles$1> & typeof searchFiles$1;
|
|
3340
|
+
declare const generateVideoStreamingUrl: BuildRESTFunction$1<typeof generateVideoStreamingUrl$1> & typeof generateVideoStreamingUrl$1;
|
|
3341
|
+
declare const bulkDeleteFiles: BuildRESTFunction$1<typeof bulkDeleteFiles$1> & typeof bulkDeleteFiles$1;
|
|
3342
|
+
declare const bulkRestoreFilesFromTrashBin: BuildRESTFunction$1<typeof bulkRestoreFilesFromTrashBin$1> & typeof bulkRestoreFilesFromTrashBin$1;
|
|
3343
|
+
declare const listDeletedFiles: BuildRESTFunction$1<typeof listDeletedFiles$1> & typeof listDeletedFiles$1;
|
|
3256
3344
|
|
|
3257
3345
|
type _publicOnFileDescriptorUpdatedType = typeof onFileDescriptorUpdated$1;
|
|
3258
3346
|
/** */
|
|
@@ -3401,6 +3489,50 @@ declare namespace context$1 {
|
|
|
3401
3489
|
export { type ActionEvent$1 as ActionEvent, type context$1_ApplicationError as ApplicationError, type context$1_Archive as Archive, type context$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BulkActionMetadata as BulkActionMetadata, type context$1_BulkAnnotateImagesRequest as BulkAnnotateImagesRequest, type context$1_BulkAnnotateImagesResponse as BulkAnnotateImagesResponse, type context$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type context$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type context$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type context$1_BulkImportFileOptions as BulkImportFileOptions, type context$1_BulkImportFileRequest as BulkImportFileRequest, type context$1_BulkImportFileResponse as BulkImportFileResponse, type context$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type context$1_BulkImportFileResult as BulkImportFileResult, type context$1_BulkImportFilesRequest as BulkImportFilesRequest, type context$1_BulkImportFilesResponse as BulkImportFilesResponse, type context$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type context$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type context$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type context$1_Color as Color, type context$1_ColorRGB as ColorRGB, type context$1_Colors as Colors, context$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 context$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 context$1_ExternalInfo as ExternalInfo, type context$1_FaceRecognition as FaceRecognition, type context$1_FileDescriptor as FileDescriptor, type context$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type context$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type context$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type context$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type context$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type context$1_FileFailed as FileFailed, type context$1_FileMedia as FileMedia, type context$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type context$1_FileReady as FileReady, type context$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type context$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type context$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type context$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type context$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type context$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type context$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type context$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type context$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type context$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type context$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type context$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type context$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type context$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type context$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type context$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type context$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type context$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type context$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type context$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type context$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type context$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type context$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type context$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type context$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type context$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_IdentityInfo as IdentityInfo, context$1_IdentityType as IdentityType, context$1_ImageAnnotationType as ImageAnnotationType, type context$1_ImageMedia as ImageMedia, type context$1_ImportFileOptions as ImportFileOptions, type context$1_ImportFileRequest as ImportFileRequest, type context$1_ImportFileResponse as ImportFileResponse, type context$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type context$1_ItemMetadata as ItemMetadata, type context$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type context$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type context$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type context$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type context$1_ListFilesOptions as ListFilesOptions, type context$1_ListFilesRequest as ListFilesRequest, type context$1_ListFilesResponse as ListFilesResponse, type context$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, context$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type context$1_Model3D as Model3D, Namespace$1 as Namespace, context$1_OperationStatus as OperationStatus, type context$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type context$1_SearchFilesOptions as SearchFilesOptions, type context$1_SearchFilesRequest as SearchFilesRequest, type context$1_SearchFilesResponse as SearchFilesResponse, type context$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, context$1_StreamFormat as StreamFormat, type context$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type context$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type context$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type context$1_UpdateFileRequest as UpdateFileRequest, type context$1_UpdateFileResponse as UpdateFileResponse, context$1_UploadProtocol as UploadProtocol, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, type context$1__publicOnFileDescriptorDeletedType as _publicOnFileDescriptorDeletedType, type context$1__publicOnFileDescriptorFileFailedType as _publicOnFileDescriptorFileFailedType, type context$1__publicOnFileDescriptorFileReadyType as _publicOnFileDescriptorFileReadyType, type context$1__publicOnFileDescriptorUpdatedType as _publicOnFileDescriptorUpdatedType, context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, onFileDescriptorDeleted$1 as publicOnFileDescriptorDeleted, onFileDescriptorFileFailed$1 as publicOnFileDescriptorFileFailed, onFileDescriptorFileReady$1 as publicOnFileDescriptorFileReady, onFileDescriptorUpdated$1 as publicOnFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
|
|
3402
3490
|
}
|
|
3403
3491
|
|
|
3492
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
3493
|
+
interface HttpClient {
|
|
3494
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
3495
|
+
fetchWithAuth: typeof fetch;
|
|
3496
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
3497
|
+
}
|
|
3498
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
3499
|
+
type HttpResponse<T = any> = {
|
|
3500
|
+
data: T;
|
|
3501
|
+
status: number;
|
|
3502
|
+
statusText: string;
|
|
3503
|
+
headers: any;
|
|
3504
|
+
request?: any;
|
|
3505
|
+
};
|
|
3506
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
3507
|
+
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3508
|
+
url: string;
|
|
3509
|
+
data?: Data;
|
|
3510
|
+
params?: URLSearchParams;
|
|
3511
|
+
} & APIMetadata;
|
|
3512
|
+
type APIMetadata = {
|
|
3513
|
+
methodFqn?: string;
|
|
3514
|
+
entityFqdn?: string;
|
|
3515
|
+
packageName?: string;
|
|
3516
|
+
};
|
|
3517
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
3518
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
3519
|
+
__type: 'event-definition';
|
|
3520
|
+
type: Type;
|
|
3521
|
+
isDomainEvent?: boolean;
|
|
3522
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3523
|
+
__payload: Payload;
|
|
3524
|
+
};
|
|
3525
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3526
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
3527
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
3528
|
+
|
|
3529
|
+
declare global {
|
|
3530
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3531
|
+
interface SymbolConstructor {
|
|
3532
|
+
readonly observable: symbol;
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3404
3536
|
interface Folder {
|
|
3405
3537
|
/** Folder ID. Generated when a folder is created in the Media Manager. */
|
|
3406
3538
|
_id?: string;
|