gomtm 0.0.186 → 0.0.188

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.
@@ -3,4 +3,3 @@ export declare function Curd3ListProviderV2(props: {
3
3
  params?: any;
4
4
  } & PropsWithChildren): import("react").JSX.Element;
5
5
  export declare const Curd2ListViewV2: () => import("react").JSX.Element;
6
- export declare const Curd3ListProviderV2Debug: () => import("react").JSX.Element;
@@ -3,42 +3,41 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useAtom } from "jotai";
4
4
  import { ScopeAtomsHydrator } from "mtxlib/jotai/jotai-helper";
5
5
  import { usePathname } from "next/navigation";
6
- import { curd3ItemsV2Atom, curd3ListParamsAtom, curdPathAtom } from "./curd.atoms";
6
+ import { useMemo } from "react";
7
+ import { useSuspenseQuery } from "../connectquery";
8
+ import { curdList } from "../gomtmpb/mtm/sppb/curd-CurdService_connectquery";
9
+ import { curd3ListParamsAtom, curdPathAtom } from "./curd.atoms";
7
10
  import { ListItemView } from "./list-item/ListItem";
8
11
  function Curd3ListProviderV2(props) {
9
12
  const { params, children } = props;
10
13
  const pathName = usePathname();
11
- return /* @__PURE__ */ jsxs(ScopeAtomsHydrator, { atomValues: [
14
+ return /* @__PURE__ */ jsx(ScopeAtomsHydrator, { atomValues: [
12
15
  [curd3ListParamsAtom, params],
13
16
  [curdPathAtom, pathName]
14
- ], children: [
15
- /* @__PURE__ */ jsx(Curd3ListProviderV2Debug, {}),
16
- children
17
- ] });
17
+ ], children });
18
18
  }
