@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 };
|
|
@@ -46,16 +46,13 @@ __export(index_typings_exports, {
|
|
|
46
46
|
importFile: () => importFile2,
|
|
47
47
|
listDeletedFiles: () => listDeletedFiles2,
|
|
48
48
|
listFiles: () => listFiles2,
|
|
49
|
-
queryFileDescriptors: () => queryFileDescriptors2,
|
|
50
49
|
searchFiles: () => searchFiles2,
|
|
51
|
-
typedQueryFileDescriptors: () => typedQueryFileDescriptors,
|
|
52
50
|
updateFileDescriptor: () => updateFileDescriptor2
|
|
53
51
|
});
|
|
54
52
|
module.exports = __toCommonJS(index_typings_exports);
|
|
55
53
|
|
|
56
54
|
// src/media-site-media-v1-file-descriptor-files.universal.ts
|
|
57
55
|
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
58
|
-
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
59
56
|
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
60
57
|
|
|
61
58
|
// src/media-site-media-v1-file-descriptor-files.http.ts
|
|
@@ -1074,94 +1071,6 @@ function listDeletedFiles(payload) {
|
|
|
1074
1071
|
}
|
|
1075
1072
|
return __listDeletedFiles;
|
|
1076
1073
|
}
|
|
1077
|
-
function queryFileDescriptors(payload) {
|
|
1078
|
-
function __queryFileDescriptors({ host }) {
|
|
1079
|
-
const metadata = {
|
|
1080
|
-
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
1081
|
-
method: "GET",
|
|
1082
|
-
methodFqn: "com.wix.media.site_media.v1.FilesService.QueryFileDescriptors",
|
|
1083
|
-
packageName: PACKAGE_NAME,
|
|
1084
|
-
migrationOptions: {
|
|
1085
|
-
optInTransformResponse: true
|
|
1086
|
-
},
|
|
1087
|
-
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
1088
|
-
protoPath: "/v1/files/query",
|
|
1089
|
-
data: payload,
|
|
1090
|
-
host
|
|
1091
|
-
}),
|
|
1092
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
1093
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1094
|
-
{
|
|
1095
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1096
|
-
paths: [
|
|
1097
|
-
{ path: "files.createdDate" },
|
|
1098
|
-
{ path: "files.updatedDate" },
|
|
1099
|
-
{ path: "files.lastUsedDate" },
|
|
1100
|
-
{ path: "files.media.image.image.urlExpirationDate" },
|
|
1101
|
-
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
1102
|
-
{ path: "files.media.video.urlExpirationDate" },
|
|
1103
|
-
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
1104
|
-
{
|
|
1105
|
-
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
1106
|
-
},
|
|
1107
|
-
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
1108
|
-
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
1109
|
-
{ path: "files.media.document.urlExpirationDate" },
|
|
1110
|
-
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
1111
|
-
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
1112
|
-
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
1113
|
-
{ path: "files.media.archive.urlExpirationDate" },
|
|
1114
|
-
{ path: "files.media.model3d.urlExpirationDate" },
|
|
1115
|
-
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
1116
|
-
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
1117
|
-
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
1118
|
-
]
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1122
|
-
paths: [
|
|
1123
|
-
{ path: "files.media.image.image.focalPoint.x" },
|
|
1124
|
-
{ path: "files.media.image.image.focalPoint.y" },
|
|
1125
|
-
{ path: "files.media.image.faces.confidence" },
|
|
1126
|
-
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
1127
|
-
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
1128
|
-
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
1129
|
-
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
1130
|
-
{ path: "files.media.video.posters.focalPoint.x" },
|
|
1131
|
-
{ path: "files.media.video.posters.focalPoint.y" },
|
|
1132
|
-
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
1133
|
-
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
1134
|
-
{ path: "files.media.vector.image.focalPoint.x" },
|
|
1135
|
-
{ path: "files.media.vector.image.focalPoint.y" },
|
|
1136
|
-
{ path: "files.media.vector.faces.confidence" },
|
|
1137
|
-
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
1138
|
-
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
1139
|
-
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
1140
|
-
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
1141
|
-
{ path: "files.media.icon.image.focalPoint.x" },
|
|
1142
|
-
{ path: "files.media.icon.image.focalPoint.y" },
|
|
1143
|
-
{ path: "files.media.icon.faces.confidence" },
|
|
1144
|
-
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
1145
|
-
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
1146
|
-
]
|
|
1147
|
-
}
|
|
1148
|
-
]),
|
|
1149
|
-
fallback: [
|
|
1150
|
-
{
|
|
1151
|
-
method: "POST",
|
|
1152
|
-
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
1153
|
-
protoPath: "/v1/files/query",
|
|
1154
|
-
data: payload,
|
|
1155
|
-
host
|
|
1156
|
-
}),
|
|
1157
|
-
data: payload
|
|
1158
|
-
}
|
|
1159
|
-
]
|
|
1160
|
-
};
|
|
1161
|
-
return metadata;
|
|
1162
|
-
}
|
|
1163
|
-
return __queryFileDescriptors;
|
|
1164
|
-
}
|
|
1165
1074
|
|
|
1166
1075
|
// src/media-site-media-v1-file-descriptor-files.universal.ts
|
|
1167
1076
|
var import_audio = require("@wix/sdk-runtime/transformations/audio");
|
|
@@ -2045,128 +1954,6 @@ async function listDeletedFiles2(options) {
|
|
|
2045
1954
|
throw transformedError;
|
|
2046
1955
|
}
|
|
2047
1956
|
}
|
|
2048
|
-
function queryFileDescriptors2() {
|
|
2049
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
2050
|
-
return (0, import_query_builder.queryBuilder)({
|
|
2051
|
-
func: async (payload) => {
|
|
2052
|
-
const reqOpts = queryFileDescriptors(
|
|
2053
|
-
payload
|
|
2054
|
-
);
|
|
2055
|
-
sideEffects?.onSiteCall?.();
|
|
2056
|
-
try {
|
|
2057
|
-
const result = await httpClient.request(reqOpts);
|
|
2058
|
-
sideEffects?.onSuccess?.(result);
|
|
2059
|
-
return result;
|
|
2060
|
-
} catch (err) {
|
|
2061
|
-
sideEffects?.onError?.(err);
|
|
2062
|
-
throw err;
|
|
2063
|
-
}
|
|
2064
|
-
},
|
|
2065
|
-
requestTransformer: (query) => {
|
|
2066
|
-
const args = [query, {}];
|
|
2067
|
-
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2068
|
-
...args?.[1],
|
|
2069
|
-
query: args?.[0]
|
|
2070
|
-
});
|
|
2071
|
-
},
|
|
2072
|
-
responseTransformer: ({
|
|
2073
|
-
data
|
|
2074
|
-
}) => {
|
|
2075
|
-
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2076
|
-
(0, import_transform_paths2.transformPaths)(data, [
|
|
2077
|
-
{
|
|
2078
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2079
|
-
paths: [{ path: "files.media.video" }]
|
|
2080
|
-
},
|
|
2081
|
-
{
|
|
2082
|
-
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
2083
|
-
paths: [{ path: "files.media.document" }]
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2087
|
-
paths: [
|
|
2088
|
-
{ path: "files.media.image.image" },
|
|
2089
|
-
{ path: "files.media.image.previewImage" },
|
|
2090
|
-
{ path: "files.media.vector.image" },
|
|
2091
|
-
{ path: "files.media.vector.previewImage" },
|
|
2092
|
-
{ path: "files.media.model3d.thumbnail" },
|
|
2093
|
-
{ path: "files.media.icon.image" },
|
|
2094
|
-
{ path: "files.media.icon.previewImage" }
|
|
2095
|
-
]
|
|
2096
|
-
},
|
|
2097
|
-
{
|
|
2098
|
-
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
2099
|
-
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
2100
|
-
}
|
|
2101
|
-
])
|
|
2102
|
-
);
|
|
2103
|
-
return {
|
|
2104
|
-
items: transformedData?.files,
|
|
2105
|
-
pagingMetadata: transformedData?.pagingMetadata
|
|
2106
|
-
};
|
|
2107
|
-
},
|
|
2108
|
-
errorTransformer: (err) => {
|
|
2109
|
-
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
2110
|
-
spreadPathsToArguments: {},
|
|
2111
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
2112
|
-
singleArgumentUnchanged: false
|
|
2113
|
-
});
|
|
2114
|
-
throw transformedError;
|
|
2115
|
-
},
|
|
2116
|
-
pagingMethod: "CURSOR",
|
|
2117
|
-
transformationPaths: {}
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
async function typedQueryFileDescriptors(query) {
|
|
2121
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2122
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
2123
|
-
const reqOpts = queryFileDescriptors(payload);
|
|
2124
|
-
sideEffects?.onSiteCall?.();
|
|
2125
|
-
try {
|
|
2126
|
-
const result = await httpClient.request(reqOpts);
|
|
2127
|
-
sideEffects?.onSuccess?.(result);
|
|
2128
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
2129
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2130
|
-
{
|
|
2131
|
-
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
2132
|
-
paths: [{ path: "files.media.video" }]
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
2136
|
-
paths: [{ path: "files.media.document" }]
|
|
2137
|
-
},
|
|
2138
|
-
{
|
|
2139
|
-
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2140
|
-
paths: [
|
|
2141
|
-
{ path: "files.media.image.image" },
|
|
2142
|
-
{ path: "files.media.image.previewImage" },
|
|
2143
|
-
{ path: "files.media.vector.image" },
|
|
2144
|
-
{ path: "files.media.vector.previewImage" },
|
|
2145
|
-
{ path: "files.media.model3d.thumbnail" },
|
|
2146
|
-
{ path: "files.media.icon.image" },
|
|
2147
|
-
{ path: "files.media.icon.previewImage" }
|
|
2148
|
-
]
|
|
2149
|
-
},
|
|
2150
|
-
{
|
|
2151
|
-
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
2152
|
-
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
2153
|
-
}
|
|
2154
|
-
])
|
|
2155
|
-
);
|
|
2156
|
-
} catch (err) {
|
|
2157
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2158
|
-
err,
|
|
2159
|
-
{
|
|
2160
|
-
spreadPathsToArguments: {},
|
|
2161
|
-
explicitPathsToArguments: { query: "$[0]" },
|
|
2162
|
-
singleArgumentUnchanged: false
|
|
2163
|
-
},
|
|
2164
|
-
["query"]
|
|
2165
|
-
);
|
|
2166
|
-
sideEffects?.onError?.(err);
|
|
2167
|
-
throw transformedError;
|
|
2168
|
-
}
|
|
2169
|
-
}
|
|
2170
1957
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2171
1958
|
0 && (module.exports = {
|
|
2172
1959
|
ContentDisposition,
|
|
@@ -2195,9 +1982,7 @@ async function typedQueryFileDescriptors(query) {
|
|
|
2195
1982
|
importFile,
|
|
2196
1983
|
listDeletedFiles,
|
|
2197
1984
|
listFiles,
|
|
2198
|
-
queryFileDescriptors,
|
|
2199
1985
|
searchFiles,
|
|
2200
|
-
typedQueryFileDescriptors,
|
|
2201
1986
|
updateFileDescriptor
|
|
2202
1987
|
});
|
|
2203
1988
|
//# sourceMappingURL=index.typings.js.map
|