@wix/auto_sdk_media_files 1.0.61 → 1.0.62
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/build/cjs/index.d.ts +3 -8
- package/build/cjs/index.js +0 -239
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -178
- package/build/cjs/index.typings.js +0 -215
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -57
- package/build/cjs/meta.js +0 -108
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -8
- package/build/es/index.mjs +0 -238
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -178
- package/build/es/index.typings.mjs +0 -213
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -57
- package/build/es/meta.mjs +0 -107
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -8
- package/build/internal/cjs/index.js +0 -239
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -178
- package/build/internal/cjs/index.typings.js +0 -215
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -57
- package/build/internal/cjs/meta.js +0 -108
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -8
- package/build/internal/es/index.mjs +0 -238
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -178
- package/build/internal/es/index.typings.mjs +0 -213
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -57
- package/build/internal/es/meta.mjs +0 -107
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
2
|
|
|
3
3
|
interface FileDescriptor {
|
|
4
4
|
/**
|
|
@@ -971,7 +971,6 @@ interface ImportFileRequest {
|
|
|
971
971
|
/**
|
|
972
972
|
* Publicly accessible external file URL.
|
|
973
973
|
* @format WEB_URL
|
|
974
|
-
* @minLength 2
|
|
975
974
|
*/
|
|
976
975
|
url: string;
|
|
977
976
|
/**
|
|
@@ -1402,59 +1401,6 @@ interface UpdateFileResponse {
|
|
|
1402
1401
|
/** Information about the updated file. */
|
|
1403
1402
|
file?: FileDescriptor;
|
|
1404
1403
|
}
|
|
1405
|
-
interface QueryFileDescriptorsRequest {
|
|
1406
|
-
query?: CursorQuery;
|
|
1407
|
-
}
|
|
1408
|
-
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
1409
|
-
/**
|
|
1410
|
-
* Cursor paging options.
|
|
1411
|
-
*
|
|
1412
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1413
|
-
*/
|
|
1414
|
-
cursorPaging?: CommonCursorPaging;
|
|
1415
|
-
/**
|
|
1416
|
-
* Filter object.
|
|
1417
|
-
*
|
|
1418
|
-
* Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
1419
|
-
*/
|
|
1420
|
-
filter?: Record<string, any> | null;
|
|
1421
|
-
/**
|
|
1422
|
-
* Sort object.
|
|
1423
|
-
*
|
|
1424
|
-
* Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
1425
|
-
* @maxSize 5
|
|
1426
|
-
*/
|
|
1427
|
-
sort?: Sorting[];
|
|
1428
|
-
}
|
|
1429
|
-
/** @oneof */
|
|
1430
|
-
interface CursorQueryPagingMethodOneOf {
|
|
1431
|
-
/**
|
|
1432
|
-
* Cursor paging options.
|
|
1433
|
-
*
|
|
1434
|
-
* Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
1435
|
-
*/
|
|
1436
|
-
cursorPaging?: CommonCursorPaging;
|
|
1437
|
-
}
|
|
1438
|
-
interface CommonCursorPaging {
|
|
1439
|
-
/**
|
|
1440
|
-
* Maximum number of items to return in the results.
|
|
1441
|
-
* @max 100
|
|
1442
|
-
*/
|
|
1443
|
-
limit?: number | null;
|
|
1444
|
-
/**
|
|
1445
|
-
* Pointer to the next or previous page in the list of results.
|
|
1446
|
-
*
|
|
1447
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1448
|
-
* Not relevant for the first request.
|
|
1449
|
-
* @maxLength 16000
|
|
1450
|
-
*/
|
|
1451
|
-
cursor?: string | null;
|
|
1452
|
-
}
|
|
1453
|
-
interface QueryFileDescriptorsResponse {
|
|
1454
|
-
/** @maxSize 200 */
|
|
1455
|
-
files?: FileDescriptor[];
|
|
1456
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1457
|
-
}
|
|
1458
1404
|
interface DomainEvent extends DomainEventBodyOneOf {
|
|
1459
1405
|
createdEvent?: EntityCreatedEvent;
|
|
1460
1406
|
updatedEvent?: EntityUpdatedEvent;
|
|
@@ -2362,127 +2308,5 @@ interface ListDeletedFilesOptions {
|
|
|
2362
2308
|
/** Cursor and paging information. */
|
|
2363
2309
|
paging?: CursorPaging;
|
|
2364
2310
|
}
|
|
2365
|
-
/** @public
|
|
2366
|
-
* @permissionId media:site_media:v1:file_descriptor:query_file_descriptors
|
|
2367
|
-
* @applicableIdentity APP
|
|
2368
|
-
* @fqn com.wix.media.site_media.v1.FilesService.QueryFileDescriptors
|
|
2369
|
-
*/
|
|
2370
|
-
declare function queryFileDescriptors(): FilesQueryBuilder;
|
|
2371
|
-
interface QueryCursorResult {
|
|
2372
|
-
cursors: Cursors;
|
|
2373
|
-
hasNext: () => boolean;
|
|
2374
|
-
hasPrev: () => boolean;
|
|
2375
|
-
length: number;
|
|
2376
|
-
pageSize: number;
|
|
2377
|
-
}
|
|
2378
|
-
interface FilesQueryResult extends QueryCursorResult {
|
|
2379
|
-
items: FileDescriptor[];
|
|
2380
|
-
query: FilesQueryBuilder;
|
|
2381
|
-
next: () => Promise<FilesQueryResult>;
|
|
2382
|
-
prev: () => Promise<FilesQueryResult>;
|
|
2383
|
-
}
|
|
2384
|
-
interface FilesQueryBuilder {
|
|
2385
|
-
/** @param propertyName - Property whose value is compared with `value`.
|
|
2386
|
-
* @param value - Value to compare against.
|
|
2387
|
-
*/
|
|
2388
|
-
eq: (propertyName: 'private' | 'mediaType' | 'state', value: any) => FilesQueryBuilder;
|
|
2389
|
-
in: (propertyName: 'mediaType', value: any) => FilesQueryBuilder;
|
|
2390
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
2391
|
-
ascending: (...propertyNames: Array<'displayName' | 'sizeInBytes' | '_updatedDate'>) => FilesQueryBuilder;
|
|
2392
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
2393
|
-
descending: (...propertyNames: Array<'displayName' | 'sizeInBytes' | '_updatedDate'>) => FilesQueryBuilder;
|
|
2394
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
2395
|
-
limit: (limit: number) => FilesQueryBuilder;
|
|
2396
|
-
/** @param cursor - A pointer to specific record */
|
|
2397
|
-
skipTo: (cursor: string) => FilesQueryBuilder;
|
|
2398
|
-
find: () => Promise<FilesQueryResult>;
|
|
2399
|
-
}
|
|
2400
|
-
/**
|
|
2401
|
-
* @hidden
|
|
2402
|
-
* @fqn com.wix.media.site_media.v1.FilesService.QueryFileDescriptors
|
|
2403
|
-
* @requiredField query
|
|
2404
|
-
*/
|
|
2405
|
-
declare function typedQueryFileDescriptors(query: FileDescriptorQuery): Promise<NonNullablePaths<QueryFileDescriptorsResponse, `files` | `files.${number}._id` | `files.${number}.displayName` | `files.${number}.url` | `files.${number}.hash` | `files.${number}.private` | `files.${number}.mediaType` | `files.${number}.media.audio._id` | `files.${number}.media.archive._id` | `files.${number}.media.archive.url` | `files.${number}.media.model3d._id` | `files.${number}.media.model3d.url` | `files.${number}.operationStatus` | `files.${number}.siteId` | `files.${number}.state`, 6>>;
|
|
2406
|
-
interface FileDescriptorQuerySpec extends QuerySpec {
|
|
2407
|
-
paging: 'cursor';
|
|
2408
|
-
wql: [
|
|
2409
|
-
{
|
|
2410
|
-
fields: ['displayName'];
|
|
2411
|
-
operators: [];
|
|
2412
|
-
sort: 'BOTH';
|
|
2413
|
-
},
|
|
2414
|
-
{
|
|
2415
|
-
fields: ['sizeInBytes'];
|
|
2416
|
-
operators: [];
|
|
2417
|
-
sort: 'BOTH';
|
|
2418
|
-
},
|
|
2419
|
-
{
|
|
2420
|
-
fields: ['private'];
|
|
2421
|
-
operators: ['$eq'];
|
|
2422
|
-
sort: 'NONE';
|
|
2423
|
-
},
|
|
2424
|
-
{
|
|
2425
|
-
fields: ['mediaType'];
|
|
2426
|
-
operators: ['$eq', '$in'];
|
|
2427
|
-
sort: 'NONE';
|
|
2428
|
-
},
|
|
2429
|
-
{
|
|
2430
|
-
fields: ['_updatedDate'];
|
|
2431
|
-
operators: [];
|
|
2432
|
-
sort: 'BOTH';
|
|
2433
|
-
},
|
|
2434
|
-
{
|
|
2435
|
-
fields: ['state'];
|
|
2436
|
-
operators: ['$eq'];
|
|
2437
|
-
sort: 'NONE';
|
|
2438
|
-
}
|
|
2439
|
-
];
|
|
2440
|
-
}
|
|
2441
|
-
type CommonQueryWithEntityContext = Query<FileDescriptor, FileDescriptorQuerySpec>;
|
|
2442
|
-
type FileDescriptorQuery = {
|
|
2443
|
-
/**
|
|
2444
|
-
Cursor paging options.
|
|
2445
|
-
|
|
2446
|
-
Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).
|
|
2447
|
-
*/
|
|
2448
|
-
cursorPaging?: {
|
|
2449
|
-
/**
|
|
2450
|
-
Maximum number of items to return in the results.
|
|
2451
|
-
@max: 100
|
|
2452
|
-
*/
|
|
2453
|
-
limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
|
|
2454
|
-
/**
|
|
2455
|
-
Pointer to the next or previous page in the list of results.
|
|
2456
|
-
|
|
2457
|
-
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
2458
|
-
Not relevant for the first request.
|
|
2459
|
-
@maxLength: 16000
|
|
2460
|
-
*/
|
|
2461
|
-
cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
|
|
2462
|
-
};
|
|
2463
|
-
/**
|
|
2464
|
-
Filter object.
|
|
2465
|
-
|
|
2466
|
-
Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
2467
|
-
*/
|
|
2468
|
-
filter?: CommonQueryWithEntityContext['filter'] | null;
|
|
2469
|
-
/**
|
|
2470
|
-
Sort object.
|
|
2471
|
-
|
|
2472
|
-
Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
|
|
2473
|
-
@maxSize: 5
|
|
2474
|
-
*/
|
|
2475
|
-
sort?: {
|
|
2476
|
-
/**
|
|
2477
|
-
Name of the field to sort by.
|
|
2478
|
-
@maxLength: 512
|
|
2479
|
-
*/
|
|
2480
|
-
fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
|
|
2481
|
-
/**
|
|
2482
|
-
Sort order.
|
|
2483
|
-
*/
|
|
2484
|
-
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
2485
|
-
}[];
|
|
2486
|
-
};
|
|
2487
2311
|
|
|
2488
|
-
export { type ActionEvent, type ApplicationError, type Archive, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors,
|
|
2312
|
+
export { type ActionEvent, type ApplicationError, type Archive, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileDescriptor, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FocalPoint, type FontAsset, type FontMedia, type GenerateAnimatedVectorRequest, type GenerateAnimatedVectorResponse, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type GetSiteFileDescriptorsRequest, type GetSiteFileDescriptorsResponse, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorFileFailed, onFileDescriptorFileReady, searchFiles, updateFileDescriptor };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/media-site-media-v1-file-descriptor-files.universal.ts
|
|
2
2
|
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
-
import { queryBuilder } from "@wix/sdk-runtime/query-builder";
|
|
4
3
|
import {
|
|
5
4
|
renameKeysFromSDKRequestToRESTRequest,
|
|
6
5
|
renameKeysFromRESTResponseToSDKResponse
|
|
@@ -1022,94 +1021,6 @@ function listDeletedFiles(payload) {
|
|
|
1022
1021
|
}
|
|
1023
1022
|
return __listDeletedFiles;
|
|
1024
1023
|
}
|
|
1025
|
-
function queryFileDescriptors(payload) {
|
|
1026
|
-
function __queryFileDescriptors({ host }) {
|
|
1027
|
-
const metadata = {
|
|
1028
|
-
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
1029
|
-
method: "GET",
|
|
1030
|
-
methodFqn: "com.wix.media.site_media.v1.FilesService.QueryFileDescriptors",
|
|
1031
|
-
packageName: PACKAGE_NAME,
|
|
1032
|
-
migrationOptions: {
|
|
1033
|
-
optInTransformResponse: true
|
|
1034
|
-
},
|
|
1035
|
-
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
1036
|
-
protoPath: "/v1/files/query",
|
|
1037
|
-
data: payload,
|
|
1038
|
-
host
|
|
1039
|
-
}),
|
|
1040
|
-
params: toURLSearchParams(payload, true),
|
|
1041
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1042
|
-
{
|
|
1043
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1044
|
-
paths: [
|
|
1045
|
-
{ path: "files.createdDate" },
|
|
1046
|
-
{ path: "files.updatedDate" },
|
|
1047
|
-
{ path: "files.lastUsedDate" },
|
|
1048
|
-
{ path: "files.media.image.image.urlExpirationDate" },
|
|
1049
|
-
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
1050
|
-
{ path: "files.media.video.urlExpirationDate" },
|
|
1051
|
-
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
1052
|
-
{
|
|
1053
|
-
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
1054
|
-
},
|
|
1055
|
-
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
1056
|
-
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
1057
|
-
{ path: "files.media.document.urlExpirationDate" },
|
|
1058
|
-
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
1059
|
-
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
1060
|
-
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
1061
|
-
{ path: "files.media.archive.urlExpirationDate" },
|
|
1062
|
-
{ path: "files.media.model3d.urlExpirationDate" },
|
|
1063
|
-
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
1064
|
-
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
1065
|
-
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
1066
|
-
]
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1070
|
-
paths: [
|
|
1071
|
-
{ path: "files.media.image.image.focalPoint.x" },
|
|
1072
|
-
{ path: "files.media.image.image.focalPoint.y" },
|
|
1073
|
-
{ path: "files.media.image.faces.confidence" },
|
|
1074
|
-
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
1075
|
-
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
1076
|
-
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
1077
|
-
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
1078
|
-
{ path: "files.media.video.posters.focalPoint.x" },
|
|
1079
|
-
{ path: "files.media.video.posters.focalPoint.y" },
|
|
1080
|
-
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
1081
|
-
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
1082
|
-
{ path: "files.media.vector.image.focalPoint.x" },
|
|
1083
|
-
{ path: "files.media.vector.image.focalPoint.y" },
|
|
1084
|
-
{ path: "files.media.vector.faces.confidence" },
|
|
1085
|
-
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
1086
|
-
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
1087
|
-
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
1088
|
-
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
1089
|
-
{ path: "files.media.icon.image.focalPoint.x" },
|
|
1090
|
-
{ path: "files.media.icon.image.focalPoint.y" },
|
|
1091
|
-
{ path: "files.media.icon.faces.confidence" },
|
|
1092
|
-
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
1093
|
-
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
1094
|
-
]
|
|
1095
|
-
}
|
|
1096
|
-
]),
|
|
1097
|
-
fallback: [
|
|
1098
|
-
{
|
|
1099
|
-
method: "POST",
|
|
1100
|
-
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
1101
|
-
protoPath: "/v1/files/query",
|
|
1102
|
-
data: payload,
|
|
1103
|
-
host
|
|
1104
|
-
}),
|
|
1105
|
-
data: payload
|
|
1106
|
-
}
|
|
1107
|
-
]
|
|
1108
|
-
};
|
|
1109
|
-
return metadata;
|
|
1110
|
-
}
|
|
1111
|
-
return __queryFileDescriptors;
|
|
1112
|
-
}
|
|
1113
1024
|
|
|
1114
1025
|
// src/media-site-media-v1-file-descriptor-files.universal.ts
|
|
1115
1026
|
import { transformSDKAudioToRESTAudio } from "@wix/sdk-runtime/transformations/audio";
|
|
@@ -1993,128 +1904,6 @@ async function listDeletedFiles2(options) {
|
|
|
1993
1904
|
throw transformedError;
|
|
1994
1905
|
}
|
|
1995
1906
|
}
|
|
1996
|
-
function queryFileDescriptors2() {
|
|
1997
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
1998
|
-
return queryBuilder({
|
|
1999
|
-
func: async (payload) => {
|
|
2000
|
-
const reqOpts = queryFileDescriptors(
|
|
2001
|
-
payload
|
|
2002
|
-
);
|
|
2003
|
-
sideEffects?.onSiteCall?.();
|
|
2004
|
-
try {
|
|
2005
|
-
const result = await httpClient.request(reqOpts);
|
|
2006
|
-
sideEffects?.onSuccess?.(result);
|
|
2007
|
-
return result;
|
|
2008
|
-
} catch (err) {
|
|
2009
|
-
sideEffects?.onError?.(err);
|
|
2010
|
-
throw err;
|
|
2011
|
-
}
|
|
2012
|
-
},
|
|
2013
|
-
requestTransformer: (query) => {
|
|
2014
|
-
const args = [query, {}];
|
|
2015
|
-
return renameKeysFromSDKRequestToRESTRequest({
|
|
2016
|
-
...args?.[1],
|
|
2017
|
-
query: args?.[0]
|
|
2018
|
-
});
|
|
2019
|
-
},
|
|
2020
|
-
responseTransformer: ({
|
|
2021
|
-
data
|
|
2022
|
-
}) => {
|
|
2023
|
-
const transformedData = renameKeysFromRESTResponseToSDKResponse(
|
|
2024
|
-
transformPaths2(data, [
|
|
2025
|
-
{
|
|
2026
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
2027
|
-
paths: [{ path: "files.media.video" }]
|
|
2028
|
-
},
|
|
2029
|
-
{
|
|
2030
|
-
transformFn: transformRESTDocumentToSDKDocument,
|
|
2031
|
-
paths: [{ path: "files.media.document" }]
|
|
2032
|
-
},
|
|
2033
|
-
{
|
|
2034
|
-
transformFn: transformRESTImageToSDKImage,
|
|
2035
|
-
paths: [
|
|
2036
|
-
{ path: "files.media.image.image" },
|
|
2037
|
-
{ path: "files.media.image.previewImage" },
|
|
2038
|
-
{ path: "files.media.vector.image" },
|
|
2039
|
-
{ path: "files.media.vector.previewImage" },
|
|
2040
|
-
{ path: "files.media.model3d.thumbnail" },
|
|
2041
|
-
{ path: "files.media.icon.image" },
|
|
2042
|
-
{ path: "files.media.icon.previewImage" }
|
|
2043
|
-
]
|
|
2044
|
-
},
|
|
2045
|
-
{
|
|
2046
|
-
transformFn: transformRESTAudioToSDKAudio,
|
|
2047
|
-
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
2048
|
-
}
|
|
2049
|
-
])
|
|
2050
|
-
);
|
|
2051
|
-
return {
|
|
2052
|
-
items: transformedData?.files,
|
|
2053
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
2054
|
-
};
|
|
2055
|
-
},
|
|
2056
|
-
errorTransformer: (err) => {
|
|
2057
|
-
const transformedError = sdkTransformError(err, {
|
|
2058
|
-
spreadPathsToArguments: {},
|
|
2059
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
2060
|
-
singleArgumentUnchanged: false
|
|
2061
|
-
});
|
|
2062
|
-
throw transformedError;
|
|
2063
|
-
},
|
|
2064
|
-
pagingMethod: "CURSOR",
|
|
2065
|
-
transformationPaths: {}
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
async function typedQueryFileDescriptors(query) {
|
|
2069
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2070
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
2071
|
-
const reqOpts = queryFileDescriptors(payload);
|
|
2072
|
-
sideEffects?.onSiteCall?.();
|
|
2073
|
-
try {
|
|
2074
|
-
const result = await httpClient.request(reqOpts);
|
|
2075
|
-
sideEffects?.onSuccess?.(result);
|
|
2076
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
2077
|
-
transformPaths2(result.data, [
|
|
2078
|
-
{
|
|
2079
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
2080
|
-
paths: [{ path: "files.media.video" }]
|
|
2081
|
-
},
|
|
2082
|
-
{
|
|
2083
|
-
transformFn: transformRESTDocumentToSDKDocument,
|
|
2084
|
-
paths: [{ path: "files.media.document" }]
|
|
2085
|
-
},
|
|
2086
|
-
{
|
|
2087
|
-
transformFn: transformRESTImageToSDKImage,
|
|
2088
|
-
paths: [
|
|
2089
|
-
{ path: "files.media.image.image" },
|
|
2090
|
-
{ path: "files.media.image.previewImage" },
|
|
2091
|
-
{ path: "files.media.vector.image" },
|
|
2092
|
-
{ path: "files.media.vector.previewImage" },
|
|
2093
|
-
{ path: "files.media.model3d.thumbnail" },
|
|
2094
|
-
{ path: "files.media.icon.image" },
|
|
2095
|
-
{ path: "files.media.icon.previewImage" }
|
|
2096
|
-
]
|
|
2097
|
-
},
|
|
2098
|
-
{
|
|
2099
|
-
transformFn: transformRESTAudioToSDKAudio,
|
|
2100
|
-
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
2101
|
-
}
|
|
2102
|
-
])
|
|
2103
|
-
);
|
|
2104
|
-
} catch (err) {
|
|
2105
|
-
const transformedError = sdkTransformError(
|
|
2106
|
-
err,
|
|
2107
|
-
{
|
|
2108
|
-
spreadPathsToArguments: {},
|
|
2109
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
2110
|
-
singleArgumentUnchanged: false
|
|
2111
|
-
},
|
|
2112
|
-
["query"]
|
|
2113
|
-
);
|
|
2114
|
-
sideEffects?.onError?.(err);
|
|
2115
|
-
throw transformedError;
|
|
2116
|
-
}
|
|
2117
|
-
}
|
|
2118
1907
|
export {
|
|
2119
1908
|
ContentDisposition,
|
|
2120
1909
|
IdentityType,
|
|
@@ -2142,9 +1931,7 @@ export {
|
|
|
2142
1931
|
importFile2 as importFile,
|
|
2143
1932
|
listDeletedFiles2 as listDeletedFiles,
|
|
2144
1933
|
listFiles2 as listFiles,
|
|
2145
|
-
queryFileDescriptors2 as queryFileDescriptors,
|
|
2146
1934
|
searchFiles2 as searchFiles,
|
|
2147
|
-
typedQueryFileDescriptors,
|
|
2148
1935
|
updateFileDescriptor2 as updateFileDescriptor
|
|
2149
1936
|
};
|
|
2150
1937
|
//# sourceMappingURL=index.typings.mjs.map
|