@soga/types 0.8.0 → 0.8.2

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/dist/index.d.mts CHANGED
@@ -320,7 +320,7 @@ type RecordFolderConfig = {
320
320
  file_keeps: RecordFileKeep;
321
321
  adapt_resolution: RecordAdaptResolution;
322
322
  };
323
- type RecordCommonFields = {
323
+ interface RecordInfo {
324
324
  id: number;
325
325
  space_id: number;
326
326
  parent_id: number;
@@ -371,18 +371,18 @@ type RecordCommonFields = {
371
371
  config: RecordFolderConfig;
372
372
  created_at: string;
373
373
  updated_at: string;
374
- };
375
- type RecordListItem = RecordCommonFields & {
374
+ }
375
+ interface RecordListItem extends RecordInfo {
376
376
  size: number;
377
377
  duration: number;
378
- };
379
- type RecordDetail = RecordCommonFields & {
378
+ }
379
+ interface RecordDetail extends RecordInfo {
380
380
  album: RecordListItem;
381
381
  navs: {
382
382
  id: number;
383
383
  name: string;
384
384
  }[];
385
- };
385
+ }
386
386
  type CloudInfoField = {
387
387
  id: number;
388
388
  name: string;
@@ -601,6 +601,13 @@ type EncodedData = {
601
601
  affix?: AffixItemData[];
602
602
  };
603
603
  type UploadedData = Record<HostType, Record<string, object>>;
604
+ interface ErrorType {
605
+ type: 'encode' | 'upload';
606
+ message: string;
607
+ stack?: string;
608
+ details?: string[];
609
+ cause?: any;
610
+ }
604
611
  type UploadFileItem = {
605
612
  id: number;
606
613
  total_count: number;
@@ -630,6 +637,7 @@ type UploadFileItem = {
630
637
  percent: number;
631
638
  encoded: EncodedData;
632
639
  uploaded: UploadedData;
640
+ error: ErrorType | null;
633
641
  order: number;
634
642
  updated_at: string;
635
643
  created_at: string;
@@ -845,4 +853,4 @@ type NetSuccessItem = {
845
853
  created_at: Date;
846
854
  };
847
855
 
848
- export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, type UploadPrepareData, type UploadPrepareOptions, UploadProcessStep, UploadStatus, type UploadWorkerMessage, type UploadWorkerPercent, type UploadedData, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK, type WorkerError };
856
+ export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, type RecordInfo, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, type UploadPrepareData, type UploadPrepareOptions, UploadProcessStep, UploadStatus, type UploadWorkerMessage, type UploadWorkerPercent, type UploadedData, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK, type WorkerError };
package/dist/index.d.ts CHANGED
@@ -320,7 +320,7 @@ type RecordFolderConfig = {
320
320
  file_keeps: RecordFileKeep;
321
321
  adapt_resolution: RecordAdaptResolution;
322
322
  };
323
- type RecordCommonFields = {
323
+ interface RecordInfo {
324
324
  id: number;
325
325
  space_id: number;
326
326
  parent_id: number;
@@ -371,18 +371,18 @@ type RecordCommonFields = {
371
371
  config: RecordFolderConfig;
372
372
  created_at: string;
373
373
  updated_at: string;
374
- };
375
- type RecordListItem = RecordCommonFields & {
374
+ }
375
+ interface RecordListItem extends RecordInfo {
376
376
  size: number;
377
377
  duration: number;
378
- };
379
- type RecordDetail = RecordCommonFields & {
378
+ }
379
+ interface RecordDetail extends RecordInfo {
380
380
  album: RecordListItem;
381
381
  navs: {
382
382
  id: number;
383
383
  name: string;
384
384
  }[];
385
- };
385
+ }
386
386
  type CloudInfoField = {
387
387
  id: number;
388
388
  name: string;
@@ -601,6 +601,13 @@ type EncodedData = {
601
601
  affix?: AffixItemData[];
602
602
  };
603
603
  type UploadedData = Record<HostType, Record<string, object>>;
604
+ interface ErrorType {
605
+ type: 'encode' | 'upload';
606
+ message: string;
607
+ stack?: string;
608
+ details?: string[];
609
+ cause?: any;
610
+ }
604
611
  type UploadFileItem = {
605
612
  id: number;
606
613
  total_count: number;
@@ -630,6 +637,7 @@ type UploadFileItem = {
630
637
  percent: number;
631
638
  encoded: EncodedData;
632
639
  uploaded: UploadedData;
640
+ error: ErrorType | null;
633
641
  order: number;
634
642
  updated_at: string;
635
643
  created_at: string;
@@ -845,4 +853,4 @@ type NetSuccessItem = {
845
853
  created_at: Date;
846
854
  };
847
855
 
848
- export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, type UploadPrepareData, type UploadPrepareOptions, UploadProcessStep, UploadStatus, type UploadWorkerMessage, type UploadWorkerPercent, type UploadedData, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK, type WorkerError };
856
+ export { type AffixItemData, type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type EncodeResult, type EncodeWorkerMessage, type EncodeWorkerPercent, type EncodedData, type EncoderResult, type ErrorData, type FilePartItem, type HostDetail, type HostListItem, HostType, type ImgGroupData, type LocalListResponse, type Manifest, type ManifestAffixItem, type ManifestAliType, type ManifestAudioItem, type ManifestAudioMetaInfo, type ManifestBaiduType, type ManifestCoverInfo, type ManifestImgType, type ManifestMediaType, type ManifestMetaType, type ManifestPartsType, type ManifestSourceType, type ManifestTextItem, type ManifestThumbnailInfo, type ManifestThumbnailItem, type ManifestTxtType, type ManifestVideoItem, type ManifestVideoMetaInfo, type MediaGroupAudioItem, type MediaGroupCoverInfo, type MediaGroupData, type MediaGroupQualityAudioItem, type MediaGroupThumbnailInfo, type MediaGroupVideoItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, type PrepareResult, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, type RecordInfo, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SourceGroupData, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type TxtGroupData, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, type UploadPrepareData, type UploadPrepareOptions, UploadProcessStep, UploadStatus, type UploadWorkerMessage, type UploadWorkerPercent, type UploadedData, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK, type WorkerError };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/types",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },