@soga/types 0.0.29 → 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 +19 -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
|
@@ -100,6 +100,24 @@ export type ManifestMetaInfo = {
|
|
|
100
100
|
hostsize: number;
|
|
101
101
|
mtime: number;
|
|
102
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
|
+
};
|
|
103
121
|
export type Manifest = {
|
|
104
122
|
ali: {
|
|
105
123
|
host_id: number;
|
|
@@ -122,6 +140,7 @@ export type Manifest = {
|
|
|
122
140
|
audios: ManifestAudioItem[];
|
|
123
141
|
cover: ManifestCoverInfo;
|
|
124
142
|
parts: ManifestPartItem[];
|
|
143
|
+
texts: ManifestTextItem[];
|
|
125
144
|
thumbnail: ManifestThumbnailInfo;
|
|
126
145
|
video_meta: ManifestVideoMetaInfo;
|
|
127
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
|
+
}
|