@wix/media_files
Advanced tools
Comparing version
@@ -44,3 +44,3 @@ import { generateFilesDownloadUrl as publicGenerateFilesDownloadUrl, generateFileDownloadUrl as publicGenerateFileDownloadUrl, getFileDescriptor as publicGetFileDescriptor, getFileDescriptors as publicGetFileDescriptors, updateFileDescriptor as publicUpdateFileDescriptor, generateFileUploadUrl as publicGenerateFileUploadUrl, generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl, importFile as publicImportFile, bulkImportFiles as publicBulkImportFiles, bulkImportFile as publicBulkImportFile, listFiles as publicListFiles, searchFiles as publicSearchFiles, generateVideoStreamingUrl as publicGenerateVideoStreamingUrl, bulkDeleteFiles as publicBulkDeleteFiles, bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin, listDeletedFiles as publicListDeletedFiles } from './media-site-media-v1-file-descriptor-files.public.js'; | ||
export declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule<typeof publicOnFileDescriptorUpdated>>; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, WebhookIdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, DraftFilePublished, GetUploadUrlRequest, GetUploadUrlResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, FileReady, ExternalInfo, FileFailed, ApplicationError, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkAnnotateImageResult, ItemMetadata, BulkActionMetadata, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, ImageAnnotationConfigurations, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkPublishDraftFileResult, UpdateFileRequest, UpdateFileResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, FileReady, ExternalInfo, FileFailed, ApplicationError, DraftFilePublished, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkAnnotateImageResult, ItemMetadata, BulkActionMetadata, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, ImageAnnotationConfigurations, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkPublishDraftFileResult, UpdateFileRequest, UpdateFileResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal.js'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.ImageAnnotationType = exports.WebhookIdentityType = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = exports.onFileDescriptorUpdated = exports.onFileDescriptorFileReady = exports.onFileDescriptorFileFailed = exports.onFileDescriptorDeleted = 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 = void 0; | ||
exports.WebhookIdentityType = exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.ImageAnnotationType = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = exports.onFileDescriptorUpdated = exports.onFileDescriptorFileReady = exports.onFileDescriptorFileFailed = exports.onFileDescriptorDeleted = 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 = void 0; | ||
const media_site_media_v1_file_descriptor_files_public_js_1 = require("./media-site-media-v1-file-descriptor-files.public.js"); | ||
@@ -53,3 +53,2 @@ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules"); | ||
Object.defineProperty(exports, "IdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_js_1.IdentityType; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_js_1.WebhookIdentityType; } }); | ||
Object.defineProperty(exports, "ImageAnnotationType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_js_1.ImageAnnotationType; } }); | ||
@@ -61,2 +60,3 @@ Object.defineProperty(exports, "ContentDisposition", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_js_1.ContentDisposition; } }); | ||
Object.defineProperty(exports, "StreamFormat", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_js_1.StreamFormat; } }); | ||
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_files_universal_js_1.WebhookIdentityType; } }); | ||
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.context.js.map |
@@ -265,2 +265,2 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, 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, GetUploadUrlRequest, GetUploadUrlResponse, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, 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, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; |
@@ -434,132 +434,2 @@ export interface FileDescriptor { | ||
} | ||
export interface DraftFilePublished { | ||
/** The file after it was published */ | ||
file?: FileDescriptor; | ||
/** The namespace the file was published to */ | ||
namespace?: Namespace; | ||
} | ||
export interface GetUploadUrlRequest { | ||
/** file size in bytes */ | ||
fileSize?: number; | ||
/** file name */ | ||
fileName?: string; | ||
/** file content type */ | ||
contentType?: string; | ||
} | ||
export interface GetUploadUrlResponse { | ||
/** file upload url */ | ||
uploadUrl?: string; | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
* Unique event ID. | ||
* Allows clients to ignore duplicate webhooks. | ||
*/ | ||
id?: string; | ||
/** | ||
* Assumes actions are also always typed to an entity_type | ||
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction | ||
*/ | ||
entityFqdn?: string; | ||
/** | ||
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) | ||
* This is although the created/updated/deleted notion is duplication of the oneof types | ||
* Example: created/updated/deleted/started/completed/email_opened | ||
*/ | ||
slug?: string; | ||
/** ID of the entity associated with the event. */ | ||
entityId?: string; | ||
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ | ||
eventTime?: Date | null; | ||
/** | ||
* Whether the event was triggered as a result of a privacy regulation application | ||
* (for example, GDPR). | ||
*/ | ||
triggeredByAnonymizeRequest?: boolean | null; | ||
/** If present, indicates the action that triggered the event. */ | ||
originatedFrom?: string | null; | ||
/** | ||
* A sequence number defining the order of updates to the underlying entity. | ||
* For example, given that some entity was updated at 16:00 and than again at 16:01, | ||
* it is guaranteed that the sequence number of the second update is strictly higher than the first. | ||
* As the consumer, you can use this value to ensure that you handle messages in the correct order. | ||
* To do so, you will need to persist this number on your end, and compare the sequence number from the | ||
* message against the one you have stored. Given that the stored number is higher, you should ignore the message. | ||
*/ | ||
entityEventSequence?: string | null; | ||
} | ||
/** @oneof */ | ||
export interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
export interface EntityCreatedEvent { | ||
entityAsJson?: string; | ||
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ | ||
restoreInfo?: RestoreInfo; | ||
} | ||
export interface RestoreInfo { | ||
deletedDate?: Date | null; | ||
} | ||
export interface EntityUpdatedEvent { | ||
/** | ||
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. | ||
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. | ||
*/ | ||
currentEntityAsJson?: string; | ||
} | ||
export interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntityAsJson?: string | null; | ||
} | ||
export interface ActionEvent { | ||
bodyAsJson?: string; | ||
} | ||
export interface MessageEnvelope { | ||
/** App instance ID. */ | ||
instanceId?: string | null; | ||
/** Event type. */ | ||
eventType?: string; | ||
/** The identification type and identity data. */ | ||
identity?: IdentificationData; | ||
/** Stringify payload. */ | ||
data?: string; | ||
} | ||
export interface IdentificationData extends IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
/** @readonly */ | ||
identityType?: WebhookIdentityType; | ||
} | ||
/** @oneof */ | ||
export interface IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
} | ||
export declare enum WebhookIdentityType { | ||
UNKNOWN = "UNKNOWN", | ||
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", | ||
MEMBER = "MEMBER", | ||
WIX_USER = "WIX_USER", | ||
APP = "APP" | ||
} | ||
export interface FileReady { | ||
@@ -593,2 +463,8 @@ /** File entity that is ready with full information. */ | ||
} | ||
export interface DraftFilePublished { | ||
/** The file after it was published */ | ||
file?: FileDescriptor; | ||
/** The namespace the file was published to */ | ||
namespace?: Namespace; | ||
} | ||
export interface BulkAnnotateImagesRequest { | ||
@@ -1214,2 +1090,114 @@ /** The file ids to run detection on */ | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
* Unique event ID. | ||
* Allows clients to ignore duplicate webhooks. | ||
*/ | ||
id?: string; | ||
/** | ||
* Assumes actions are also always typed to an entity_type | ||
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction | ||
*/ | ||
entityFqdn?: string; | ||
/** | ||
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) | ||
* This is although the created/updated/deleted notion is duplication of the oneof types | ||
* Example: created/updated/deleted/started/completed/email_opened | ||
*/ | ||
slug?: string; | ||
/** ID of the entity associated with the event. */ | ||
entityId?: string; | ||
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ | ||
eventTime?: Date | null; | ||
/** | ||
* Whether the event was triggered as a result of a privacy regulation application | ||
* (for example, GDPR). | ||
*/ | ||
triggeredByAnonymizeRequest?: boolean | null; | ||
/** If present, indicates the action that triggered the event. */ | ||
originatedFrom?: string | null; | ||
/** | ||
* A sequence number defining the order of updates to the underlying entity. | ||
* For example, given that some entity was updated at 16:00 and than again at 16:01, | ||
* it is guaranteed that the sequence number of the second update is strictly higher than the first. | ||
* As the consumer, you can use this value to ensure that you handle messages in the correct order. | ||
* To do so, you will need to persist this number on your end, and compare the sequence number from the | ||
* message against the one you have stored. Given that the stored number is higher, you should ignore the message. | ||
*/ | ||
entityEventSequence?: string | null; | ||
} | ||
/** @oneof */ | ||
export interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
export interface EntityCreatedEvent { | ||
entityAsJson?: string; | ||
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ | ||
restoreInfo?: RestoreInfo; | ||
} | ||
export interface RestoreInfo { | ||
deletedDate?: Date | null; | ||
} | ||
export interface EntityUpdatedEvent { | ||
/** | ||
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. | ||
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. | ||
*/ | ||
currentEntityAsJson?: string; | ||
} | ||
export interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntityAsJson?: string | null; | ||
} | ||
export interface ActionEvent { | ||
bodyAsJson?: string; | ||
} | ||
export interface MessageEnvelope { | ||
/** App instance ID. */ | ||
instanceId?: string | null; | ||
/** Event type. */ | ||
eventType?: string; | ||
/** The identification type and identity data. */ | ||
identity?: IdentificationData; | ||
/** Stringify payload. */ | ||
data?: string; | ||
} | ||
export interface IdentificationData extends IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
/** @readonly */ | ||
identityType?: WebhookIdentityType; | ||
} | ||
/** @oneof */ | ||
export interface IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
} | ||
export declare enum WebhookIdentityType { | ||
UNKNOWN = "UNKNOWN", | ||
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", | ||
MEMBER = "MEMBER", | ||
WIX_USER = "WIX_USER", | ||
APP = "APP" | ||
} | ||
export interface GenerateFilesDownloadUrlResponseNonNullableFields { | ||
@@ -1216,0 +1204,0 @@ downloadUrl: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.ImageAnnotationType = exports.WebhookIdentityType = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = void 0; | ||
exports.WebhookIdentityType = exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.ImageAnnotationType = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = void 0; | ||
var MediaType; | ||
@@ -67,10 +67,2 @@ (function (MediaType) { | ||
})(IdentityType || (exports.IdentityType = IdentityType = {})); | ||
var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
var ImageAnnotationType; | ||
@@ -118,2 +110,10 @@ (function (ImageAnnotationType) { | ||
})(StreamFormat || (exports.StreamFormat = StreamFormat = {})); | ||
var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.types.js.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
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.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.ImageAnnotationType = exports.WebhookIdentityType = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = void 0; | ||
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.WebhookIdentityType = exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.ImageAnnotationType = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = void 0; | ||
const transform_error_1 = require("@wix/sdk-runtime/transform-error"); | ||
@@ -103,10 +103,2 @@ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys"); | ||
})(IdentityType || (exports.IdentityType = IdentityType = {})); | ||
var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
var ImageAnnotationType; | ||
@@ -154,2 +146,10 @@ (function (ImageAnnotationType) { | ||
})(StreamFormat || (exports.StreamFormat = StreamFormat = {})); | ||
var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {})); | ||
/** | ||
@@ -156,0 +156,0 @@ * Generates a URL for downloading a compressed file containing specific files in the Media Manager. |
@@ -44,3 +44,3 @@ import { generateFilesDownloadUrl as publicGenerateFilesDownloadUrl, generateFileDownloadUrl as publicGenerateFileDownloadUrl, getFileDescriptor as publicGetFileDescriptor, getFileDescriptors as publicGetFileDescriptors, updateFileDescriptor as publicUpdateFileDescriptor, generateFileUploadUrl as publicGenerateFileUploadUrl, generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl, importFile as publicImportFile, bulkImportFiles as publicBulkImportFiles, bulkImportFile as publicBulkImportFile, listFiles as publicListFiles, searchFiles as publicSearchFiles, generateVideoStreamingUrl as publicGenerateVideoStreamingUrl, bulkDeleteFiles as publicBulkDeleteFiles, bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin, listDeletedFiles as publicListDeletedFiles } from './media-site-media-v1-file-descriptor-files.public.js'; | ||
export declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule<typeof publicOnFileDescriptorUpdated>>; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, WebhookIdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, DraftFilePublished, GetUploadUrlRequest, GetUploadUrlResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, FileReady, ExternalInfo, FileFailed, ApplicationError, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkAnnotateImageResult, ItemMetadata, BulkActionMetadata, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, ImageAnnotationConfigurations, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkPublishDraftFileResult, UpdateFileRequest, UpdateFileResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, FileReady, ExternalInfo, FileFailed, ApplicationError, DraftFilePublished, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkAnnotateImageResult, ItemMetadata, BulkActionMetadata, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, ImageAnnotationConfigurations, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkPublishDraftFileResult, UpdateFileRequest, UpdateFileResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal.js'; |
@@ -44,3 +44,3 @@ import { generateFilesDownloadUrl as publicGenerateFilesDownloadUrl, generateFileDownloadUrl as publicGenerateFileDownloadUrl, getFileDescriptor as publicGetFileDescriptor, getFileDescriptors as publicGetFileDescriptors, updateFileDescriptor as publicUpdateFileDescriptor, generateFileUploadUrl as publicGenerateFileUploadUrl, generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl, importFile as publicImportFile, bulkImportFiles as publicBulkImportFiles, bulkImportFile as publicBulkImportFile, listFiles as publicListFiles, searchFiles as publicSearchFiles, generateVideoStreamingUrl as publicGenerateVideoStreamingUrl, bulkDeleteFiles as publicBulkDeleteFiles, bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin, listDeletedFiles as publicListDeletedFiles, } from './media-site-media-v1-file-descriptor-files.public.js'; | ||
export const onFileDescriptorUpdated = createEventModule(publicOnFileDescriptorUpdated); | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, WebhookIdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.context.js.map |
@@ -265,2 +265,2 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, 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, GetUploadUrlRequest, GetUploadUrlResponse, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, 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, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal.js'; |
@@ -434,132 +434,2 @@ export interface FileDescriptor { | ||
} | ||
export interface DraftFilePublished { | ||
/** The file after it was published */ | ||
file?: FileDescriptor; | ||
/** The namespace the file was published to */ | ||
namespace?: Namespace; | ||
} | ||
export interface GetUploadUrlRequest { | ||
/** file size in bytes */ | ||
fileSize?: number; | ||
/** file name */ | ||
fileName?: string; | ||
/** file content type */ | ||
contentType?: string; | ||
} | ||
export interface GetUploadUrlResponse { | ||
/** file upload url */ | ||
uploadUrl?: string; | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
* Unique event ID. | ||
* Allows clients to ignore duplicate webhooks. | ||
*/ | ||
id?: string; | ||
/** | ||
* Assumes actions are also always typed to an entity_type | ||
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction | ||
*/ | ||
entityFqdn?: string; | ||
/** | ||
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) | ||
* This is although the created/updated/deleted notion is duplication of the oneof types | ||
* Example: created/updated/deleted/started/completed/email_opened | ||
*/ | ||
slug?: string; | ||
/** ID of the entity associated with the event. */ | ||
entityId?: string; | ||
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ | ||
eventTime?: Date | null; | ||
/** | ||
* Whether the event was triggered as a result of a privacy regulation application | ||
* (for example, GDPR). | ||
*/ | ||
triggeredByAnonymizeRequest?: boolean | null; | ||
/** If present, indicates the action that triggered the event. */ | ||
originatedFrom?: string | null; | ||
/** | ||
* A sequence number defining the order of updates to the underlying entity. | ||
* For example, given that some entity was updated at 16:00 and than again at 16:01, | ||
* it is guaranteed that the sequence number of the second update is strictly higher than the first. | ||
* As the consumer, you can use this value to ensure that you handle messages in the correct order. | ||
* To do so, you will need to persist this number on your end, and compare the sequence number from the | ||
* message against the one you have stored. Given that the stored number is higher, you should ignore the message. | ||
*/ | ||
entityEventSequence?: string | null; | ||
} | ||
/** @oneof */ | ||
export interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
export interface EntityCreatedEvent { | ||
entityAsJson?: string; | ||
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ | ||
restoreInfo?: RestoreInfo; | ||
} | ||
export interface RestoreInfo { | ||
deletedDate?: Date | null; | ||
} | ||
export interface EntityUpdatedEvent { | ||
/** | ||
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. | ||
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. | ||
*/ | ||
currentEntityAsJson?: string; | ||
} | ||
export interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntityAsJson?: string | null; | ||
} | ||
export interface ActionEvent { | ||
bodyAsJson?: string; | ||
} | ||
export interface MessageEnvelope { | ||
/** App instance ID. */ | ||
instanceId?: string | null; | ||
/** Event type. */ | ||
eventType?: string; | ||
/** The identification type and identity data. */ | ||
identity?: IdentificationData; | ||
/** Stringify payload. */ | ||
data?: string; | ||
} | ||
export interface IdentificationData extends IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
/** @readonly */ | ||
identityType?: WebhookIdentityType; | ||
} | ||
/** @oneof */ | ||
export interface IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
} | ||
export declare enum WebhookIdentityType { | ||
UNKNOWN = "UNKNOWN", | ||
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", | ||
MEMBER = "MEMBER", | ||
WIX_USER = "WIX_USER", | ||
APP = "APP" | ||
} | ||
export interface FileReady { | ||
@@ -593,2 +463,8 @@ /** File entity that is ready with full information. */ | ||
} | ||
export interface DraftFilePublished { | ||
/** The file after it was published */ | ||
file?: FileDescriptor; | ||
/** The namespace the file was published to */ | ||
namespace?: Namespace; | ||
} | ||
export interface BulkAnnotateImagesRequest { | ||
@@ -1214,2 +1090,114 @@ /** The file ids to run detection on */ | ||
} | ||
export interface DomainEvent extends DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
/** | ||
* Unique event ID. | ||
* Allows clients to ignore duplicate webhooks. | ||
*/ | ||
id?: string; | ||
/** | ||
* Assumes actions are also always typed to an entity_type | ||
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction | ||
*/ | ||
entityFqdn?: string; | ||
/** | ||
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug) | ||
* This is although the created/updated/deleted notion is duplication of the oneof types | ||
* Example: created/updated/deleted/started/completed/email_opened | ||
*/ | ||
slug?: string; | ||
/** ID of the entity associated with the event. */ | ||
entityId?: string; | ||
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */ | ||
eventTime?: Date | null; | ||
/** | ||
* Whether the event was triggered as a result of a privacy regulation application | ||
* (for example, GDPR). | ||
*/ | ||
triggeredByAnonymizeRequest?: boolean | null; | ||
/** If present, indicates the action that triggered the event. */ | ||
originatedFrom?: string | null; | ||
/** | ||
* A sequence number defining the order of updates to the underlying entity. | ||
* For example, given that some entity was updated at 16:00 and than again at 16:01, | ||
* it is guaranteed that the sequence number of the second update is strictly higher than the first. | ||
* As the consumer, you can use this value to ensure that you handle messages in the correct order. | ||
* To do so, you will need to persist this number on your end, and compare the sequence number from the | ||
* message against the one you have stored. Given that the stored number is higher, you should ignore the message. | ||
*/ | ||
entityEventSequence?: string | null; | ||
} | ||
/** @oneof */ | ||
export interface DomainEventBodyOneOf { | ||
createdEvent?: EntityCreatedEvent; | ||
updatedEvent?: EntityUpdatedEvent; | ||
deletedEvent?: EntityDeletedEvent; | ||
actionEvent?: ActionEvent; | ||
} | ||
export interface EntityCreatedEvent { | ||
entityAsJson?: string; | ||
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */ | ||
restoreInfo?: RestoreInfo; | ||
} | ||
export interface RestoreInfo { | ||
deletedDate?: Date | null; | ||
} | ||
export interface EntityUpdatedEvent { | ||
/** | ||
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff. | ||
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects. | ||
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it. | ||
*/ | ||
currentEntityAsJson?: string; | ||
} | ||
export interface EntityDeletedEvent { | ||
/** Entity that was deleted */ | ||
deletedEntityAsJson?: string | null; | ||
} | ||
export interface ActionEvent { | ||
bodyAsJson?: string; | ||
} | ||
export interface MessageEnvelope { | ||
/** App instance ID. */ | ||
instanceId?: string | null; | ||
/** Event type. */ | ||
eventType?: string; | ||
/** The identification type and identity data. */ | ||
identity?: IdentificationData; | ||
/** Stringify payload. */ | ||
data?: string; | ||
} | ||
export interface IdentificationData extends IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
/** @readonly */ | ||
identityType?: WebhookIdentityType; | ||
} | ||
/** @oneof */ | ||
export interface IdentificationDataIdOneOf { | ||
/** ID of a site visitor that has not logged in to the site. */ | ||
anonymousVisitorId?: string; | ||
/** ID of a site visitor that has logged in to the site. */ | ||
memberId?: string; | ||
/** ID of a Wix user (site owner, contributor, etc.). */ | ||
wixUserId?: string; | ||
/** ID of an app. */ | ||
appId?: string; | ||
} | ||
export declare enum WebhookIdentityType { | ||
UNKNOWN = "UNKNOWN", | ||
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", | ||
MEMBER = "MEMBER", | ||
WIX_USER = "WIX_USER", | ||
APP = "APP" | ||
} | ||
export interface GenerateFilesDownloadUrlResponseNonNullableFields { | ||
@@ -1216,0 +1204,0 @@ downloadUrl: string; |
@@ -64,10 +64,2 @@ export var MediaType; | ||
})(IdentityType || (IdentityType = {})); | ||
export var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
export var ImageAnnotationType; | ||
@@ -115,2 +107,10 @@ (function (ImageAnnotationType) { | ||
})(StreamFormat || (StreamFormat = {})); | ||
export var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.types.js.map |
@@ -76,10 +76,2 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error'; | ||
})(IdentityType || (IdentityType = {})); | ||
export var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
export var ImageAnnotationType; | ||
@@ -127,2 +119,10 @@ (function (ImageAnnotationType) { | ||
})(StreamFormat || (StreamFormat = {})); | ||
export var WebhookIdentityType; | ||
(function (WebhookIdentityType) { | ||
WebhookIdentityType["UNKNOWN"] = "UNKNOWN"; | ||
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR"; | ||
WebhookIdentityType["MEMBER"] = "MEMBER"; | ||
WebhookIdentityType["WIX_USER"] = "WIX_USER"; | ||
WebhookIdentityType["APP"] = "APP"; | ||
})(WebhookIdentityType || (WebhookIdentityType = {})); | ||
/** | ||
@@ -129,0 +129,0 @@ * Generates a URL for downloading a compressed file containing specific files in the Media Manager. |
{ | ||
"name": "@wix/media_files", | ||
"version": "1.0.71", | ||
"version": "1.0.72", | ||
"publishConfig": { | ||
@@ -52,3 +52,3 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"falconPackageHash": "ea0010f0b4512b74e176516bf976e4032b95d1a5690b6128be50b212" | ||
"falconPackageHash": "4d4a10a70f1b21534d753022eeedbd457d18d40d7d6156f9feaed6cf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
830126
-0.16%14195
-0.34%