@wix/media 1.0.103 → 1.0.105
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 +6 -6
- package/type-bundles/context.bundle.d.ts +1595 -1031
- package/type-bundles/index.bundle.d.ts +266 -1113
- package/type-bundles/meta.bundle.d.ts +461 -2285
|
@@ -218,41 +218,29 @@ declare enum WebhookIdentityType$3 {
|
|
|
218
218
|
WIX_USER = "WIX_USER",
|
|
219
219
|
APP = "APP"
|
|
220
220
|
}
|
|
221
|
+
interface EnterpriseCategoryNonNullableFields {
|
|
222
|
+
_id: string;
|
|
223
|
+
publishStatus: PublishStatus$1;
|
|
224
|
+
mediaType: MediaType$2;
|
|
225
|
+
}
|
|
221
226
|
interface CreateCategoryResponseNonNullableFields {
|
|
222
|
-
category?:
|
|
223
|
-
_id: string;
|
|
224
|
-
publishStatus: PublishStatus$1;
|
|
225
|
-
};
|
|
227
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
226
228
|
}
|
|
227
229
|
interface UpdateCategoryResponseNonNullableFields {
|
|
228
|
-
category?:
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
231
|
+
}
|
|
232
|
+
interface EnterpriseCategoryTreeNonNullableFields {
|
|
233
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
234
|
+
subCategories: EnterpriseCategoryTreeNonNullableFields[];
|
|
232
235
|
}
|
|
233
236
|
interface GetCategoryResponseNonNullableFields {
|
|
234
|
-
category?:
|
|
235
|
-
category?: {
|
|
236
|
-
_id: string;
|
|
237
|
-
publishStatus: PublishStatus$1;
|
|
238
|
-
};
|
|
239
|
-
subCategories: NonNullable<GetCategoryResponseNonNullableFields>['category'][];
|
|
240
|
-
};
|
|
237
|
+
category?: EnterpriseCategoryTreeNonNullableFields;
|
|
241
238
|
}
|
|
242
239
|
interface EnterpriseOnboardingResponseNonNullableFields {
|
|
243
|
-
category?:
|
|
244
|
-
_id: string;
|
|
245
|
-
publishStatus: PublishStatus$1;
|
|
246
|
-
};
|
|
240
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
247
241
|
}
|
|
248
242
|
interface GetMediaManagerCategoriesResponseNonNullableFields {
|
|
249
|
-
category?:
|
|
250
|
-
category?: {
|
|
251
|
-
_id: string;
|
|
252
|
-
publishStatus: PublishStatus$1;
|
|
253
|
-
};
|
|
254
|
-
subCategories: NonNullable<GetMediaManagerCategoriesResponseNonNullableFields>['category'][];
|
|
255
|
-
};
|
|
243
|
+
category?: EnterpriseCategoryTreeNonNullableFields;
|
|
256
244
|
}
|
|
257
245
|
interface BaseEventMetadata$3 {
|
|
258
246
|
/** App instance ID. */
|
|
@@ -347,37 +335,42 @@ interface EnterpriseOnboardingOptions {
|
|
|
347
335
|
accountName?: string;
|
|
348
336
|
}
|
|
349
337
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
338
|
+
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
339
|
+
interface HttpClient {
|
|
340
|
+
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
341
|
+
fetchWithAuth: typeof fetch;
|
|
342
|
+
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
|
|
353
343
|
}
|
|
354
|
-
type RequestOptionsFactory
|
|
355
|
-
type HttpResponse
|
|
344
|
+
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
345
|
+
type HttpResponse<T = any> = {
|
|
356
346
|
data: T;
|
|
357
347
|
status: number;
|
|
358
348
|
statusText: string;
|
|
359
349
|
headers: any;
|
|
360
350
|
request?: any;
|
|
361
351
|
};
|
|
362
|
-
type RequestOptions
|
|
352
|
+
type RequestOptions<_TResponse = any, Data = any> = {
|
|
363
353
|
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
364
354
|
url: string;
|
|
365
355
|
data?: Data;
|
|
366
356
|
params?: URLSearchParams;
|
|
367
|
-
} & APIMetadata
|
|
368
|
-
type APIMetadata
|
|
357
|
+
} & APIMetadata;
|
|
358
|
+
type APIMetadata = {
|
|
369
359
|
methodFqn?: string;
|
|
370
360
|
entityFqdn?: string;
|
|
371
361
|
packageName?: string;
|
|
372
362
|
};
|
|
373
|
-
type
|
|
363
|
+
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
364
|
+
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
374
365
|
__type: 'event-definition';
|
|
375
366
|
type: Type;
|
|
376
367
|
isDomainEvent?: boolean;
|
|
377
368
|
transformations?: (envelope: unknown) => Payload;
|
|
378
369
|
__payload: Payload;
|
|
379
370
|
};
|
|
380
|
-
declare function EventDefinition
|
|
371
|
+
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
372
|
+
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
|
|
373
|
+
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
|
|
381
374
|
|
|
382
375
|
declare global {
|
|
383
376
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -386,30 +379,19 @@ declare global {
|
|
|
386
379
|
}
|
|
387
380
|
}
|
|
388
381
|
|
|
389
|
-
declare
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
declare
|
|
397
|
-
declare
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
declare
|
|
402
|
-
category?: {
|
|
403
|
-
_id: string;
|
|
404
|
-
publishStatus: PublishStatus$1;
|
|
405
|
-
} | undefined;
|
|
406
|
-
subCategories: (any | undefined)[];
|
|
407
|
-
}>;
|
|
408
|
-
declare function enterpriseOnboarding(httpClient: HttpClient$3): (accountId: string, options?: EnterpriseOnboardingOptions) => Promise<EnterpriseOnboardingResponse & EnterpriseOnboardingResponseNonNullableFields>;
|
|
409
|
-
declare function getMediaManagerCategories(httpClient: HttpClient$3): () => Promise<GetMediaManagerCategoriesResponse & GetMediaManagerCategoriesResponseNonNullableFields>;
|
|
410
|
-
declare const onEnterpriseCategoryCreated: EventDefinition$3<EnterpriseCategoryCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_created">;
|
|
411
|
-
declare const onEnterpriseCategoryDeleted: EventDefinition$3<EnterpriseCategoryDeletedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_deleted">;
|
|
412
|
-
declare const onEnterpriseCategoryUpdated: EventDefinition$3<EnterpriseCategoryUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_category_updated">;
|
|
382
|
+
declare function createRESTModule$3<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
383
|
+
|
|
384
|
+
declare function createEventModule$3<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
385
|
+
|
|
386
|
+
declare const createCategory: ReturnType<typeof createRESTModule$3<typeof publicCreateCategory>>;
|
|
387
|
+
declare const deleteCategory: ReturnType<typeof createRESTModule$3<typeof publicDeleteCategory>>;
|
|
388
|
+
declare const updateCategory: ReturnType<typeof createRESTModule$3<typeof publicUpdateCategory>>;
|
|
389
|
+
declare const getCategory: ReturnType<typeof createRESTModule$3<typeof publicGetCategory>>;
|
|
390
|
+
declare const enterpriseOnboarding: ReturnType<typeof createRESTModule$3<typeof publicEnterpriseOnboarding>>;
|
|
391
|
+
declare const getMediaManagerCategories: ReturnType<typeof createRESTModule$3<typeof publicGetMediaManagerCategories>>;
|
|
392
|
+
declare const onEnterpriseCategoryCreated: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryCreated>>;
|
|
393
|
+
declare const onEnterpriseCategoryDeleted: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryDeleted>>;
|
|
394
|
+
declare const onEnterpriseCategoryUpdated: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryUpdated>>;
|
|
413
395
|
|
|
414
396
|
type index_d$3_CreateCategoryRequest = CreateCategoryRequest;
|
|
415
397
|
type index_d$3_CreateCategoryResponse = CreateCategoryResponse;
|
|
@@ -419,7 +401,9 @@ type index_d$3_DeleteCategoryResponse = DeleteCategoryResponse;
|
|
|
419
401
|
type index_d$3_EnterpriseCategory = EnterpriseCategory;
|
|
420
402
|
type index_d$3_EnterpriseCategoryCreatedEnvelope = EnterpriseCategoryCreatedEnvelope;
|
|
421
403
|
type index_d$3_EnterpriseCategoryDeletedEnvelope = EnterpriseCategoryDeletedEnvelope;
|
|
404
|
+
type index_d$3_EnterpriseCategoryNonNullableFields = EnterpriseCategoryNonNullableFields;
|
|
422
405
|
type index_d$3_EnterpriseCategoryTree = EnterpriseCategoryTree;
|
|
406
|
+
type index_d$3_EnterpriseCategoryTreeNonNullableFields = EnterpriseCategoryTreeNonNullableFields;
|
|
423
407
|
type index_d$3_EnterpriseCategoryUpdatedEnvelope = EnterpriseCategoryUpdatedEnvelope;
|
|
424
408
|
type index_d$3_EnterpriseOnboardingOptions = EnterpriseOnboardingOptions;
|
|
425
409
|
type index_d$3_EnterpriseOnboardingRequest = EnterpriseOnboardingRequest;
|
|
@@ -450,7 +434,7 @@ declare const index_d$3_onEnterpriseCategoryDeleted: typeof onEnterpriseCategory
|
|
|
450
434
|
declare const index_d$3_onEnterpriseCategoryUpdated: typeof onEnterpriseCategoryUpdated;
|
|
451
435
|
declare const index_d$3_updateCategory: typeof updateCategory;
|
|
452
436
|
declare namespace index_d$3 {
|
|
453
|
-
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$3_CreateCategoryRequest as CreateCategoryRequest, type index_d$3_CreateCategoryResponse as CreateCategoryResponse, type index_d$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type index_d$3_DeleteCategoryRequest as DeleteCategoryRequest, type index_d$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_EnterpriseCategory as EnterpriseCategory, type index_d$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type index_d$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type index_d$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type index_d$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type index_d$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type index_d$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type index_d$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type index_d$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 index_d$3_GetCategoryOptions as GetCategoryOptions, type index_d$3_GetCategoryRequest as GetCategoryRequest, type index_d$3_GetCategoryResponse as GetCategoryResponse, type index_d$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type index_d$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type index_d$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type index_d$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type index_d$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type index_d$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type index_d$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type index_d$3_UpdateCategory as UpdateCategory, type index_d$3_UpdateCategoryRequest as UpdateCategoryRequest, type index_d$3_UpdateCategoryResponse as UpdateCategoryResponse, type index_d$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType,
|
|
437
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type index_d$3_CreateCategoryRequest as CreateCategoryRequest, type index_d$3_CreateCategoryResponse as CreateCategoryResponse, type index_d$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type index_d$3_DeleteCategoryRequest as DeleteCategoryRequest, type index_d$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type index_d$3_EnterpriseCategory as EnterpriseCategory, type index_d$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type index_d$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type index_d$3_EnterpriseCategoryNonNullableFields as EnterpriseCategoryNonNullableFields, type index_d$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type index_d$3_EnterpriseCategoryTreeNonNullableFields as EnterpriseCategoryTreeNonNullableFields, type index_d$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type index_d$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type index_d$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type index_d$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type index_d$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 index_d$3_GetCategoryOptions as GetCategoryOptions, type index_d$3_GetCategoryRequest as GetCategoryRequest, type index_d$3_GetCategoryResponse as GetCategoryResponse, type index_d$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type index_d$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type index_d$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type index_d$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type index_d$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type index_d$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type index_d$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type index_d$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type index_d$3_UpdateCategory as UpdateCategory, type index_d$3_UpdateCategoryRequest as UpdateCategoryRequest, type index_d$3_UpdateCategoryResponse as UpdateCategoryResponse, type index_d$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, index_d$3_createCategory as createCategory, index_d$3_deleteCategory as deleteCategory, index_d$3_enterpriseOnboarding as enterpriseOnboarding, index_d$3_getCategory as getCategory, index_d$3_getMediaManagerCategories as getMediaManagerCategories, index_d$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, index_d$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, index_d$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, index_d$3_updateCategory as updateCategory };
|
|
454
438
|
}
|
|
455
439
|
|
|
456
440
|
/**
|
|
@@ -987,158 +971,66 @@ declare enum WebhookIdentityType$2 {
|
|
|
987
971
|
interface GenerateFileUploadUrlResponseNonNullableFields$1 {
|
|
988
972
|
uploadUrl: string;
|
|
989
973
|
}
|
|
974
|
+
interface ArchiveNonNullableFields$1 {
|
|
975
|
+
_id: string;
|
|
976
|
+
url: string;
|
|
977
|
+
}
|
|
978
|
+
interface Model3DNonNullableFields$1 {
|
|
979
|
+
_id: string;
|
|
980
|
+
url: string;
|
|
981
|
+
thumbnail: string;
|
|
982
|
+
}
|
|
983
|
+
interface ItemAssetsNonNullableFields {
|
|
984
|
+
image: string;
|
|
985
|
+
video: string;
|
|
986
|
+
vector: string;
|
|
987
|
+
audio: string;
|
|
988
|
+
document: string;
|
|
989
|
+
archive?: ArchiveNonNullableFields$1;
|
|
990
|
+
model3d?: Model3DNonNullableFields$1;
|
|
991
|
+
}
|
|
992
|
+
interface EnterpriseMediaItemNonNullableFields {
|
|
993
|
+
_id: string;
|
|
994
|
+
mediaType: MediaType$1;
|
|
995
|
+
assets?: ItemAssetsNonNullableFields;
|
|
996
|
+
publishStatus: PublishStatus;
|
|
997
|
+
}
|
|
990
998
|
interface ImportFileResponseNonNullableFields$1 {
|
|
991
|
-
item?:
|
|
992
|
-
_id: string;
|
|
993
|
-
mediaType: MediaType$1;
|
|
994
|
-
assets?: {
|
|
995
|
-
image: string;
|
|
996
|
-
video: string;
|
|
997
|
-
vector: string;
|
|
998
|
-
audio: string;
|
|
999
|
-
document: string;
|
|
1000
|
-
archive?: {
|
|
1001
|
-
_id: string;
|
|
1002
|
-
url: string;
|
|
1003
|
-
};
|
|
1004
|
-
model3d?: {
|
|
1005
|
-
_id: string;
|
|
1006
|
-
url: string;
|
|
1007
|
-
thumbnail: string;
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
|
-
publishStatus: PublishStatus;
|
|
1011
|
-
};
|
|
999
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1012
1000
|
}
|
|
1013
1001
|
interface SearchItemsResponseNonNullableFields {
|
|
1014
|
-
items:
|
|
1015
|
-
_id: string;
|
|
1016
|
-
mediaType: MediaType$1;
|
|
1017
|
-
assets?: {
|
|
1018
|
-
image: string;
|
|
1019
|
-
video: string;
|
|
1020
|
-
vector: string;
|
|
1021
|
-
audio: string;
|
|
1022
|
-
document: string;
|
|
1023
|
-
archive?: {
|
|
1024
|
-
_id: string;
|
|
1025
|
-
url: string;
|
|
1026
|
-
};
|
|
1027
|
-
model3d?: {
|
|
1028
|
-
_id: string;
|
|
1029
|
-
url: string;
|
|
1030
|
-
thumbnail: string;
|
|
1031
|
-
};
|
|
1032
|
-
};
|
|
1033
|
-
publishStatus: PublishStatus;
|
|
1034
|
-
}[];
|
|
1002
|
+
items: EnterpriseMediaItemNonNullableFields[];
|
|
1035
1003
|
}
|
|
1036
1004
|
interface QueryItemsResponseNonNullableFields {
|
|
1037
|
-
items:
|
|
1038
|
-
_id: string;
|
|
1039
|
-
mediaType: MediaType$1;
|
|
1040
|
-
assets?: {
|
|
1041
|
-
image: string;
|
|
1042
|
-
video: string;
|
|
1043
|
-
vector: string;
|
|
1044
|
-
audio: string;
|
|
1045
|
-
document: string;
|
|
1046
|
-
archive?: {
|
|
1047
|
-
_id: string;
|
|
1048
|
-
url: string;
|
|
1049
|
-
};
|
|
1050
|
-
model3d?: {
|
|
1051
|
-
_id: string;
|
|
1052
|
-
url: string;
|
|
1053
|
-
thumbnail: string;
|
|
1054
|
-
};
|
|
1055
|
-
};
|
|
1056
|
-
publishStatus: PublishStatus;
|
|
1057
|
-
}[];
|
|
1005
|
+
items: EnterpriseMediaItemNonNullableFields[];
|
|
1058
1006
|
}
|
|
1059
1007
|
interface UpdateItemResponseNonNullableFields {
|
|
1060
|
-
item?:
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
publishStatus: PublishStatus;
|
|
1080
|
-
};
|
|
1008
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1009
|
+
}
|
|
1010
|
+
interface ApplicationErrorNonNullableFields$1 {
|
|
1011
|
+
code: string;
|
|
1012
|
+
description: string;
|
|
1013
|
+
}
|
|
1014
|
+
interface ItemMetadataNonNullableFields$1 {
|
|
1015
|
+
originalIndex: number;
|
|
1016
|
+
success: boolean;
|
|
1017
|
+
error?: ApplicationErrorNonNullableFields$1;
|
|
1018
|
+
}
|
|
1019
|
+
interface BulkItemUpdateResultNonNullableFields {
|
|
1020
|
+
itemMetadata?: ItemMetadataNonNullableFields$1;
|
|
1021
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1022
|
+
}
|
|
1023
|
+
interface BulkActionMetadataNonNullableFields$1 {
|
|
1024
|
+
totalSuccesses: number;
|
|
1025
|
+
totalFailures: number;
|
|
1026
|
+
undetailedFailures: number;
|
|
1081
1027
|
}
|
|
1082
1028
|
interface BulkUpdateItemResponseNonNullableFields {
|
|
1083
|
-
results:
|
|
1084
|
-
|
|
1085
|
-
originalIndex: number;
|
|
1086
|
-
success: boolean;
|
|
1087
|
-
error?: {
|
|
1088
|
-
code: string;
|
|
1089
|
-
description: string;
|
|
1090
|
-
};
|
|
1091
|
-
};
|
|
1092
|
-
item?: {
|
|
1093
|
-
_id: string;
|
|
1094
|
-
mediaType: MediaType$1;
|
|
1095
|
-
assets?: {
|
|
1096
|
-
image: string;
|
|
1097
|
-
video: string;
|
|
1098
|
-
vector: string;
|
|
1099
|
-
audio: string;
|
|
1100
|
-
document: string;
|
|
1101
|
-
archive?: {
|
|
1102
|
-
_id: string;
|
|
1103
|
-
url: string;
|
|
1104
|
-
};
|
|
1105
|
-
model3d?: {
|
|
1106
|
-
_id: string;
|
|
1107
|
-
url: string;
|
|
1108
|
-
thumbnail: string;
|
|
1109
|
-
};
|
|
1110
|
-
};
|
|
1111
|
-
publishStatus: PublishStatus;
|
|
1112
|
-
};
|
|
1113
|
-
}[];
|
|
1114
|
-
bulkActionMetadata?: {
|
|
1115
|
-
totalSuccesses: number;
|
|
1116
|
-
totalFailures: number;
|
|
1117
|
-
undetailedFailures: number;
|
|
1118
|
-
};
|
|
1029
|
+
results: BulkItemUpdateResultNonNullableFields[];
|
|
1030
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
1119
1031
|
}
|
|
1120
1032
|
interface GetItemResponseNonNullableFields {
|
|
1121
|
-
item?:
|
|
1122
|
-
_id: string;
|
|
1123
|
-
mediaType: MediaType$1;
|
|
1124
|
-
assets?: {
|
|
1125
|
-
image: string;
|
|
1126
|
-
video: string;
|
|
1127
|
-
vector: string;
|
|
1128
|
-
audio: string;
|
|
1129
|
-
document: string;
|
|
1130
|
-
archive?: {
|
|
1131
|
-
_id: string;
|
|
1132
|
-
url: string;
|
|
1133
|
-
};
|
|
1134
|
-
model3d?: {
|
|
1135
|
-
_id: string;
|
|
1136
|
-
url: string;
|
|
1137
|
-
thumbnail: string;
|
|
1138
|
-
};
|
|
1139
|
-
};
|
|
1140
|
-
publishStatus: PublishStatus;
|
|
1141
|
-
};
|
|
1033
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1142
1034
|
}
|
|
1143
1035
|
interface BaseEventMetadata$2 {
|
|
1144
1036
|
/** App instance ID. */
|
|
@@ -1369,103 +1261,25 @@ interface OverwriteItemCategoriesOptions {
|
|
|
1369
1261
|
categoryIds?: string[];
|
|
1370
1262
|
}
|
|
1371
1263
|
|
|
1372
|
-
|
|
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>;
|
|
1264
|
+
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
1403
1265
|
|
|
1404
|
-
declare
|
|
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
|
-
}
|
|
1266
|
+
declare function createEventModule$2<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
1410
1267
|
|
|
1411
|
-
declare const
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
declare
|
|
1415
|
-
declare
|
|
1416
|
-
declare
|
|
1417
|
-
declare
|
|
1418
|
-
declare
|
|
1419
|
-
declare
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
audio: string;
|
|
1427
|
-
document: string;
|
|
1428
|
-
archive?: {
|
|
1429
|
-
_id: string;
|
|
1430
|
-
url: string;
|
|
1431
|
-
} | undefined;
|
|
1432
|
-
model3d?: {
|
|
1433
|
-
_id: string;
|
|
1434
|
-
url: string;
|
|
1435
|
-
thumbnail: string;
|
|
1436
|
-
} | undefined;
|
|
1437
|
-
} | undefined;
|
|
1438
|
-
publishStatus: PublishStatus;
|
|
1439
|
-
}>;
|
|
1440
|
-
declare function bulkUpdateItem(httpClient: HttpClient$2): (updateItemRequests: UpdateItemRequest[], options?: BulkUpdateItemOptions) => Promise<BulkUpdateItemResponse & BulkUpdateItemResponseNonNullableFields>;
|
|
1441
|
-
declare function getItem(httpClient: HttpClient$2): (itemId: string) => Promise<EnterpriseMediaItem & {
|
|
1442
|
-
_id: string;
|
|
1443
|
-
mediaType: MediaType$1;
|
|
1444
|
-
assets?: {
|
|
1445
|
-
image: string;
|
|
1446
|
-
video: string;
|
|
1447
|
-
vector: string;
|
|
1448
|
-
audio: string;
|
|
1449
|
-
document: string;
|
|
1450
|
-
archive?: {
|
|
1451
|
-
_id: string;
|
|
1452
|
-
url: string;
|
|
1453
|
-
} | undefined;
|
|
1454
|
-
model3d?: {
|
|
1455
|
-
_id: string;
|
|
1456
|
-
url: string;
|
|
1457
|
-
thumbnail: string;
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
} | undefined;
|
|
1460
|
-
publishStatus: PublishStatus;
|
|
1461
|
-
}>;
|
|
1462
|
-
declare function linkItemToCategories(httpClient: HttpClient$2): (itemId: string, options?: LinkItemToCategoriesOptions) => Promise<LinkItemToCategoriesResponse>;
|
|
1463
|
-
declare function unlinkItemFromCategories(httpClient: HttpClient$2): (itemId: string, options?: UnlinkItemFromCategoriesOptions) => Promise<UnlinkItemFromCategoriesResponse>;
|
|
1464
|
-
declare function overwriteItemCategories(httpClient: HttpClient$2): (itemId: string, options?: OverwriteItemCategoriesOptions) => Promise<OverwriteItemCategoriesResponse>;
|
|
1465
|
-
declare const onEnterpriseItemCreated: EventDefinition$2<EnterpriseItemCreatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_created">;
|
|
1466
|
-
declare const onEnterpriseItemUpdated: EventDefinition$2<EnterpriseItemUpdatedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_updated">;
|
|
1467
|
-
declare const onEnterpriseItemItemCategoriesChanged: EventDefinition$2<EnterpriseItemItemCategoriesChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_item_categories_changed">;
|
|
1468
|
-
declare const onEnterpriseItemPublishStatusChanged: EventDefinition$2<EnterpriseItemPublishStatusChangedEnvelope, "wix.media.enterprise_public_media.v1.enterprise_item_publish_status_changed">;
|
|
1268
|
+
declare const itemUploadCallback: ReturnType<typeof createRESTModule$2<typeof publicItemUploadCallback>>;
|
|
1269
|
+
declare const generateFileUploadUrl$1: ReturnType<typeof createRESTModule$2<typeof publicGenerateFileUploadUrl>>;
|
|
1270
|
+
declare const importFile$1: ReturnType<typeof createRESTModule$2<typeof publicImportFile>>;
|
|
1271
|
+
declare const searchItems: ReturnType<typeof createRESTModule$2<typeof publicSearchItems>>;
|
|
1272
|
+
declare const queryItems: ReturnType<typeof createRESTModule$2<typeof publicQueryItems>>;
|
|
1273
|
+
declare const updateItem: ReturnType<typeof createRESTModule$2<typeof publicUpdateItem>>;
|
|
1274
|
+
declare const bulkUpdateItem: ReturnType<typeof createRESTModule$2<typeof publicBulkUpdateItem>>;
|
|
1275
|
+
declare const getItem: ReturnType<typeof createRESTModule$2<typeof publicGetItem>>;
|
|
1276
|
+
declare const linkItemToCategories: ReturnType<typeof createRESTModule$2<typeof publicLinkItemToCategories>>;
|
|
1277
|
+
declare const unlinkItemFromCategories: ReturnType<typeof createRESTModule$2<typeof publicUnlinkItemFromCategories>>;
|
|
1278
|
+
declare const overwriteItemCategories: ReturnType<typeof createRESTModule$2<typeof publicOverwriteItemCategories>>;
|
|
1279
|
+
declare const onEnterpriseItemCreated: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemCreated>>;
|
|
1280
|
+
declare const onEnterpriseItemUpdated: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemUpdated>>;
|
|
1281
|
+
declare const onEnterpriseItemItemCategoriesChanged: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemItemCategoriesChanged>>;
|
|
1282
|
+
declare const onEnterpriseItemPublishStatusChanged: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemPublishStatusChanged>>;
|
|
1469
1283
|
|
|
1470
1284
|
type index_d$2_BulkItemUpdateResult = BulkItemUpdateResult;
|
|
1471
1285
|
type index_d$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
|
|
@@ -1477,6 +1291,7 @@ type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope = EnterpriseItemItemC
|
|
|
1477
1291
|
type index_d$2_EnterpriseItemPublishStatusChangedEnvelope = EnterpriseItemPublishStatusChangedEnvelope;
|
|
1478
1292
|
type index_d$2_EnterpriseItemUpdatedEnvelope = EnterpriseItemUpdatedEnvelope;
|
|
1479
1293
|
type index_d$2_EnterpriseMediaItem = EnterpriseMediaItem;
|
|
1294
|
+
type index_d$2_EnterpriseMediaItemNonNullableFields = EnterpriseMediaItemNonNullableFields;
|
|
1480
1295
|
type index_d$2_GetItemRequest = GetItemRequest;
|
|
1481
1296
|
type index_d$2_GetItemResponse = GetItemResponse;
|
|
1482
1297
|
type index_d$2_GetItemResponseNonNullableFields = GetItemResponseNonNullableFields;
|
|
@@ -1531,7 +1346,7 @@ declare const index_d$2_searchItems: typeof searchItems;
|
|
|
1531
1346
|
declare const index_d$2_unlinkItemFromCategories: typeof unlinkItemFromCategories;
|
|
1532
1347
|
declare const index_d$2_updateItem: typeof updateItem;
|
|
1533
1348
|
declare namespace index_d$2 {
|
|
1534
|
-
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 index_d$2_BulkItemUpdateResult as BulkItemUpdateResult, type index_d$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type index_d$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type index_d$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type index_d$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type index_d$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type index_d$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type index_d$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type index_d$2_EnterpriseMediaItem as EnterpriseMediaItem, 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 index_d$2_GetItemRequest as GetItemRequest, type index_d$2_GetItemResponse as GetItemResponse, type index_d$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 index_d$2_ItemAssets as ItemAssets, type index_d$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type index_d$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type index_d$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type index_d$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type index_d$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type index_d$2_ItemsQueryBuilder as ItemsQueryBuilder, type index_d$2_ItemsQueryResult as ItemsQueryResult, type index_d$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type index_d$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type index_d$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type index_d$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type index_d$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type index_d$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type index_d$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, index_d$2_PublishStatus as PublishStatus, type index_d$2_PublishStatusChanged as PublishStatusChanged, type index_d$2_QueryItemsRequest as QueryItemsRequest, type index_d$2_QueryItemsResponse as QueryItemsResponse, type index_d$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type index_d$2_QueryV2 as QueryV2, type index_d$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$2_Search as Search, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchItemsOptions as SearchItemsOptions, type index_d$2_SearchItemsRequest as SearchItemsRequest, type index_d$2_SearchItemsResponse as SearchItemsResponse, type index_d$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type index_d$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type index_d$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type index_d$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type index_d$2_UpdateItem as UpdateItem, type index_d$2_UpdateItemRequest as UpdateItemRequest, type index_d$2_UpdateItemResponse as UpdateItemResponse, type index_d$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType,
|
|
1349
|
+
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 index_d$2_BulkItemUpdateResult as BulkItemUpdateResult, type index_d$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type index_d$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type index_d$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type index_d$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type index_d$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type index_d$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type index_d$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type index_d$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type index_d$2_EnterpriseMediaItem as EnterpriseMediaItem, type index_d$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 index_d$2_GetItemRequest as GetItemRequest, type index_d$2_GetItemResponse as GetItemResponse, type index_d$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 index_d$2_ItemAssets as ItemAssets, type index_d$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type index_d$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type index_d$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type index_d$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type index_d$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type index_d$2_ItemsQueryBuilder as ItemsQueryBuilder, type index_d$2_ItemsQueryResult as ItemsQueryResult, type index_d$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type index_d$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type index_d$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type index_d$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type index_d$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type index_d$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type index_d$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, index_d$2_PublishStatus as PublishStatus, type index_d$2_PublishStatusChanged as PublishStatusChanged, type index_d$2_QueryItemsRequest as QueryItemsRequest, type index_d$2_QueryItemsResponse as QueryItemsResponse, type index_d$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type index_d$2_QueryV2 as QueryV2, type index_d$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d$2_Search as Search, type index_d$2_SearchDetails as SearchDetails, type index_d$2_SearchItemsOptions as SearchItemsOptions, type index_d$2_SearchItemsRequest as SearchItemsRequest, type index_d$2_SearchItemsResponse as SearchItemsResponse, type index_d$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type index_d$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type index_d$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type index_d$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type index_d$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type index_d$2_UpdateItem as UpdateItem, type index_d$2_UpdateItemRequest as UpdateItemRequest, type index_d$2_UpdateItemResponse as UpdateItemResponse, type index_d$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, index_d$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, index_d$2_getItem as getItem, importFile$1 as importFile, index_d$2_itemUploadCallback as itemUploadCallback, index_d$2_linkItemToCategories as linkItemToCategories, index_d$2_onEnterpriseItemCreated as onEnterpriseItemCreated, index_d$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, index_d$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, index_d$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, index_d$2_overwriteItemCategories as overwriteItemCategories, index_d$2_queryItems as queryItems, index_d$2_searchItems as searchItems, index_d$2_unlinkItemFromCategories as unlinkItemFromCategories, index_d$2_updateItem as updateItem };
|
|
1535
1350
|
}
|
|
1536
1351
|
|
|
1537
1352
|
interface FileDescriptor {
|
|
@@ -2418,7 +2233,7 @@ interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
|
2418
2233
|
slug?: string;
|
|
2419
2234
|
/** ID of the entity associated with the event. */
|
|
2420
2235
|
entityId?: string;
|
|
2421
|
-
/** Event timestamp. */
|
|
2236
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2422
2237
|
eventTime?: Date;
|
|
2423
2238
|
/**
|
|
2424
2239
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -2447,7 +2262,7 @@ interface DomainEventBodyOneOf$1 {
|
|
|
2447
2262
|
interface EntityCreatedEvent$1 {
|
|
2448
2263
|
entity?: string;
|
|
2449
2264
|
}
|
|
2450
|
-
interface RestoreInfo {
|
|
2265
|
+
interface RestoreInfo$1 {
|
|
2451
2266
|
deletedDate?: Date;
|
|
2452
2267
|
}
|
|
2453
2268
|
interface EntityUpdatedEvent$1 {
|
|
@@ -2508,188 +2323,78 @@ declare enum WebhookIdentityType$1 {
|
|
|
2508
2323
|
interface GenerateFilesDownloadUrlResponseNonNullableFields {
|
|
2509
2324
|
downloadUrl: string;
|
|
2510
2325
|
}
|
|
2326
|
+
interface DownloadUrlNonNullableFields {
|
|
2327
|
+
url: string;
|
|
2328
|
+
assetKey: string;
|
|
2329
|
+
}
|
|
2511
2330
|
interface GenerateFileDownloadUrlResponseNonNullableFields {
|
|
2512
|
-
downloadUrls:
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2331
|
+
downloadUrls: DownloadUrlNonNullableFields[];
|
|
2332
|
+
}
|
|
2333
|
+
interface FaceRecognitionNonNullableFields {
|
|
2334
|
+
confidence: number;
|
|
2335
|
+
x: number;
|
|
2336
|
+
y: number;
|
|
2337
|
+
height: number;
|
|
2338
|
+
width: number;
|
|
2339
|
+
}
|
|
2340
|
+
interface ImageMediaNonNullableFields {
|
|
2341
|
+
image: string;
|
|
2342
|
+
faces: FaceRecognitionNonNullableFields[];
|
|
2343
|
+
previewImage: string;
|
|
2344
|
+
}
|
|
2345
|
+
interface AudioV2NonNullableFields {
|
|
2346
|
+
_id: string;
|
|
2347
|
+
assets: string[];
|
|
2348
|
+
}
|
|
2349
|
+
interface ArchiveNonNullableFields {
|
|
2350
|
+
_id: string;
|
|
2351
|
+
url: string;
|
|
2352
|
+
}
|
|
2353
|
+
interface Model3DNonNullableFields {
|
|
2354
|
+
_id: string;
|
|
2355
|
+
url: string;
|
|
2356
|
+
thumbnail: string;
|
|
2357
|
+
}
|
|
2358
|
+
interface OtherMediaNonNullableFields {
|
|
2359
|
+
_id: string;
|
|
2360
|
+
}
|
|
2361
|
+
interface FileMediaNonNullableFields {
|
|
2362
|
+
image?: ImageMediaNonNullableFields;
|
|
2363
|
+
video: string;
|
|
2364
|
+
audio?: AudioV2NonNullableFields;
|
|
2365
|
+
document: string;
|
|
2366
|
+
vector?: ImageMediaNonNullableFields;
|
|
2367
|
+
archive?: ArchiveNonNullableFields;
|
|
2368
|
+
model3d?: Model3DNonNullableFields;
|
|
2369
|
+
other?: OtherMediaNonNullableFields;
|
|
2370
|
+
}
|
|
2371
|
+
interface IdentityInfoNonNullableFields {
|
|
2372
|
+
identityType: IdentityType;
|
|
2373
|
+
}
|
|
2374
|
+
interface FileDescriptorNonNullableFields {
|
|
2375
|
+
_id: string;
|
|
2376
|
+
displayName: string;
|
|
2377
|
+
url: string;
|
|
2378
|
+
hash: string;
|
|
2379
|
+
private: boolean;
|
|
2380
|
+
mediaType: MediaType;
|
|
2381
|
+
media?: FileMediaNonNullableFields;
|
|
2382
|
+
operationStatus: OperationStatus;
|
|
2383
|
+
labels: string[];
|
|
2384
|
+
siteId: string;
|
|
2385
|
+
state: State$1;
|
|
2386
|
+
internalTags: string[];
|
|
2387
|
+
namespace: Namespace$1;
|
|
2388
|
+
addedBy?: IdentityInfoNonNullableFields;
|
|
2516
2389
|
}
|
|
2517
2390
|
interface GetFileDescriptorResponseNonNullableFields {
|
|
2518
|
-
file?:
|
|
2519
|
-
_id: string;
|
|
2520
|
-
displayName: string;
|
|
2521
|
-
url: string;
|
|
2522
|
-
hash: string;
|
|
2523
|
-
private: boolean;
|
|
2524
|
-
mediaType: MediaType;
|
|
2525
|
-
media?: {
|
|
2526
|
-
image?: {
|
|
2527
|
-
image: string;
|
|
2528
|
-
colors?: {
|
|
2529
|
-
palette: Color[];
|
|
2530
|
-
};
|
|
2531
|
-
faces: {
|
|
2532
|
-
confidence: number;
|
|
2533
|
-
x: number;
|
|
2534
|
-
y: number;
|
|
2535
|
-
height: number;
|
|
2536
|
-
width: number;
|
|
2537
|
-
}[];
|
|
2538
|
-
previewImage: string;
|
|
2539
|
-
};
|
|
2540
|
-
video: string;
|
|
2541
|
-
audio?: {
|
|
2542
|
-
_id: string;
|
|
2543
|
-
assets: string;
|
|
2544
|
-
};
|
|
2545
|
-
document: string;
|
|
2546
|
-
vector?: {
|
|
2547
|
-
image: string;
|
|
2548
|
-
colors?: {
|
|
2549
|
-
palette: Color[];
|
|
2550
|
-
};
|
|
2551
|
-
faces: {
|
|
2552
|
-
confidence: number;
|
|
2553
|
-
x: number;
|
|
2554
|
-
y: number;
|
|
2555
|
-
height: number;
|
|
2556
|
-
width: number;
|
|
2557
|
-
}[];
|
|
2558
|
-
previewImage: string;
|
|
2559
|
-
};
|
|
2560
|
-
archive?: {
|
|
2561
|
-
_id: string;
|
|
2562
|
-
url: string;
|
|
2563
|
-
};
|
|
2564
|
-
model3d?: {
|
|
2565
|
-
_id: string;
|
|
2566
|
-
url: string;
|
|
2567
|
-
thumbnail: string;
|
|
2568
|
-
};
|
|
2569
|
-
};
|
|
2570
|
-
operationStatus: OperationStatus;
|
|
2571
|
-
labels: string[];
|
|
2572
|
-
siteId: string;
|
|
2573
|
-
state: State$1;
|
|
2574
|
-
};
|
|
2391
|
+
file?: FileDescriptorNonNullableFields;
|
|
2575
2392
|
}
|
|
2576
2393
|
interface GetFileDescriptorsResponseNonNullableFields {
|
|
2577
|
-
files:
|
|
2578
|
-
_id: string;
|
|
2579
|
-
displayName: string;
|
|
2580
|
-
url: string;
|
|
2581
|
-
hash: string;
|
|
2582
|
-
private: boolean;
|
|
2583
|
-
mediaType: MediaType;
|
|
2584
|
-
media?: {
|
|
2585
|
-
image?: {
|
|
2586
|
-
image: string;
|
|
2587
|
-
colors?: {
|
|
2588
|
-
palette: Color[];
|
|
2589
|
-
};
|
|
2590
|
-
faces: {
|
|
2591
|
-
confidence: number;
|
|
2592
|
-
x: number;
|
|
2593
|
-
y: number;
|
|
2594
|
-
height: number;
|
|
2595
|
-
width: number;
|
|
2596
|
-
}[];
|
|
2597
|
-
previewImage: string;
|
|
2598
|
-
};
|
|
2599
|
-
video: string;
|
|
2600
|
-
audio?: {
|
|
2601
|
-
_id: string;
|
|
2602
|
-
assets: string;
|
|
2603
|
-
};
|
|
2604
|
-
document: string;
|
|
2605
|
-
vector?: {
|
|
2606
|
-
image: string;
|
|
2607
|
-
colors?: {
|
|
2608
|
-
palette: Color[];
|
|
2609
|
-
};
|
|
2610
|
-
faces: {
|
|
2611
|
-
confidence: number;
|
|
2612
|
-
x: number;
|
|
2613
|
-
y: number;
|
|
2614
|
-
height: number;
|
|
2615
|
-
width: number;
|
|
2616
|
-
}[];
|
|
2617
|
-
previewImage: string;
|
|
2618
|
-
};
|
|
2619
|
-
archive?: {
|
|
2620
|
-
_id: string;
|
|
2621
|
-
url: string;
|
|
2622
|
-
};
|
|
2623
|
-
model3d?: {
|
|
2624
|
-
_id: string;
|
|
2625
|
-
url: string;
|
|
2626
|
-
thumbnail: string;
|
|
2627
|
-
};
|
|
2628
|
-
};
|
|
2629
|
-
operationStatus: OperationStatus;
|
|
2630
|
-
labels: string[];
|
|
2631
|
-
siteId: string;
|
|
2632
|
-
state: State$1;
|
|
2633
|
-
}[];
|
|
2394
|
+
files: FileDescriptorNonNullableFields[];
|
|
2634
2395
|
}
|
|
2635
2396
|
interface UpdateFileDescriptorResponseNonNullableFields {
|
|
2636
|
-
file?:
|
|
2637
|
-
_id: string;
|
|
2638
|
-
displayName: string;
|
|
2639
|
-
url: string;
|
|
2640
|
-
hash: string;
|
|
2641
|
-
private: boolean;
|
|
2642
|
-
mediaType: MediaType;
|
|
2643
|
-
media?: {
|
|
2644
|
-
image?: {
|
|
2645
|
-
image: string;
|
|
2646
|
-
colors?: {
|
|
2647
|
-
palette: Color[];
|
|
2648
|
-
};
|
|
2649
|
-
faces: {
|
|
2650
|
-
confidence: number;
|
|
2651
|
-
x: number;
|
|
2652
|
-
y: number;
|
|
2653
|
-
height: number;
|
|
2654
|
-
width: number;
|
|
2655
|
-
}[];
|
|
2656
|
-
previewImage: string;
|
|
2657
|
-
};
|
|
2658
|
-
video: string;
|
|
2659
|
-
audio?: {
|
|
2660
|
-
_id: string;
|
|
2661
|
-
assets: string;
|
|
2662
|
-
};
|
|
2663
|
-
document: string;
|
|
2664
|
-
vector?: {
|
|
2665
|
-
image: string;
|
|
2666
|
-
colors?: {
|
|
2667
|
-
palette: Color[];
|
|
2668
|
-
};
|
|
2669
|
-
faces: {
|
|
2670
|
-
confidence: number;
|
|
2671
|
-
x: number;
|
|
2672
|
-
y: number;
|
|
2673
|
-
height: number;
|
|
2674
|
-
width: number;
|
|
2675
|
-
}[];
|
|
2676
|
-
previewImage: string;
|
|
2677
|
-
};
|
|
2678
|
-
archive?: {
|
|
2679
|
-
_id: string;
|
|
2680
|
-
url: string;
|
|
2681
|
-
};
|
|
2682
|
-
model3d?: {
|
|
2683
|
-
_id: string;
|
|
2684
|
-
url: string;
|
|
2685
|
-
thumbnail: string;
|
|
2686
|
-
};
|
|
2687
|
-
};
|
|
2688
|
-
operationStatus: OperationStatus;
|
|
2689
|
-
labels: string[];
|
|
2690
|
-
siteId: string;
|
|
2691
|
-
state: State$1;
|
|
2692
|
-
};
|
|
2397
|
+
file?: FileDescriptorNonNullableFields;
|
|
2693
2398
|
}
|
|
2694
2399
|
interface GenerateFileUploadUrlResponseNonNullableFields {
|
|
2695
2400
|
uploadUrl: string;
|
|
@@ -2700,379 +2405,44 @@ interface GenerateFileResumableUploadUrlResponseNonNullableFields {
|
|
|
2700
2405
|
uploadToken: string;
|
|
2701
2406
|
}
|
|
2702
2407
|
interface ImportFileResponseNonNullableFields {
|
|
2703
|
-
file?:
|
|
2704
|
-
_id: string;
|
|
2705
|
-
displayName: string;
|
|
2706
|
-
url: string;
|
|
2707
|
-
hash: string;
|
|
2708
|
-
private: boolean;
|
|
2709
|
-
mediaType: MediaType;
|
|
2710
|
-
media?: {
|
|
2711
|
-
image?: {
|
|
2712
|
-
image: string;
|
|
2713
|
-
colors?: {
|
|
2714
|
-
palette: Color[];
|
|
2715
|
-
};
|
|
2716
|
-
faces: {
|
|
2717
|
-
confidence: number;
|
|
2718
|
-
x: number;
|
|
2719
|
-
y: number;
|
|
2720
|
-
height: number;
|
|
2721
|
-
width: number;
|
|
2722
|
-
}[];
|
|
2723
|
-
previewImage: string;
|
|
2724
|
-
};
|
|
2725
|
-
video: string;
|
|
2726
|
-
audio?: {
|
|
2727
|
-
_id: string;
|
|
2728
|
-
assets: string;
|
|
2729
|
-
};
|
|
2730
|
-
document: string;
|
|
2731
|
-
vector?: {
|
|
2732
|
-
image: string;
|
|
2733
|
-
colors?: {
|
|
2734
|
-
palette: Color[];
|
|
2735
|
-
};
|
|
2736
|
-
faces: {
|
|
2737
|
-
confidence: number;
|
|
2738
|
-
x: number;
|
|
2739
|
-
y: number;
|
|
2740
|
-
height: number;
|
|
2741
|
-
width: number;
|
|
2742
|
-
}[];
|
|
2743
|
-
previewImage: string;
|
|
2744
|
-
};
|
|
2745
|
-
archive?: {
|
|
2746
|
-
_id: string;
|
|
2747
|
-
url: string;
|
|
2748
|
-
};
|
|
2749
|
-
model3d?: {
|
|
2750
|
-
_id: string;
|
|
2751
|
-
url: string;
|
|
2752
|
-
thumbnail: string;
|
|
2753
|
-
};
|
|
2754
|
-
};
|
|
2755
|
-
operationStatus: OperationStatus;
|
|
2756
|
-
labels: string[];
|
|
2757
|
-
siteId: string;
|
|
2758
|
-
state: State$1;
|
|
2759
|
-
};
|
|
2408
|
+
file?: FileDescriptorNonNullableFields;
|
|
2760
2409
|
}
|
|
2761
2410
|
interface BulkImportFilesResponseNonNullableFields {
|
|
2762
|
-
files:
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
}[];
|
|
2782
|
-
previewImage: string;
|
|
2783
|
-
};
|
|
2784
|
-
video: string;
|
|
2785
|
-
audio?: {
|
|
2786
|
-
_id: string;
|
|
2787
|
-
assets: string;
|
|
2788
|
-
};
|
|
2789
|
-
document: string;
|
|
2790
|
-
vector?: {
|
|
2791
|
-
image: string;
|
|
2792
|
-
colors?: {
|
|
2793
|
-
palette: Color[];
|
|
2794
|
-
};
|
|
2795
|
-
faces: {
|
|
2796
|
-
confidence: number;
|
|
2797
|
-
x: number;
|
|
2798
|
-
y: number;
|
|
2799
|
-
height: number;
|
|
2800
|
-
width: number;
|
|
2801
|
-
}[];
|
|
2802
|
-
previewImage: string;
|
|
2803
|
-
};
|
|
2804
|
-
archive?: {
|
|
2805
|
-
_id: string;
|
|
2806
|
-
url: string;
|
|
2807
|
-
};
|
|
2808
|
-
model3d?: {
|
|
2809
|
-
_id: string;
|
|
2810
|
-
url: string;
|
|
2811
|
-
thumbnail: string;
|
|
2812
|
-
};
|
|
2813
|
-
};
|
|
2814
|
-
operationStatus: OperationStatus;
|
|
2815
|
-
labels: string[];
|
|
2816
|
-
siteId: string;
|
|
2817
|
-
state: State$1;
|
|
2818
|
-
}[];
|
|
2411
|
+
files: FileDescriptorNonNullableFields[];
|
|
2412
|
+
}
|
|
2413
|
+
interface ApplicationErrorNonNullableFields {
|
|
2414
|
+
code: string;
|
|
2415
|
+
description: string;
|
|
2416
|
+
}
|
|
2417
|
+
interface ItemMetadataNonNullableFields {
|
|
2418
|
+
originalIndex: number;
|
|
2419
|
+
success: boolean;
|
|
2420
|
+
error?: ApplicationErrorNonNullableFields;
|
|
2421
|
+
}
|
|
2422
|
+
interface BulkImportFileResultNonNullableFields {
|
|
2423
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
2424
|
+
item?: FileDescriptorNonNullableFields;
|
|
2425
|
+
}
|
|
2426
|
+
interface BulkActionMetadataNonNullableFields {
|
|
2427
|
+
totalSuccesses: number;
|
|
2428
|
+
totalFailures: number;
|
|
2429
|
+
undetailedFailures: number;
|
|
2819
2430
|
}
|
|
2820
2431
|
interface BulkImportFileResponseNonNullableFields {
|
|
2821
|
-
results:
|
|
2822
|
-
|
|
2823
|
-
originalIndex: number;
|
|
2824
|
-
success: boolean;
|
|
2825
|
-
error?: {
|
|
2826
|
-
code: string;
|
|
2827
|
-
description: string;
|
|
2828
|
-
};
|
|
2829
|
-
};
|
|
2830
|
-
item?: {
|
|
2831
|
-
_id: string;
|
|
2832
|
-
displayName: string;
|
|
2833
|
-
url: string;
|
|
2834
|
-
hash: string;
|
|
2835
|
-
private: boolean;
|
|
2836
|
-
mediaType: MediaType;
|
|
2837
|
-
media?: {
|
|
2838
|
-
image?: {
|
|
2839
|
-
image: string;
|
|
2840
|
-
colors?: {
|
|
2841
|
-
palette: Color[];
|
|
2842
|
-
};
|
|
2843
|
-
faces: {
|
|
2844
|
-
confidence: number;
|
|
2845
|
-
x: number;
|
|
2846
|
-
y: number;
|
|
2847
|
-
height: number;
|
|
2848
|
-
width: number;
|
|
2849
|
-
}[];
|
|
2850
|
-
previewImage: string;
|
|
2851
|
-
};
|
|
2852
|
-
video: string;
|
|
2853
|
-
audio?: {
|
|
2854
|
-
_id: string;
|
|
2855
|
-
assets: string;
|
|
2856
|
-
};
|
|
2857
|
-
document: string;
|
|
2858
|
-
vector?: {
|
|
2859
|
-
image: string;
|
|
2860
|
-
colors?: {
|
|
2861
|
-
palette: Color[];
|
|
2862
|
-
};
|
|
2863
|
-
faces: {
|
|
2864
|
-
confidence: number;
|
|
2865
|
-
x: number;
|
|
2866
|
-
y: number;
|
|
2867
|
-
height: number;
|
|
2868
|
-
width: number;
|
|
2869
|
-
}[];
|
|
2870
|
-
previewImage: string;
|
|
2871
|
-
};
|
|
2872
|
-
archive?: {
|
|
2873
|
-
_id: string;
|
|
2874
|
-
url: string;
|
|
2875
|
-
};
|
|
2876
|
-
model3d?: {
|
|
2877
|
-
_id: string;
|
|
2878
|
-
url: string;
|
|
2879
|
-
thumbnail: string;
|
|
2880
|
-
};
|
|
2881
|
-
};
|
|
2882
|
-
operationStatus: OperationStatus;
|
|
2883
|
-
labels: string[];
|
|
2884
|
-
siteId: string;
|
|
2885
|
-
state: State$1;
|
|
2886
|
-
};
|
|
2887
|
-
}[];
|
|
2888
|
-
bulkActionMetadata?: {
|
|
2889
|
-
totalSuccesses: number;
|
|
2890
|
-
totalFailures: number;
|
|
2891
|
-
undetailedFailures: number;
|
|
2892
|
-
};
|
|
2432
|
+
results: BulkImportFileResultNonNullableFields[];
|
|
2433
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
2893
2434
|
}
|
|
2894
2435
|
interface ListFilesResponseNonNullableFields {
|
|
2895
|
-
files:
|
|
2896
|
-
_id: string;
|
|
2897
|
-
displayName: string;
|
|
2898
|
-
url: string;
|
|
2899
|
-
hash: string;
|
|
2900
|
-
private: boolean;
|
|
2901
|
-
mediaType: MediaType;
|
|
2902
|
-
media?: {
|
|
2903
|
-
image?: {
|
|
2904
|
-
image: string;
|
|
2905
|
-
colors?: {
|
|
2906
|
-
palette: Color[];
|
|
2907
|
-
};
|
|
2908
|
-
faces: {
|
|
2909
|
-
confidence: number;
|
|
2910
|
-
x: number;
|
|
2911
|
-
y: number;
|
|
2912
|
-
height: number;
|
|
2913
|
-
width: number;
|
|
2914
|
-
}[];
|
|
2915
|
-
previewImage: string;
|
|
2916
|
-
};
|
|
2917
|
-
video: string;
|
|
2918
|
-
audio?: {
|
|
2919
|
-
_id: string;
|
|
2920
|
-
assets: string;
|
|
2921
|
-
};
|
|
2922
|
-
document: string;
|
|
2923
|
-
vector?: {
|
|
2924
|
-
image: string;
|
|
2925
|
-
colors?: {
|
|
2926
|
-
palette: Color[];
|
|
2927
|
-
};
|
|
2928
|
-
faces: {
|
|
2929
|
-
confidence: number;
|
|
2930
|
-
x: number;
|
|
2931
|
-
y: number;
|
|
2932
|
-
height: number;
|
|
2933
|
-
width: number;
|
|
2934
|
-
}[];
|
|
2935
|
-
previewImage: string;
|
|
2936
|
-
};
|
|
2937
|
-
archive?: {
|
|
2938
|
-
_id: string;
|
|
2939
|
-
url: string;
|
|
2940
|
-
};
|
|
2941
|
-
model3d?: {
|
|
2942
|
-
_id: string;
|
|
2943
|
-
url: string;
|
|
2944
|
-
thumbnail: string;
|
|
2945
|
-
};
|
|
2946
|
-
};
|
|
2947
|
-
operationStatus: OperationStatus;
|
|
2948
|
-
labels: string[];
|
|
2949
|
-
siteId: string;
|
|
2950
|
-
state: State$1;
|
|
2951
|
-
}[];
|
|
2436
|
+
files: FileDescriptorNonNullableFields[];
|
|
2952
2437
|
}
|
|
2953
2438
|
interface SearchFilesResponseNonNullableFields {
|
|
2954
|
-
files:
|
|
2955
|
-
_id: string;
|
|
2956
|
-
displayName: string;
|
|
2957
|
-
url: string;
|
|
2958
|
-
hash: string;
|
|
2959
|
-
private: boolean;
|
|
2960
|
-
mediaType: MediaType;
|
|
2961
|
-
media?: {
|
|
2962
|
-
image?: {
|
|
2963
|
-
image: string;
|
|
2964
|
-
colors?: {
|
|
2965
|
-
palette: Color[];
|
|
2966
|
-
};
|
|
2967
|
-
faces: {
|
|
2968
|
-
confidence: number;
|
|
2969
|
-
x: number;
|
|
2970
|
-
y: number;
|
|
2971
|
-
height: number;
|
|
2972
|
-
width: number;
|
|
2973
|
-
}[];
|
|
2974
|
-
previewImage: string;
|
|
2975
|
-
};
|
|
2976
|
-
video: string;
|
|
2977
|
-
audio?: {
|
|
2978
|
-
_id: string;
|
|
2979
|
-
assets: string;
|
|
2980
|
-
};
|
|
2981
|
-
document: string;
|
|
2982
|
-
vector?: {
|
|
2983
|
-
image: string;
|
|
2984
|
-
colors?: {
|
|
2985
|
-
palette: Color[];
|
|
2986
|
-
};
|
|
2987
|
-
faces: {
|
|
2988
|
-
confidence: number;
|
|
2989
|
-
x: number;
|
|
2990
|
-
y: number;
|
|
2991
|
-
height: number;
|
|
2992
|
-
width: number;
|
|
2993
|
-
}[];
|
|
2994
|
-
previewImage: string;
|
|
2995
|
-
};
|
|
2996
|
-
archive?: {
|
|
2997
|
-
_id: string;
|
|
2998
|
-
url: string;
|
|
2999
|
-
};
|
|
3000
|
-
model3d?: {
|
|
3001
|
-
_id: string;
|
|
3002
|
-
url: string;
|
|
3003
|
-
thumbnail: string;
|
|
3004
|
-
};
|
|
3005
|
-
};
|
|
3006
|
-
operationStatus: OperationStatus;
|
|
3007
|
-
labels: string[];
|
|
3008
|
-
siteId: string;
|
|
3009
|
-
state: State$1;
|
|
3010
|
-
}[];
|
|
2439
|
+
files: FileDescriptorNonNullableFields[];
|
|
3011
2440
|
}
|
|
3012
2441
|
interface GenerateVideoStreamingUrlResponseNonNullableFields {
|
|
3013
|
-
downloadUrl?:
|
|
3014
|
-
url: string;
|
|
3015
|
-
assetKey: string;
|
|
3016
|
-
};
|
|
2442
|
+
downloadUrl?: DownloadUrlNonNullableFields;
|
|
3017
2443
|
}
|
|
3018
2444
|
interface ListDeletedFilesResponseNonNullableFields {
|
|
3019
|
-
files:
|
|
3020
|
-
_id: string;
|
|
3021
|
-
displayName: string;
|
|
3022
|
-
url: string;
|
|
3023
|
-
hash: string;
|
|
3024
|
-
private: boolean;
|
|
3025
|
-
mediaType: MediaType;
|
|
3026
|
-
media?: {
|
|
3027
|
-
image?: {
|
|
3028
|
-
image: string;
|
|
3029
|
-
colors?: {
|
|
3030
|
-
palette: Color[];
|
|
3031
|
-
};
|
|
3032
|
-
faces: {
|
|
3033
|
-
confidence: number;
|
|
3034
|
-
x: number;
|
|
3035
|
-
y: number;
|
|
3036
|
-
height: number;
|
|
3037
|
-
width: number;
|
|
3038
|
-
}[];
|
|
3039
|
-
previewImage: string;
|
|
3040
|
-
};
|
|
3041
|
-
video: string;
|
|
3042
|
-
audio?: {
|
|
3043
|
-
_id: string;
|
|
3044
|
-
assets: string;
|
|
3045
|
-
};
|
|
3046
|
-
document: string;
|
|
3047
|
-
vector?: {
|
|
3048
|
-
image: string;
|
|
3049
|
-
colors?: {
|
|
3050
|
-
palette: Color[];
|
|
3051
|
-
};
|
|
3052
|
-
faces: {
|
|
3053
|
-
confidence: number;
|
|
3054
|
-
x: number;
|
|
3055
|
-
y: number;
|
|
3056
|
-
height: number;
|
|
3057
|
-
width: number;
|
|
3058
|
-
}[];
|
|
3059
|
-
previewImage: string;
|
|
3060
|
-
};
|
|
3061
|
-
archive?: {
|
|
3062
|
-
_id: string;
|
|
3063
|
-
url: string;
|
|
3064
|
-
};
|
|
3065
|
-
model3d?: {
|
|
3066
|
-
_id: string;
|
|
3067
|
-
url: string;
|
|
3068
|
-
thumbnail: string;
|
|
3069
|
-
};
|
|
3070
|
-
};
|
|
3071
|
-
operationStatus: OperationStatus;
|
|
3072
|
-
labels: string[];
|
|
3073
|
-
siteId: string;
|
|
3074
|
-
state: State$1;
|
|
3075
|
-
}[];
|
|
2445
|
+
files: FileDescriptorNonNullableFields[];
|
|
3076
2446
|
}
|
|
3077
2447
|
interface BaseEventMetadata$1 {
|
|
3078
2448
|
/** App instance ID. */
|
|
@@ -3101,7 +2471,7 @@ interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
|
3101
2471
|
slug?: string;
|
|
3102
2472
|
/** ID of the entity associated with the event. */
|
|
3103
2473
|
entityId?: string;
|
|
3104
|
-
/** Event timestamp. */
|
|
2474
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3105
2475
|
eventTime?: Date;
|
|
3106
2476
|
/**
|
|
3107
2477
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3365,180 +2735,30 @@ interface ListDeletedFilesOptions {
|
|
|
3365
2735
|
paging?: CursorPaging$1;
|
|
3366
2736
|
}
|
|
3367
2737
|
|
|
3368
|
-
|
|
3369
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
|
|
3370
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
3371
|
-
}
|
|
3372
|
-
type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
|
|
3373
|
-
type HttpResponse$1<T = any> = {
|
|
3374
|
-
data: T;
|
|
3375
|
-
status: number;
|
|
3376
|
-
statusText: string;
|
|
3377
|
-
headers: any;
|
|
3378
|
-
request?: any;
|
|
3379
|
-
};
|
|
3380
|
-
type RequestOptions$1<_TResponse = any, Data = any> = {
|
|
3381
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
3382
|
-
url: string;
|
|
3383
|
-
data?: Data;
|
|
3384
|
-
params?: URLSearchParams;
|
|
3385
|
-
} & APIMetadata$1;
|
|
3386
|
-
type APIMetadata$1 = {
|
|
3387
|
-
methodFqn?: string;
|
|
3388
|
-
entityFqdn?: string;
|
|
3389
|
-
packageName?: string;
|
|
3390
|
-
};
|
|
3391
|
-
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
3392
|
-
__type: 'event-definition';
|
|
3393
|
-
type: Type;
|
|
3394
|
-
isDomainEvent?: boolean;
|
|
3395
|
-
transformations?: (envelope: unknown) => Payload;
|
|
3396
|
-
__payload: Payload;
|
|
3397
|
-
};
|
|
3398
|
-
declare function EventDefinition$1<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$1<Payload, Type>;
|
|
2738
|
+
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
3399
2739
|
|
|
3400
|
-
declare
|
|
3401
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3402
|
-
interface SymbolConstructor {
|
|
3403
|
-
readonly observable: symbol;
|
|
3404
|
-
}
|
|
3405
|
-
}
|
|
2740
|
+
declare function createEventModule$1<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
3406
2741
|
|
|
3407
|
-
declare const
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
declare
|
|
3411
|
-
declare
|
|
3412
|
-
declare
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
x: number;
|
|
3428
|
-
y: number;
|
|
3429
|
-
height: number;
|
|
3430
|
-
width: number;
|
|
3431
|
-
}[];
|
|
3432
|
-
previewImage: string;
|
|
3433
|
-
} | undefined;
|
|
3434
|
-
video: string;
|
|
3435
|
-
audio?: {
|
|
3436
|
-
_id: string;
|
|
3437
|
-
assets: string;
|
|
3438
|
-
} | undefined;
|
|
3439
|
-
document: string;
|
|
3440
|
-
vector?: {
|
|
3441
|
-
image: string;
|
|
3442
|
-
colors?: {
|
|
3443
|
-
palette: Color[];
|
|
3444
|
-
} | undefined;
|
|
3445
|
-
faces: {
|
|
3446
|
-
confidence: number;
|
|
3447
|
-
x: number;
|
|
3448
|
-
y: number;
|
|
3449
|
-
height: number;
|
|
3450
|
-
width: number;
|
|
3451
|
-
}[];
|
|
3452
|
-
previewImage: string;
|
|
3453
|
-
} | undefined;
|
|
3454
|
-
archive?: {
|
|
3455
|
-
_id: string;
|
|
3456
|
-
url: string;
|
|
3457
|
-
} | undefined;
|
|
3458
|
-
model3d?: {
|
|
3459
|
-
_id: string;
|
|
3460
|
-
url: string;
|
|
3461
|
-
thumbnail: string;
|
|
3462
|
-
} | undefined;
|
|
3463
|
-
} | undefined;
|
|
3464
|
-
operationStatus: OperationStatus;
|
|
3465
|
-
labels: string[];
|
|
3466
|
-
siteId: string;
|
|
3467
|
-
state: State$1;
|
|
3468
|
-
}>;
|
|
3469
|
-
declare function getFileDescriptors(httpClient: HttpClient$1): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
3470
|
-
declare function updateFileDescriptor(httpClient: HttpClient$1): (file: FileDescriptor) => Promise<FileDescriptor & {
|
|
3471
|
-
_id: string;
|
|
3472
|
-
displayName: string;
|
|
3473
|
-
url: string;
|
|
3474
|
-
hash: string;
|
|
3475
|
-
private: boolean;
|
|
3476
|
-
mediaType: MediaType;
|
|
3477
|
-
media?: {
|
|
3478
|
-
image?: {
|
|
3479
|
-
image: string;
|
|
3480
|
-
colors?: {
|
|
3481
|
-
palette: Color[];
|
|
3482
|
-
} | undefined;
|
|
3483
|
-
faces: {
|
|
3484
|
-
confidence: number;
|
|
3485
|
-
x: number;
|
|
3486
|
-
y: number;
|
|
3487
|
-
height: number;
|
|
3488
|
-
width: number;
|
|
3489
|
-
}[];
|
|
3490
|
-
previewImage: string;
|
|
3491
|
-
} | undefined;
|
|
3492
|
-
video: string;
|
|
3493
|
-
audio?: {
|
|
3494
|
-
_id: string;
|
|
3495
|
-
assets: string;
|
|
3496
|
-
} | undefined;
|
|
3497
|
-
document: string;
|
|
3498
|
-
vector?: {
|
|
3499
|
-
image: string;
|
|
3500
|
-
colors?: {
|
|
3501
|
-
palette: Color[];
|
|
3502
|
-
} | undefined;
|
|
3503
|
-
faces: {
|
|
3504
|
-
confidence: number;
|
|
3505
|
-
x: number;
|
|
3506
|
-
y: number;
|
|
3507
|
-
height: number;
|
|
3508
|
-
width: number;
|
|
3509
|
-
}[];
|
|
3510
|
-
previewImage: string;
|
|
3511
|
-
} | undefined;
|
|
3512
|
-
archive?: {
|
|
3513
|
-
_id: string;
|
|
3514
|
-
url: string;
|
|
3515
|
-
} | undefined;
|
|
3516
|
-
model3d?: {
|
|
3517
|
-
_id: string;
|
|
3518
|
-
url: string;
|
|
3519
|
-
thumbnail: string;
|
|
3520
|
-
} | undefined;
|
|
3521
|
-
} | undefined;
|
|
3522
|
-
operationStatus: OperationStatus;
|
|
3523
|
-
labels: string[];
|
|
3524
|
-
siteId: string;
|
|
3525
|
-
state: State$1;
|
|
3526
|
-
}>;
|
|
3527
|
-
declare function generateFileUploadUrl(httpClient: HttpClient$1): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
3528
|
-
declare function generateFileResumableUploadUrl(httpClient: HttpClient$1): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
3529
|
-
declare function importFile(httpClient: HttpClient$1): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|
|
3530
|
-
declare function bulkImportFiles(httpClient: HttpClient$1): (importFileRequests: ImportFileRequest[]) => Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
|
|
3531
|
-
declare function bulkImportFile(httpClient: HttpClient$1): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions) => Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
|
|
3532
|
-
declare function listFiles(httpClient: HttpClient$1): (options?: ListFilesOptions) => Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
|
|
3533
|
-
declare function searchFiles(httpClient: HttpClient$1): (options?: SearchFilesOptions) => Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
|
|
3534
|
-
declare function generateVideoStreamingUrl(httpClient: HttpClient$1): (fileId: string, options?: GenerateVideoStreamingUrlOptions) => Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
3535
|
-
declare function bulkDeleteFiles(httpClient: HttpClient$1): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
|
|
3536
|
-
declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient$1): (fileIds: string[]) => Promise<void>;
|
|
3537
|
-
declare function listDeletedFiles(httpClient: HttpClient$1): (options?: ListDeletedFilesOptions) => Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
|
|
3538
|
-
declare const onFileDescriptorUpdated: EventDefinition$1<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">;
|
|
3539
|
-
declare const onFileDescriptorDeleted: EventDefinition$1<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
|
|
3540
|
-
declare const onFileDescriptorFileReady: EventDefinition$1<FileDescriptorFileReadyEnvelope, "wix.media.site_media.v1.file_descriptor_file_ready">;
|
|
3541
|
-
declare const onFileDescriptorFileFailed: EventDefinition$1<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
|
|
2742
|
+
declare const generateFilesDownloadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFilesDownloadUrl>>;
|
|
2743
|
+
declare const generateFileDownloadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFileDownloadUrl>>;
|
|
2744
|
+
declare const getFileDescriptor: ReturnType<typeof createRESTModule$1<typeof publicGetFileDescriptor>>;
|
|
2745
|
+
declare const getFileDescriptors: ReturnType<typeof createRESTModule$1<typeof publicGetFileDescriptors>>;
|
|
2746
|
+
declare const updateFileDescriptor: ReturnType<typeof createRESTModule$1<typeof publicUpdateFileDescriptor>>;
|
|
2747
|
+
declare const generateFileUploadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFileUploadUrl>>;
|
|
2748
|
+
declare const generateFileResumableUploadUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateFileResumableUploadUrl>>;
|
|
2749
|
+
declare const importFile: ReturnType<typeof createRESTModule$1<typeof publicImportFile>>;
|
|
2750
|
+
declare const bulkImportFiles: ReturnType<typeof createRESTModule$1<typeof publicBulkImportFiles>>;
|
|
2751
|
+
declare const bulkImportFile: ReturnType<typeof createRESTModule$1<typeof publicBulkImportFile>>;
|
|
2752
|
+
declare const listFiles: ReturnType<typeof createRESTModule$1<typeof publicListFiles>>;
|
|
2753
|
+
declare const searchFiles: ReturnType<typeof createRESTModule$1<typeof publicSearchFiles>>;
|
|
2754
|
+
declare const generateVideoStreamingUrl: ReturnType<typeof createRESTModule$1<typeof publicGenerateVideoStreamingUrl>>;
|
|
2755
|
+
declare const bulkDeleteFiles: ReturnType<typeof createRESTModule$1<typeof publicBulkDeleteFiles>>;
|
|
2756
|
+
declare const bulkRestoreFilesFromTrashBin: ReturnType<typeof createRESTModule$1<typeof publicBulkRestoreFilesFromTrashBin>>;
|
|
2757
|
+
declare const listDeletedFiles: ReturnType<typeof createRESTModule$1<typeof publicListDeletedFiles>>;
|
|
2758
|
+
declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorUpdated>>;
|
|
2759
|
+
declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorDeleted>>;
|
|
2760
|
+
declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorFileReady>>;
|
|
2761
|
+
declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorFileFailed>>;
|
|
3542
2762
|
|
|
3543
2763
|
type index_d$1_ApplicationError = ApplicationError;
|
|
3544
2764
|
type index_d$1_Archive = Archive;
|
|
@@ -3569,6 +2789,7 @@ type index_d$1_FileDescriptor = FileDescriptor;
|
|
|
3569
2789
|
type index_d$1_FileDescriptorDeletedEnvelope = FileDescriptorDeletedEnvelope;
|
|
3570
2790
|
type index_d$1_FileDescriptorFileFailedEnvelope = FileDescriptorFileFailedEnvelope;
|
|
3571
2791
|
type index_d$1_FileDescriptorFileReadyEnvelope = FileDescriptorFileReadyEnvelope;
|
|
2792
|
+
type index_d$1_FileDescriptorNonNullableFields = FileDescriptorNonNullableFields;
|
|
3572
2793
|
type index_d$1_FileDescriptorUpdatedEnvelope = FileDescriptorUpdatedEnvelope;
|
|
3573
2794
|
type index_d$1_FileFailed = FileFailed;
|
|
3574
2795
|
type index_d$1_FileMedia = FileMedia;
|
|
@@ -3624,7 +2845,6 @@ type index_d$1_Model3D = Model3D;
|
|
|
3624
2845
|
type index_d$1_OperationStatus = OperationStatus;
|
|
3625
2846
|
declare const index_d$1_OperationStatus: typeof OperationStatus;
|
|
3626
2847
|
type index_d$1_OtherMedia = OtherMedia;
|
|
3627
|
-
type index_d$1_RestoreInfo = RestoreInfo;
|
|
3628
2848
|
type index_d$1_SearchFilesOptions = SearchFilesOptions;
|
|
3629
2849
|
type index_d$1_SearchFilesRequest = SearchFilesRequest;
|
|
3630
2850
|
type index_d$1_SearchFilesResponse = SearchFilesResponse;
|
|
@@ -3660,7 +2880,7 @@ declare const index_d$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
|
|
|
3660
2880
|
declare const index_d$1_searchFiles: typeof searchFiles;
|
|
3661
2881
|
declare const index_d$1_updateFileDescriptor: typeof updateFileDescriptor;
|
|
3662
2882
|
declare namespace index_d$1 {
|
|
3663
|
-
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
|
|
2883
|
+
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_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, 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 RestoreInfo$1 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, 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 };
|
|
3664
2884
|
}
|
|
3665
2885
|
|
|
3666
2886
|
interface Folder {
|
|
@@ -3899,7 +3119,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
3899
3119
|
slug?: string;
|
|
3900
3120
|
/** ID of the entity associated with the event. */
|
|
3901
3121
|
entityId?: string;
|
|
3902
|
-
/** Event timestamp. */
|
|
3122
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3903
3123
|
eventTime?: Date;
|
|
3904
3124
|
/**
|
|
3905
3125
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -3928,6 +3148,9 @@ interface DomainEventBodyOneOf {
|
|
|
3928
3148
|
interface EntityCreatedEvent {
|
|
3929
3149
|
entity?: string;
|
|
3930
3150
|
}
|
|
3151
|
+
interface RestoreInfo {
|
|
3152
|
+
deletedDate?: Date;
|
|
3153
|
+
}
|
|
3931
3154
|
interface EntityUpdatedEvent {
|
|
3932
3155
|
/**
|
|
3933
3156
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -3983,56 +3206,33 @@ declare enum WebhookIdentityType {
|
|
|
3983
3206
|
WIX_USER = "WIX_USER",
|
|
3984
3207
|
APP = "APP"
|
|
3985
3208
|
}
|
|
3209
|
+
interface FolderNonNullableFields {
|
|
3210
|
+
_id: string;
|
|
3211
|
+
displayName: string;
|
|
3212
|
+
parentFolderId: string;
|
|
3213
|
+
state: State;
|
|
3214
|
+
namespace: Namespace;
|
|
3215
|
+
}
|
|
3986
3216
|
interface CreateFolderResponseNonNullableFields {
|
|
3987
|
-
folder?:
|
|
3988
|
-
_id: string;
|
|
3989
|
-
displayName: string;
|
|
3990
|
-
parentFolderId: string;
|
|
3991
|
-
state: State;
|
|
3992
|
-
};
|
|
3217
|
+
folder?: FolderNonNullableFields;
|
|
3993
3218
|
}
|
|
3994
3219
|
interface GetFolderResponseNonNullableFields {
|
|
3995
|
-
folder?:
|
|
3996
|
-
_id: string;
|
|
3997
|
-
displayName: string;
|
|
3998
|
-
parentFolderId: string;
|
|
3999
|
-
state: State;
|
|
4000
|
-
};
|
|
3220
|
+
folder?: FolderNonNullableFields;
|
|
4001
3221
|
}
|
|
4002
3222
|
interface ListFoldersResponseNonNullableFields {
|
|
4003
|
-
folders:
|
|
4004
|
-
_id: string;
|
|
4005
|
-
displayName: string;
|
|
4006
|
-
parentFolderId: string;
|
|
4007
|
-
state: State;
|
|
4008
|
-
}[];
|
|
3223
|
+
folders: FolderNonNullableFields[];
|
|
4009
3224
|
}
|
|
4010
3225
|
interface SearchFoldersResponseNonNullableFields {
|
|
4011
|
-
folders:
|
|
4012
|
-
_id: string;
|
|
4013
|
-
displayName: string;
|
|
4014
|
-
parentFolderId: string;
|
|
4015
|
-
state: State;
|
|
4016
|
-
}[];
|
|
3226
|
+
folders: FolderNonNullableFields[];
|
|
4017
3227
|
}
|
|
4018
3228
|
interface UpdateFolderResponseNonNullableFields {
|
|
4019
|
-
folder?:
|
|
4020
|
-
_id: string;
|
|
4021
|
-
displayName: string;
|
|
4022
|
-
parentFolderId: string;
|
|
4023
|
-
state: State;
|
|
4024
|
-
};
|
|
3229
|
+
folder?: FolderNonNullableFields;
|
|
4025
3230
|
}
|
|
4026
3231
|
interface GenerateFolderDownloadUrlResponseNonNullableFields {
|
|
4027
3232
|
downloadUrl: string;
|
|
4028
3233
|
}
|
|
4029
3234
|
interface ListDeletedFoldersResponseNonNullableFields {
|
|
4030
|
-
folders:
|
|
4031
|
-
_id: string;
|
|
4032
|
-
displayName: string;
|
|
4033
|
-
parentFolderId: string;
|
|
4034
|
-
state: State;
|
|
4035
|
-
}[];
|
|
3235
|
+
folders: FolderNonNullableFields[];
|
|
4036
3236
|
}
|
|
4037
3237
|
interface BaseEventMetadata {
|
|
4038
3238
|
/** App instance ID. */
|
|
@@ -4061,7 +3261,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
4061
3261
|
slug?: string;
|
|
4062
3262
|
/** ID of the entity associated with the event. */
|
|
4063
3263
|
entityId?: string;
|
|
4064
|
-
/** Event timestamp. */
|
|
3264
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
4065
3265
|
eventTime?: Date;
|
|
4066
3266
|
/**
|
|
4067
3267
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -4180,70 +3380,22 @@ interface ListDeletedFoldersOptions {
|
|
|
4180
3380
|
paging?: CursorPaging;
|
|
4181
3381
|
}
|
|
4182
3382
|
|
|
4183
|
-
|
|
4184
|
-
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
4185
|
-
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
|
|
4186
|
-
}
|
|
4187
|
-
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
|
|
4188
|
-
type HttpResponse<T = any> = {
|
|
4189
|
-
data: T;
|
|
4190
|
-
status: number;
|
|
4191
|
-
statusText: string;
|
|
4192
|
-
headers: any;
|
|
4193
|
-
request?: any;
|
|
4194
|
-
};
|
|
4195
|
-
type RequestOptions<_TResponse = any, Data = any> = {
|
|
4196
|
-
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
4197
|
-
url: string;
|
|
4198
|
-
data?: Data;
|
|
4199
|
-
params?: URLSearchParams;
|
|
4200
|
-
} & APIMetadata;
|
|
4201
|
-
type APIMetadata = {
|
|
4202
|
-
methodFqn?: string;
|
|
4203
|
-
entityFqdn?: string;
|
|
4204
|
-
packageName?: string;
|
|
4205
|
-
};
|
|
4206
|
-
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
4207
|
-
__type: 'event-definition';
|
|
4208
|
-
type: Type;
|
|
4209
|
-
isDomainEvent?: boolean;
|
|
4210
|
-
transformations?: (envelope: unknown) => Payload;
|
|
4211
|
-
__payload: Payload;
|
|
4212
|
-
};
|
|
4213
|
-
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
|
|
3383
|
+
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
4214
3384
|
|
|
4215
|
-
declare
|
|
4216
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
4217
|
-
interface SymbolConstructor {
|
|
4218
|
-
readonly observable: symbol;
|
|
4219
|
-
}
|
|
4220
|
-
}
|
|
3385
|
+
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4221
3386
|
|
|
4222
|
-
declare const
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
declare
|
|
4226
|
-
declare
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
declare
|
|
4233
|
-
declare
|
|
4234
|
-
declare function updateFolder(httpClient: HttpClient): (_id: string, folder: UpdateFolder) => Promise<Folder & {
|
|
4235
|
-
_id: string;
|
|
4236
|
-
displayName: string;
|
|
4237
|
-
parentFolderId: string;
|
|
4238
|
-
state: State;
|
|
4239
|
-
}>;
|
|
4240
|
-
declare function generateFolderDownloadUrl(httpClient: HttpClient): (folderId: string) => Promise<GenerateFolderDownloadUrlResponse & GenerateFolderDownloadUrlResponseNonNullableFields>;
|
|
4241
|
-
declare function bulkDeleteFolders(httpClient: HttpClient): (folderIds: string[], options?: BulkDeleteFoldersOptions) => Promise<void>;
|
|
4242
|
-
declare function bulkRestoreFoldersFromTrashBin(httpClient: HttpClient): (folderIds: string[]) => Promise<void>;
|
|
4243
|
-
declare function listDeletedFolders(httpClient: HttpClient): (options?: ListDeletedFoldersOptions) => Promise<ListDeletedFoldersResponse & ListDeletedFoldersResponseNonNullableFields>;
|
|
4244
|
-
declare const onFolderCreated: EventDefinition<FolderCreatedEnvelope, "wix.media.site_media.v1.folder_created">;
|
|
4245
|
-
declare const onFolderUpdated: EventDefinition<FolderUpdatedEnvelope, "wix.media.site_media.v1.folder_updated">;
|
|
4246
|
-
declare const onFolderDeleted: EventDefinition<FolderDeletedEnvelope, "wix.media.site_media.v1.folder_deleted">;
|
|
3387
|
+
declare const createFolder: ReturnType<typeof createRESTModule<typeof publicCreateFolder>>;
|
|
3388
|
+
declare const getFolder: ReturnType<typeof createRESTModule<typeof publicGetFolder>>;
|
|
3389
|
+
declare const listFolders: ReturnType<typeof createRESTModule<typeof publicListFolders>>;
|
|
3390
|
+
declare const searchFolders: ReturnType<typeof createRESTModule<typeof publicSearchFolders>>;
|
|
3391
|
+
declare const updateFolder: ReturnType<typeof createRESTModule<typeof publicUpdateFolder>>;
|
|
3392
|
+
declare const generateFolderDownloadUrl: ReturnType<typeof createRESTModule<typeof publicGenerateFolderDownloadUrl>>;
|
|
3393
|
+
declare const bulkDeleteFolders: ReturnType<typeof createRESTModule<typeof publicBulkDeleteFolders>>;
|
|
3394
|
+
declare const bulkRestoreFoldersFromTrashBin: ReturnType<typeof createRESTModule<typeof publicBulkRestoreFoldersFromTrashBin>>;
|
|
3395
|
+
declare const listDeletedFolders: ReturnType<typeof createRESTModule<typeof publicListDeletedFolders>>;
|
|
3396
|
+
declare const onFolderCreated: ReturnType<typeof createEventModule<typeof publicOnFolderCreated>>;
|
|
3397
|
+
declare const onFolderUpdated: ReturnType<typeof createEventModule<typeof publicOnFolderUpdated>>;
|
|
3398
|
+
declare const onFolderDeleted: ReturnType<typeof createEventModule<typeof publicOnFolderDeleted>>;
|
|
4247
3399
|
|
|
4248
3400
|
type index_d_ActionEvent = ActionEvent;
|
|
4249
3401
|
type index_d_BaseEventMetadata = BaseEventMetadata;
|
|
@@ -4267,6 +3419,7 @@ type index_d_EventMetadata = EventMetadata;
|
|
|
4267
3419
|
type index_d_Folder = Folder;
|
|
4268
3420
|
type index_d_FolderCreatedEnvelope = FolderCreatedEnvelope;
|
|
4269
3421
|
type index_d_FolderDeletedEnvelope = FolderDeletedEnvelope;
|
|
3422
|
+
type index_d_FolderNonNullableFields = FolderNonNullableFields;
|
|
4270
3423
|
type index_d_FolderUpdatedEnvelope = FolderUpdatedEnvelope;
|
|
4271
3424
|
type index_d_GenerateFolderDownloadUrlRequest = GenerateFolderDownloadUrlRequest;
|
|
4272
3425
|
type index_d_GenerateFolderDownloadUrlResponse = GenerateFolderDownloadUrlResponse;
|
|
@@ -4288,6 +3441,7 @@ type index_d_MessageEnvelope = MessageEnvelope;
|
|
|
4288
3441
|
type index_d_Namespace = Namespace;
|
|
4289
3442
|
declare const index_d_Namespace: typeof Namespace;
|
|
4290
3443
|
type index_d_PagingMetadataV2 = PagingMetadataV2;
|
|
3444
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
4291
3445
|
type index_d_RootFolder = RootFolder;
|
|
4292
3446
|
declare const index_d_RootFolder: typeof RootFolder;
|
|
4293
3447
|
type index_d_SearchFoldersOptions = SearchFoldersOptions;
|
|
@@ -4305,7 +3459,6 @@ type index_d_UpdateFolderResponse = UpdateFolderResponse;
|
|
|
4305
3459
|
type index_d_UpdateFolderResponseNonNullableFields = UpdateFolderResponseNonNullableFields;
|
|
4306
3460
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
4307
3461
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
4308
|
-
declare const index_d___metadata: typeof __metadata;
|
|
4309
3462
|
declare const index_d_bulkDeleteFolders: typeof bulkDeleteFolders;
|
|
4310
3463
|
declare const index_d_bulkRestoreFoldersFromTrashBin: typeof bulkRestoreFoldersFromTrashBin;
|
|
4311
3464
|
declare const index_d_createFolder: typeof createFolder;
|
|
@@ -4319,7 +3472,7 @@ declare const index_d_onFolderUpdated: typeof onFolderUpdated;
|
|
|
4319
3472
|
declare const index_d_searchFolders: typeof searchFolders;
|
|
4320
3473
|
declare const index_d_updateFolder: typeof updateFolder;
|
|
4321
3474
|
declare namespace index_d {
|
|
4322
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type index_d_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type index_d_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type index_d_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type index_d_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type index_d_CreateFolderOptions as CreateFolderOptions, type index_d_CreateFolderRequest as CreateFolderRequest, type index_d_CreateFolderResponse as CreateFolderResponse, type index_d_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Folder as Folder, type index_d_FolderCreatedEnvelope as FolderCreatedEnvelope, type index_d_FolderDeletedEnvelope as FolderDeletedEnvelope, type index_d_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type index_d_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type index_d_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type index_d_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type index_d_GetFolderRequest as GetFolderRequest, type index_d_GetFolderResponse as GetFolderResponse, type index_d_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type index_d_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type index_d_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type index_d_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type index_d_ListFoldersOptions as ListFoldersOptions, type index_d_ListFoldersRequest as ListFoldersRequest, type index_d_ListFoldersResponse as ListFoldersResponse, type index_d_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, index_d_Namespace as Namespace, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_RootFolder as RootFolder, type index_d_SearchFoldersOptions as SearchFoldersOptions, type index_d_SearchFoldersRequest as SearchFoldersRequest, type index_d_SearchFoldersResponse as SearchFoldersResponse, type index_d_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_UpdateFolder as UpdateFolder, type index_d_UpdateFolderRequest as UpdateFolderRequest, type index_d_UpdateFolderResponse as UpdateFolderResponse, type index_d_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType,
|
|
3475
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type index_d_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type index_d_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type index_d_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type index_d_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type index_d_CreateFolderOptions as CreateFolderOptions, type index_d_CreateFolderRequest as CreateFolderRequest, type index_d_CreateFolderResponse as CreateFolderResponse, type index_d_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_Folder as Folder, type index_d_FolderCreatedEnvelope as FolderCreatedEnvelope, type index_d_FolderDeletedEnvelope as FolderDeletedEnvelope, type index_d_FolderNonNullableFields as FolderNonNullableFields, type index_d_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type index_d_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type index_d_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type index_d_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type index_d_GetFolderRequest as GetFolderRequest, type index_d_GetFolderResponse as GetFolderResponse, type index_d_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type index_d_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type index_d_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type index_d_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type index_d_ListFoldersOptions as ListFoldersOptions, type index_d_ListFoldersRequest as ListFoldersRequest, type index_d_ListFoldersResponse as ListFoldersResponse, type index_d_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, index_d_Namespace as Namespace, type index_d_PagingMetadataV2 as PagingMetadataV2, type index_d_RestoreInfo as RestoreInfo, index_d_RootFolder as RootFolder, type index_d_SearchFoldersOptions as SearchFoldersOptions, type index_d_SearchFoldersRequest as SearchFoldersRequest, type index_d_SearchFoldersResponse as SearchFoldersResponse, type index_d_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, index_d_State as State, type index_d_UpdateFolder as UpdateFolder, type index_d_UpdateFolderRequest as UpdateFolderRequest, type index_d_UpdateFolderResponse as UpdateFolderResponse, type index_d_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, index_d_WebhookIdentityType as WebhookIdentityType, index_d_bulkDeleteFolders as bulkDeleteFolders, index_d_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, index_d_createFolder as createFolder, index_d_generateFolderDownloadUrl as generateFolderDownloadUrl, index_d_getFolder as getFolder, index_d_listDeletedFolders as listDeletedFolders, index_d_listFolders as listFolders, index_d_onFolderCreated as onFolderCreated, index_d_onFolderDeleted as onFolderDeleted, index_d_onFolderUpdated as onFolderUpdated, index_d_searchFolders as searchFolders, index_d_updateFolder as updateFolder };
|
|
4323
3476
|
}
|
|
4324
3477
|
|
|
4325
3478
|
export { index_d$3 as enterpriseMediaCategories, index_d$2 as enterpriseMediaItems, index_d$1 as files, index_d as folders };
|