@wix/auto_sdk_media_files 1.0.32 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +5 -19
- package/build/cjs/index.js +0 -112
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -100
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +590 -1
- package/build/cjs/meta.js +119 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -19
- package/build/es/index.mjs +0 -110
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -100
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +590 -1
- package/build/es/meta.mjs +107 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +5 -19
- package/build/internal/cjs/index.js +0 -112
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +31 -100
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +590 -1
- package/build/internal/cjs/meta.js +119 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +5 -19
- package/build/internal/es/index.mjs +0 -110
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +31 -100
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +590 -1
- package/build/internal/es/meta.mjs +107 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -479,13 +479,17 @@ declare enum IdentityType {
|
|
|
479
479
|
}
|
|
480
480
|
/** @enumType */
|
|
481
481
|
type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
482
|
-
interface
|
|
483
|
-
/**
|
|
482
|
+
interface DraftFilePublished {
|
|
483
|
+
/** The file after it was published */
|
|
484
484
|
file?: FileDescriptor;
|
|
485
|
+
/** The namespace the file was published to */
|
|
486
|
+
namespace?: NamespaceWithLiterals;
|
|
487
|
+
}
|
|
488
|
+
interface FileFailed {
|
|
485
489
|
/** External information specified in the file import or upload. */
|
|
486
490
|
externalInfo?: ExternalInfo;
|
|
487
|
-
/**
|
|
488
|
-
|
|
491
|
+
/** Error information. */
|
|
492
|
+
error?: ApplicationError;
|
|
489
493
|
}
|
|
490
494
|
interface ExternalInfo {
|
|
491
495
|
/**
|
|
@@ -500,12 +504,6 @@ interface ExternalInfo {
|
|
|
500
504
|
*/
|
|
501
505
|
externalIds?: string[];
|
|
502
506
|
}
|
|
503
|
-
interface FileFailed {
|
|
504
|
-
/** External information specified in the file import or upload. */
|
|
505
|
-
externalInfo?: ExternalInfo;
|
|
506
|
-
/** Error information. */
|
|
507
|
-
error?: ApplicationError;
|
|
508
|
-
}
|
|
509
507
|
interface ApplicationError {
|
|
510
508
|
/** Error code. */
|
|
511
509
|
code?: string;
|
|
@@ -514,11 +512,13 @@ interface ApplicationError {
|
|
|
514
512
|
/** Data related to the error. */
|
|
515
513
|
data?: Record<string, any> | null;
|
|
516
514
|
}
|
|
517
|
-
interface
|
|
518
|
-
/**
|
|
515
|
+
interface FileReady {
|
|
516
|
+
/** File entity that is ready with full information. */
|
|
519
517
|
file?: FileDescriptor;
|
|
520
|
-
/**
|
|
521
|
-
|
|
518
|
+
/** External information specified in the file import or upload. */
|
|
519
|
+
externalInfo?: ExternalInfo;
|
|
520
|
+
/** File was restored from the trash-bin. */
|
|
521
|
+
triggeredByUndelete?: boolean;
|
|
522
522
|
}
|
|
523
523
|
interface BulkAnnotateImagesRequest {
|
|
524
524
|
/**
|
|
@@ -1015,6 +1015,20 @@ interface BulkImportFileResult {
|
|
|
1015
1015
|
/** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
|
|
1016
1016
|
item?: FileDescriptor;
|
|
1017
1017
|
}
|
|
1018
|
+
interface BulkInternalImportFilesRequest {
|
|
1019
|
+
/**
|
|
1020
|
+
* Information about the files to import.
|
|
1021
|
+
* @minSize 1
|
|
1022
|
+
* @maxSize 5
|
|
1023
|
+
*/
|
|
1024
|
+
importFileRequests?: ImportFileRequest[];
|
|
1025
|
+
}
|
|
1026
|
+
interface BulkInternalImportFilesResponse {
|
|
1027
|
+
/** Items created by bulk action. */
|
|
1028
|
+
results?: BulkImportFileResult[];
|
|
1029
|
+
/** Bulk action metadata. */
|
|
1030
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1031
|
+
}
|
|
1018
1032
|
interface ListFilesRequest {
|
|
1019
1033
|
/**
|
|
1020
1034
|
* ID of the file's parent folder.
|
|
@@ -1581,50 +1595,12 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
1581
1595
|
*/
|
|
1582
1596
|
entityEventSequence?: string | null;
|
|
1583
1597
|
}
|
|
1584
|
-
interface FileDescriptorDeletedEnvelope {
|
|
1585
|
-
metadata: EventMetadata;
|
|
1586
|
-
}
|
|
1587
|
-
/**
|
|
1588
|
-
* Triggered when a file is deleted.
|
|
1589
|
-
*
|
|
1590
|
-
* If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted.
|
|
1591
|
-
* @permissionScope Manage Stores
|
|
1592
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1593
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
1594
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
1595
|
-
* @permissionScope Manage Events
|
|
1596
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1597
|
-
* @permissionScope Manage Challenges
|
|
1598
|
-
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1599
|
-
* @permissionScope Read Media Manager
|
|
1600
|
-
* @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
|
|
1601
|
-
* @permissionScope Manage Media Manager
|
|
1602
|
-
* @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
|
|
1603
|
-
* @permissionScope Manage Portfolio
|
|
1604
|
-
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
1605
|
-
* @permissionScope View SEO Settings
|
|
1606
|
-
* @permissionScopeId SCOPE.PROMOTE.VIEW-SEO
|
|
1607
|
-
* @permissionScope Manage Blog
|
|
1608
|
-
* @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
|
|
1609
|
-
* @permissionScope Access Verticals by Automations
|
|
1610
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1611
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1612
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1613
|
-
* @permissionScope Set Up Automations
|
|
1614
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1615
|
-
* @permissionId MEDIA.SITE_MEDIA_FILES_READ
|
|
1616
|
-
* @webhook
|
|
1617
|
-
* @eventType wix.media.site_media.v1.file_descriptor_deleted
|
|
1618
|
-
* @serviceIdentifier com.wix.media.site_media.v1.FilesService
|
|
1619
|
-
* @slug deleted
|
|
1620
|
-
*/
|
|
1621
|
-
declare function onFileDescriptorDeleted(handler: (event: FileDescriptorDeletedEnvelope) => void | Promise<void>): void;
|
|
1622
1598
|
interface FileDescriptorFileFailedEnvelope {
|
|
1623
1599
|
data: FileFailed;
|
|
1624
1600
|
metadata: EventMetadata;
|
|
1625
1601
|
}
|
|
1626
1602
|
/**
|
|
1627
|
-
* Triggered when a file fails
|
|
1603
|
+
* Triggered when a file's import fails. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).
|
|
1628
1604
|
* @permissionScope Manage Stores
|
|
1629
1605
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1630
1606
|
* @permissionScope Manage Bookings Services and Settings
|
|
@@ -1641,8 +1617,6 @@ interface FileDescriptorFileFailedEnvelope {
|
|
|
1641
1617
|
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
1642
1618
|
* @permissionScope View SEO Settings
|
|
1643
1619
|
* @permissionScopeId SCOPE.PROMOTE.VIEW-SEO
|
|
1644
|
-
* @permissionScope Manage Blog
|
|
1645
|
-
* @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
|
|
1646
1620
|
* @permissionScope Access Verticals by Automations
|
|
1647
1621
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1648
1622
|
* @permissionScope Manage Restaurants - all permissions
|
|
@@ -1652,7 +1626,6 @@ interface FileDescriptorFileFailedEnvelope {
|
|
|
1652
1626
|
* @permissionId MEDIA.SITE_MEDIA_FILES_READ
|
|
1653
1627
|
* @webhook
|
|
1654
1628
|
* @eventType wix.media.site_media.v1.file_descriptor_file_failed
|
|
1655
|
-
* @serviceIdentifier com.wix.media.site_media.v1.FilesService
|
|
1656
1629
|
* @slug file_failed
|
|
1657
1630
|
*/
|
|
1658
1631
|
declare function onFileDescriptorFileFailed(handler: (event: FileDescriptorFileFailedEnvelope) => void | Promise<void>): void;
|
|
@@ -1661,9 +1634,7 @@ interface FileDescriptorFileReadyEnvelope {
|
|
|
1661
1634
|
metadata: EventMetadata;
|
|
1662
1635
|
}
|
|
1663
1636
|
/**
|
|
1664
|
-
* Triggered when a file
|
|
1665
|
-
*
|
|
1666
|
-
* This event is also triggred when a file is restored from the Media Manager's trash bin.
|
|
1637
|
+
* Triggered when a file finishes processing successfully. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).
|
|
1667
1638
|
* @permissionScope Manage Stores
|
|
1668
1639
|
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1669
1640
|
* @permissionScope Manage Bookings Services and Settings
|
|
@@ -1680,8 +1651,6 @@ interface FileDescriptorFileReadyEnvelope {
|
|
|
1680
1651
|
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
1681
1652
|
* @permissionScope View SEO Settings
|
|
1682
1653
|
* @permissionScopeId SCOPE.PROMOTE.VIEW-SEO
|
|
1683
|
-
* @permissionScope Manage Blog
|
|
1684
|
-
* @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
|
|
1685
1654
|
* @permissionScope Access Verticals by Automations
|
|
1686
1655
|
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1687
1656
|
* @permissionScope Manage Restaurants - all permissions
|
|
@@ -1691,47 +1660,9 @@ interface FileDescriptorFileReadyEnvelope {
|
|
|
1691
1660
|
* @permissionId MEDIA.SITE_MEDIA_FILES_READ
|
|
1692
1661
|
* @webhook
|
|
1693
1662
|
* @eventType wix.media.site_media.v1.file_descriptor_file_ready
|
|
1694
|
-
* @serviceIdentifier com.wix.media.site_media.v1.FilesService
|
|
1695
1663
|
* @slug file_ready
|
|
1696
1664
|
*/
|
|
1697
1665
|
declare function onFileDescriptorFileReady(handler: (event: FileDescriptorFileReadyEnvelope) => void | Promise<void>): void;
|
|
1698
|
-
interface FileDescriptorUpdatedEnvelope {
|
|
1699
|
-
entity: FileDescriptor;
|
|
1700
|
-
metadata: EventMetadata;
|
|
1701
|
-
}
|
|
1702
|
-
/**
|
|
1703
|
-
* Triggered when a file is updated, including when a file is moved to a different folder.
|
|
1704
|
-
* @permissionScope Manage Stores
|
|
1705
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1706
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
1707
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
1708
|
-
* @permissionScope Manage Events
|
|
1709
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
1710
|
-
* @permissionScope Manage Challenges
|
|
1711
|
-
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
1712
|
-
* @permissionScope Read Media Manager
|
|
1713
|
-
* @permissionScopeId SCOPE.DC-MEDIA.READ-MEDIAMANAGER
|
|
1714
|
-
* @permissionScope Manage Media Manager
|
|
1715
|
-
* @permissionScopeId SCOPE.DC-MEDIA.MANAGE-MEDIAMANAGER
|
|
1716
|
-
* @permissionScope Manage Portfolio
|
|
1717
|
-
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
1718
|
-
* @permissionScope View SEO Settings
|
|
1719
|
-
* @permissionScopeId SCOPE.PROMOTE.VIEW-SEO
|
|
1720
|
-
* @permissionScope Manage Blog
|
|
1721
|
-
* @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
|
|
1722
|
-
* @permissionScope Access Verticals by Automations
|
|
1723
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
1724
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
1725
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
1726
|
-
* @permissionScope Set Up Automations
|
|
1727
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
1728
|
-
* @permissionId MEDIA.SITE_MEDIA_FILES_READ
|
|
1729
|
-
* @webhook
|
|
1730
|
-
* @eventType wix.media.site_media.v1.file_descriptor_updated
|
|
1731
|
-
* @serviceIdentifier com.wix.media.site_media.v1.FilesService
|
|
1732
|
-
* @slug updated
|
|
1733
|
-
*/
|
|
1734
|
-
declare function onFileDescriptorUpdated(handler: (event: FileDescriptorUpdatedEnvelope) => void | Promise<void>): void;
|
|
1735
1666
|
/**
|
|
1736
1667
|
* Generates a URL for downloading a compressed file containing specific files in the Media Manager.
|
|
1737
1668
|
*
|
|
@@ -2336,4 +2267,4 @@ interface ListDeletedFilesOptions {
|
|
|
2336
2267
|
paging?: CursorPaging;
|
|
2337
2268
|
}
|
|
2338
2269
|
|
|
2339
|
-
export { type ActionEvent, type ApplicationError, type Archive, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileDescriptor, type
|
|
2270
|
+
export { type ActionEvent, type ApplicationError, type Archive, type AudioV2, type BaseEventMetadata, type BulkActionMetadata, type BulkAnnotateImageResult, type BulkAnnotateImagesRequest, type BulkAnnotateImagesResponse, type BulkDeleteFilesOptions, type BulkDeleteFilesRequest, type BulkDeleteFilesResponse, type BulkImportFileOptions, type BulkImportFileRequest, type BulkImportFileResponse, type BulkImportFileResult, type BulkImportFilesRequest, type BulkImportFilesResponse, type BulkInternalImportFilesRequest, type BulkInternalImportFilesResponse, type BulkPublishDraftFileResult, type BulkPublishDraftFilesRequest, type BulkPublishDraftFilesResponse, type BulkRestoreFilesFromTrashBinRequest, type BulkRestoreFilesFromTrashBinResponse, type Color, type ColorRGB, type Colors, ContentDisposition, type ContentDispositionWithLiterals, type CursorPaging, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type DownloadUrl, type DraftFilePublished, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExternalInfo, type FaceRecognition, type FileDescriptor, type FileDescriptorFileFailedEnvelope, type FileDescriptorFileReadyEnvelope, type FileFailed, type FileMedia, type FileMediaMediaOneOf, type FileReady, type FocalPoint, type FontAsset, type FontMedia, type GenerateFileDownloadUrlOptions, type GenerateFileDownloadUrlRequest, type GenerateFileDownloadUrlResponse, type GenerateFileDownloadUrlValidationErrors, type GenerateFileResumableUploadUrlOptions, type GenerateFileResumableUploadUrlRequest, type GenerateFileResumableUploadUrlResponse, type GenerateFileResumableUploadUrlValidationErrors, type GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse, type GenerateFileUploadUrlValidationErrors, type GenerateFilesDownloadUrlRequest, type GenerateFilesDownloadUrlResponse, type GenerateVideoStreamingUrlOptions, type GenerateVideoStreamingUrlRequest, type GenerateVideoStreamingUrlResponse, type GenerateWebSocketTokenRequest, type GenerateWebSocketTokenResponse, type GetFileDescriptorRequest, type GetFileDescriptorResponse, type GetFileDescriptorValidationErrors, type GetFileDescriptorsRequest, type GetFileDescriptorsResponse, type GetFileDescriptorsValidationErrors, type IdentificationData, type IdentificationDataIdOneOf, type IdentityInfo, IdentityType, type IdentityTypeWithLiterals, type ImageAnnotationConfigurations, ImageAnnotationType, type ImageAnnotationTypeWithLiterals, type ImageMedia, type ImportFileOptions, type ImportFileRequest, type ImportFileResponse, type ImportFileValidationErrors, type ItemMetadata, type ListDeletedFilesOptions, type ListDeletedFilesRequest, type ListDeletedFilesResponse, type ListDeletedFilesValidationErrors, type ListFilesOptions, type ListFilesRequest, type ListFilesResponse, type ListFilesValidationErrors, MediaType, type MediaTypeWithLiterals, type MessageEnvelope, type Model3D, Namespace, type NamespaceWithLiterals, OperationStatus, type OperationStatusWithLiterals, type OtherMedia, type PagingMetadataV2, type Plan, type Plans, type RestoreInfo, RootFolder, type RootFolderWithLiterals, type SearchFilesOptions, type SearchFilesRequest, type SearchFilesResponse, type SearchFilesValidationErrors, type ServiceError, type SiteQuotaExceededError, SortOrder, type SortOrderWithLiterals, type Sorting, State, type StateWithLiterals, StreamFormat, type StreamFormatWithLiterals, type TotalQuota, type UnsupportedRequestValueError, type UpdateFileDescriptorRequest, type UpdateFileDescriptorResponse, type UpdateFileDescriptorValidationErrors, type UpdateFileRequest, type UpdateFileResponse, UploadProtocol, type UploadProtocolWithLiterals, type VideoResolution, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, onFileDescriptorFileFailed, onFileDescriptorFileReady, searchFiles, updateFileDescriptor };
|