@soga/types 0.9.4 → 0.9.6

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
@@ -93,7 +93,7 @@ type ManifestInputMetaInfo = {
93
93
  mtime: number;
94
94
  file: string;
95
95
  size: number;
96
- hostsize: number;
96
+ md5: string;
97
97
  };
98
98
  type ManifestAudioMetaItem = {
99
99
  channels: number;
@@ -138,7 +138,7 @@ type ManifestSourceInfo = {
138
138
  type ManifestMediaInfo = {
139
139
  audios: ManifestAudioItem[];
140
140
  videos: ManifestVideoItem[];
141
- subtitles: ManifestSubtitleItem[];
141
+ subtitles: ManifestSubtitleInfo;
142
142
  thumbnail: ManifestThumbnailInfo;
143
143
  cover: ManifestCoverInfo;
144
144
  };
@@ -197,11 +197,9 @@ type ManifestVideoItem = {
197
197
  hash?: string;
198
198
  };
199
199
  type ManifestSubtitleItem = {
200
- uuid: string;
201
- builtin: boolean;
202
- end: number;
203
200
  file: string;
204
- lang: string;
201
+ start: number;
202
+ end: number;
205
203
  size: number;
206
204
  source?: {
207
205
  end: number;
@@ -210,10 +208,8 @@ type ManifestSubtitleItem = {
210
208
  start: number;
211
209
  ext: string;
212
210
  };
213
- start: number;
214
- name: string;
215
- title: string;
216
211
  };
212
+ type ManifestSubtitleInfo = Record<string, ManifestSubtitleItem>;
217
213
  type ManifestThumbnailInfo = {
218
214
  col: number;
219
215
  end: number;
@@ -232,6 +228,15 @@ type ManifestCoverInfo = {
232
228
  start: number;
233
229
  end: number;
234
230
  };
231
+ type ManifestAttItem = {
232
+ max_size: number;
233
+ source?: ManifestSourceInfo;
234
+ media?: ManifestMediaInfo;
235
+ img?: ManifestImgInfo;
236
+ txt?: ManifestTxtInfo;
237
+ subtitles?: SubtitleMetaItem[];
238
+ };
239
+ type ManifestAttInfo = Record<string, ManifestAttItem>;
235
240
  type ManifestBaiduInfo = {
236
241
  host_id: number;
237
242
  files: Record<string, {
@@ -243,7 +248,6 @@ type ManifestBaiduInfo = {
243
248
  source: boolean;
244
249
  }>;
245
250
  max_size: number;
246
- host_size: number;
247
251
  source?: ManifestSourceInfo;
248
252
  media?: ManifestMediaInfo;
249
253
  img?: ManifestImgInfo;
@@ -260,7 +264,6 @@ type ManifestAliInfo = {
260
264
  preview: boolean;
261
265
  source: boolean;
262
266
  }>;
263
- host_size: number;
264
267
  max_size: number;
265
268
  source?: ManifestSourceInfo;
266
269
  media?: ManifestMediaInfo;
@@ -268,15 +271,37 @@ type ManifestAliInfo = {
268
271
  txt?: ManifestTxtInfo;
269
272
  };
270
273
  type ManifestMetaInfo = {
274
+ preview: boolean;
275
+ source: boolean;
271
276
  file: ManifestInputMetaInfo;
272
277
  audios?: ManifestAudioMetaItem[];
273
278
  videos?: ManifestVideoMetaItem[];
274
279
  img?: ManifestImgMetaInfo;
275
280
  };
276
- type Manifest = {
277
- meta: ManifestMetaInfo;
278
- baidu: ManifestBaiduInfo;
279
- ali: ManifestAliInfo;
281
+ type SubtitleMetaItem = {
282
+ uuid: string;
283
+ lang: string;
284
+ name: string;
285
+ title: string;
286
+ builtin: boolean;
287
+ };
288
+ type ManifestItem = {
289
+ subtitles?: SubtitleMetaItem[];
290
+ metas: ManifestMetaInfo;
291
+ baidu?: ManifestBaiduInfo;
292
+ ali?: ManifestAliInfo;
293
+ };
294
+ type ManifestAttachmentItem = ManifestItem & {
295
+ uuid: string;
296
+ title: string;
297
+ type: RecordType;
298
+ ftype: RecordFtype;
299
+ };
300
+ type Manifest = ManifestItem & {
301
+ version: string;
302
+ complete: boolean;
303
+ hosts: Record<HostType, number>;
304
+ attachments?: ManifestAttachmentItem[];
280
305
  };
281
306
 
282
307
  declare enum RecordType {
@@ -285,8 +310,7 @@ declare enum RecordType {
285
310
  AUDIO = 2,
286
311
  IMAGE = 3,
287
312
  DOC = 4,
288
- OTHER = 5,
289
- AFFIX = 9
313
+ OTHER = 5
290
314
  }
291
315
  declare enum RecordFtype {
292
316
  NONE = 0,
@@ -430,6 +454,7 @@ interface UploadFileError {
430
454
  }
431
455
  declare enum UploadProgress {
432
456
  prepare = "PREPARE",
457
+ calculate_md5 = "CALCULATE_MD5",
433
458
  separate_video = "SEPARATE_VIDEO",
434
459
  separate_audio = "SEPARATE_AUDIO",
435
460
  separate_subtitle = "SEPARATE_SUBTITLE",
@@ -439,7 +464,6 @@ declare enum UploadProgress {
439
464
  transcode_source = "TRANSCODE_SOURCE",
440
465
  transcode_txt = "TRANSCODE_TXT",
441
466
  transcode_img = "TRANSCODE_IMG",
442
- transcode_affix = "TRANSCODE_AFFIX",
443
467
  group_media = "GROUP_MEDIA",
444
468
  upload_baidu = "UPLOAD_BAIDU",
445
469
  upload_ali = "UPLOAD_ALI",
@@ -459,6 +483,7 @@ type UploadInputItem = {
459
483
  };
460
484
  type UploadFileItem = {
461
485
  id: number;
486
+ is_attachment: boolean;
462
487
  total_count: number;
463
488
  completed_count: number;
464
489
  input: UploadInputItem;
@@ -491,6 +516,7 @@ type UploadFileItem = {
491
516
  };
492
517
  type UploadFileSuceessItem = {
493
518
  id: number;
519
+ is_attachment: boolean;
494
520
  root_id: number;
495
521
  pid: number;
496
522
  space_id: number;
@@ -654,7 +680,7 @@ type DownloadProgressData = Record<DownloadProgressStep, {
654
680
  }>;
655
681
  type DownloadFileItem = {
656
682
  id: number;
657
- is_affix: boolean;
683
+ is_attachment: boolean;
658
684
  is_paused: boolean;
659
685
  type: RecordType;
660
686
  ftype: RecordFtype;
@@ -687,7 +713,7 @@ type NetSuccessItem = {
687
713
  id: number;
688
714
  uid: number;
689
715
  net_type: NetType;
690
- is_affix: boolean;
716
+ is_attachment: boolean;
691
717
  type: RecordType;
692
718
  ftype: RecordFtype;
693
719
  space_id: number;
@@ -700,4 +726,4 @@ type NetSuccessItem = {
700
726
  created_at: Date;
701
727
  };
702
728
 
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 };
729
+ 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 ManifestAttachmentItem, type ManifestAudioItem, type ManifestAudioMetaItem, type ManifestBaiduInfo, type ManifestCoverInfo, type ManifestImgInfo, type ManifestImgMetaInfo, type ManifestInputMetaInfo, type ManifestMediaInfo, type ManifestMetaInfo, type ManifestSourceInfo, type ManifestSubtitleInfo, 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 SubtitleMetaItem, 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
@@ -93,7 +93,7 @@ type ManifestInputMetaInfo = {
93
93
  mtime: number;
94
94
  file: string;
95
95
  size: number;
96
- hostsize: number;
96
+ md5: string;
97
97
  };
98
98
  type ManifestAudioMetaItem = {
99
99
  channels: number;
@@ -138,7 +138,7 @@ type ManifestSourceInfo = {
138
138
  type ManifestMediaInfo = {
139
139
  audios: ManifestAudioItem[];
140
140
  videos: ManifestVideoItem[];
141
- subtitles: ManifestSubtitleItem[];
141
+ subtitles: ManifestSubtitleInfo;
142
142
  thumbnail: ManifestThumbnailInfo;
143
143
  cover: ManifestCoverInfo;
144
144
  };
@@ -197,11 +197,9 @@ type ManifestVideoItem = {
197
197
  hash?: string;
198
198
  };
199
199
  type ManifestSubtitleItem = {
200
- uuid: string;
201
- builtin: boolean;
202
- end: number;
203
200
  file: string;
204
- lang: string;
201
+ start: number;
202
+ end: number;
205
203
  size: number;
206
204
  source?: {
207
205
  end: number;
@@ -210,10 +208,8 @@ type ManifestSubtitleItem = {
210
208
  start: number;
211
209
  ext: string;
212
210
  };
213
- start: number;
214
- name: string;
215
- title: string;
216
211
  };
212
+ type ManifestSubtitleInfo = Record<string, ManifestSubtitleItem>;
217
213
  type ManifestThumbnailInfo = {
218
214
  col: number;
219
215
  end: number;
@@ -232,6 +228,15 @@ type ManifestCoverInfo = {
232
228
  start: number;
233
229
  end: number;
234
230
  };
231
+ type ManifestAttItem = {
232
+ max_size: number;
233
+ source?: ManifestSourceInfo;
234
+ media?: ManifestMediaInfo;
235
+ img?: ManifestImgInfo;
236
+ txt?: ManifestTxtInfo;
237
+ subtitles?: SubtitleMetaItem[];
238
+ };
239
+ type ManifestAttInfo = Record<string, ManifestAttItem>;
235
240
  type ManifestBaiduInfo = {
236
241
  host_id: number;
237
242
  files: Record<string, {
@@ -243,7 +248,6 @@ type ManifestBaiduInfo = {
243
248
  source: boolean;
244
249
  }>;
245
250
  max_size: number;
246
- host_size: number;
247
251
  source?: ManifestSourceInfo;
248
252
  media?: ManifestMediaInfo;
249
253
  img?: ManifestImgInfo;
@@ -260,7 +264,6 @@ type ManifestAliInfo = {
260
264
  preview: boolean;
261
265
  source: boolean;
262
266
  }>;
263
- host_size: number;
264
267
  max_size: number;
265
268
  source?: ManifestSourceInfo;
266
269
  media?: ManifestMediaInfo;
@@ -268,15 +271,37 @@ type ManifestAliInfo = {
268
271
  txt?: ManifestTxtInfo;
269
272
  };
270
273
  type ManifestMetaInfo = {
274
+ preview: boolean;
275
+ source: boolean;
271
276
  file: ManifestInputMetaInfo;
272
277
  audios?: ManifestAudioMetaItem[];
273
278
  videos?: ManifestVideoMetaItem[];
274
279
  img?: ManifestImgMetaInfo;
275
280
  };
276
- type Manifest = {
277
- meta: ManifestMetaInfo;
278
- baidu: ManifestBaiduInfo;
279
- ali: ManifestAliInfo;
281
+ type SubtitleMetaItem = {
282
+ uuid: string;
283
+ lang: string;
284
+ name: string;
285
+ title: string;
286
+ builtin: boolean;
287
+ };
288
+ type ManifestItem = {
289
+ subtitles?: SubtitleMetaItem[];
290
+ metas: ManifestMetaInfo;
291
+ baidu?: ManifestBaiduInfo;
292
+ ali?: ManifestAliInfo;
293
+ };
294
+ type ManifestAttachmentItem = ManifestItem & {
295
+ uuid: string;
296
+ title: string;
297
+ type: RecordType;
298
+ ftype: RecordFtype;
299
+ };
300
+ type Manifest = ManifestItem & {
301
+ version: string;
302
+ complete: boolean;
303
+ hosts: Record<HostType, number>;
304
+ attachments?: ManifestAttachmentItem[];
280
305
  };
281
306
 
282
307
  declare enum RecordType {
@@ -285,8 +310,7 @@ declare enum RecordType {
285
310
  AUDIO = 2,
286
311
  IMAGE = 3,
287
312
  DOC = 4,
288
- OTHER = 5,
289
- AFFIX = 9
313
+ OTHER = 5
290
314
  }
291
315
  declare enum RecordFtype {
292
316
  NONE = 0,
@@ -430,6 +454,7 @@ interface UploadFileError {
430
454
  }
431
455
  declare enum UploadProgress {
432
456
  prepare = "PREPARE",
457
+ calculate_md5 = "CALCULATE_MD5",
433
458
  separate_video = "SEPARATE_VIDEO",
434
459
  separate_audio = "SEPARATE_AUDIO",
435
460
  separate_subtitle = "SEPARATE_SUBTITLE",
@@ -439,7 +464,6 @@ declare enum UploadProgress {
439
464
  transcode_source = "TRANSCODE_SOURCE",
440
465
  transcode_txt = "TRANSCODE_TXT",
441
466
  transcode_img = "TRANSCODE_IMG",
442
- transcode_affix = "TRANSCODE_AFFIX",
443
467
  group_media = "GROUP_MEDIA",
444
468
  upload_baidu = "UPLOAD_BAIDU",
445
469
  upload_ali = "UPLOAD_ALI",
@@ -459,6 +483,7 @@ type UploadInputItem = {
459
483
  };
460
484
  type UploadFileItem = {
461
485
  id: number;
486
+ is_attachment: boolean;
462
487
  total_count: number;
463
488
  completed_count: number;
464
489
  input: UploadInputItem;
@@ -491,6 +516,7 @@ type UploadFileItem = {
491
516
  };
492
517
  type UploadFileSuceessItem = {
493
518
  id: number;
519
+ is_attachment: boolean;
494
520
  root_id: number;
495
521
  pid: number;
496
522
  space_id: number;
@@ -654,7 +680,7 @@ type DownloadProgressData = Record<DownloadProgressStep, {
654
680
  }>;
655
681
  type DownloadFileItem = {
656
682
  id: number;
657
- is_affix: boolean;
683
+ is_attachment: boolean;
658
684
  is_paused: boolean;
659
685
  type: RecordType;
660
686
  ftype: RecordFtype;
@@ -687,7 +713,7 @@ type NetSuccessItem = {
687
713
  id: number;
688
714
  uid: number;
689
715
  net_type: NetType;
690
- is_affix: boolean;
716
+ is_attachment: boolean;
691
717
  type: RecordType;
692
718
  ftype: RecordFtype;
693
719
  space_id: number;
@@ -700,4 +726,4 @@ type NetSuccessItem = {
700
726
  created_at: Date;
701
727
  };
702
728
 
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 };
729
+ 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 ManifestAttachmentItem, type ManifestAudioItem, type ManifestAudioMetaItem, type ManifestBaiduInfo, type ManifestCoverInfo, type ManifestImgInfo, type ManifestImgMetaInfo, type ManifestInputMetaInfo, type ManifestMediaInfo, type ManifestMetaInfo, type ManifestSourceInfo, type ManifestSubtitleInfo, 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 SubtitleMetaItem, 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:()=>S,RecordInsertLast:()=>o,RecordType:()=>A,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}({}),A=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}({}),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}({}),u=function(O){return O.prepare="PREPARE",O.calculate_md5="CALCULATE_MD5",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.calculate_md5="CALCULATE_MD5",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.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },