@soga/types 0.9.3 → 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 +67 -8
- package/dist/index.d.ts +67 -8
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
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,12 +253,15 @@ type ManifestBaiduInfo = {
|
|
|
241
253
|
md4: string;
|
|
242
254
|
preview: boolean;
|
|
243
255
|
source: boolean;
|
|
256
|
+
attached: boolean;
|
|
244
257
|
}>;
|
|
258
|
+
max_size: number;
|
|
245
259
|
host_size: number;
|
|
246
260
|
source?: ManifestSourceInfo;
|
|
247
261
|
media?: ManifestMediaInfo;
|
|
248
262
|
img?: ManifestImgInfo;
|
|
249
263
|
txt?: ManifestTxtInfo;
|
|
264
|
+
attachments?: ManifestAttInfo;
|
|
250
265
|
};
|
|
251
266
|
type ManifestAliInfo = {
|
|
252
267
|
host_id: number;
|
|
@@ -258,12 +273,15 @@ type ManifestAliInfo = {
|
|
|
258
273
|
md5: string;
|
|
259
274
|
preview: boolean;
|
|
260
275
|
source: boolean;
|
|
276
|
+
attached: boolean;
|
|
261
277
|
}>;
|
|
262
278
|
host_size: number;
|
|
279
|
+
max_size: number;
|
|
263
280
|
source?: ManifestSourceInfo;
|
|
264
281
|
media?: ManifestMediaInfo;
|
|
265
282
|
img?: ManifestImgInfo;
|
|
266
283
|
txt?: ManifestTxtInfo;
|
|
284
|
+
attachments?: ManifestAttInfo;
|
|
267
285
|
};
|
|
268
286
|
type ManifestMetaInfo = {
|
|
269
287
|
file: ManifestInputMetaInfo;
|
|
@@ -272,6 +290,7 @@ type ManifestMetaInfo = {
|
|
|
272
290
|
img?: ManifestImgMetaInfo;
|
|
273
291
|
};
|
|
274
292
|
type Manifest = {
|
|
293
|
+
attached: boolean;
|
|
275
294
|
meta: ManifestMetaInfo;
|
|
276
295
|
baidu: ManifestBaiduInfo;
|
|
277
296
|
ali: ManifestAliInfo;
|
|
@@ -283,8 +302,7 @@ declare enum RecordType {
|
|
|
283
302
|
AUDIO = 2,
|
|
284
303
|
IMAGE = 3,
|
|
285
304
|
DOC = 4,
|
|
286
|
-
OTHER = 5
|
|
287
|
-
AFFIX = 9
|
|
305
|
+
OTHER = 5
|
|
288
306
|
}
|
|
289
307
|
declare enum RecordFtype {
|
|
290
308
|
NONE = 0,
|
|
@@ -437,7 +455,6 @@ declare enum UploadProgress {
|
|
|
437
455
|
transcode_source = "TRANSCODE_SOURCE",
|
|
438
456
|
transcode_txt = "TRANSCODE_TXT",
|
|
439
457
|
transcode_img = "TRANSCODE_IMG",
|
|
440
|
-
transcode_affix = "TRANSCODE_AFFIX",
|
|
441
458
|
group_media = "GROUP_MEDIA",
|
|
442
459
|
upload_baidu = "UPLOAD_BAIDU",
|
|
443
460
|
upload_ali = "UPLOAD_ALI",
|
|
@@ -447,8 +464,50 @@ type UploadProgressData = Partial<Record<UploadProgress, {
|
|
|
447
464
|
weight: number;
|
|
448
465
|
percent: number;
|
|
449
466
|
}>>;
|
|
467
|
+
type UploadInputItem = {
|
|
468
|
+
filename: string;
|
|
469
|
+
filepath: string;
|
|
470
|
+
filesize: number;
|
|
471
|
+
local_btime: number;
|
|
472
|
+
local_ctime: number;
|
|
473
|
+
local_mtime: number;
|
|
474
|
+
};
|
|
475
|
+
type UploadFileItem = {
|
|
476
|
+
id: number;
|
|
477
|
+
is_attachment: boolean;
|
|
478
|
+
total_count: number;
|
|
479
|
+
completed_count: number;
|
|
480
|
+
input: UploadInputItem;
|
|
481
|
+
filepath: string;
|
|
482
|
+
root_id: number;
|
|
483
|
+
root_status: NormalStatus;
|
|
484
|
+
space_id: number;
|
|
485
|
+
space_name: string;
|
|
486
|
+
is_ready: boolean;
|
|
487
|
+
config: RecordFolderConfig;
|
|
488
|
+
uid: number;
|
|
489
|
+
aid: number;
|
|
490
|
+
baidu_host_id: number;
|
|
491
|
+
ali_host_id: number;
|
|
492
|
+
some_parts_uploaded: boolean;
|
|
493
|
+
upload_status: UploadStatus;
|
|
494
|
+
is_paused: boolean;
|
|
495
|
+
pid: number;
|
|
496
|
+
type: RecordType;
|
|
497
|
+
task_record_id: number;
|
|
498
|
+
cloud_info: CloudInfoField;
|
|
499
|
+
output_root: string;
|
|
500
|
+
external_texts: string[];
|
|
501
|
+
progress: UploadProgressData;
|
|
502
|
+
percent: number;
|
|
503
|
+
error: UploadFileError | null;
|
|
504
|
+
order: number;
|
|
505
|
+
updated_at: string;
|
|
506
|
+
created_at: string;
|
|
507
|
+
};
|
|
450
508
|
type UploadFileSuceessItem = {
|
|
451
509
|
id: number;
|
|
510
|
+
is_attachment: boolean;
|
|
452
511
|
root_id: number;
|
|
453
512
|
pid: number;
|
|
454
513
|
space_id: number;
|
|
@@ -459,11 +518,11 @@ type UploadFileSuceessItem = {
|
|
|
459
518
|
type: RecordType;
|
|
460
519
|
created_at: string;
|
|
461
520
|
updated_at: string;
|
|
462
|
-
|
|
521
|
+
input: {
|
|
463
522
|
filename: string;
|
|
464
523
|
filepath: string;
|
|
465
524
|
filesize: number;
|
|
466
|
-
}
|
|
525
|
+
};
|
|
467
526
|
};
|
|
468
527
|
|
|
469
528
|
type MemberInfo = {
|
|
@@ -612,7 +671,7 @@ type DownloadProgressData = Record<DownloadProgressStep, {
|
|
|
612
671
|
}>;
|
|
613
672
|
type DownloadFileItem = {
|
|
614
673
|
id: number;
|
|
615
|
-
|
|
674
|
+
is_attachment: boolean;
|
|
616
675
|
is_paused: boolean;
|
|
617
676
|
type: RecordType;
|
|
618
677
|
ftype: RecordFtype;
|
|
@@ -645,7 +704,7 @@ type NetSuccessItem = {
|
|
|
645
704
|
id: number;
|
|
646
705
|
uid: number;
|
|
647
706
|
net_type: NetType;
|
|
648
|
-
|
|
707
|
+
is_attachment: boolean;
|
|
649
708
|
type: RecordType;
|
|
650
709
|
ftype: RecordFtype;
|
|
651
710
|
space_id: number;
|
|
@@ -658,4 +717,4 @@ type NetSuccessItem = {
|
|
|
658
717
|
created_at: Date;
|
|
659
718
|
};
|
|
660
719
|
|
|
661
|
-
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 UploadFileSuceessItem, 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,12 +253,15 @@ type ManifestBaiduInfo = {
|
|
|
241
253
|
md4: string;
|
|
242
254
|
preview: boolean;
|
|
243
255
|
source: boolean;
|
|
256
|
+
attached: boolean;
|
|
244
257
|
}>;
|
|
258
|
+
max_size: number;
|
|
245
259
|
host_size: number;
|
|
246
260
|
source?: ManifestSourceInfo;
|
|
247
261
|
media?: ManifestMediaInfo;
|
|
248
262
|
img?: ManifestImgInfo;
|
|
249
263
|
txt?: ManifestTxtInfo;
|
|
264
|
+
attachments?: ManifestAttInfo;
|
|
250
265
|
};
|
|
251
266
|
type ManifestAliInfo = {
|
|
252
267
|
host_id: number;
|
|
@@ -258,12 +273,15 @@ type ManifestAliInfo = {
|
|
|
258
273
|
md5: string;
|
|
259
274
|
preview: boolean;
|
|
260
275
|
source: boolean;
|
|
276
|
+
attached: boolean;
|
|
261
277
|
}>;
|
|
262
278
|
host_size: number;
|
|
279
|
+
max_size: number;
|
|
263
280
|
source?: ManifestSourceInfo;
|
|
264
281
|
media?: ManifestMediaInfo;
|
|
265
282
|
img?: ManifestImgInfo;
|
|
266
283
|
txt?: ManifestTxtInfo;
|
|
284
|
+
attachments?: ManifestAttInfo;
|
|
267
285
|
};
|
|
268
286
|
type ManifestMetaInfo = {
|
|
269
287
|
file: ManifestInputMetaInfo;
|
|
@@ -272,6 +290,7 @@ type ManifestMetaInfo = {
|
|
|
272
290
|
img?: ManifestImgMetaInfo;
|
|
273
291
|
};
|
|
274
292
|
type Manifest = {
|
|
293
|
+
attached: boolean;
|
|
275
294
|
meta: ManifestMetaInfo;
|
|
276
295
|
baidu: ManifestBaiduInfo;
|
|
277
296
|
ali: ManifestAliInfo;
|
|
@@ -283,8 +302,7 @@ declare enum RecordType {
|
|
|
283
302
|
AUDIO = 2,
|
|
284
303
|
IMAGE = 3,
|
|
285
304
|
DOC = 4,
|
|
286
|
-
OTHER = 5
|
|
287
|
-
AFFIX = 9
|
|
305
|
+
OTHER = 5
|
|
288
306
|
}
|
|
289
307
|
declare enum RecordFtype {
|
|
290
308
|
NONE = 0,
|
|
@@ -437,7 +455,6 @@ declare enum UploadProgress {
|
|
|
437
455
|
transcode_source = "TRANSCODE_SOURCE",
|
|
438
456
|
transcode_txt = "TRANSCODE_TXT",
|
|
439
457
|
transcode_img = "TRANSCODE_IMG",
|
|
440
|
-
transcode_affix = "TRANSCODE_AFFIX",
|
|
441
458
|
group_media = "GROUP_MEDIA",
|
|
442
459
|
upload_baidu = "UPLOAD_BAIDU",
|
|
443
460
|
upload_ali = "UPLOAD_ALI",
|
|
@@ -447,8 +464,50 @@ type UploadProgressData = Partial<Record<UploadProgress, {
|
|
|
447
464
|
weight: number;
|
|
448
465
|
percent: number;
|
|
449
466
|
}>>;
|
|
467
|
+
type UploadInputItem = {
|
|
468
|
+
filename: string;
|
|
469
|
+
filepath: string;
|
|
470
|
+
filesize: number;
|
|
471
|
+
local_btime: number;
|
|
472
|
+
local_ctime: number;
|
|
473
|
+
local_mtime: number;
|
|
474
|
+
};
|
|
475
|
+
type UploadFileItem = {
|
|
476
|
+
id: number;
|
|
477
|
+
is_attachment: boolean;
|
|
478
|
+
total_count: number;
|
|
479
|
+
completed_count: number;
|
|
480
|
+
input: UploadInputItem;
|
|
481
|
+
filepath: string;
|
|
482
|
+
root_id: number;
|
|
483
|
+
root_status: NormalStatus;
|
|
484
|
+
space_id: number;
|
|
485
|
+
space_name: string;
|
|
486
|
+
is_ready: boolean;
|
|
487
|
+
config: RecordFolderConfig;
|
|
488
|
+
uid: number;
|
|
489
|
+
aid: number;
|
|
490
|
+
baidu_host_id: number;
|
|
491
|
+
ali_host_id: number;
|
|
492
|
+
some_parts_uploaded: boolean;
|
|
493
|
+
upload_status: UploadStatus;
|
|
494
|
+
is_paused: boolean;
|
|
495
|
+
pid: number;
|
|
496
|
+
type: RecordType;
|
|
497
|
+
task_record_id: number;
|
|
498
|
+
cloud_info: CloudInfoField;
|
|
499
|
+
output_root: string;
|
|
500
|
+
external_texts: string[];
|
|
501
|
+
progress: UploadProgressData;
|
|
502
|
+
percent: number;
|
|
503
|
+
error: UploadFileError | null;
|
|
504
|
+
order: number;
|
|
505
|
+
updated_at: string;
|
|
506
|
+
created_at: string;
|
|
507
|
+
};
|
|
450
508
|
type UploadFileSuceessItem = {
|
|
451
509
|
id: number;
|
|
510
|
+
is_attachment: boolean;
|
|
452
511
|
root_id: number;
|
|
453
512
|
pid: number;
|
|
454
513
|
space_id: number;
|
|
@@ -459,11 +518,11 @@ type UploadFileSuceessItem = {
|
|
|
459
518
|
type: RecordType;
|
|
460
519
|
created_at: string;
|
|
461
520
|
updated_at: string;
|
|
462
|
-
|
|
521
|
+
input: {
|
|
463
522
|
filename: string;
|
|
464
523
|
filepath: string;
|
|
465
524
|
filesize: number;
|
|
466
|
-
}
|
|
525
|
+
};
|
|
467
526
|
};
|
|
468
527
|
|
|
469
528
|
type MemberInfo = {
|
|
@@ -612,7 +671,7 @@ type DownloadProgressData = Record<DownloadProgressStep, {
|
|
|
612
671
|
}>;
|
|
613
672
|
type DownloadFileItem = {
|
|
614
673
|
id: number;
|
|
615
|
-
|
|
674
|
+
is_attachment: boolean;
|
|
616
675
|
is_paused: boolean;
|
|
617
676
|
type: RecordType;
|
|
618
677
|
ftype: RecordFtype;
|
|
@@ -645,7 +704,7 @@ type NetSuccessItem = {
|
|
|
645
704
|
id: number;
|
|
646
705
|
uid: number;
|
|
647
706
|
net_type: NetType;
|
|
648
|
-
|
|
707
|
+
is_attachment: boolean;
|
|
649
708
|
type: RecordType;
|
|
650
709
|
ftype: RecordFtype;
|
|
651
710
|
space_id: number;
|
|
@@ -658,4 +717,4 @@ type NetSuccessItem = {
|
|
|
658
717
|
created_at: Date;
|
|
659
718
|
};
|
|
660
719
|
|
|
661
|
-
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 UploadFileSuceessItem, 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:()=>
|
|
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
|
|
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};
|