19
19
  const Curd2ListViewV2 = () => {
20
- var _a;
21
- const [res] = useAtom(curd3ItemsV2Atom);
22
- return /* @__PURE__ */ jsx("div", { className: "bg-blue-100 p-2", children: ((_a = res.error) == null ? void 0 : _a.code) ? /* @__PURE__ */ jsxs("div", { children: [
20
+ var _a, _b;
21
+ const [slugPath] = useAtom(curdPathAtom);
22
+ const slug = useMemo(() => {
23
+ const path2 = slugPath.split("/");
24
+ if (path2.length >= 2) {
25
+ return path2[2];
26
+ }
27
+ }, [slugPath]);
28
+ const query = useSuspenseQuery(curdList, {
29
+ params: {
30
+ slugs: slug
31
+ }
32
+ });
33
+ return /* @__PURE__ */ jsx("div", { className: "bg-blue-100 p-2", children: ((_a = query.data.error) == null ? void 0 : _a.code) ? /* @__PURE__ */ jsxs("div", { children: [
23
34
  "error: ",
24
- res.error.code
25
- ] }) : /* @__PURE__ */ jsx(Fragment, { children: res.items.map((item, i) => {
35
+ query.data.error.code
36
+ ] }) : /* @__PURE__ */ jsx(Fragment, { children: (_b = query.data.items) == null ? void 0 : _b.map((item, i) => {
26
37
  return /* @__PURE__ */ jsx(ListItemView, { item }, i);
27
38
  }) }) });
28
39
  };
29
- const Curd3ListProviderV2Debug = () => {
30
- const [pathName] = useAtom(curdPathAtom);
31
- return /* @__PURE__ */ jsxs("div", { className: "bg-slate-200 p-2", children: [
32
- /* @__PURE__ */ jsx("h1", { children: "Curd3ListProviderV2Debug" }),
33
- /* @__PURE__ */ jsx("div", {}),
34
- /* @__PURE__ */ jsxs("div", { children: [
35
- "pathName: ",
36
- pathName
37
- ] })
38
- ] });
39
- };
40
40
  export {
41
41
  Curd2ListViewV2,
42
- Curd3ListProviderV2,
43
- Curd3ListProviderV2Debug
42
+ Curd3ListProviderV2
44
43
  };
@@ -1,3 +1,6 @@
1
1
  import { PropsWithChildren } from "react";
2
+ export declare const curdDetailSlugAtom: import("jotai").PrimitiveAtom<string> & {
3
+ init: string;
4
+ };
2
5
  export declare function CurdViewDetail<T = any>(props: PropsWithChildren): import("react").JSX.Element;
3
6
  export declare const DetailViewActions: () => import("react").JSX.Element;
@@ -1,65 +1,50 @@
1
1
  "use client";
2
- var __async = (__this, __arguments, generator) => {
3
- return new Promise((resolve, reject) => {
4
- var fulfilled = (value) => {
5
- try {
6
- step(generator.next(value));
7
- } catch (e) {
8
- reject(e);
9
- }
10
- };
11
- var rejected = (value) => {
12
- try {
13
- step(generator.throw(value));
14
- } catch (e) {
15
- reject(e);
16
- }
17
- };
18
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
19
- step((generator = generator.apply(__this, __arguments)).next());
20
- });
21
- };
22
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useMemo } from "react";
23
4
  import { atom, useAtom } from "jotai";
24
5
  import { ScopeAtomsHydrator } from "mtxlib/jotai/jotai-helper";
25
6
  import { Icons } from "mtxuilib/icons/icons";
26
7
  import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "mtxuilib/ui/dropdown-menu";
27
8
  import { MtButton } from "mtxuilib/ui/ui-mt/Button";
28
9
  import { usePathname } from "next/navigation";
29
- import { CurdDetailRes } from "../gomtmpb/mtm/sppb/mtm_pb";
30
- import { gomtmBaseUrlAtom } from "../providers/GomtmProvider";
10
+ import { useSuspenseQuery } from "../connectquery";
11
+ import { SchemaFormView } from "../form/SchemaFormView";
12
+ import { curdDetail } from "../gomtmpb/mtm/sppb/curd-CurdService_connectquery";
31
13
  const curdDetailSlugAtom = atom("");
32
- const curdViewDataAtom = atom((get) => __async(void 0, null, function* () {
33
- const slugPath = get(curdDetailSlugAtom);
34
- const path2 = slugPath.split("/");
35
- const path3 = path2.slice(2).join("/");
36
- const baseUrl = get(gomtmBaseUrlAtom);
37
- const url = new URL(`/curd-api/detail/${path3}`, baseUrl);
38
- const data = yield fetch(url.toString(), {}).then((x) => x.json());
39
- return CurdDetailRes.fromJson(data);
40
- }));
41
14
  function CurdViewDetail(props) {
42
15
  const { children } = props;
43
16
  const pathName = usePathname();
44
17
  return /* @__PURE__ */ jsxs(ScopeAtomsHydrator, { atomValues: [
45
18
  [curdDetailSlugAtom, pathName]
46
19
  ], children: [
47
- /* @__PURE__ */ jsx(CurdViewDetailDebug, {}),
48
- /* @__PURE__ */ jsx("h1", { children: "CurdViewDetail" }),
20
+ /* @__PURE__ */ jsx(CurdViewDetailInner, {}),
49
21
  children
50
22
  ] });
51
23
  }
52
- const CurdViewDetailDebug = () => {
53
- const [curdDetailSlug, setcurdDetailSlug] = useAtom(curdDetailSlugAtom);
54
- const [curdViewData] = useAtom(curdViewDataAtom);
55
- return /* @__PURE__ */ jsxs("div", { children: [
56
- "CurdViewDetailDebug",
57
- /* @__PURE__ */ jsxs("div", { children: [
58
- "curdDetailSlugAtom: ",
59
- curdDetailSlug
60
- ] }),
61
- /* @__PURE__ */ jsx("pre", { children: JSON.stringify(curdViewData, null, 2) })
62
- ] });
24
+ const CurdViewDetailInner = () => {
25
+ var _a, _b, _c, _d;
26
+ const [slugPath] = useAtom(curdDetailSlugAtom);
27
+ const slug = useMemo(() => {
28
+ const path2 = slugPath.split("/");
29
+ if (path2.length >= 2) {
30
+ return path2[2];
31
+ }
32
+ }, [slugPath]);
33
+ const detailQuery = useSuspenseQuery(curdDetail, {
34
+ slug
35
+ });
36
+ if ((_b = (_a = detailQuery.data) == null ? void 0 : _a.detailView) == null ? void 0 : _b.form) {
37
+ return /* @__PURE__ */ jsx(
38
+ SchemaFormView,
39
+ {
40
+ formSchema: (_d = (_c = detailQuery.data) == null ? void 0 : _c.detailView) == null ? void 0 : _d.form,
41
+ onSubmit: (values) => {
42
+ console.log(values);
43
+ }
44
+ }
45
+ );
46
+ }
47
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("pre", { children: JSON.stringify(detailQuery.data, null, 2) }) });
63
48
  };
64
49
  const DetailViewActions = () => {
65
50
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
@@ -74,5 +59,6 @@ const DetailViewActions = () => {
74
59
  };
75
60
  export {
76
61
  CurdViewDetail,
77
- DetailViewActions
62
+ DetailViewActions,
63
+ curdDetailSlugAtom
78
64
  };
@@ -3,7 +3,4 @@ import { PlainMessage } from "@bufbuild/protobuf";
3
3
  import { ListItem } from "../../gomtmpb/mtm/sppb/mtm_pb";
4
4
  export declare const ListItemView: (props: {
5
5
  item: PlainMessage<ListItem>;
6
- }) => import("react").JSX.Element;
7
- export declare const ListItemViewInner: (props: {
8
- item: PlainMessage<ListItem>;
9
6
  }) => import("react").JSX.Element | null;
@@ -1,14 +1,13 @@
1
1
  "use client";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useAtom } from "jotai";
4
+ import { MtLink } from "mtxuilib/common/mtlink";
3
5
  import { cn } from "mtxuilib/lib/utils";
4
6
  import { MtButton } from "mtxuilib/ui/ui-mt/Button";
7
+ import { useMemo } from "react";
5
8
  import { PostCard } from "../../components/blog/PostCard";
6
- import { MtLink } from "mtxuilib/common/mtlink";
9
+ import { curdPathAtom } from "../curd.atoms";
7
10
  const ListItemView = (props) => {
8
- const { item } = props;
9
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(ListItemViewInner, { item }) });
10
- };
11
- const ListItemViewInner = (props) => {
12
11
  var _a, _b;
13
12
  const { item } = props;
14
13
  if ((_a = item == null ? void 0 : item.item) == null ? void 0 : _a.value) {
@@ -28,6 +27,13 @@ const CommonListItemView = (props) => {
28
27
  const { item } = props;
29
28
  const handleSelect = () => {
30
29
  };
30
+ const [slugPath] = useAtom(curdPathAtom);
31
+ const slug = useMemo(() => {
32
+ const path2 = slugPath.split("/");
33
+ if (path2.length >= 2) {
34
+ return path2[2];
35
+ }
36
+ }, [slugPath]);
31
37
  return /* @__PURE__ */ jsx(
32
38
  MtButton,
33
39
  {
@@ -38,7 +44,7 @@ const CommonListItemView = (props) => {
38
44
  // item.id == curd.activateId && " font-bold"
39
45
  ),
40
46
  "aria-label": item.id,
41
- children: /* @__PURE__ */ jsxs(MtLink, { href: "#", children: [
47
+ children: /* @__PURE__ */ jsxs(MtLink, { href: `/gomtmadmin/${slug}/${item.id}`, children: [
42
48
  item.title || item.id,
43
49
  item.description && /* @__PURE__ */ jsx("div", { children: item.description })
44
50
  ] })
@@ -46,6 +52,5 @@ const CommonListItemView = (props) => {
46
52
  );
47
53
  };
48
54
  export {
49
- ListItemView,
50
- ListItemViewInner
55
+ ListItemView
51
56
  };
@@ -34,7 +34,7 @@ const SchemaFormView = (props) => {
34
34
  if (!formSchema) {
35
35
  return /* @__PURE__ */ jsx("div", { className: "border p-8", children: "missing formSchema params" });
36
36
  }
37
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(FormProvider, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsx(Card, { className: "p-2", children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit, children: [
37
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(FormProvider, __spreadProps(__spreadValues({}, form), { children: /* @__PURE__ */ jsx(Card, { className: "p-2", children: /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [
38
38
  /* @__PURE__ */ jsx(SchemaFormFieldsRender, { schema: formSchema }),
39
39
  /* @__PURE__ */ jsx(DialogFooter, { children: /* @__PURE__ */ jsx(EditFormToolbar, { onCancel: () => onCancel && onCancel() }) })
40
40
  ] }) }) }) })) });
File without changes
@@ -0,0 +1,33 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { CurdConfig, GetCurdConfigReq } from "./curd_pb";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes } from "./mtm_pb";
4
+ export declare const getCurdConfig: {
5
+ readonly localName: "getCurdConfig";
6
+ readonly name: "GetCurdConfig";
7
+ readonly kind: MethodKind.Unary;
8
+ readonly I: typeof GetCurdConfigReq;
9
+ readonly O: typeof CurdConfig;
10
+ readonly service: {
11
+ readonly typeName: "sppb.CurdService";
12
+ };
13
+ };
14
+ export declare const curdList: {
15
+ readonly localName: "curdList";
16
+ readonly name: "CurdList";
17
+ readonly kind: MethodKind.Unary;
18
+ readonly I: typeof CommontListReq;
19
+ readonly O: typeof CommontListRes;
20
+ readonly service: {
21
+ readonly typeName: "sppb.CurdService";
22
+ };
23
+ };
24
+ export declare const curdDetail: {
25
+ readonly localName: "curdDetail";
26
+ readonly name: "CurdDetail";
27
+ readonly kind: MethodKind.Unary;
28
+ readonly I: typeof CurdDetailReq;
29
+ readonly O: typeof CurdDetailRes;
30
+ readonly service: {
31
+ readonly typeName: "sppb.CurdService";
32
+ };
33
+ };
@@ -0,0 +1,38 @@
1
+ import { MethodKind } from "@bufbuild/protobuf";
2
+ import { CurdConfig, GetCurdConfigReq } from "./curd_pb";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes } from "./mtm_pb";
4
+ const getCurdConfig = {
5
+ localName: "getCurdConfig",
6
+ name: "GetCurdConfig",
7
+ kind: MethodKind.Unary,
8
+ I: GetCurdConfigReq,
9
+ O: CurdConfig,
10
+ service: {
11
+ typeName: "sppb.CurdService"
12
+ }
13
+ };
14
+ const curdList = {
15
+ localName: "curdList",
16
+ name: "CurdList",
17
+ kind: MethodKind.Unary,
18
+ I: CommontListReq,
19
+ O: CommontListRes,
20
+ service: {
21
+ typeName: "sppb.CurdService"
22
+ }
23
+ };
24
+ const curdDetail = {
25
+ localName: "curdDetail",
26
+ name: "CurdDetail",
27
+ kind: MethodKind.Unary,
28
+ I: CurdDetailReq,
29
+ O: CurdDetailRes,
30
+ service: {
31
+ typeName: "sppb.CurdService"
32
+ }
33
+ };
34
+ export {
35
+ curdDetail,
36
+ curdList,
37
+ getCurdConfig
38
+ };
@@ -0,0 +1,26 @@
1
+ import { CurdConfig, GetCurdConfigReq } from "./curd_pb";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes } from "./mtm_pb";
4
+ export declare const CurdService: {
5
+ readonly typeName: "sppb.CurdService";
6
+ readonly methods: {
7
+ readonly getCurdConfig: {
8
+ readonly name: "GetCurdConfig";
9
+ readonly I: typeof GetCurdConfigReq;
10
+ readonly O: typeof CurdConfig;
11
+ readonly kind: MethodKind.Unary;
12
+ };
13
+ readonly curdList: {
14
+ readonly name: "CurdList";
15
+ readonly I: typeof CommontListReq;
16
+ readonly O: typeof CommontListRes;
17
+ readonly kind: MethodKind.Unary;
18
+ };
19
+ readonly curdDetail: {
20
+ readonly name: "CurdDetail";
21
+ readonly I: typeof CurdDetailReq;
22
+ readonly O: typeof CurdDetailRes;
23
+ readonly kind: MethodKind.Unary;
24
+ };
25
+ };
26
+ };
@@ -0,0 +1,38 @@
1
+ import { CurdConfig, GetCurdConfigReq } from "./curd_pb";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ import { CommontListReq, CommontListRes, CurdDetailReq, CurdDetailRes } from "./mtm_pb";
4
+ const CurdService = {
5
+ typeName: "sppb.CurdService",
6
+ methods: {
7
+ /**
8
+ * @generated from rpc sppb.CurdService.GetCurdConfig
9
+ */
10
+ getCurdConfig: {
11
+ name: "GetCurdConfig",
12
+ I: GetCurdConfigReq,
13
+ O: CurdConfig,
14
+ kind: MethodKind.Unary
15
+ },
16
+ /**
17
+ * @generated from rpc sppb.CurdService.CurdList
18
+ */
19
+ curdList: {
20
+ name: "CurdList",
21
+ I: CommontListReq,
22
+ O: CommontListRes,
23
+ kind: MethodKind.Unary
24
+ },
25
+ /**
26
+ * @generated from rpc sppb.CurdService.CurdDetail
27
+ */
28
+ curdDetail: {
29
+ name: "CurdDetail",
30
+ I: CurdDetailReq,
31
+ O: CurdDetailRes,
32
+ kind: MethodKind.Unary
33
+ }
34
+ }
35
+ };
36
+ export {
37
+ CurdService
38
+ };
@@ -0,0 +1,98 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ export declare class GetCurdConfigReq extends Message<GetCurdConfigReq> {
4
+ constructor(data?: PartialMessage<GetCurdConfigReq>);
5
+ static readonly runtime: typeof proto3;
6
+ static readonly typeName = "sppb.GetCurdConfigReq";
7
+ static readonly fields: FieldList;
8
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCurdConfigReq;
9
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCurdConfigReq;
10
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCurdConfigReq;
11
+ static equals(a: GetCurdConfigReq | PlainMessage<GetCurdConfigReq> | undefined, b: GetCurdConfigReq | PlainMessage<GetCurdConfigReq> | undefined): boolean;
12
+ }
13
+ export declare class CurdConfigSvc extends Message<CurdConfigSvc> {
14
+ title: string;
15
+ svc: string;
16
+ list?: CurdConfigSvc_List;
17
+ detail?: CurdConfigSvc_Detail;
18
+ create?: CurdConfigSvc_Create;
19
+ update?: CurdConfigSvc_Update;
20
+ delete?: CurdConfigSvc_Delete;
21
+ constructor(data?: PartialMessage<CurdConfigSvc>);
22
+ static readonly runtime: typeof proto3;
23
+ static readonly typeName = "sppb.CurdConfigSvc";
24
+ static readonly fields: FieldList;
25
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfigSvc;
26
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfigSvc;
27
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfigSvc;
28
+ static equals(a: CurdConfigSvc | PlainMessage<CurdConfigSvc> | undefined, b: CurdConfigSvc | PlainMessage<CurdConfigSvc> | undefined): boolean;
29
+ }
30
+ export declare class CurdConfigSvc_List extends Message<CurdConfigSvc_List> {
31
+ method: string;
32
+ constructor(data?: PartialMessage<CurdConfigSvc_List>);
33
+ static readonly runtime: typeof proto3;
34
+ static readonly typeName = "sppb.CurdConfigSvc.List";
35
+ static readonly fields: FieldList;
36
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfigSvc_List;
37
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfigSvc_List;
38
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfigSvc_List;
39
+ static equals(a: CurdConfigSvc_List | PlainMessage<CurdConfigSvc_List> | undefined, b: CurdConfigSvc_List | PlainMessage<CurdConfigSvc_List> | undefined): boolean;
40
+ }
41
+ export declare class CurdConfigSvc_Detail extends Message<CurdConfigSvc_Detail> {
42
+ method: string;
43
+ constructor(data?: PartialMessage<CurdConfigSvc_Detail>);
44
+ static readonly runtime: typeof proto3;
45
+ static readonly typeName = "sppb.CurdConfigSvc.Detail";
46
+ static readonly fields: FieldList;
47
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfigSvc_Detail;
48
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfigSvc_Detail;
49
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfigSvc_Detail;
50
+ static equals(a: CurdConfigSvc_Detail | PlainMessage<CurdConfigSvc_Detail> | undefined, b: CurdConfigSvc_Detail | PlainMessage<CurdConfigSvc_Detail> | undefined): boolean;
51
+ }
52
+ export declare class CurdConfigSvc_Create extends Message<CurdConfigSvc_Create> {
53
+ method: string;
54
+ constructor(data?: PartialMessage<CurdConfigSvc_Create>);
55
+ static readonly runtime: typeof proto3;
56
+ static readonly typeName = "sppb.CurdConfigSvc.Create";
57
+ static readonly fields: FieldList;
58
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfigSvc_Create;
59
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfigSvc_Create;
60
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfigSvc_Create;
61
+ static equals(a: CurdConfigSvc_Create | PlainMessage<CurdConfigSvc_Create> | undefined, b: CurdConfigSvc_Create | PlainMessage<CurdConfigSvc_Create> | undefined): boolean;
62
+ }
63
+ export declare class CurdConfigSvc_Update extends Message<CurdConfigSvc_Update> {
64
+ method: string;
65
+ constructor(data?: PartialMessage<CurdConfigSvc_Update>);
66
+ static readonly runtime: typeof proto3;
67
+ static readonly typeName = "sppb.CurdConfigSvc.Update";
68
+ static readonly fields: FieldList;
69
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfigSvc_Update;
70
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfigSvc_Update;
71
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfigSvc_Update;
72
+ static equals(a: CurdConfigSvc_Update | PlainMessage<CurdConfigSvc_Update> | undefined, b: CurdConfigSvc_Update | PlainMessage<CurdConfigSvc_Update> | undefined): boolean;
73
+ }
74
+ export declare class CurdConfigSvc_Delete extends Message<CurdConfigSvc_Delete> {
75
+ method: string;
76
+ constructor(data?: PartialMessage<CurdConfigSvc_Delete>);
77
+ static readonly runtime: typeof proto3;
78
+ static readonly typeName = "sppb.CurdConfigSvc.Delete";
79
+ static readonly fields: FieldList;
80
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfigSvc_Delete;
81
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfigSvc_Delete;
82
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfigSvc_Delete;
83
+ static equals(a: CurdConfigSvc_Delete | PlainMessage<CurdConfigSvc_Delete> | undefined, b: CurdConfigSvc_Delete | PlainMessage<CurdConfigSvc_Delete> | undefined): boolean;
84
+ }
85
+ export declare class CurdConfig extends Message<CurdConfig> {
86
+ title: string;
87
+ services: {
88
+ [key: string]: CurdConfigSvc;
89
+ };
90
+ constructor(data?: PartialMessage<CurdConfig>);
91
+ static readonly runtime: typeof proto3;
92
+ static readonly typeName = "sppb.CurdConfig";
93
+ static readonly fields: FieldList;
94
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CurdConfig;
95
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CurdConfig;
96
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CurdConfig;
97
+ static equals(a: CurdConfig | PlainMessage<CurdConfig> | undefined, b: CurdConfig | PlainMessage<CurdConfig> | undefined): boolean;
98
+ }