@soga/types 0.7.0 → 0.8.1

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;
@@ -580,7 +580,10 @@ declare enum UploadStatus {
580
580
  ENCODE_SUCCESS = 6,
581
581
  UPLOAD_READY = 6,
582
582
  UPLOAD_PROCESS = 8,
583
- UPLOAD_ERROR = 10
583
+ UPLOAD_ERROR = 10,
584
+ UPLOAD_SUCCESS = 12,
585
+ SUBMIT_READY = 12,
586
+ SUBMIT_ERROR = 14
584
587
  }
585
588
  type UploadInputItem = {
586
589
  filename: string;
@@ -842,4 +845,4 @@ type NetSuccessItem = {
842
845
  created_at: Date;
843
846
  };
844
847
 
845
- 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 };
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, 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;
@@ -580,7 +580,10 @@ declare enum UploadStatus {
580
580
  ENCODE_SUCCESS = 6,
581
581
  UPLOAD_READY = 6,
582
582
  UPLOAD_PROCESS = 8,
583
- UPLOAD_ERROR = 10
583
+ UPLOAD_ERROR = 10,
584
+ UPLOAD_SUCCESS = 12,
585
+ SUBMIT_READY = 12,
586
+ SUBMIT_ERROR = 14
584
587
  }
585
588
  type UploadInputItem = {
586
589
  filename: string;
@@ -842,4 +845,4 @@ type NetSuccessItem = {
842
845
  created_at: Date;
843
846
  };
844
847
 
845
- 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 };
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, 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.js CHANGED
@@ -114,6 +114,9 @@ var UploadStatus = /* @__PURE__ */ (function(UploadStatus2) {
114
114
  UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
115
115
  UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
116
116
  UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
117
+ UploadStatus2[UploadStatus2["UPLOAD_SUCCESS"] = 12] = "UPLOAD_SUCCESS";
118
+ UploadStatus2[UploadStatus2["SUBMIT_READY"] = 12] = "SUBMIT_READY";
119
+ UploadStatus2[UploadStatus2["SUBMIT_ERROR"] = 14] = "SUBMIT_ERROR";
117
120
  return UploadStatus2;
118
121
  })({});
119
122
 
package/dist/index.mjs CHANGED
@@ -78,6 +78,9 @@ var UploadStatus = /* @__PURE__ */ (function(UploadStatus2) {
78
78
  UploadStatus2[UploadStatus2["UPLOAD_READY"] = 6] = "UPLOAD_READY";
79
79
  UploadStatus2[UploadStatus2["UPLOAD_PROCESS"] = 8] = "UPLOAD_PROCESS";
80
80
  UploadStatus2[UploadStatus2["UPLOAD_ERROR"] = 10] = "UPLOAD_ERROR";
81
+ UploadStatus2[UploadStatus2["UPLOAD_SUCCESS"] = 12] = "UPLOAD_SUCCESS";
82
+ UploadStatus2[UploadStatus2["SUBMIT_READY"] = 12] = "SUBMIT_READY";
83
+ UploadStatus2[UploadStatus2["SUBMIT_ERROR"] = 14] = "SUBMIT_ERROR";
81
84
  return UploadStatus2;
82
85
  })({});
83
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/types",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },