gomtm 0.0.232 → 0.0.234
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/esm/components/MtmInstallScript.d.ts +2 -0
- package/dist/esm/components/MtmInstallScript.js +17 -0
- package/dist/esm/validations/auth.d.ts +2 -2
- package/dist/esm/validations/spContentModi.d.ts +8 -8
- package/dist/esm/validations/spRoute.d.ts +6 -6
- package/dist/esm/validations/user.d.ts +8 -8
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useMutation, useSuspenseQuery } from "../connectquery";
|
|
4
|
+
import { jobRun } from "../gomtmpb/mtm/sppb/bot-BotService_connectquery";
|
|
5
|
+
import { getMeta } from "../gomtmpb/mtm/sppb/mtm-MtmService_connectquery";
|
|
6
|
+
const MtmInstallScript = (props) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const mtmMetaQuery = useSuspenseQuery(getMeta);
|
|
9
|
+
const runJob = useMutation(jobRun);
|
|
10
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { children: [
|
|
11
|
+
"\u5B89\u88C5bot \u811A\u672C : ",
|
|
12
|
+
`curl -sSL curl ${(_b = (_a = mtmMetaQuery.data) == null ? void 0 : _a.meta) == null ? void 0 : _b.publicUrl}/api/mtmbot/install | bash`
|
|
13
|
+
] }) });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
MtmInstallScript
|
|
17
|
+
};
|
|
@@ -12,12 +12,12 @@ export declare const AuthLoginInput: z.ZodObject<{
|
|
|
12
12
|
password: z.ZodString;
|
|
13
13
|
persistent: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
password: string;
|
|
16
15
|
username: string;
|
|
16
|
+
password: string;
|
|
17
17
|
persistent?: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
password: string;
|
|
20
19
|
username: string;
|
|
20
|
+
password: string;
|
|
21
21
|
persistent?: boolean | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export type AuthLoginOut = z.infer<typeof AuthLoginOut>;
|
|
@@ -21,17 +21,17 @@ export declare const spContentModiCreateInput: z.ZodObject<{
|
|
|
21
21
|
action: z.ZodString;
|
|
22
22
|
value: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
value: string;
|
|
25
24
|
action: string;
|
|
26
|
-
|
|
25
|
+
value: string;
|
|
27
26
|
spRouteId: string;
|
|
27
|
+
sel: string;
|
|
28
28
|
matchContentType: string;
|
|
29
29
|
title?: string | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
value: string;
|
|
32
31
|
action: string;
|
|
33
|
-
|
|
32
|
+
value: string;
|
|
34
33
|
spRouteId: string;
|
|
34
|
+
sel: string;
|
|
35
35
|
matchContentType: string;
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -44,19 +44,19 @@ export declare const spContentModiSaveInput: z.ZodObject<{
|
|
|
44
44
|
action: z.ZodString;
|
|
45
45
|
value: z.ZodString;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
value: string;
|
|
48
47
|
id: string;
|
|
49
48
|
action: string;
|
|
50
|
-
|
|
49
|
+
value: string;
|
|
51
50
|
spRouteId: string;
|
|
51
|
+
sel: string;
|
|
52
52
|
matchContentType: string;
|
|
53
53
|
title?: string | undefined;
|
|
54
54
|
}, {
|
|
55
|
-
value: string;
|
|
56
55
|
id: string;
|
|
57
56
|
action: string;
|
|
58
|
-
|
|
57
|
+
value: string;
|
|
59
58
|
spRouteId: string;
|
|
59
|
+
sel: string;
|
|
60
60
|
matchContentType: string;
|
|
61
61
|
title?: string | undefined;
|
|
62
62
|
}>;
|
|
@@ -22,15 +22,15 @@ export declare const spRouteCreateInput: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
title: string;
|
|
24
24
|
value: string;
|
|
25
|
-
spProjectId: string;
|
|
26
25
|
hostPattern: string;
|
|
27
26
|
pathPattern: string;
|
|
27
|
+
spProjectId: string;
|
|
28
28
|
}, {
|
|
29
29
|
title: string;
|
|
30
30
|
value: string;
|
|
31
|
-
spProjectId: string;
|
|
32
31
|
hostPattern: string;
|
|
33
32
|
pathPattern: string;
|
|
33
|
+
spProjectId: string;
|
|
34
34
|
}>;
|
|
35
35
|
export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
|
|
36
36
|
export declare const SpRouteSaveInput: z.ZodObject<{
|
|
@@ -41,17 +41,17 @@ export declare const SpRouteSaveInput: z.ZodObject<{
|
|
|
41
41
|
pathPattern: z.ZodString;
|
|
42
42
|
value: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
id: string;
|
|
44
45
|
title: string;
|
|
45
46
|
value: string;
|
|
46
|
-
id: string;
|
|
47
|
-
spProjectId: string;
|
|
48
47
|
hostPattern: string;
|
|
49
48
|
pathPattern: string;
|
|
49
|
+
spProjectId: string;
|
|
50
50
|
}, {
|
|
51
|
+
id: string;
|
|
51
52
|
title: string;
|
|
52
53
|
value: string;
|
|
53
|
-
id: string;
|
|
54
|
-
spProjectId: string;
|
|
55
54
|
hostPattern: string;
|
|
56
55
|
pathPattern: string;
|
|
56
|
+
spProjectId: string;
|
|
57
57
|
}>;
|
|
@@ -27,11 +27,11 @@ export declare const createUserSchema: z.ZodObject<{
|
|
|
27
27
|
name: z.ZodString;
|
|
28
28
|
email: z.ZodString;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
name: string;
|
|
31
30
|
email: string;
|
|
32
|
-
}, {
|
|
33
31
|
name: string;
|
|
32
|
+
}, {
|
|
34
33
|
email: string;
|
|
34
|
+
name: string;
|
|
35
35
|
}>;
|
|
36
36
|
export type ICreateUser = z.infer<typeof createUserSchema>;
|
|
37
37
|
export declare const Oauth2LoginResponseSchema: z.ZodObject<{
|
|
@@ -40,25 +40,25 @@ export declare const Oauth2LoginResponseSchema: z.ZodObject<{
|
|
|
40
40
|
accessToken: z.ZodString;
|
|
41
41
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
id: string;
|
|
44
43
|
accessToken: string;
|
|
45
|
-
|
|
44
|
+
id: string;
|
|
46
45
|
roles: string[];
|
|
46
|
+
userName: string;
|
|
47
47
|
}, {
|
|
48
|
-
id: string;
|
|
49
48
|
accessToken: string;
|
|
50
|
-
|
|
49
|
+
id: string;
|
|
51
50
|
roles: string[];
|
|
51
|
+
userName: string;
|
|
52
52
|
}>;
|
|
53
53
|
export type Oauth2LoginResponse = z.infer<typeof Oauth2LoginResponseSchema>;
|
|
54
54
|
export declare const MeResponseSchema: z.ZodObject<{
|
|
55
55
|
userName: z.ZodString;
|
|
56
56
|
roles: z.ZodArray<z.ZodString, "many">;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
userName: string;
|
|
59
58
|
roles: string[];
|
|
60
|
-
}, {
|
|
61
59
|
userName: string;
|
|
60
|
+
}, {
|
|
62
61
|
roles: string[];
|
|
62
|
+
userName: string;
|
|
63
63
|
}>;
|
|
64
64
|
export type MeResponse = z.infer<typeof MeResponseSchema>;
|