@hot-updater/console 0.12.7 → 0.13.0
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/assets/index-DAX_alp5.js +27 -0
- package/dist/assets/index-paAi6YFm.css +1 -0
- package/dist/index.cjs +163 -62
- package/dist/index.html +2 -2
- package/dist/index.js +163 -62
- package/dist/src/hooks/useFilter.d.ts +9 -0
- package/dist/src/lib/api.d.ts +90 -41
- package/dist/src/routes/_components/data-table.d.ts +5 -6
- package/dist/src-server/index.d.ts +57 -13
- package/dist/src-server/rpc.d.ts +64 -17
- package/package.json +4 -4
- package/dist/assets/index-CiYz-DpZ.js +0 -585
- package/dist/assets/index-y9HrkcYR.css +0 -1
package/dist/src/lib/api.d.ts
CHANGED
|
@@ -1,51 +1,46 @@
|
|
|
1
1
|
export declare const api: {
|
|
2
|
-
|
|
2
|
+
config: import("hono/client").ClientRequest<{
|
|
3
3
|
$get: {
|
|
4
4
|
input: {};
|
|
5
5
|
output: {
|
|
6
6
|
console: {
|
|
7
|
-
gitUrl
|
|
8
|
-
port
|
|
9
|
-
}
|
|
7
|
+
gitUrl: string;
|
|
8
|
+
port: number;
|
|
9
|
+
};
|
|
10
10
|
};
|
|
11
11
|
outputFormat: "json";
|
|
12
12
|
status: import("hono/utils/http-status").StatusCode;
|
|
13
13
|
};
|
|
14
14
|
}>;
|
|
15
15
|
} & {
|
|
16
|
-
|
|
16
|
+
channels: import("hono/client").ClientRequest<{
|
|
17
17
|
$get: {
|
|
18
18
|
input: {};
|
|
19
|
-
output:
|
|
19
|
+
output: string[];
|
|
20
20
|
outputFormat: "json";
|
|
21
21
|
status: import("hono/utils/http-status").StatusCode;
|
|
22
22
|
};
|
|
23
23
|
}>;
|
|
24
24
|
} & {
|
|
25
|
-
|
|
25
|
+
"config-loaded": import("hono/client").ClientRequest<{
|
|
26
26
|
$get: {
|
|
27
27
|
input: {};
|
|
28
28
|
output: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
targetAppVersion: string;
|
|
32
|
-
shouldForceUpdate: boolean;
|
|
33
|
-
enabled: boolean;
|
|
34
|
-
fileUrl: string;
|
|
35
|
-
fileHash: string;
|
|
36
|
-
gitCommitHash: string | null;
|
|
37
|
-
message: string | null;
|
|
38
|
-
}[];
|
|
29
|
+
configLoaded: boolean;
|
|
30
|
+
};
|
|
39
31
|
outputFormat: "json";
|
|
40
32
|
status: import("hono/utils/http-status").StatusCode;
|
|
41
33
|
};
|
|
42
34
|
}>;
|
|
43
35
|
} & {
|
|
44
|
-
|
|
36
|
+
bundles: import("hono/client").ClientRequest<{
|
|
45
37
|
$get: {
|
|
46
38
|
input: {
|
|
47
39
|
query: {
|
|
48
|
-
|
|
40
|
+
channel?: string;
|
|
41
|
+
platform?: "ios" | "android";
|
|
42
|
+
limit?: string;
|
|
43
|
+
offset?: string;
|
|
49
44
|
};
|
|
50
45
|
};
|
|
51
46
|
output: {
|
|
@@ -54,55 +49,109 @@ export declare const api: {
|
|
|
54
49
|
targetAppVersion: string;
|
|
55
50
|
shouldForceUpdate: boolean;
|
|
56
51
|
enabled: boolean;
|
|
57
|
-
fileUrl: string;
|
|
58
52
|
fileHash: string;
|
|
59
53
|
gitCommitHash: string | null;
|
|
60
54
|
message: string | null;
|
|
61
|
-
|
|
55
|
+
channel: string;
|
|
56
|
+
}[];
|
|
62
57
|
outputFormat: "json";
|
|
63
58
|
status: import("hono/utils/http-status").StatusCode;
|
|
64
59
|
};
|
|
65
60
|
}>;
|
|
66
61
|
} & {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
62
|
+
bundles: {
|
|
63
|
+
":bundleId": import("hono/client").ClientRequest<{
|
|
64
|
+
$get: {
|
|
65
|
+
input: {
|
|
66
|
+
param: {
|
|
67
|
+
bundleId: string;
|
|
68
|
+
};
|
|
73
69
|
};
|
|
70
|
+
output: {
|
|
71
|
+
id: string;
|
|
72
|
+
platform: import("@hot-updater/core").Platform;
|
|
73
|
+
targetAppVersion: string;
|
|
74
|
+
shouldForceUpdate: boolean;
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
fileHash: string;
|
|
77
|
+
gitCommitHash: string | null;
|
|
78
|
+
message: string | null;
|
|
79
|
+
channel: string;
|
|
80
|
+
} | null;
|
|
81
|
+
outputFormat: "json";
|
|
82
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
74
83
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
} & {
|
|
85
|
+
$patch: {
|
|
86
|
+
input: {
|
|
87
|
+
json: Partial<import("@hot-updater/core").Bundle>;
|
|
88
|
+
} & {
|
|
89
|
+
param: {
|
|
90
|
+
bundleId: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
output: {
|
|
94
|
+
error: string;
|
|
95
|
+
};
|
|
96
|
+
outputFormat: "json";
|
|
97
|
+
status: 400;
|
|
98
|
+
} | {
|
|
99
|
+
input: {
|
|
100
|
+
json: Partial<import("@hot-updater/core").Bundle>;
|
|
101
|
+
} & {
|
|
102
|
+
param: {
|
|
103
|
+
bundleId: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
output: {
|
|
107
|
+
success: boolean;
|
|
108
|
+
};
|
|
109
|
+
outputFormat: "json";
|
|
110
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
111
|
+
} | {
|
|
112
|
+
input: {
|
|
113
|
+
json: Partial<import("@hot-updater/core").Bundle>;
|
|
114
|
+
} & {
|
|
115
|
+
param: {
|
|
116
|
+
bundleId: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
output: {
|
|
120
|
+
error: string;
|
|
121
|
+
};
|
|
122
|
+
outputFormat: "json";
|
|
123
|
+
status: 500;
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
};
|
|
80
127
|
};
|
|
81
|
-
|
|
128
|
+
import type { Accessor } from "solid-js";
|
|
129
|
+
export declare const createBundlesQuery: (query: Accessor<Parameters<typeof api.bundles.$get>[0]["query"]>) => import("@tanstack/solid-query").CreateQueryResult<{
|
|
82
130
|
id: string;
|
|
83
131
|
platform: import("@hot-updater/core").Platform;
|
|
84
132
|
targetAppVersion: string;
|
|
85
133
|
shouldForceUpdate: boolean;
|
|
86
134
|
enabled: boolean;
|
|
87
|
-
fileUrl: string;
|
|
88
135
|
fileHash: string;
|
|
89
136
|
gitCommitHash: string | null;
|
|
90
137
|
message: string | null;
|
|
138
|
+
channel: string;
|
|
91
139
|
}[], Error>;
|
|
92
|
-
export declare const createConfigQuery: () => import("@tanstack/solid-query").CreateQueryResult<{
|
|
93
|
-
console: {
|
|
94
|
-
gitUrl?: string | undefined;
|
|
95
|
-
port?: number | undefined;
|
|
96
|
-
} | undefined;
|
|
97
|
-
}, Error>;
|
|
98
140
|
export declare const createBundleQuery: (bundleId: string) => import("@tanstack/solid-query").CreateQueryResult<{
|
|
99
141
|
id: string;
|
|
100
142
|
platform: import("@hot-updater/core").Platform;
|
|
101
143
|
targetAppVersion: string;
|
|
102
144
|
shouldForceUpdate: boolean;
|
|
103
145
|
enabled: boolean;
|
|
104
|
-
fileUrl: string;
|
|
105
146
|
fileHash: string;
|
|
106
147
|
gitCommitHash: string | null;
|
|
107
148
|
message: string | null;
|
|
149
|
+
channel: string;
|
|
108
150
|
} | null, Error>;
|
|
151
|
+
export declare const createConfigQuery: () => import("@tanstack/solid-query").CreateQueryResult<{
|
|
152
|
+
console: {
|
|
153
|
+
gitUrl: string;
|
|
154
|
+
port: number;
|
|
155
|
+
};
|
|
156
|
+
}, Error>;
|
|
157
|
+
export declare const createChannelsQuery: () => import("@tanstack/solid-query").CreateQueryResult<string[] | null, Error>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type ColumnDef } from "@tanstack/solid-table";
|
|
2
|
-
import {
|
|
3
|
-
interface DataTableProps
|
|
4
|
-
columns: ColumnDef<
|
|
5
|
-
data:
|
|
6
|
-
onRowClick: (data: TData) => void;
|
|
2
|
+
import type { Bundle } from "@hot-updater/core";
|
|
3
|
+
interface DataTableProps {
|
|
4
|
+
columns: ColumnDef<Bundle>[];
|
|
5
|
+
onRowClick: (data: Bundle) => void;
|
|
7
6
|
}
|
|
8
|
-
export declare function DataTable
|
|
7
|
+
export declare function DataTable(props: DataTableProps): import("solid-js").JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -12,9 +12,9 @@ declare const app: Hono<{}, {
|
|
|
12
12
|
input: {};
|
|
13
13
|
output: {
|
|
14
14
|
console: {
|
|
15
|
-
gitUrl
|
|
16
|
-
port
|
|
17
|
-
}
|
|
15
|
+
gitUrl: string;
|
|
16
|
+
port: number;
|
|
17
|
+
};
|
|
18
18
|
};
|
|
19
19
|
outputFormat: "json";
|
|
20
20
|
status: import("hono/utils/http-status").StatusCode;
|
|
@@ -22,23 +22,39 @@ declare const app: Hono<{}, {
|
|
|
22
22
|
} | {
|
|
23
23
|
$get: {
|
|
24
24
|
input: {};
|
|
25
|
-
output:
|
|
25
|
+
output: string[];
|
|
26
26
|
outputFormat: "json";
|
|
27
27
|
status: import("hono/utils/http-status").StatusCode;
|
|
28
28
|
};
|
|
29
29
|
} | {
|
|
30
30
|
$get: {
|
|
31
31
|
input: {};
|
|
32
|
+
output: {
|
|
33
|
+
configLoaded: boolean;
|
|
34
|
+
};
|
|
35
|
+
outputFormat: "json";
|
|
36
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
$get: {
|
|
40
|
+
input: {
|
|
41
|
+
query: {
|
|
42
|
+
channel?: string;
|
|
43
|
+
platform?: "ios" | "android";
|
|
44
|
+
limit?: string;
|
|
45
|
+
offset?: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
32
48
|
output: {
|
|
33
49
|
id: string;
|
|
34
50
|
platform: import("@hot-updater/core").Platform;
|
|
35
51
|
targetAppVersion: string;
|
|
36
52
|
shouldForceUpdate: boolean;
|
|
37
53
|
enabled: boolean;
|
|
38
|
-
fileUrl: string;
|
|
39
54
|
fileHash: string;
|
|
40
55
|
gitCommitHash: string | null;
|
|
41
56
|
message: string | null;
|
|
57
|
+
channel: string;
|
|
42
58
|
}[];
|
|
43
59
|
outputFormat: "json";
|
|
44
60
|
status: import("hono/utils/http-status").StatusCode;
|
|
@@ -46,7 +62,7 @@ declare const app: Hono<{}, {
|
|
|
46
62
|
} | {
|
|
47
63
|
$get: {
|
|
48
64
|
input: {
|
|
49
|
-
|
|
65
|
+
param: {
|
|
50
66
|
bundleId: string;
|
|
51
67
|
};
|
|
52
68
|
};
|
|
@@ -56,25 +72,53 @@ declare const app: Hono<{}, {
|
|
|
56
72
|
targetAppVersion: string;
|
|
57
73
|
shouldForceUpdate: boolean;
|
|
58
74
|
enabled: boolean;
|
|
59
|
-
fileUrl: string;
|
|
60
75
|
fileHash: string;
|
|
61
76
|
gitCommitHash: string | null;
|
|
62
77
|
message: string | null;
|
|
78
|
+
channel: string;
|
|
63
79
|
} | null;
|
|
64
80
|
outputFormat: "json";
|
|
65
81
|
status: import("hono/utils/http-status").StatusCode;
|
|
66
82
|
};
|
|
67
|
-
|
|
68
|
-
$post: {
|
|
83
|
+
$patch: {
|
|
69
84
|
input: {
|
|
70
|
-
json:
|
|
71
|
-
|
|
72
|
-
|
|
85
|
+
json: Partial<import("@hot-updater/core").Bundle>;
|
|
86
|
+
} & {
|
|
87
|
+
param: {
|
|
88
|
+
bundleId: string;
|
|
73
89
|
};
|
|
74
90
|
};
|
|
75
|
-
output:
|
|
91
|
+
output: {
|
|
92
|
+
error: string;
|
|
93
|
+
};
|
|
94
|
+
outputFormat: "json";
|
|
95
|
+
status: 400;
|
|
96
|
+
} | {
|
|
97
|
+
input: {
|
|
98
|
+
json: Partial<import("@hot-updater/core").Bundle>;
|
|
99
|
+
} & {
|
|
100
|
+
param: {
|
|
101
|
+
bundleId: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
output: {
|
|
105
|
+
success: boolean;
|
|
106
|
+
};
|
|
76
107
|
outputFormat: "json";
|
|
77
108
|
status: import("hono/utils/http-status").StatusCode;
|
|
109
|
+
} | {
|
|
110
|
+
input: {
|
|
111
|
+
json: Partial<import("@hot-updater/core").Bundle>;
|
|
112
|
+
} & {
|
|
113
|
+
param: {
|
|
114
|
+
bundleId: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
output: {
|
|
118
|
+
error: string;
|
|
119
|
+
};
|
|
120
|
+
outputFormat: "json";
|
|
121
|
+
status: 500;
|
|
78
122
|
};
|
|
79
123
|
};
|
|
80
124
|
} & {
|
package/dist/src-server/rpc.d.ts
CHANGED
|
@@ -1,52 +1,70 @@
|
|
|
1
1
|
import { type Bundle } from "@hot-updater/plugin-core";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
3
|
export declare const rpc: Hono<import("hono/types").BlankEnv, {
|
|
4
|
-
"/
|
|
4
|
+
"/config": {
|
|
5
5
|
$get: {
|
|
6
6
|
input: {};
|
|
7
7
|
output: {
|
|
8
8
|
console: {
|
|
9
|
-
gitUrl
|
|
10
|
-
port
|
|
11
|
-
}
|
|
9
|
+
gitUrl: string;
|
|
10
|
+
port: number;
|
|
11
|
+
};
|
|
12
12
|
};
|
|
13
13
|
outputFormat: "json";
|
|
14
14
|
status: import("hono/utils/http-status").StatusCode;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
18
|
-
"/
|
|
18
|
+
"/channels": {
|
|
19
19
|
$get: {
|
|
20
20
|
input: {};
|
|
21
|
-
output:
|
|
21
|
+
output: string[];
|
|
22
22
|
outputFormat: "json";
|
|
23
23
|
status: import("hono/utils/http-status").StatusCode;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
} & {
|
|
27
|
-
"/
|
|
27
|
+
"/config-loaded": {
|
|
28
28
|
$get: {
|
|
29
29
|
input: {};
|
|
30
|
+
output: {
|
|
31
|
+
configLoaded: boolean;
|
|
32
|
+
};
|
|
33
|
+
outputFormat: "json";
|
|
34
|
+
status: import("hono/utils/http-status").StatusCode;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
} & {
|
|
38
|
+
"/bundles": {
|
|
39
|
+
$get: {
|
|
40
|
+
input: {
|
|
41
|
+
query: {
|
|
42
|
+
channel?: string;
|
|
43
|
+
platform?: "ios" | "android";
|
|
44
|
+
limit?: string;
|
|
45
|
+
offset?: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
30
48
|
output: {
|
|
31
49
|
id: string;
|
|
32
50
|
platform: import("@hot-updater/core").Platform;
|
|
33
51
|
targetAppVersion: string;
|
|
34
52
|
shouldForceUpdate: boolean;
|
|
35
53
|
enabled: boolean;
|
|
36
|
-
fileUrl: string;
|
|
37
54
|
fileHash: string;
|
|
38
55
|
gitCommitHash: string | null;
|
|
39
56
|
message: string | null;
|
|
57
|
+
channel: string;
|
|
40
58
|
}[];
|
|
41
59
|
outputFormat: "json";
|
|
42
60
|
status: import("hono/utils/http-status").StatusCode;
|
|
43
61
|
};
|
|
44
62
|
};
|
|
45
63
|
} & {
|
|
46
|
-
"/
|
|
64
|
+
"/bundles/:bundleId": {
|
|
47
65
|
$get: {
|
|
48
66
|
input: {
|
|
49
|
-
|
|
67
|
+
param: {
|
|
50
68
|
bundleId: string;
|
|
51
69
|
};
|
|
52
70
|
};
|
|
@@ -56,27 +74,56 @@ export declare const rpc: Hono<import("hono/types").BlankEnv, {
|
|
|
56
74
|
targetAppVersion: string;
|
|
57
75
|
shouldForceUpdate: boolean;
|
|
58
76
|
enabled: boolean;
|
|
59
|
-
fileUrl: string;
|
|
60
77
|
fileHash: string;
|
|
61
78
|
gitCommitHash: string | null;
|
|
62
79
|
message: string | null;
|
|
80
|
+
channel: string;
|
|
63
81
|
} | null;
|
|
64
82
|
outputFormat: "json";
|
|
65
83
|
status: import("hono/utils/http-status").StatusCode;
|
|
66
84
|
};
|
|
67
85
|
};
|
|
68
86
|
} & {
|
|
69
|
-
"/
|
|
70
|
-
$
|
|
87
|
+
"/bundles/:bundleId": {
|
|
88
|
+
$patch: {
|
|
71
89
|
input: {
|
|
72
|
-
json:
|
|
73
|
-
|
|
74
|
-
|
|
90
|
+
json: Partial<Bundle>;
|
|
91
|
+
} & {
|
|
92
|
+
param: {
|
|
93
|
+
bundleId: string;
|
|
75
94
|
};
|
|
76
95
|
};
|
|
77
|
-
output:
|
|
96
|
+
output: {
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
99
|
+
outputFormat: "json";
|
|
100
|
+
status: 400;
|
|
101
|
+
} | {
|
|
102
|
+
input: {
|
|
103
|
+
json: Partial<Bundle>;
|
|
104
|
+
} & {
|
|
105
|
+
param: {
|
|
106
|
+
bundleId: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
output: {
|
|
110
|
+
success: boolean;
|
|
111
|
+
};
|
|
78
112
|
outputFormat: "json";
|
|
79
113
|
status: import("hono/utils/http-status").StatusCode;
|
|
114
|
+
} | {
|
|
115
|
+
input: {
|
|
116
|
+
json: Partial<Bundle>;
|
|
117
|
+
} & {
|
|
118
|
+
param: {
|
|
119
|
+
bundleId: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
output: {
|
|
123
|
+
error: string;
|
|
124
|
+
};
|
|
125
|
+
outputFormat: "json";
|
|
126
|
+
status: 500;
|
|
80
127
|
};
|
|
81
128
|
};
|
|
82
129
|
}, "/">;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"package.json"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@hono/node-server": "^1.13.4",
|
|
22
22
|
"@hono/typia-validator": "^0.1.0",
|
|
23
23
|
"@hono/vite-dev-server": "^0.18.1",
|
|
24
|
-
"@hot-updater/mock": "0.
|
|
24
|
+
"@hot-updater/mock": "0.13.0",
|
|
25
25
|
"@kobalte/core": "^0.13.7",
|
|
26
26
|
"@ryoppippi/unplugin-typia": "^2.0.3",
|
|
27
27
|
"@solidjs/meta": "^0.29.4",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"vite-tsconfig-paths": "^5.1.4"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@hot-updater/core": "0.
|
|
55
|
-
"@hot-updater/plugin-core": "0.
|
|
54
|
+
"@hot-updater/core": "0.13.0",
|
|
55
|
+
"@hot-updater/plugin-core": "0.13.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "vite build --mode client && rslib build",
|