@soga/types 0.9.4 → 0.9.5

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
@@ -232,6 +232,18 @@ type ManifestCoverInfo = {
232
232
  start: number;
233
233
  end: number;
234
234
  };
235
+ type ManifestAttItem = {
236
+ uuid: string;
237
+ type: RecordType;
238
+ ftype: RecordFtype;
239
+ meta: ManifestMetaInfo;
240
+ max_size: number;
241
+ source?: ManifestSourceInfo;
242
+ media?: ManifestMediaInfo;
243
+ img?: ManifestImgInfo;
244
+ txt?: ManifestTxtInfo;
245
+ };
246
+ type ManifestAttInfo = ManifestAttItem[];
235
247
  type ManifestBaiduInfo = {
236
248
  host_id: number;
237
249
  files: Record<string, {
@@ -241,6 +253,7 @@ type ManifestBaiduInfo = {
241
253
  md4: string;
242
254
  preview: boolean;
243
255
  source: boolean;
256
+ attached: boolean;
244
257
  }>;
245
258
  max_size: number;
246
259
  host_size: number;
@@ -248,6 +261,7 @@ type ManifestBaiduInfo = {
248
261
  media?: ManifestMediaInfo;
249
262
  img?: ManifestImgInfo;
250
263
  txt?: ManifestTxtInfo;
264
+ attachments?: ManifestAttInfo;
251
265
  };
252
266
  type ManifestAliInfo = {
253
267
  host_id: number;
@@ -259,6 +273,7 @@ type ManifestAliInfo = {
259
273
  md5: string;
260
274
  preview: boolean;
261
275
  source: boolean;
276
+ attached: boolean;
262
277
  }>;
263
278
  host_size: number;
264
279
  max_size: number;
@@ -266,6 +281,7 @@ type ManifestAliInfo = {
266
281
  media?: ManifestMediaInfo;
267
282
  img?: ManifestImgInfo;
268
283
  txt?: ManifestTxtInfo;
284
+ attachments?: ManifestAttInfo;
269
285
  };
270
286
  type ManifestMetaInfo = {
271
287
  file: ManifestInputMetaInfo;
@@ -274,6 +290,7 @@ type ManifestMetaInfo = {
274
290
  img?: ManifestImgMetaInfo;
275
291
  };
276
292
  type Manifest = {
293
+ attached: boolean;
277
294
  meta: ManifestMetaInfo;
278
295
  baidu: ManifestBaiduInfo;
279
296
  ali: ManifestAliInfo;
@@ -285,8 +302,7 @@ declare enum RecordType {
285
302
  AUDIO = 2,
286
303
  IMAGE = 3,
287
304
  DOC = 4,
288
- OTHER = 5,
289
- AFFIX = 9
305
+ OTHER = 5
290
306
  }
291
307
  declare enum RecordFtype {
292
308
  NONE = 0,
@@ -439,7 +455,6 @@ declare enum UploadProgress {
439
455
  transcode_source = "TRANSCODE_SOURCE",
440
456
  transcode_txt = "TRANSCODE_TXT",
441
457
  transcode_img = "TRANSCODE_IMG",
442
- transcode_affix = "TRANSCODE_AFFIX",
443
458
  group_media = "GROUP_MEDIA",
444
459
  upload_baidu = "UPLOAD_BAIDU",
445
460
  upload_ali = "UPLOAD_ALI",
@@ -459,6 +474,7 @@ type UploadInputItem = {
459
474
  };
460
475
  type UploadFileItem = {
461
476
  id: number;
477
+ is_attachment: boolean;
462
478
  total_count: number;
463
479
  completed_count: number;
464
480
  input: UploadInputItem;
@@ -491,6 +507,7 @@ type UploadFileItem = {
491
507
  };
492
508
  type UploadFileSuceessItem = {
493
509
  id: number;
510
+ is_attachment: boolean;
494
511
  root_id: number;
495
512
  pid: number;
496
513
  space_id: number;
@@ -654,7 +671,7 @@ type DownloadProgressData = Record<DownloadProgressStep, {
654
671
  }>;
655
672
  type DownloadFileItem = {
656
673
  id: number;
657
- is_affix: boolean;
674
+ is_attachment: boolean;
658
675
  is_paused: boolean;
659
676
  type: RecordType;
660
677
  ftype: RecordFtype;
@@ -687,7 +704,7 @@ type NetSuccessItem = {
687
704
  id: number;
688
705
  uid: number;
689
706
  net_type: NetType;
690
- is_affix: boolean;
707
+ is_attachment: boolean;
691
708
  type: RecordType;
692
709
  ftype: RecordFtype;
693
710
  space_id: number;
@@ -700,4 +717,4 @@ type NetSuccessItem = {
700
717
  created_at: Date;
701
718
  };
702
719
 
703
- export { type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type ErrorData, type HostDetail, type HostListItem, HostType, type LocalListResponse, type Manifest, type ManifestAliInfo, type ManifestAudioItem, type ManifestAudioMetaItem, type ManifestBaiduInfo, type ManifestCoverInfo, type ManifestImgInfo, type ManifestImgMetaInfo, type ManifestInputMetaInfo, type ManifestMediaInfo, type ManifestMetaInfo, type ManifestSourceInfo, type ManifestSubtitleItem, type ManifestThumbnailInfo, type ManifestTxtInfo, type ManifestVideoItem, type ManifestVideoMetaItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, type RecordInfo, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type UploadFileError, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, UploadProgress, type UploadProgressData, UploadStatus, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK };
720
+ export { type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type ErrorData, type HostDetail, type HostListItem, HostType, type LocalListResponse, type Manifest, type ManifestAliInfo, type ManifestAttInfo, type ManifestAttItem, type ManifestAudioItem, type ManifestAudioMetaItem, type ManifestBaiduInfo, type ManifestCoverInfo, type ManifestImgInfo, type ManifestImgMetaInfo, type ManifestInputMetaInfo, type ManifestMediaInfo, type ManifestMetaInfo, type ManifestSourceInfo, type ManifestSubtitleItem, type ManifestThumbnailInfo, type ManifestTxtInfo, type ManifestVideoItem, type ManifestVideoMetaItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, type RecordInfo, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type UploadFileError, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, UploadProgress, type UploadProgressData, UploadStatus, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK };
package/dist/index.d.ts CHANGED
@@ -232,6 +232,18 @@ type ManifestCoverInfo = {
232
232
  start: number;
233
233
  end: number;
234
234
  };
235
+ type ManifestAttItem = {
236
+ uuid: string;
237
+ type: RecordType;
238
+ ftype: RecordFtype;
239
+ meta: ManifestMetaInfo;
240
+ max_size: number;
241
+ source?: ManifestSourceInfo;
242
+ media?: ManifestMediaInfo;
243
+ img?: ManifestImgInfo;
244
+ txt?: ManifestTxtInfo;
245
+ };
246
+ type ManifestAttInfo = ManifestAttItem[];
235
247
  type ManifestBaiduInfo = {
236
248
  host_id: number;
237
249
  files: Record<string, {
@@ -241,6 +253,7 @@ type ManifestBaiduInfo = {
241
253
  md4: string;
242
254
  preview: boolean;
243
255
  source: boolean;
256
+ attached: boolean;
244
257
  }>;
245
258
  max_size: number;
246
259
  host_size: number;
@@ -248,6 +261,7 @@ type ManifestBaiduInfo = {
248
261
  media?: ManifestMediaInfo;
249
262
  img?: ManifestImgInfo;
250
263
  txt?: ManifestTxtInfo;
264
+ attachments?: ManifestAttInfo;
251
265
  };
252
266
  type ManifestAliInfo = {
253
267
  host_id: number;
@@ -259,6 +273,7 @@ type ManifestAliInfo = {
259
273
  md5: string;
260
274
  preview: boolean;
261
275
  source: boolean;
276
+ attached: boolean;
262
277
  }>;
263
278
  host_size: number;
264
279
  max_size: number;
@@ -266,6 +281,7 @@ type ManifestAliInfo = {
266
281
  media?: ManifestMediaInfo;
267
282
  img?: ManifestImgInfo;
268
283
  txt?: ManifestTxtInfo;
284
+ attachments?: ManifestAttInfo;
269
285
  };
270
286
  type ManifestMetaInfo = {
271
287
  file: ManifestInputMetaInfo;
@@ -274,6 +290,7 @@ type ManifestMetaInfo = {
274
290
  img?: ManifestImgMetaInfo;
275
291
  };
276
292
  type Manifest = {
293
+ attached: boolean;
277
294
  meta: ManifestMetaInfo;
278
295
  baidu: ManifestBaiduInfo;
279
296
  ali: ManifestAliInfo;
@@ -285,8 +302,7 @@ declare enum RecordType {
285
302
  AUDIO = 2,
286
303
  IMAGE = 3,
287
304
  DOC = 4,
288
- OTHER = 5,
289
- AFFIX = 9
305
+ OTHER = 5
290
306
  }
291
307
  declare enum RecordFtype {
292
308
  NONE = 0,
@@ -439,7 +455,6 @@ declare enum UploadProgress {
439
455
  transcode_source = "TRANSCODE_SOURCE",
440
456
  transcode_txt = "TRANSCODE_TXT",
441
457
  transcode_img = "TRANSCODE_IMG",
442
- transcode_affix = "TRANSCODE_AFFIX",
443
458
  group_media = "GROUP_MEDIA",
444
459
  upload_baidu = "UPLOAD_BAIDU",
445
460
  upload_ali = "UPLOAD_ALI",
@@ -459,6 +474,7 @@ type UploadInputItem = {
459
474
  };
460
475
  type UploadFileItem = {
461
476
  id: number;
477
+ is_attachment: boolean;
462
478
  total_count: number;
463
479
  completed_count: number;
464
480
  input: UploadInputItem;
@@ -491,6 +507,7 @@ type UploadFileItem = {
491
507
  };
492
508
  type UploadFileSuceessItem = {
493
509
  id: number;
510
+ is_attachment: boolean;
494
511
  root_id: number;
495
512
  pid: number;
496
513
  space_id: number;
@@ -654,7 +671,7 @@ type DownloadProgressData = Record<DownloadProgressStep, {
654
671
  }>;
655
672
  type DownloadFileItem = {
656
673
  id: number;
657
- is_affix: boolean;
674
+ is_attachment: boolean;
658
675
  is_paused: boolean;
659
676
  type: RecordType;
660
677
  ftype: RecordFtype;
@@ -687,7 +704,7 @@ type NetSuccessItem = {
687
704
  id: number;
688
705
  uid: number;
689
706
  net_type: NetType;
690
- is_affix: boolean;
707
+ is_attachment: boolean;
691
708
  type: RecordType;
692
709
  ftype: RecordFtype;
693
710
  space_id: number;
@@ -700,4 +717,4 @@ type NetSuccessItem = {
700
717
  created_at: Date;
701
718
  };
702
719
 
703
- export { type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type ErrorData, type HostDetail, type HostListItem, HostType, type LocalListResponse, type Manifest, type ManifestAliInfo, type ManifestAudioItem, type ManifestAudioMetaItem, type ManifestBaiduInfo, type ManifestCoverInfo, type ManifestImgInfo, type ManifestImgMetaInfo, type ManifestInputMetaInfo, type ManifestMediaInfo, type ManifestMetaInfo, type ManifestSourceInfo, type ManifestSubtitleItem, type ManifestThumbnailInfo, type ManifestTxtInfo, type ManifestVideoItem, type ManifestVideoMetaItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, type RecordInfo, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type UploadFileError, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, UploadProgress, type UploadProgressData, UploadStatus, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK };
720
+ export { type AliHostDetail, type ApiListResponse, type ApiResponse, type BaiduHostDetail, type CloudInfoField, CloudType, type DownloadFileItem, type DownloadProgressData, type DownloadProgressStep, DownloadStatus, type ErrorData, type HostDetail, type HostListItem, HostType, type LocalListResponse, type Manifest, type ManifestAliInfo, type ManifestAttInfo, type ManifestAttItem, type ManifestAudioItem, type ManifestAudioMetaItem, type ManifestBaiduInfo, type ManifestCoverInfo, type ManifestImgInfo, type ManifestImgMetaInfo, type ManifestInputMetaInfo, type ManifestMediaInfo, type ManifestMetaInfo, type ManifestSourceInfo, type ManifestSubtitleItem, type ManifestThumbnailInfo, type ManifestTxtInfo, type ManifestVideoItem, type ManifestVideoMetaItem, type MemberInfo, type NetSuccessItem, NetType, NormalStatus, type PaginationParams, RecordAdaptResolution, type RecordDetail, RecordFileKeep, type RecordFolderConfig, RecordFtype, type RecordInfo, RecordInsertLast, type RecordListItem, RecordType, type ShareHistoryListItem, type ShareListItem, type ShareUserListItem, type SpaceDetail, type SpaceLevelItem, type SpaceListItem, type SubListItem, type UploadFileError, type UploadFileItem, type UploadFileSuceessItem, type UploadInputItem, UploadProgress, type UploadProgressData, UploadStatus, type UpyunSignInfo, type UserGroupListItem, type UserListItem, type WithP, type WithPK };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- var O,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,e=Object.getOwnPropertyNames,R=Object.prototype.hasOwnProperty,_={};((O,D)=>{for(var e in D)E(O,e,{get:D[e],enumerable:!0})})(_,{CloudType:()=>A,DownloadStatus:()=>u,HostType:()=>r,NetType:()=>a,NormalStatus:()=>t,RecordAdaptResolution:()=>L,RecordFileKeep:()=>n,RecordFtype:()=>S,RecordInsertLast:()=>o,RecordType:()=>C,UploadProgress:()=>N,UploadStatus:()=>U}),module.exports=(O=_,((O,_,t,r)=>{if(_&&"object"==typeof _||"function"==typeof _)for(let A of e(_))R.call(O,A)||A===t||E(O,A,{get:()=>_[A],enumerable:!(r=D(_,A))||r.enumerable});return O})(E({},"__esModule",{value:!0}),O));var t=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),r=function(O){return O.BAIDU="baidu",O.ALI="ali",O}({}),A=function(O){return O[O.BAIDU=1]="BAIDU",O[O.ALI=2]="ALI",O}({}),C=function(O){return O[O.FOLDER=0]="FOLDER",O[O.VIDEO=1]="VIDEO",O[O.AUDIO=2]="AUDIO",O[O.IMAGE=3]="IMAGE",O[O.DOC=4]="DOC",O[O.OTHER=5]="OTHER",O[O.AFFIX=9]="AFFIX",O}({}),S=function(O){return O[O.NONE=0]="NONE",O[O.VIDEO_NORMAL=10]="VIDEO_NORMAL",O[O.VIDEO_VR=11]="VIDEO_VR",O[O.VIDEO_3D=12]="VIDEO_3D",O[O.AUDIO_NORMAL=20]="AUDIO_NORMAL",O[O.IMAGE_NORMAL=30]="IMAGE_NORMAL",O[O.IMAGE_VR=31]="IMAGE_VR",O[O.DOC_NORMAL=40]="DOC_NORMAL",O[O.DOC_TXT=41]="DOC_TXT",O[O.DOC_CODE=42]="DOC_CODE",O[O.DOC_MD=43]="DOC_MD",O[O.DOC_PDF=44]="DOC_PDF",O[O.DOC_WORD=45]="DOC_WORD",O[O.DOC_EXCEL=46]="DOC_EXCEL",O[O.DOC_PPT=47]="DOC_PPT",O}({}),o=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),n=function(O){return O[O.NULL=0]="NULL",O[O.SOURCE=1]="SOURCE",O[O.PREVIEW=2]="PREVIEW",O[O.BOTH=3]="BOTH",O}({}),L=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),U=function(O){return O[O.NULL=0]="NULL",O[O.ENCODE_READY=0]="ENCODE_READY",O[O.ENCODE_PROCESS=2]="ENCODE_PROCESS",O[O.ENCODE_ERROR=4]="ENCODE_ERROR",O[O.ENCODE_SUCCESS=6]="ENCODE_SUCCESS",O[O.UPLOAD_READY=6]="UPLOAD_READY",O[O.UPLOAD_PROCESS=8]="UPLOAD_PROCESS",O[O.UPLOAD_ERROR=10]="UPLOAD_ERROR",O[O.UPLOAD_SUCCESS=12]="UPLOAD_SUCCESS",O[O.SUBMIT_READY=12]="SUBMIT_READY",O[O.SUBMIT_ERROR=14]="SUBMIT_ERROR",O}({}),N=function(O){return O.prepare="PREPARE",O.separate_video="SEPARATE_VIDEO",O.separate_audio="SEPARATE_AUDIO",O.separate_subtitle="SEPARATE_SUBTITLE",O.transcode_video="TRANSCODE_VIDEO",O.transcode_audio="TRANSCODE_AUDIO",O.transcode_thumbnail="TRANSCODE_THUMBNAIL",O.transcode_source="TRANSCODE_SOURCE",O.transcode_txt="TRANSCODE_TXT",O.transcode_img="TRANSCODE_IMG",O.transcode_affix="TRANSCODE_AFFIX",O.group_media="GROUP_MEDIA",O.upload_baidu="UPLOAD_BAIDU",O.upload_ali="UPLOAD_ALI",O.end="END",O}({}),u=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),a=function(O){return O.DOWNLOAD="download",O.UPLOAD="upload",O}({});
1
+ var O,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,e=Object.getOwnPropertyNames,R=Object.prototype.hasOwnProperty,_={};((O,D)=>{for(var e in D)E(O,e,{get:D[e],enumerable:!0})})(_,{CloudType:()=>C,DownloadStatus:()=>N,HostType:()=>r,NetType:()=>a,NormalStatus:()=>t,RecordAdaptResolution:()=>L,RecordFileKeep:()=>n,RecordFtype:()=>A,RecordInsertLast:()=>o,RecordType:()=>S,UploadProgress:()=>u,UploadStatus:()=>U}),module.exports=(O=_,((O,_,t,r)=>{if(_&&"object"==typeof _||"function"==typeof _)for(let C of e(_))R.call(O,C)||C===t||E(O,C,{get:()=>_[C],enumerable:!(r=D(_,C))||r.enumerable});return O})(E({},"__esModule",{value:!0}),O));var t=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),r=function(O){return O.BAIDU="baidu",O.ALI="ali",O}({}),C=function(O){return O[O.BAIDU=1]="BAIDU",O[O.ALI=2]="ALI",O}({}),S=function(O){return O[O.FOLDER=0]="FOLDER",O[O.VIDEO=1]="VIDEO",O[O.AUDIO=2]="AUDIO",O[O.IMAGE=3]="IMAGE",O[O.DOC=4]="DOC",O[O.OTHER=5]="OTHER",O}({}),A=function(O){return O[O.NONE=0]="NONE",O[O.VIDEO_NORMAL=10]="VIDEO_NORMAL",O[O.VIDEO_VR=11]="VIDEO_VR",O[O.VIDEO_3D=12]="VIDEO_3D",O[O.AUDIO_NORMAL=20]="AUDIO_NORMAL",O[O.IMAGE_NORMAL=30]="IMAGE_NORMAL",O[O.IMAGE_VR=31]="IMAGE_VR",O[O.DOC_NORMAL=40]="DOC_NORMAL",O[O.DOC_TXT=41]="DOC_TXT",O[O.DOC_CODE=42]="DOC_CODE",O[O.DOC_MD=43]="DOC_MD",O[O.DOC_PDF=44]="DOC_PDF",O[O.DOC_WORD=45]="DOC_WORD",O[O.DOC_EXCEL=46]="DOC_EXCEL",O[O.DOC_PPT=47]="DOC_PPT",O}({}),o=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),n=function(O){return O[O.NULL=0]="NULL",O[O.SOURCE=1]="SOURCE",O[O.PREVIEW=2]="PREVIEW",O[O.BOTH=3]="BOTH",O}({}),L=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),U=function(O){return O[O.NULL=0]="NULL",O[O.ENCODE_READY=0]="ENCODE_READY",O[O.ENCODE_PROCESS=2]="ENCODE_PROCESS",O[O.ENCODE_ERROR=4]="ENCODE_ERROR",O[O.ENCODE_SUCCESS=6]="ENCODE_SUCCESS",O[O.UPLOAD_READY=6]="UPLOAD_READY",O[O.UPLOAD_PROCESS=8]="UPLOAD_PROCESS",O[O.UPLOAD_ERROR=10]="UPLOAD_ERROR",O[O.UPLOAD_SUCCESS=12]="UPLOAD_SUCCESS",O[O.SUBMIT_READY=12]="SUBMIT_READY",O[O.SUBMIT_ERROR=14]="SUBMIT_ERROR",O}({}),u=function(O){return O.prepare="PREPARE",O.separate_video="SEPARATE_VIDEO",O.separate_audio="SEPARATE_AUDIO",O.separate_subtitle="SEPARATE_SUBTITLE",O.transcode_video="TRANSCODE_VIDEO",O.transcode_audio="TRANSCODE_AUDIO",O.transcode_thumbnail="TRANSCODE_THUMBNAIL",O.transcode_source="TRANSCODE_SOURCE",O.transcode_txt="TRANSCODE_TXT",O.transcode_img="TRANSCODE_IMG",O.group_media="GROUP_MEDIA",O.upload_baidu="UPLOAD_BAIDU",O.upload_ali="UPLOAD_ALI",O.end="END",O}({}),N=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),a=function(O){return O.DOWNLOAD="download",O.UPLOAD="upload",O}({});
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- var O=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),E=function(O){return O.BAIDU="baidu",O.ALI="ali",O}({}),D=function(O){return O[O.BAIDU=1]="BAIDU",O[O.ALI=2]="ALI",O}({}),R=function(O){return O[O.FOLDER=0]="FOLDER",O[O.VIDEO=1]="VIDEO",O[O.AUDIO=2]="AUDIO",O[O.IMAGE=3]="IMAGE",O[O.DOC=4]="DOC",O[O.OTHER=5]="OTHER",O[O.AFFIX=9]="AFFIX",O}({}),_=function(O){return O[O.NONE=0]="NONE",O[O.VIDEO_NORMAL=10]="VIDEO_NORMAL",O[O.VIDEO_VR=11]="VIDEO_VR",O[O.VIDEO_3D=12]="VIDEO_3D",O[O.AUDIO_NORMAL=20]="AUDIO_NORMAL",O[O.IMAGE_NORMAL=30]="IMAGE_NORMAL",O[O.IMAGE_VR=31]="IMAGE_VR",O[O.DOC_NORMAL=40]="DOC_NORMAL",O[O.DOC_TXT=41]="DOC_TXT",O[O.DOC_CODE=42]="DOC_CODE",O[O.DOC_MD=43]="DOC_MD",O[O.DOC_PDF=44]="DOC_PDF",O[O.DOC_WORD=45]="DOC_WORD",O[O.DOC_EXCEL=46]="DOC_EXCEL",O[O.DOC_PPT=47]="DOC_PPT",O}({}),A=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),C=function(O){return O[O.NULL=0]="NULL",O[O.SOURCE=1]="SOURCE",O[O.PREVIEW=2]="PREVIEW",O[O.BOTH=3]="BOTH",O}({}),S=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),L=function(O){return O[O.NULL=0]="NULL",O[O.ENCODE_READY=0]="ENCODE_READY",O[O.ENCODE_PROCESS=2]="ENCODE_PROCESS",O[O.ENCODE_ERROR=4]="ENCODE_ERROR",O[O.ENCODE_SUCCESS=6]="ENCODE_SUCCESS",O[O.UPLOAD_READY=6]="UPLOAD_READY",O[O.UPLOAD_PROCESS=8]="UPLOAD_PROCESS",O[O.UPLOAD_ERROR=10]="UPLOAD_ERROR",O[O.UPLOAD_SUCCESS=12]="UPLOAD_SUCCESS",O[O.SUBMIT_READY=12]="SUBMIT_READY",O[O.SUBMIT_ERROR=14]="SUBMIT_ERROR",O}({}),U=function(O){return O.prepare="PREPARE",O.separate_video="SEPARATE_VIDEO",O.separate_audio="SEPARATE_AUDIO",O.separate_subtitle="SEPARATE_SUBTITLE",O.transcode_video="TRANSCODE_VIDEO",O.transcode_audio="TRANSCODE_AUDIO",O.transcode_thumbnail="TRANSCODE_THUMBNAIL",O.transcode_source="TRANSCODE_SOURCE",O.transcode_txt="TRANSCODE_TXT",O.transcode_img="TRANSCODE_IMG",O.transcode_affix="TRANSCODE_AFFIX",O.group_media="GROUP_MEDIA",O.upload_baidu="UPLOAD_BAIDU",O.upload_ali="UPLOAD_ALI",O.end="END",O}({}),n=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),N=function(O){return O.DOWNLOAD="download",O.UPLOAD="upload",O}({});export{D as CloudType,n as DownloadStatus,E as HostType,N as NetType,O as NormalStatus,S as RecordAdaptResolution,C as RecordFileKeep,_ as RecordFtype,A as RecordInsertLast,R as RecordType,U as UploadProgress,L as UploadStatus};
1
+ var O=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),E=function(O){return O.BAIDU="baidu",O.ALI="ali",O}({}),D=function(O){return O[O.BAIDU=1]="BAIDU",O[O.ALI=2]="ALI",O}({}),R=function(O){return O[O.FOLDER=0]="FOLDER",O[O.VIDEO=1]="VIDEO",O[O.AUDIO=2]="AUDIO",O[O.IMAGE=3]="IMAGE",O[O.DOC=4]="DOC",O[O.OTHER=5]="OTHER",O}({}),_=function(O){return O[O.NONE=0]="NONE",O[O.VIDEO_NORMAL=10]="VIDEO_NORMAL",O[O.VIDEO_VR=11]="VIDEO_VR",O[O.VIDEO_3D=12]="VIDEO_3D",O[O.AUDIO_NORMAL=20]="AUDIO_NORMAL",O[O.IMAGE_NORMAL=30]="IMAGE_NORMAL",O[O.IMAGE_VR=31]="IMAGE_VR",O[O.DOC_NORMAL=40]="DOC_NORMAL",O[O.DOC_TXT=41]="DOC_TXT",O[O.DOC_CODE=42]="DOC_CODE",O[O.DOC_MD=43]="DOC_MD",O[O.DOC_PDF=44]="DOC_PDF",O[O.DOC_WORD=45]="DOC_WORD",O[O.DOC_EXCEL=46]="DOC_EXCEL",O[O.DOC_PPT=47]="DOC_PPT",O}({}),C=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),A=function(O){return O[O.NULL=0]="NULL",O[O.SOURCE=1]="SOURCE",O[O.PREVIEW=2]="PREVIEW",O[O.BOTH=3]="BOTH",O}({}),S=function(O){return O[O.NULL=0]="NULL",O[O.YES=1]="YES",O[O.NO=-1]="NO",O}({}),L=function(O){return O[O.NULL=0]="NULL",O[O.ENCODE_READY=0]="ENCODE_READY",O[O.ENCODE_PROCESS=2]="ENCODE_PROCESS",O[O.ENCODE_ERROR=4]="ENCODE_ERROR",O[O.ENCODE_SUCCESS=6]="ENCODE_SUCCESS",O[O.UPLOAD_READY=6]="UPLOAD_READY",O[O.UPLOAD_PROCESS=8]="UPLOAD_PROCESS",O[O.UPLOAD_ERROR=10]="UPLOAD_ERROR",O[O.UPLOAD_SUCCESS=12]="UPLOAD_SUCCESS",O[O.SUBMIT_READY=12]="SUBMIT_READY",O[O.SUBMIT_ERROR=14]="SUBMIT_ERROR",O}({}),U=function(O){return O.prepare="PREPARE",O.separate_video="SEPARATE_VIDEO",O.separate_audio="SEPARATE_AUDIO",O.separate_subtitle="SEPARATE_SUBTITLE",O.transcode_video="TRANSCODE_VIDEO",O.transcode_audio="TRANSCODE_AUDIO",O.transcode_thumbnail="TRANSCODE_THUMBNAIL",O.transcode_source="TRANSCODE_SOURCE",O.transcode_txt="TRANSCODE_TXT",O.transcode_img="TRANSCODE_IMG",O.group_media="GROUP_MEDIA",O.upload_baidu="UPLOAD_BAIDU",O.upload_ali="UPLOAD_ALI",O.end="END",O}({}),n=function(O){return O[O.NULL=0]="NULL",O[O.PROCESS=1]="PROCESS",O[O.SUCCESS=2]="SUCCESS",O[O.ERROR=4]="ERROR",O}({}),N=function(O){return O.DOWNLOAD="download",O.UPLOAD="upload",O}({});export{D as CloudType,n as DownloadStatus,E as HostType,N as NetType,O as NormalStatus,S as RecordAdaptResolution,A as RecordFileKeep,_ as RecordFtype,C as RecordInsertLast,R as RecordType,U as UploadProgress,L as UploadStatus};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soga/types",
3
- "version": "0.9.4",
3
+ "version": "0.9.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },