gomtm 0.0.235 → 0.0.237
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.js +6 -7
- package/dist/esm/curd/mutationButton.d.ts +7 -0
- package/dist/esm/curd/mutationButton.js +14 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.js +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.d.ts +0 -0
- package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.js +0 -0
- package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +41 -1
- package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +46 -2
- package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +25 -1
- package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +45 -1
- package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +105 -11
- package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +362 -36
- package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +53 -0
- package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +60 -0
- package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +38 -0
- package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +56 -0
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +472 -0
- package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +2357 -0
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.d.ts +63 -0
- package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.js +71 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.d.ts +44 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_connect.js +67 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.d.ts +108 -0
- package/dist/esm/gomtmpb/mtm/sppb/git_pb.js +311 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.d.ts +12 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.js +15 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.d.ts +13 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.js +19 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.d.ts +23 -0
- package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.js +67 -0
- package/dist/esm/messageTypeRegistry.d.ts +1 -0
- package/dist/esm/messageTypeRegistry.js +3 -3
- package/dist/esm/providers/GomtmProvider.js +5 -1
- package/dist/esm/validations/spContentModi.d.ts +4 -4
- package/dist/esm/validations/spRoute.d.ts +8 -8
- package/dist/esm/validations/user.d.ts +6 -6
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/esm/store/ExampleStoreProvider.d.ts +0 -6
- package/dist/esm/store/ExampleStoreProvider.js +0 -43
- package/dist/esm/store/gomtm.atom.d.ts +0 -4
- package/dist/esm/store/gomtm.atom.js +0 -12
- /package/dist/esm/{mtmcore.d.ts → gomtmpb/descriptions/mtm/sppb/conf.d.ts} +0 -0
- /package/dist/esm/{mtmcore.js → gomtmpb/descriptions/mtm/sppb/conf.js} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GitProjectPullReq, GitProjectPullRes } from "./gitproject_pb";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
export declare const GitProjectService: {
|
|
4
|
+
readonly typeName: "sppb.GitProjectService";
|
|
5
|
+
readonly methods: {
|
|
6
|
+
readonly gitProjectPull: {
|
|
7
|
+
readonly name: "GitProjectPull";
|
|
8
|
+
readonly I: typeof GitProjectPullReq;
|
|
9
|
+
readonly O: typeof GitProjectPullRes;
|
|
10
|
+
readonly kind: MethodKind.Unary;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GitProjectPullReq, GitProjectPullRes } from "./gitproject_pb";
|
|
2
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
|
+
const GitProjectService = {
|
|
4
|
+
typeName: "sppb.GitProjectService",
|
|
5
|
+
methods: {
|
|
6
|
+
/**
|
|
7
|
+
* @generated from rpc sppb.GitProjectService.GitProjectPull
|
|
8
|
+
*/
|
|
9
|
+
gitProjectPull: {
|
|
10
|
+
name: "GitProjectPull",
|
|
11
|
+
I: GitProjectPullReq,
|
|
12
|
+
O: GitProjectPullRes,
|
|
13
|
+
kind: MethodKind.Unary
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
GitProjectService
|
|
19
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
export declare class GitProjectPullReq extends Message<GitProjectPullReq> {
|
|
4
|
+
name: string;
|
|
5
|
+
constructor(data?: PartialMessage<GitProjectPullReq>);
|
|
6
|
+
static readonly runtime: typeof proto3;
|
|
7
|
+
static readonly typeName = "sppb.GitProjectPullReq";
|
|
8
|
+
static readonly fields: FieldList;
|
|
9
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitProjectPullReq;
|
|
10
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitProjectPullReq;
|
|
11
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitProjectPullReq;
|
|
12
|
+
static equals(a: GitProjectPullReq | PlainMessage<GitProjectPullReq> | undefined, b: GitProjectPullReq | PlainMessage<GitProjectPullReq> | undefined): boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class GitProjectPullRes extends Message<GitProjectPullRes> {
|
|
15
|
+
constructor(data?: PartialMessage<GitProjectPullRes>);
|
|
16
|
+
static readonly runtime: typeof proto3;
|
|
17
|
+
static readonly typeName = "sppb.GitProjectPullRes";
|
|
18
|
+
static readonly fields: FieldList;
|
|
19
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GitProjectPullRes;
|
|
20
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GitProjectPullRes;
|
|
21
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GitProjectPullRes;
|
|
22
|
+
static equals(a: GitProjectPullRes | PlainMessage<GitProjectPullRes> | undefined, b: GitProjectPullRes | PlainMessage<GitProjectPullRes> | undefined): boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
const _GitProjectPullReq = class _GitProjectPullReq extends Message {
|
|
9
|
+
constructor(data) {
|
|
10
|
+
super();
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: string name = 1;
|
|
13
|
+
*/
|
|
14
|
+
__publicField(this, "name", "");
|
|
15
|
+
proto3.util.initPartial(data, this);
|
|
16
|
+
}
|
|
17
|
+
static fromBinary(bytes, options) {
|
|
18
|
+
return new _GitProjectPullReq().fromBinary(bytes, options);
|
|
19
|
+
}
|
|
20
|
+
static fromJson(jsonValue, options) {
|
|
21
|
+
return new _GitProjectPullReq().fromJson(jsonValue, options);
|
|
22
|
+
}
|
|
23
|
+
static fromJsonString(jsonString, options) {
|
|
24
|
+
return new _GitProjectPullReq().fromJsonString(jsonString, options);
|
|
25
|
+
}
|
|
26
|
+
static equals(a, b) {
|
|
27
|
+
return proto3.util.equals(_GitProjectPullReq, a, b);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__publicField(_GitProjectPullReq, "runtime", proto3);
|
|
31
|
+
__publicField(_GitProjectPullReq, "typeName", "sppb.GitProjectPullReq");
|
|
32
|
+
__publicField(_GitProjectPullReq, "fields", proto3.util.newFieldList(() => [
|
|
33
|
+
{
|
|
34
|
+
no: 1,
|
|
35
|
+
name: "name",
|
|
36
|
+
kind: "scalar",
|
|
37
|
+
T: 9
|
|
38
|
+
/* ScalarType.STRING */
|
|
39
|
+
}
|
|
40
|
+
]));
|
|
41
|
+
let GitProjectPullReq = _GitProjectPullReq;
|
|
42
|
+
const _GitProjectPullRes = class _GitProjectPullRes extends Message {
|
|
43
|
+
constructor(data) {
|
|
44
|
+
super();
|
|
45
|
+
proto3.util.initPartial(data, this);
|
|
46
|
+
}
|
|
47
|
+
static fromBinary(bytes, options) {
|
|
48
|
+
return new _GitProjectPullRes().fromBinary(bytes, options);
|
|
49
|
+
}
|
|
50
|
+
static fromJson(jsonValue, options) {
|
|
51
|
+
return new _GitProjectPullRes().fromJson(jsonValue, options);
|
|
52
|
+
}
|
|
53
|
+
static fromJsonString(jsonString, options) {
|
|
54
|
+
return new _GitProjectPullRes().fromJsonString(jsonString, options);
|
|
55
|
+
}
|
|
56
|
+
static equals(a, b) {
|
|
57
|
+
return proto3.util.equals(_GitProjectPullRes, a, b);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
__publicField(_GitProjectPullRes, "runtime", proto3);
|
|
61
|
+
__publicField(_GitProjectPullRes, "typeName", "sppb.GitProjectPullRes");
|
|
62
|
+
__publicField(_GitProjectPullRes, "fields", proto3.util.newFieldList(() => []));
|
|
63
|
+
let GitProjectPullRes = _GitProjectPullRes;
|
|
64
|
+
export {
|
|
65
|
+
GitProjectPullReq,
|
|
66
|
+
GitProjectPullRes
|
|
67
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IMessageTypeRegistry, ServiceType } from "@bufbuild/protobuf";
|
|
2
2
|
export declare const anypbTypeReg: IMessageTypeRegistry;
|
|
3
3
|
export declare const allServices: Record<string, ServiceType>;
|
|
4
|
+
export declare const registerService: (...s: ServiceType[]) => void;
|
|
4
5
|
export declare const GetMtmServiceByTypeName: (serviceTypeName: string) => ServiceType;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { createRegistry } from "@bufbuild/protobuf";
|
|
2
2
|
import { BotService } from "./gomtmpb/mtm/sppb/bot_connect";
|
|
3
|
-
import { CmdStartNoVnc, CmdStartSimpleCrawler, ConsumMessageReq, CxPageReq
|
|
3
|
+
import { CmdStartNoVnc, CmdStartSimpleCrawler, ConsumMessageReq, CxPageReq } from "./gomtmpb/mtm/sppb/bot_pb";
|
|
4
4
|
import { CxService } from "./gomtmpb/mtm/sppb/cx_connect";
|
|
5
5
|
import { MtmService } from "./gomtmpb/mtm/sppb/mtm_connect";
|
|
6
6
|
import { SpService } from "./gomtmpb/mtm/sppb/sp_connect";
|
|
7
7
|
const anypbTypeReg = createRegistry(
|
|
8
|
-
HelloBotMessage,
|
|
9
8
|
CxPageReq,
|
|
10
9
|
ConsumMessageReq,
|
|
11
10
|
CmdStartNoVnc,
|
|
@@ -30,5 +29,6 @@ registerService(
|
|
|
30
29
|
export {
|
|
31
30
|
GetMtmServiceByTypeName,
|
|
32
31
|
allServices,
|
|
33
|
-
anypbTypeReg
|
|
32
|
+
anypbTypeReg,
|
|
33
|
+
registerService
|
|
34
34
|
};
|
|
@@ -6,6 +6,7 @@ import { atom, createStore, useAtom } from "jotai";
|
|
|
6
6
|
import { AtomsHydrator } from "mtxlib/jotai/jotai-helper";
|
|
7
7
|
import { useHotkeys } from "react-hotkeys-hook";
|
|
8
8
|
import { TransportProvider } from "../connectquery";
|
|
9
|
+
import { anypbTypeReg } from "../messageTypeRegistry";
|
|
9
10
|
import { gomtmFetcher } from "../mtmFetcher";
|
|
10
11
|
import { MtReactQueryProvider } from "./ReactQueryProvider";
|
|
11
12
|
const mtmAppStore = createStore();
|
|
@@ -41,7 +42,10 @@ const transportAtom = atom((get) => {
|
|
|
41
42
|
baseUrl,
|
|
42
43
|
fetch: gomtmFetcher({
|
|
43
44
|
cookieStr: cookiesStr
|
|
44
|
-
})
|
|
45
|
+
}),
|
|
46
|
+
jsonOptions: {
|
|
47
|
+
typeRegistry: anypbTypeReg
|
|
48
|
+
}
|
|
45
49
|
});
|
|
46
50
|
});
|
|
47
51
|
const AppContext = createContext(void 0);
|
|
@@ -23,15 +23,15 @@ export declare const spContentModiCreateInput: z.ZodObject<{
|
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
action: string;
|
|
25
25
|
value: string;
|
|
26
|
-
spRouteId: string;
|
|
27
26
|
sel: string;
|
|
27
|
+
spRouteId: string;
|
|
28
28
|
matchContentType: string;
|
|
29
29
|
title?: string | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
action: string;
|
|
32
32
|
value: string;
|
|
33
|
-
spRouteId: string;
|
|
34
33
|
sel: string;
|
|
34
|
+
spRouteId: string;
|
|
35
35
|
matchContentType: string;
|
|
36
36
|
title?: string | undefined;
|
|
37
37
|
}>;
|
|
@@ -47,16 +47,16 @@ export declare const spContentModiSaveInput: z.ZodObject<{
|
|
|
47
47
|
id: string;
|
|
48
48
|
action: string;
|
|
49
49
|
value: string;
|
|
50
|
-
spRouteId: string;
|
|
51
50
|
sel: string;
|
|
51
|
+
spRouteId: string;
|
|
52
52
|
matchContentType: string;
|
|
53
53
|
title?: string | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
id: string;
|
|
56
56
|
action: string;
|
|
57
57
|
value: string;
|
|
58
|
-
spRouteId: string;
|
|
59
58
|
sel: string;
|
|
59
|
+
spRouteId: string;
|
|
60
60
|
matchContentType: string;
|
|
61
61
|
title?: string | undefined;
|
|
62
62
|
}>;
|
|
@@ -21,16 +21,16 @@ export declare const spRouteCreateInput: z.ZodObject<{
|
|
|
21
21
|
value: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
title: string;
|
|
24
|
-
|
|
24
|
+
spProjectId: string;
|
|
25
25
|
hostPattern: string;
|
|
26
26
|
pathPattern: string;
|
|
27
|
-
|
|
27
|
+
value: string;
|
|
28
28
|
}, {
|
|
29
29
|
title: string;
|
|
30
|
-
|
|
30
|
+
spProjectId: string;
|
|
31
31
|
hostPattern: string;
|
|
32
32
|
pathPattern: string;
|
|
33
|
-
|
|
33
|
+
value: string;
|
|
34
34
|
}>;
|
|
35
35
|
export type SpRouteSaveInput = z.infer<typeof SpRouteSaveInput>;
|
|
36
36
|
export declare const SpRouteSaveInput: z.ZodObject<{
|
|
@@ -43,15 +43,15 @@ export declare const SpRouteSaveInput: z.ZodObject<{
|
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
id: string;
|
|
45
45
|
title: string;
|
|
46
|
-
|
|
46
|
+
spProjectId: string;
|
|
47
47
|
hostPattern: string;
|
|
48
48
|
pathPattern: string;
|
|
49
|
-
|
|
49
|
+
value: string;
|
|
50
50
|
}, {
|
|
51
51
|
id: string;
|
|
52
52
|
title: string;
|
|
53
|
-
|
|
53
|
+
spProjectId: string;
|
|
54
54
|
hostPattern: string;
|
|
55
55
|
pathPattern: string;
|
|
56
|
-
|
|
56
|
+
value: 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
|
-
email: string;
|
|
31
30
|
name: string;
|
|
32
|
-
}, {
|
|
33
31
|
email: string;
|
|
32
|
+
}, {
|
|
34
33
|
name: string;
|
|
34
|
+
email: string;
|
|
35
35
|
}>;
|
|
36
36
|
export type ICreateUser = z.infer<typeof createUserSchema>;
|
|
37
37
|
export declare const Oauth2LoginResponseSchema: z.ZodObject<{
|
|
@@ -42,23 +42,23 @@ export declare const Oauth2LoginResponseSchema: z.ZodObject<{
|
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
accessToken: string;
|
|
44
44
|
id: string;
|
|
45
|
-
roles: string[];
|
|
46
45
|
userName: string;
|
|
46
|
+
roles: string[];
|
|
47
47
|
}, {
|
|
48
48
|
accessToken: string;
|
|
49
49
|
id: string;
|
|
50
|
-
roles: string[];
|
|
51
50
|
userName: string;
|
|
51
|
+
roles: 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
|
-
roles: string[];
|
|
59
58
|
userName: string;
|
|
60
|
-
}, {
|
|
61
59
|
roles: string[];
|
|
60
|
+
}, {
|
|
62
61
|
userName: string;
|
|
62
|
+
roles: string[];
|
|
63
63
|
}>;
|
|
64
64
|
export type MeResponse = z.infer<typeof MeResponseSchema>;
|