Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/media_files

Package Overview
Dependencies
Maintainers
26
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/media_files - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

7

build/cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts

@@ -1,3 +0,3 @@

import { HttpClient, EventDefinition } from '@wix/sdk-types';
import { UpdateFileDescriptorFile, ImportFileRequest, BulkDeleteFilesOptions, BulkImportFileOptions, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions } from './media-site-media-v1-file-descriptor-files.universal';
import { EventDefinition, HttpClient } from '@wix/sdk-types';
import { BulkDeleteFilesOptions, BulkImportFileOptions, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ImportFileRequest, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions, UpdateFileDescriptorFile } from './media-site-media-v1-file-descriptor-files.universal';
export declare const __metadata: {

@@ -138,3 +138,2 @@ PACKAGE_NAME: string;

export declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
export { MediaType, OperationStatus, State, Namespace, IdentityType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal';
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, IdentityInfo, FileReady, ExternalInfo, FileFailed, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileRequest, UpdateFileResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ItemMetadata, ApplicationError, BulkActionMetadata, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorUpdatedEnvelope, FileDescriptorDeletedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorFileFailedEnvelope, GenerateFileDownloadUrlOptions, UpdateFileDescriptorFile, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal';
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlResponseNonNullableFields, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileUploadUrlResponseNonNullableFields, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateVideoStreamingUrlResponseNonNullableFields, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsRequest, GetFileDescriptorsResponse, GetFileDescriptorsResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, SortOrder, Sorting, State, StreamFormat, UpdateFileDescriptorFile, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookIdentityType = exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = exports.onFileDescriptorFileFailed = exports.onFileDescriptorFileReady = exports.onFileDescriptorDeleted = exports.onFileDescriptorUpdated = exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFile = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFileDescriptor = exports.getFileDescriptors = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = exports.__metadata = void 0;
exports.WebhookIdentityType = exports.UploadProtocol = exports.StreamFormat = exports.State = exports.SortOrder = exports.RootFolder = exports.OperationStatus = exports.Namespace = exports.MediaType = exports.IdentityType = exports.ContentDisposition = exports.onFileDescriptorFileFailed = exports.onFileDescriptorFileReady = exports.onFileDescriptorDeleted = exports.onFileDescriptorUpdated = exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFile = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFileDescriptor = exports.getFileDescriptors = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = exports.__metadata = void 0;
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
const audio_1 = require("@wix/sdk-runtime/transformations/audio");
const document_1 = require("@wix/sdk-runtime/transformations/document");
const float_1 = require("@wix/sdk-runtime/transformations/float");
const image_1 = require("@wix/sdk-runtime/transformations/image");
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
const video_v2_1 = require("@wix/sdk-runtime/transformations/video-v2");
const sdk_types_1 = require("@wix/sdk-types");

@@ -103,80 +111,143 @@ const media_site_media_v1_file_descriptor_files_universal_1 = require("./media-site-media-v1-file-descriptor-files.universal");

exports.listDeletedFiles = listDeletedFiles;
const _archive = { urlExpirationDate: 'google.protobuf.Timestamp' };
const _audioV2 = { assets: 'wix.common.Audio' };
const _faceRecognition = { confidence: 'DOUBLE' };
const _fileDescriptor = {
createdDate: 'google.protobuf.Timestamp',
updatedDate: 'google.protobuf.Timestamp',
media: '_fileMedia',
};
const _fileFailed = {};
const _fileMedia = {
video: 'wix.common.VideoV2',
document: 'wix.common.Document',
image: '_imageMedia',
audio: '_audioV2',
vector: '_imageMedia',
archive: '_archive',
model3d: '_model3D',
};
const _fileReady = { file: '_fileDescriptor' };
const _imageMedia = {
image: 'wix.common.Image',
previewImage: 'wix.common.Image',
faces: '_faceRecognition',
};
const _model3D = {
thumbnail: 'wix.common.Image',
urlExpirationDate: 'google.protobuf.Timestamp',
};
exports.onFileDescriptorUpdated = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_updated', true, {
rootSchema: _fileDescriptor,
depSchemas: {
_archive,
_audioV2,
_faceRecognition,
_fileMedia,
_imageMedia,
_model3D,
exports.onFileDescriptorUpdated = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'entity.createdDate' },
{ path: 'entity.updatedDate' },
{ path: 'entity.media.archive.urlExpirationDate' },
{ path: 'entity.media.model3d.urlExpirationDate' },
{ path: 'metadata.eventTime' },
],
},
})();
exports.onFileDescriptorDeleted = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_deleted', true, {
rootSchema: _fileDescriptor,
depSchemas: {
_archive,
_audioV2,
_faceRecognition,
_fileMedia,
_imageMedia,
_model3D,
{
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'entity.media.video' }],
},
})();
exports.onFileDescriptorFileReady = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_file_ready', true, {
rootSchema: _fileReady,
depSchemas: {
_archive,
_audioV2,
_faceRecognition,
_fileDescriptor,
_fileMedia,
_imageMedia,
_model3D,
{
transformFn: document_1.transformRESTDocumentToSDKDocument,
paths: [{ path: 'entity.media.document' }],
},
})();
exports.onFileDescriptorFileFailed = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_file_failed', true, {
rootSchema: _fileFailed,
depSchemas: {},
})();
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [
{ path: 'entity.media.image.image' },
{ path: 'entity.media.image.previewImage' },
{ path: 'entity.media.vector.image' },
{ path: 'entity.media.vector.previewImage' },
{ path: 'entity.media.model3d.thumbnail' },
],
},
{
transformFn: float_1.transformRESTFloatToSDKFloat,
paths: [
{ path: 'entity.media.image.faces.confidence' },
{ path: 'entity.media.vector.faces.confidence' },
],
},
{
transformFn: audio_1.transformRESTAudioToSDKAudio,
paths: [{ path: 'entity.media.audio.assets', isRepeated: true }],
},
])))();
exports.onFileDescriptorDeleted = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'undefined.createdDate' },
{ path: 'undefined.updatedDate' },
{ path: 'undefined.media.archive.urlExpirationDate' },
{ path: 'undefined.media.model3d.urlExpirationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'undefined.media.video' }],
},
{
transformFn: document_1.transformRESTDocumentToSDKDocument,
paths: [{ path: 'undefined.media.document' }],
},
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [
{ path: 'undefined.media.image.image' },
{ path: 'undefined.media.image.previewImage' },
{ path: 'undefined.media.vector.image' },
{ path: 'undefined.media.vector.previewImage' },
{ path: 'undefined.media.model3d.thumbnail' },
],
},
{
transformFn: float_1.transformRESTFloatToSDKFloat,
paths: [
{ path: 'undefined.media.image.faces.confidence' },
{ path: 'undefined.media.vector.faces.confidence' },
],
},
{
transformFn: audio_1.transformRESTAudioToSDKAudio,
paths: [{ path: 'undefined.media.audio.assets', isRepeated: true }],
},
])))();
exports.onFileDescriptorFileReady = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_file_ready', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'data.file.createdDate' },
{ path: 'data.file.updatedDate' },
{ path: 'data.file.media.archive.urlExpirationDate' },
{ path: 'data.file.media.model3d.urlExpirationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: video_v2_1.transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'data.file.media.video' }],
},
{
transformFn: document_1.transformRESTDocumentToSDKDocument,
paths: [{ path: 'data.file.media.document' }],
},
{
transformFn: image_1.transformRESTImageToSDKImage,
paths: [
{ path: 'data.file.media.image.image' },
{ path: 'data.file.media.image.previewImage' },
{ path: 'data.file.media.vector.image' },
{ path: 'data.file.media.vector.previewImage' },
{ path: 'data.file.media.model3d.thumbnail' },
],
},
{
transformFn: float_1.transformRESTFloatToSDKFloat,
paths: [
{ path: 'data.file.media.image.faces.confidence' },
{ path: 'data.file.media.vector.faces.confidence' },
],
},
{
transformFn: audio_1.transformRESTAudioToSDKAudio,
paths: [{ path: 'data.file.media.audio.assets', isRepeated: true }],
},
])))();
exports.onFileDescriptorFileFailed = (0, sdk_types_1.EventDefinition)('wix.media.site_media.v1.file_descriptor_file_failed', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
{
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
paths: [{ path: 'metadata.eventTime' }],
},
])))();
var media_site_media_v1_file_descriptor_files_universal_2 = require("./media-site-media-v1-file-descriptor-files.universal");
Object.defineProperty(exports, "ContentDisposition", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.ContentDisposition; } });
Object.defineProperty(exports, "IdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.IdentityType; } });
Object.defineProperty(exports, "MediaType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.MediaType; } });
Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.Namespace; } });
Object.defineProperty(exports, "OperationStatus", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.OperationStatus; } });
Object.defineProperty(exports, "RootFolder", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.RootFolder; } });
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.SortOrder; } });
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.State; } });
Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.Namespace; } });
Object.defineProperty(exports, "IdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.IdentityType; } });
Object.defineProperty(exports, "ContentDisposition", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.ContentDisposition; } });
Object.defineProperty(exports, "StreamFormat", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.StreamFormat; } });
Object.defineProperty(exports, "UploadProtocol", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.UploadProtocol; } });
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.SortOrder; } });
Object.defineProperty(exports, "RootFolder", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.RootFolder; } });
Object.defineProperty(exports, "StreamFormat", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.StreamFormat; } });
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_2.WebhookIdentityType; } });
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.public.js.map

