@soga/types 0.0.28 → 0.0.30
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/README.md +3 -3
- package/dist/record.d.ts +20 -0
- package/package.json +42 -42
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
- StageType -> UploadFileStage
|
|
2
|
-
- UploadItem -> UploadFileItem
|
|
3
|
-
- UploadControlData -> UploadControlConfig
|
|
1
|
+
- StageType -> UploadFileStage
|
|
2
|
+
- UploadItem -> UploadFileItem
|
|
3
|
+
- UploadControlData -> UploadControlConfig
|
package/dist/record.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export type ManifestAudioItem = {
|
|
|
32
32
|
order: number;
|
|
33
33
|
size: number;
|
|
34
34
|
start: number;
|
|
35
|
+
high?: ManifestAudioItem;
|
|
35
36
|
};
|
|
36
37
|
export type ManifestThumbnailInfo = {
|
|
37
38
|
col: number;
|
|
@@ -99,6 +100,24 @@ export type ManifestMetaInfo = {
|
|
|
99
100
|
hostsize: number;
|
|
100
101
|
mtime: number;
|
|
101
102
|
};
|
|
103
|
+
export type SubtitleType = 'srt' | 'vtt' | 'ass';
|
|
104
|
+
export type ManifestTextItem = {
|
|
105
|
+
builtin: boolean;
|
|
106
|
+
end: number;
|
|
107
|
+
file: string;
|
|
108
|
+
lang: string;
|
|
109
|
+
size: number;
|
|
110
|
+
source?: {
|
|
111
|
+
end: number;
|
|
112
|
+
file: string;
|
|
113
|
+
size: number;
|
|
114
|
+
type: SubtitleType;
|
|
115
|
+
start: number;
|
|
116
|
+
};
|
|
117
|
+
start: number;
|
|
118
|
+
title: string;
|
|
119
|
+
type: SubtitleType;
|
|
120
|
+
};
|
|
102
121
|
export type Manifest = {
|
|
103
122
|
ali: {
|
|
104
123
|
host_id: number;
|
|
@@ -121,6 +140,7 @@ export type Manifest = {
|
|
|
121
140
|
audios: ManifestAudioItem[];
|
|
122
141
|
cover: ManifestCoverInfo;
|
|
123
142
|
parts: ManifestPartItem[];
|
|
143
|
+
texts: ManifestTextItem[];
|
|
124
144
|
thumbnail: ManifestThumbnailInfo;
|
|
125
145
|
video_meta: ManifestVideoMetaInfo;
|
|
126
146
|
videos: ManifestVideoItem[];
|
package/package.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@soga/types",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"publishConfig": {
|
|
5
|
-
"access": "public"
|
|
6
|
-
},
|
|
7
|
-
"description": "",
|
|
8
|
-
"main": "dist/main.js",
|
|
9
|
-
"types": "dist/main.d.ts",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "rimraf dist && tsc",
|
|
15
|
-
"dev": "tsc --watch",
|
|
16
|
-
"lint": "eslint . --ext .ts",
|
|
17
|
-
"prepublishOnly": "npm run build"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"@types/node": "^22.5.1",
|
|
21
|
-
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
22
|
-
"@typescript-eslint/parser": "^8.3.0",
|
|
23
|
-
"eslint": "^9.9.1",
|
|
24
|
-
"eslint-config-prettier": "^9.1.0",
|
|
25
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
26
|
-
"prettier": "^3.3.3",
|
|
27
|
-
"rimraf": "^6.0.1",
|
|
28
|
-
"ts-node": "^10.9.2",
|
|
29
|
-
"typescript": "^5.5.4"
|
|
30
|
-
},
|
|
31
|
-
"repository": {
|
|
32
|
-
"type": "git",
|
|
33
|
-
"url": "git+https://github.com/dpan-com/types.git"
|
|
34
|
-
},
|
|
35
|
-
"keywords": [],
|
|
36
|
-
"author": "",
|
|
37
|
-
"license": "ISC",
|
|
38
|
-
"bugs": {
|
|
39
|
-
"url": "https://github.com/dpan-com/types/issues"
|
|
40
|
-
},
|
|
41
|
-
"homepage": "https://github.com/dpan-com/types#readme"
|
|
42
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@soga/types",
|
|
3
|
+
"version": "0.0.30",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"description": "",
|
|
8
|
+
"main": "dist/main.js",
|
|
9
|
+
"types": "dist/main.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "rimraf dist && tsc",
|
|
15
|
+
"dev": "tsc --watch",
|
|
16
|
+
"lint": "eslint . --ext .ts",
|
|
17
|
+
"prepublishOnly": "npm run build"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/node": "^22.5.1",
|
|
21
|
+
"@typescript-eslint/eslint-plugin": "^8.3.0",
|
|
22
|
+
"@typescript-eslint/parser": "^8.3.0",
|
|
23
|
+
"eslint": "^9.9.1",
|
|
24
|
+
"eslint-config-prettier": "^9.1.0",
|
|
25
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
26
|
+
"prettier": "^3.3.3",
|
|
27
|
+
"rimraf": "^6.0.1",
|
|
28
|
+
"ts-node": "^10.9.2",
|
|
29
|
+
"typescript": "^5.5.4"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/dpan-com/types.git"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [],
|
|
36
|
+
"author": "",
|
|
37
|
+
"license": "ISC",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/dpan-com/types/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://github.com/dpan-com/types#readme"
|
|
42
|
+
}
|