gomtm 0.0.235 → 0.0.236

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.
Files changed (27) hide show
  1. package/dist/esm/components/MtmInstallScript.js +4 -6
  2. package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.d.ts +0 -0
  3. package/dist/esm/gomtmpb/descriptions/mtm/sppb/conf.js +0 -0
  4. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +41 -1
  5. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +46 -2
  6. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +25 -1
  7. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +45 -1
  8. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +105 -11
  9. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +362 -36
  10. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +53 -0
  11. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +60 -0
  12. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +38 -0
  13. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +56 -0
  14. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +481 -0
  15. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +2367 -0
  16. package/dist/esm/messageTypeRegistry.d.ts +1 -0
  17. package/dist/esm/messageTypeRegistry.js +3 -3
  18. package/dist/esm/providers/GomtmProvider.js +5 -1
  19. package/dist/esm/validations/spContentModi.d.ts +4 -4
  20. package/dist/esm/validations/spRoute.d.ts +8 -8
  21. package/dist/esm/validations/user.d.ts +6 -6
  22. package/dist/tsconfig.type.tsbuildinfo +1 -1
  23. package/package.json +3 -3
  24. package/dist/esm/store/ExampleStoreProvider.d.ts +0 -6
  25. package/dist/esm/store/ExampleStoreProvider.js +0 -43
  26. package/dist/esm/store/gomtm.atom.d.ts +0 -4
  27. package/dist/esm/store/gomtm.atom.js +0 -12
@@ -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, HelloBotMessage } from "./gomtmpb/mtm/sppb/bot_pb";
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
- value: string;
24
+ spProjectId: string;
25
25
  hostPattern: string;
26
26
  pathPattern: string;
27
- spProjectId: string;
27
+ value: string;
28
28
  }, {
29
29
  title: string;
30
- value: string;
30
+ spProjectId: string;
31
31
  hostPattern: string;
32
32
  pathPattern: string;
33
- spProjectId: string;
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
- value: string;
46
+ spProjectId: string;
47
47
  hostPattern: string;
48
48
  pathPattern: string;
49
- spProjectId: string;
49
+ value: string;
50
50
  }, {
51
51
  id: string;
52
52
  title: string;
53
- value: string;
53
+ spProjectId: string;
54
54
  hostPattern: string;
55
55
  pathPattern: string;
56
- spProjectId: string;
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>;