@@ -1,3 +0,3 @@

import { HttpClient, EventDefinition } from '@wix/sdk-types';
import { UpdateFileDescriptorFile, ImportFileRequest, BulkDeleteFilesOptions, BulkImportFileOptions, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions } from './media-site-media-v1-file-descriptor-files.universal';
import { EventDefinition, HttpClient } from '@wix/sdk-types';
import { BulkDeleteFilesOptions, BulkImportFileOptions, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ImportFileRequest, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions, UpdateFileDescriptorFile } from './media-site-media-v1-file-descriptor-files.universal';
export declare const __metadata: {

@@ -138,3 +138,2 @@ PACKAGE_NAME: string;

export declare const onFileDescriptorFileFailed: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
export { MediaType, OperationStatus, State, Namespace, IdentityType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal';
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, IdentityInfo, FileReady, ExternalInfo, FileFailed, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileRequest, UpdateFileResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ItemMetadata, ApplicationError, BulkActionMetadata, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorUpdatedEnvelope, FileDescriptorDeletedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorFileFailedEnvelope, GenerateFileDownloadUrlOptions, UpdateFileDescriptorFile, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal';
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlResponseNonNullableFields, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileUploadUrlResponseNonNullableFields, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateVideoStreamingUrlResponseNonNullableFields, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsRequest, GetFileDescriptorsResponse, GetFileDescriptorsResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, SortOrder, Sorting, State, StreamFormat, UpdateFileDescriptorFile, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal';

@@ -0,3 +1,11 @@

import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';
import { transformRESTAudioToSDKAudio } from '@wix/sdk-runtime/transformations/audio';
import { transformRESTDocumentToSDKDocument } from '@wix/sdk-runtime/transformations/document';
import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
import { transformRESTVideoV2ToSDKVideoV2 } from '@wix/sdk-runtime/transformations/video-v2';
import { EventDefinition } from '@wix/sdk-types';
import { generateFilesDownloadUrl as universalGenerateFilesDownloadUrl, generateFileDownloadUrl as universalGenerateFileDownloadUrl, getFileDescriptor as universalGetFileDescriptor, getFileDescriptors as universalGetFileDescriptors, updateFileDescriptor as universalUpdateFileDescriptor, generateFileUploadUrl as universalGenerateFileUploadUrl, generateFileResumableUploadUrl as universalGenerateFileResumableUploadUrl, importFile as universalImportFile, bulkImportFiles as universalBulkImportFiles, bulkImportFile as universalBulkImportFile, listFiles as universalListFiles, searchFiles as universalSearchFiles, generateVideoStreamingUrl as universalGenerateVideoStreamingUrl, bulkDeleteFiles as universalBulkDeleteFiles, bulkRestoreFilesFromTrashBin as universalBulkRestoreFilesFromTrashBin, listDeletedFiles as universalListDeletedFiles, } from './media-site-media-v1-file-descriptor-files.universal';
import { bulkDeleteFiles as universalBulkDeleteFiles, bulkImportFile as universalBulkImportFile, bulkImportFiles as universalBulkImportFiles, bulkRestoreFilesFromTrashBin as universalBulkRestoreFilesFromTrashBin, generateFileDownloadUrl as universalGenerateFileDownloadUrl, generateFileResumableUploadUrl as universalGenerateFileResumableUploadUrl, generateFileUploadUrl as universalGenerateFileUploadUrl, generateFilesDownloadUrl as universalGenerateFilesDownloadUrl, generateVideoStreamingUrl as universalGenerateVideoStreamingUrl, getFileDescriptor as universalGetFileDescriptor, getFileDescriptors as universalGetFileDescriptors, importFile as universalImportFile, listDeletedFiles as universalListDeletedFiles, listFiles as universalListFiles, searchFiles as universalSearchFiles, updateFileDescriptor as universalUpdateFileDescriptor, } from './media-site-media-v1-file-descriptor-files.universal';
export const __metadata = { PACKAGE_NAME: '@wix/media' };

@@ -84,69 +92,132 @@ export function generateFilesDownloadUrl(httpClient) {

}
const _archive = { urlExpirationDate: 'google.protobuf.Timestamp' };
const _audioV2 = { assets: 'wix.common.Audio' };
const _faceRecognition = { confidence: 'DOUBLE' };
const _fileDescriptor = {
createdDate: 'google.protobuf.Timestamp',
updatedDate: 'google.protobuf.Timestamp',
media: '_fileMedia',
};
const _fileFailed = {};
const _fileMedia = {
video: 'wix.common.VideoV2',
document: 'wix.common.Document',
image: '_imageMedia',
audio: '_audioV2',
vector: '_imageMedia',
archive: '_archive',
model3d: '_model3D',
};
const _fileReady = { file: '_fileDescriptor' };
const _imageMedia = {
image: 'wix.common.Image',
previewImage: 'wix.common.Image',
faces: '_faceRecognition',
};
const _model3D = {
thumbnail: 'wix.common.Image',
urlExpirationDate: 'google.protobuf.Timestamp',
};
export const onFileDescriptorUpdated = EventDefinition('wix.media.site_media.v1.file_descriptor_updated', true, {
rootSchema: _fileDescriptor,
depSchemas: {
_archive,
_audioV2,
_faceRecognition,
_fileMedia,
_imageMedia,
_model3D,
export const onFileDescriptorUpdated = EventDefinition('wix.media.site_media.v1.file_descriptor_updated', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'entity.createdDate' },
{ path: 'entity.updatedDate' },
{ path: 'entity.media.archive.urlExpirationDate' },
{ path: 'entity.media.model3d.urlExpirationDate' },
{ path: 'metadata.eventTime' },
],
},
})();
export const onFileDescriptorDeleted = EventDefinition('wix.media.site_media.v1.file_descriptor_deleted', true, {
rootSchema: _fileDescriptor,
depSchemas: {
_archive,
_audioV2,
_faceRecognition,
_fileMedia,
_imageMedia,
_model3D,
{
transformFn: transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'entity.media.video' }],
},
})();
export const onFileDescriptorFileReady = EventDefinition('wix.media.site_media.v1.file_descriptor_file_ready', true, {
rootSchema: _fileReady,
depSchemas: {
_archive,
_audioV2,
_faceRecognition,
_fileDescriptor,
_fileMedia,
_imageMedia,
_model3D,
{
transformFn: transformRESTDocumentToSDKDocument,
paths: [{ path: 'entity.media.document' }],
},
})();
export const onFileDescriptorFileFailed = EventDefinition('wix.media.site_media.v1.file_descriptor_file_failed', true, {
rootSchema: _fileFailed,
depSchemas: {},
})();
export { MediaType, OperationStatus, State, Namespace, IdentityType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal';
{
transformFn: transformRESTImageToSDKImage,
paths: [
{ path: 'entity.media.image.image' },
{ path: 'entity.media.image.previewImage' },
{ path: 'entity.media.vector.image' },
{ path: 'entity.media.vector.previewImage' },
{ path: 'entity.media.model3d.thumbnail' },
],
},
{
transformFn: transformRESTFloatToSDKFloat,
paths: [
{ path: 'entity.media.image.faces.confidence' },
{ path: 'entity.media.vector.faces.confidence' },
],
},
{
transformFn: transformRESTAudioToSDKAudio,
paths: [{ path: 'entity.media.audio.assets', isRepeated: true }],
},
])))();
export const onFileDescriptorDeleted = EventDefinition('wix.media.site_media.v1.file_descriptor_deleted', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'undefined.createdDate' },
{ path: 'undefined.updatedDate' },
{ path: 'undefined.media.archive.urlExpirationDate' },
{ path: 'undefined.media.model3d.urlExpirationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'undefined.media.video' }],
},
{
transformFn: transformRESTDocumentToSDKDocument,
paths: [{ path: 'undefined.media.document' }],
},
{
transformFn: transformRESTImageToSDKImage,
paths: [
{ path: 'undefined.media.image.image' },
{ path: 'undefined.media.image.previewImage' },
{ path: 'undefined.media.vector.image' },
{ path: 'undefined.media.vector.previewImage' },
{ path: 'undefined.media.model3d.thumbnail' },
],
},
{
transformFn: transformRESTFloatToSDKFloat,
paths: [
{ path: 'undefined.media.image.faces.confidence' },
{ path: 'undefined.media.vector.faces.confidence' },
],
},
{
transformFn: transformRESTAudioToSDKAudio,
paths: [{ path: 'undefined.media.audio.assets', isRepeated: true }],
},
])))();
export const onFileDescriptorFileReady = EventDefinition('wix.media.site_media.v1.file_descriptor_file_ready', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTTimestampToSDKTimestamp,
paths: [
{ path: 'data.file.createdDate' },
{ path: 'data.file.updatedDate' },
{ path: 'data.file.media.archive.urlExpirationDate' },
{ path: 'data.file.media.model3d.urlExpirationDate' },
{ path: 'metadata.eventTime' },
],
},
{
transformFn: transformRESTVideoV2ToSDKVideoV2,
paths: [{ path: 'data.file.media.video' }],
},
{
transformFn: transformRESTDocumentToSDKDocument,
paths: [{ path: 'data.file.media.document' }],
},
{
transformFn: transformRESTImageToSDKImage,
paths: [
{ path: 'data.file.media.image.image' },
{ path: 'data.file.media.image.previewImage' },
{ path: 'data.file.media.vector.image' },
{ path: 'data.file.media.vector.previewImage' },
{ path: 'data.file.media.model3d.thumbnail' },
],
},
{
transformFn: transformRESTFloatToSDKFloat,
paths: [
{ path: 'data.file.media.image.faces.confidence' },
{ path: 'data.file.media.vector.faces.confidence' },
],
},
{
transformFn: transformRESTAudioToSDKAudio,
paths: [{ path: 'data.file.media.audio.assets', isRepeated: true }],
},
])))();
export const onFileDescriptorFileFailed = EventDefinition('wix.media.site_media.v1.file_descriptor_file_failed', true, (event) => renameKeysFromRESTResponseToSDKResponse(transformPaths(event, [
{
transformFn: transformRESTTimestampToSDKTimestamp,
paths: [{ path: 'metadata.eventTime' }],
},
])))();
export { ContentDisposition, IdentityType, MediaType, Namespace, OperationStatus, RootFolder, SortOrder, State, StreamFormat, UploadProtocol, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal';
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.public.js.map
{
"name": "@wix/media_files",
"version": "1.0.19",
"version": "1.0.20",
"publishConfig": {

@@ -21,3 +21,3 @@ "registry": "https://registry.npmjs.org/",

"@wix/motion-edm-autogen-query-wrapper": "^1.0.37",
"@wix/sdk-runtime": "^0.2.10",
"@wix/sdk-runtime": "^0.2.12",
"@wix/sdk-types": "^1.6.2"

@@ -43,3 +43,3 @@ },

},
"falconPackageHash": "91b131e63ba80c723ffbb4e9f43e9dcafb4f7b9310eaac4f4d7c76eb"
"falconPackageHash": "dc04d376e5c0c399d3f590d4a984436100a77ea2cfd3cf9913006df6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc