@lark-apaas/coding-template-nestjs-react-fullstack 0.1.72-alpha.20261120131909 → 0.1.72-alpha.20261122094734

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-template-nestjs-react-fullstack",
3
- "version": "0.1.72-alpha.20261120131909",
3
+ "version": "0.1.72-alpha.20261122094734",
4
4
  "description": "NestJS + React fullstack template for miaoda coding",
5
5
  "type": "module",
6
6
  "files": [
@@ -2,119 +2,67 @@
2
2
 
3
3
  **组件路径**:`@/components/business-ui/chat-select`
4
4
 
5
- ---
5
+ ## 群组类型与 ID
6
6
 
7
- ## 群组类型
7
+ `Chat` 是组件公开的群组对象:
8
8
 
9
9
  ```typescript
10
- /** 群组数据结构 */
10
+ import type { ChatInfo } from '@/components/business-ui/chat-select';
11
+
11
12
  interface Chat {
12
- /** 唯一标识:对应 chatID */
13
13
  id: string;
14
- /** 群组名称:内部优先 zh_cn,其次 en_us */
15
14
  name: string;
16
- /** 头像:URL 或 16 进制 RGB 颜色 */
17
- avatar: string;
15
+ avatar?: string;
16
+ raw?: ChatInfo;
18
17
  }
19
18
  ```
20
19
 
21
- ---
20
+ 选择结果的 `id` 对应 `raw.chatID`,是平台数字 ID 的**字符串**,用于群详情查询。`raw` 保留原始群信息,其中可选的 `openChatID` 是通知等飞书群组能力使用的标识;外部接口字段常叫 `open_chat_id` 或 `chat_id`,值常以 `oc_` 开头。两者属于不同命名空间,不要因字段名相似而视为等价,也不要转成 Number 或从前缀拼造转换。
22
21
 
23
22
  ## 功能概述
24
23
 
25
- - 群组字段选择组件,用于表单中录入"群组"字段
26
- - 通过触发器打开弹层,弹层内置搜索功能(始终可用)
27
- - **仅支持 ID 模式**:`value/onChange` 只使用群组 `chatID`(string),该 ID 为飞书群聊 ID。
28
- - 组件在 UI 上可展示群组信息(头像/名称),但对外值仅返回/接收 `chatID`
29
- - 选择后自动回显已选群组信息:群头像 + 群名称(多选以 tag 形式展示)
30
- - 组件自带群组检索能力,无需额外传搜索接口/数据源
24
+ - 群组字段选择组件,内置搜索,无需额外传搜索接口或数据源。
25
+ - 默认 `valueType="string"`,对外值为详情查询用的 `chatID` 字符串;显式指定 `valueType="object"` 可接收和传入真实 `Chat` 对象。
26
+ - 选中后展示群头像和名称,多选以 tag 形式展示。受控字符串值需通过详情查询才能回显,查询失败显示未知群组;对象值直接展示。
31
27
 
32
- ## 类型定义
28
+ ## 值类型与 Props
33
29
 
34
- ```typescript
35
- /** 触发器类型 */
36
- type TriggerType = 'button' | 'search' | 'custom';
37
-
38
- /** 单选模式 Props */
39
- interface ChatSelectSingleProps {
40
- /** 当前选中的群组 ID,空值为 null */
41
- value: string | null;
42
- /** 选中变化回调 */
43
- onChange: (value: string | null) => void;
44
- /** 是否多选,单选时为 false 或不传 */
45
- multiple?: false;
46
- /** 触发器类型,仅影响样式,不影响搜索功能 */
47
- triggerType?: TriggerType;
48
- /** 是否禁用 */
49
- disabled?: boolean;
50
- /** 占位文本 */
51
- placeholder?: string;
52
- }
53
-
54
- /** 多选模式 Props */
55
- interface ChatSelectMultipleProps {
56
- /** 当前选中的群组 ID 列表,空值为 [] */
57
- value: string[];
58
- /** 选中变化回调 */
59
- onChange: (value: string[]) => void;
60
- /** 是否多选,多选时为 true */
61
- multiple: true;
62
- /** 触发器类型 */
63
- triggerType?: TriggerType;
64
- /** 是否禁用 */
65
- disabled?: boolean;
66
- /** 占位文本 */
67
- placeholder?: string;
68
- }
69
-
70
- type ChatSelectProps = ChatSelectSingleProps | ChatSelectMultipleProps;
71
- ```
72
-
73
- ## Props 说明
30
+ | `valueType` | `multiple` | `value` / `defaultValue` 和 `onChange` 的值 |
31
+ |------|------|------|
32
+ | `'string'`(默认) | `false`(默认) | `string \| null` |
33
+ | `'string'` | `true` | `string[]` |
34
+ | `'object'` | `false`(默认) | `Chat \| null` |
35
+ | `'object'` | `true` | `Chat[]` |
74
36
 
75
37
  | 属性 | 类型 | 默认值 | 说明 |
76
38
  |------|------|--------|------|
77
- | `value` | `string \| null` / `string[]` | - | **必填**。单选传 `string \| null`(群组 ID),多选传 `string[]` |
78
- | `onChange` | `function` | - | **必填**。值变化回调,返回值形态与 `value` 匹配 |
39
+ | `value` | 见上表 | - | 受控值,可选 |
40
+ | `defaultValue` | 见上表 | - | 非受控初始值,可选 |
41
+ | `onChange` | `(value) => void` | - | 可选,参数形态见上表 |
42
+ | `valueType` | `'string' \| 'object'` | `'string'` | 值的模式 |
79
43
  | `multiple` | `boolean` | `false` | 是否多选 |
80
44
  | `triggerType` | `'button' \| 'search' \| 'custom'` | `'button'` | 触发器类型,仅影响样式 |
81
45
  | `disabled` | `boolean` | `false` | 是否禁用 |
82
46
  | `placeholder` | `string` | `'请选择'` | 占位文本 |
83
- | `getOptionDisabled` | `(chat) => boolean` | - | 判断选项是否禁用 |
84
-
85
- ## 受控规范
47
+ | `getOptionDisabled` | `(chat: Chat) => boolean` | - | 判断选项是否禁用 |
86
48
 
87
- > ⚠️ **强约束**
88
-
89
- 1. **必须受控**:始终传 `value` + `onChange`
90
- 2. **禁止传**:`undefined` / 群组对象 / 其他类型
91
- 3. **空值规则**:
92
- - 单选清空:`null`
93
- - 多选清空:`[]`
49
+ 表单推荐使用 `value` + `onChange` 受控:单选空值用 `null`,多选空值用 `[]`;值与回调的类型应匹配所选模式。组件的 props 可选;非空字符串 `defaultValue`(见上表)需要异步查询,当前实现查询完成后不会更新非受控初始值。用可信数字 ID 回填时请使用受控 `value`;已有真实对象可用对象模式的 `defaultValue`。
94
50
 
95
51
  ## 使用示例
96
52
 
97
53
  ```tsx
98
54
  import { useState } from 'react';
99
- import { ChatSelect } from '@/components/business-ui/chat-select';
55
+ import { ChatSelect, type Chat } from '@/components/business-ui/chat-select';
100
56
 
101
- // 单选
57
+ // 字符串单选:保存/回填的是详情查询用的数字 ID 字符串
102
58
  function SingleSelectExample() {
103
59
  const [chatId, setChatId] = useState<string | null>(null);
104
-
105
- return (
106
- <ChatSelect
107
- value={chatId}
108
- onChange={setChatId}
109
- placeholder="请选择群组"
110
- />
111
- );
60
+ return <ChatSelect value={chatId} onChange={setChatId} placeholder="请选择群组" />;
112
61
  }
113
62
 
114
- // 多选
63
+ // 字符串多选
115
64
  function MultipleSelectExample() {
116
65
  const [chatIds, setChatIds] = useState<string[]>([]);
117
-
118
66
  return (
119
67
  <ChatSelect
120
68
  multiple
@@ -125,4 +73,56 @@ function MultipleSelectExample() {
125
73
  />
126
74
  );
127
75
  }
76
+
77
+ // 对象单选:需要原始群信息时使用
78
+ function SingleObjectExample() {
79
+ const [chat, setChat] = useState<Chat | null>(null);
80
+ return <ChatSelect valueType="object" value={chat} onChange={setChat} />;
81
+ }
82
+
83
+ // 对象多选
84
+ function MultipleObjectExample() {
85
+ const [chats, setChats] = useState<Chat[]>([]);
86
+ return <ChatSelect valueType="object" multiple value={chats} onChange={setChats} />;
87
+ }
128
88
  ```
89
+
90
+ ## 通知配置的保存与回填
91
+
92
+ 通知接口需要通知标识时,从对象模式的真实选择结果取 `chat.raw?.openChatID`。缺 `raw`、`openChatID` 为 `undefined` 或空字符串时,当前结果不足以保存通知配置;提示缺少数据并保留原配置,不能以 `chat.id` 替代。
93
+
94
+ 以下示例的业务保存接口只有一个 ID 槽位 `chatId`,该槽位约定存通知标识。`saveNotificationSetting` 由业务方提供,不是组件 API:
95
+
96
+ ```tsx
97
+ import { useState } from 'react';
98
+ import { ChatSelect, type Chat } from '@/components/business-ui/chat-select';
99
+
100
+ function NotificationSelect({ saveNotificationSetting }: {
101
+ saveNotificationSetting: (setting: { chatId: string; chatName: string }) => Promise<void>;
102
+ }) {
103
+ const [chat, setChat] = useState<Chat | null>(null);
104
+ const [error, setError] = useState('');
105
+
106
+ async function save() {
107
+ const openChatID = chat?.raw?.openChatID;
108
+ if (!chat || !openChatID) {
109
+ setError('缺少可用的群通知标识,原配置未更改');
110
+ return;
111
+ }
112
+ await saveNotificationSetting({ chatId: openChatID, chatName: chat.name });
113
+ setError('');
114
+ }
115
+
116
+ return (
117
+ <>
118
+ <ChatSelect valueType="object" value={chat} onChange={setChat} />
119
+ <button type="button" onClick={save}>保存</button>
120
+ {error && <p>{error}</p>}
121
+ </>
122
+ );
123
+ }
124
+ ```
125
+
126
+ 此单 ID 合同不能扩展时,只保存通知 ID 和名称;当前会话可保留真实选择对象,但不能承诺刷新后重建。若业务合同允许保存并读回对应真实信息,可同时保留实际 `chatID`、名称等回显所需信息:已有可信数字 ID 可用字符串模式回填,已有真实 `Chat` 可用对象模式回填。
127
+
128
+ 历史配置若只有通知 ID,先通过已有可信群信息取得对应数字 ID 或真实对象,再按对应模式回填;不能用通知 ID 和名称伪造 `Chat`。没有可信映射或第二存储位置且无权扩展合同时,保留原配置,说明回填数据不足或请求业务合同授权;需要完整刷新回显时,在授权下补充合同或可信来源。
@@ -7,11 +7,13 @@ import type { I18nText } from '@client/src/components/business-ui/entity-combobo
7
7
  export type { I18nText };
8
8
 
9
9
  /**
10
- * 群组原始信息(对应 SearchChatEntity)
10
+ * 群组原始信息(对应 SearchChatEntity,保存在 Chat.raw 中)
11
11
  */
12
12
  export type ChatInfo = {
13
- /** 群组 ID */
13
+ /** 平台数字群组 ID 的字符串,用于详情查询 */
14
14
  chatID: string;
15
+ /** 飞书群组通知等能力使用的 open ID */
16
+ openChatID?: string;
15
17
  /** 群组名称(国际化文本) */
16
18
  name: I18nText;
17
19
  /** 头像:URL 或 16 进制 RGB 颜色 */
@@ -23,13 +25,13 @@ export type ChatInfo = {
23
25
  };
24
26
 
25
27
  /**
26
- * 标准化后的群组数据(用于 BaseCombobox)
28
+ * 标准化后的群组数据(用于 BaseCombobox):id 对应 chatID,raw 保留原始信息
27
29
  */
28
30
  export type Chat = ItemValue<ChatInfo>;
29
31
 
30
32
  /**
31
33
  * 值类型
32
- * - 'string': value 为 chatID 字符串
34
+ * - 'string': value 为详情查询用的 chatID 字符串
33
35
  * - 'object': value 为 Chat 对象
34
36
  * @default 'string'
35
37
  */
@@ -58,7 +60,7 @@ type ChatSelectBaseProps<
58
60
  > & {
59
61
  /**
60
62
  * 值类型
61
- * - 'string': value 为 chatID 字符串
63
+ * - 'string': value 为详情查询用的 chatID 字符串
62
64
  * - 'object': value 为 Chat 对象
63
65
  * @default 'string'
64
66
  */
@@ -8,7 +8,8 @@
8
8
  "name": "fullstack-nestjs-template",
9
9
  "version": "2.3.0",
10
10
  "dependencies": {
11
- "@lark-apaas/fullstack-nestjs-core": "1.2.0-alpha.20261120083426",
11
+ "@lark-apaas/fullstack-nestjs-core": "^1.1.79",
12
+ "@larksuiteoapi/node-sdk": "^1.76.0",
12
13
  "@nestjs/axios": "^4.0.1",
13
14
  "@nestjs/cache-manager": "^3.1.3",
14
15
  "@nestjs/common": "^10.4.20",
@@ -32,9 +33,8 @@
32
33
  },
33
34
  "devDependencies": {
34
35
  "@hookform/resolvers": "^5.2.2",
35
- "@lark-apaas/client-toolkit": "1.2.86-alpha.20261120083445",
36
+ "@lark-apaas/client-toolkit": "^1.2.85",
36
37
  "@lark-apaas/coding-preset-vite-react": "^1.0.33",
37
- "@lark-apaas/db-schema-sync": "0.1.24-alpha.20261120130330",
38
38
  "@lark-apaas/fullstack-presets": "^1.1.26",
39
39
  "@nestjs/cli": "^10.4.9",
40
40
  "@radix-ui/react-accordion": "^1.2.12",
@@ -1521,9 +1521,9 @@
1521
1521
  }
1522
1522
  },
1523
1523
  "node_modules/@lark-apaas/client-toolkit": {
1524
- "version": "1.2.86-alpha.20261120083445",
1525
- "resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit/-/client-toolkit-1.2.86-alpha.20261120083445.tgz",
1526
- "integrity": "sha512-PYJTb57tMl+2NDggi+1m4EnjjDa8D858rrquY844pkpqcU5J/T1yhTKR5GF7AbE6eWzTcgRNW8oggfUoS2FDaQ==",
1524
+ "version": "1.2.85",
1525
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/client-toolkit/-/client-toolkit-1.2.85.tgz",
1526
+ "integrity": "sha512-PQcfmaDOviZJ4dd6r82r7/BZ0i3Ky5dR94l6QUgjOk7bejocjkws6MqGlL/SSRQYjqWbcNKwojfG5HHKI8LhLQ==",
1527
1527
  "dev": true,
1528
1528
  "dependencies": {
1529
1529
  "@ant-design/colors": "^7.2.1",
@@ -1531,7 +1531,7 @@
1531
1531
  "@lark-apaas/aily-web-sdk": "^0.0.12",
1532
1532
  "@lark-apaas/auth-sdk": "^0.1.8",
1533
1533
  "@lark-apaas/client-capability": "^0.1.8",
1534
- "@lark-apaas/dataloom": "0.1.7-alpha.20261120083428",
1534
+ "@lark-apaas/dataloom": "^0.1.6",
1535
1535
  "@lark-apaas/internal-slardar": "^0.0.3",
1536
1536
  "@lark-apaas/miaoda-inspector": "^1.0.25",
1537
1537
  "@lark-apaas/observable-web": "^1.0.11",
@@ -1629,33 +1629,14 @@
1629
1629
  "license": "MIT"
1630
1630
  },
1631
1631
  "node_modules/@lark-apaas/dataloom": {
1632
- "version": "0.1.7-alpha.20261120083428",
1633
- "resolved": "https://registry.npmmirror.com/@lark-apaas/dataloom/-/dataloom-0.1.7-alpha.20261120083428.tgz",
1634
- "integrity": "sha512-gE5GLdACEG41SbXe9S/u2TKi5HihE27KNtNI0klADDSXd4YCYuA4QTLq0iBgCN048Pl46JU2K1AAqHW2JuztvQ==",
1632
+ "version": "0.1.6",
1633
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/dataloom/-/dataloom-0.1.6.tgz",
1634
+ "integrity": "sha512-NaMLYODTYlp4ziH1memTuEnARQhlbwMBm+MaWYT2Ue/3nf729i13hjkvxdmMTJq2qyWAnAhgEZvJ4Sccy+rmEQ==",
1635
1635
  "dev": true,
1636
1636
  "dependencies": {
1637
1637
  "@lark-apaas/internal-slardar": "^0.0.3"
1638
1638
  }
1639
1639
  },
1640
- "node_modules/@lark-apaas/db-schema-sync": {
1641
- "version": "0.1.24-alpha.20261120130330",
1642
- "resolved": "https://registry.npmmirror.com/@lark-apaas/db-schema-sync/-/db-schema-sync-0.1.24-alpha.20261120130330.tgz",
1643
- "integrity": "sha512-OgfZiaLod0CULV3p7Z8CkYkypyxD9Qe+jCDoSUmP3vTguwTkSKAWsao1jpmO6IXZ7blDQ9VO8cldOFQfDEeE5w==",
1644
- "dev": true,
1645
- "dependencies": {
1646
- "@lark-apaas/http-client": "^0.1.9",
1647
- "dotenv": "^17.3.1",
1648
- "proper-lockfile": "^4.1.2",
1649
- "tiny-pinyin": "^1.3.2"
1650
- },
1651
- "bin": {
1652
- "db-schema-check": "dist/check-bin.js",
1653
- "db-schema-sync": "dist/bin.js"
1654
- },
1655
- "engines": {
1656
- "node": ">=18.0.0"
1657
- }
1658
- },
1659
1640
  "node_modules/@lark-apaas/file-service": {
1660
1641
  "version": "0.1.2",
1661
1642
  "resolved": "https://registry.npmmirror.com/@lark-apaas/file-service/-/file-service-0.1.2.tgz",
@@ -1666,9 +1647,9 @@
1666
1647
  }
1667
1648
  },
1668
1649
  "node_modules/@lark-apaas/fullstack-nestjs-core": {
1669
- "version": "1.2.0-alpha.20261120083426",
1670
- "resolved": "https://registry.npmmirror.com/@lark-apaas/fullstack-nestjs-core/-/fullstack-nestjs-core-1.2.0-alpha.20261120083426.tgz",
1671
- "integrity": "sha512-lv2pE3rfRSwanmu1WwfmlP191FDeemQf8su6b2QSOs//HfE18XjHv6D2MH8la+ixUNceIT6JreNSDr6DIrznHg==",
1650
+ "version": "1.1.79",
1651
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/fullstack-nestjs-core/-/fullstack-nestjs-core-1.1.79.tgz",
1652
+ "integrity": "sha512-uivHPh3T19EVIRPXWgh7a4+Av+LinnwbH1S0PobmL/FQBOwYfm8qc4UtCwDKWqrAy9a17UCVYvEjc73/D2M5Bw==",
1672
1653
  "license": "MIT",
1673
1654
  "dependencies": {
1674
1655
  "@lark-apaas/cache-service": "^0.1.9",
@@ -1678,7 +1659,7 @@
1678
1659
  "@lark-apaas/nestjs-authzpaas": "^0.1.18",
1679
1660
  "@lark-apaas/nestjs-capability": "^0.1.17",
1680
1661
  "@lark-apaas/nestjs-common": "^0.1.11",
1681
- "@lark-apaas/nestjs-datapaas": "1.0.31-alpha.20261120083443",
1662
+ "@lark-apaas/nestjs-datapaas": "^1.0.30",
1682
1663
  "@lark-apaas/nestjs-http-forwarder": "^0.1.7",
1683
1664
  "@lark-apaas/nestjs-logger": "^1.0.25",
1684
1665
  "@lark-apaas/nestjs-mcp": "^0.1.4",
@@ -1856,9 +1837,9 @@
1856
1837
  }
1857
1838
  },
1858
1839
  "node_modules/@lark-apaas/nestjs-datapaas": {
1859
- "version": "1.0.31-alpha.20261120083443",
1860
- "resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-datapaas/-/nestjs-datapaas-1.0.31-alpha.20261120083443.tgz",
1861
- "integrity": "sha512-q/5yymNnFeNHgq6tzfGBT9ayIzVldIh+zkv1Mlee9lQaDpIITEVQlqHm6Wf4aGqMFQt6OF9gTqP2IGJjLgQohw==",
1840
+ "version": "1.0.30",
1841
+ "resolved": "https://registry.npmmirror.com/@lark-apaas/nestjs-datapaas/-/nestjs-datapaas-1.0.30.tgz",
1842
+ "integrity": "sha512-EpnzymJWG5djjunlj6UbP2j+rMjE5GfLkeiB8TD9IOiaZ09yIvxH8lcBO1FdMIx3XlhIUqXCV9AMY4QTSi6Swg==",
1862
1843
  "license": "MIT",
1863
1844
  "dependencies": {
1864
1845
  "@types/pg": "^8.10.9",
@@ -2033,6 +2014,21 @@
2033
2014
  "vite": "^6.0.0 || ^7.0.0 || ^8.0.0"
2034
2015
  }
2035
2016
  },
2017
+ "node_modules/@larksuiteoapi/node-sdk": {
2018
+ "version": "1.76.0",
2019
+ "resolved": "https://registry.npmmirror.com/@larksuiteoapi/node-sdk/-/node-sdk-1.76.0.tgz",
2020
+ "integrity": "sha512-v/bxQNCugwAmMPbZtBGJtSu8hdQLiB1/29Jr+GBIG18DyQ4LYyp7gxQ74pkhXVSuoUeH4v+/ZHAw/SW+KMrj2g==",
2021
+ "license": "MIT",
2022
+ "dependencies": {
2023
+ "axios": "^1.16.0",
2024
+ "lodash.identity": "^3.0.0",
2025
+ "lodash.merge": "^4.6.2",
2026
+ "lodash.pickby": "^4.6.0",
2027
+ "protobufjs": "^7.2.6",
2028
+ "qs": "^6.14.2",
2029
+ "ws": "^8.19.0"
2030
+ }
2031
+ },
2036
2032
  "node_modules/@ljharb/through": {
2037
2033
  "version": "2.3.14",
2038
2034
  "resolved": "https://registry.npmmirror.com/@ljharb/through/-/through-2.3.14.tgz",
@@ -4032,6 +4028,63 @@
4032
4028
  "node": ">=14"
4033
4029
  }
4034
4030
  },
4031
+ "node_modules/@protobufjs/aspromise": {
4032
+ "version": "1.1.2",
4033
+ "resolved": "https://registry.npmmirror.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
4034
+ "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",
4035
+ "license": "BSD-3-Clause"
4036
+ },
4037
+ "node_modules/@protobufjs/base64": {
4038
+ "version": "1.1.2",
4039
+ "resolved": "https://registry.npmmirror.com/@protobufjs/base64/-/base64-1.1.2.tgz",
4040
+ "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",
4041
+ "license": "BSD-3-Clause"
4042
+ },
4043
+ "node_modules/@protobufjs/codegen": {
4044
+ "version": "2.0.5",
4045
+ "resolved": "https://registry.npmmirror.com/@protobufjs/codegen/-/codegen-2.0.5.tgz",
4046
+ "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==",
4047
+ "license": "BSD-3-Clause"
4048
+ },
4049
+ "node_modules/@protobufjs/eventemitter": {
4050
+ "version": "1.1.1",
4051
+ "resolved": "https://registry.npmmirror.com/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz",
4052
+ "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==",
4053
+ "license": "BSD-3-Clause"
4054
+ },
4055
+ "node_modules/@protobufjs/fetch": {
4056
+ "version": "1.1.1",
4057
+ "resolved": "https://registry.npmmirror.com/@protobufjs/fetch/-/fetch-1.1.1.tgz",
4058
+ "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==",
4059
+ "license": "BSD-3-Clause",
4060
+ "dependencies": {
4061
+ "@protobufjs/aspromise": "^1.1.1"
4062
+ }
4063
+ },
4064
+ "node_modules/@protobufjs/float": {
4065
+ "version": "1.0.2",
4066
+ "resolved": "https://registry.npmmirror.com/@protobufjs/float/-/float-1.0.2.tgz",
4067
+ "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
4068
+ "license": "BSD-3-Clause"
4069
+ },
4070
+ "node_modules/@protobufjs/path": {
4071
+ "version": "1.1.2",
4072
+ "resolved": "https://registry.npmmirror.com/@protobufjs/path/-/path-1.1.2.tgz",
4073
+ "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",
4074
+ "license": "BSD-3-Clause"
4075
+ },
4076
+ "node_modules/@protobufjs/pool": {
4077
+ "version": "1.1.0",
4078
+ "resolved": "https://registry.npmmirror.com/@protobufjs/pool/-/pool-1.1.0.tgz",
4079
+ "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",
4080
+ "license": "BSD-3-Clause"
4081
+ },
4082
+ "node_modules/@protobufjs/utf8": {
4083
+ "version": "1.1.2",
4084
+ "resolved": "https://registry.npmmirror.com/@protobufjs/utf8/-/utf8-1.1.2.tgz",
4085
+ "integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==",
4086
+ "license": "BSD-3-Clause"
4087
+ },
4035
4088
  "node_modules/@radix-ui/number": {
4036
4089
  "version": "1.1.3",
4037
4090
  "resolved": "https://registry.npmmirror.com/@radix-ui/number/-/number-1.1.3.tgz",
@@ -15374,6 +15427,12 @@
15374
15427
  "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
15375
15428
  "license": "MIT"
15376
15429
  },
15430
+ "node_modules/lodash.identity": {
15431
+ "version": "3.0.0",
15432
+ "resolved": "https://registry.npmmirror.com/lodash.identity/-/lodash.identity-3.0.0.tgz",
15433
+ "integrity": "sha512-AupTIzdLQxJS5wIYUQlgGyk2XRTfGXA+MCghDHqZk0pzUNYvd3EESS6dkChNauNYVIutcb0dfHw1ri9Q1yPV8Q==",
15434
+ "license": "MIT"
15435
+ },
15377
15436
  "node_modules/lodash.includes": {
15378
15437
  "version": "4.3.0",
15379
15438
  "resolved": "https://registry.npmmirror.com/lodash.includes/-/lodash.includes-4.3.0.tgz",
@@ -15414,7 +15473,6 @@
15414
15473
  "version": "4.6.2",
15415
15474
  "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz",
15416
15475
  "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
15417
- "dev": true,
15418
15476
  "license": "MIT"
15419
15477
  },
15420
15478
  "node_modules/lodash.once": {
@@ -15423,6 +15481,12 @@
15423
15481
  "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",
15424
15482
  "license": "MIT"
15425
15483
  },
15484
+ "node_modules/lodash.pickby": {
15485
+ "version": "4.6.0",
15486
+ "resolved": "https://registry.npmmirror.com/lodash.pickby/-/lodash.pickby-4.6.0.tgz",
15487
+ "integrity": "sha512-AZV+GsS/6ckvPOVQPXSiFFacKvKB4kOQu6ynt9wz0F3LO4R9Ij4K1ddYsIytDpSgLz88JHd9P+oaLeej5/Sl7Q==",
15488
+ "license": "MIT"
15489
+ },
15426
15490
  "node_modules/lodash.truncate": {
15427
15491
  "version": "4.4.2",
15428
15492
  "resolved": "https://registry.npmmirror.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
@@ -15447,6 +15511,12 @@
15447
15511
  "url": "https://github.com/sponsors/sindresorhus"
15448
15512
  }
15449
15513
  },
15514
+ "node_modules/long": {
15515
+ "version": "5.3.2",
15516
+ "resolved": "https://registry.npmmirror.com/long/-/long-5.3.2.tgz",
15517
+ "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",
15518
+ "license": "Apache-2.0"
15519
+ },
15450
15520
  "node_modules/longest-streak": {
15451
15521
  "version": "3.1.0",
15452
15522
  "resolved": "https://registry.npmmirror.com/longest-streak/-/longest-streak-3.1.0.tgz",
@@ -18123,18 +18193,6 @@
18123
18193
  "dev": true,
18124
18194
  "license": "MIT"
18125
18195
  },
18126
- "node_modules/proper-lockfile": {
18127
- "version": "4.1.2",
18128
- "resolved": "https://registry.npmmirror.com/proper-lockfile/-/proper-lockfile-4.1.2.tgz",
18129
- "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",
18130
- "dev": true,
18131
- "license": "MIT",
18132
- "dependencies": {
18133
- "graceful-fs": "^4.2.4",
18134
- "retry": "^0.12.0",
18135
- "signal-exit": "^3.0.2"
18136
- }
18137
- },
18138
18196
  "node_modules/property-information": {
18139
18197
  "version": "7.2.0",
18140
18198
  "resolved": "https://registry.npmmirror.com/property-information/-/property-information-7.2.0.tgz",
@@ -18146,6 +18204,29 @@
18146
18204
  "url": "https://github.com/sponsors/wooorm"
18147
18205
  }
18148
18206
  },
18207
+ "node_modules/protobufjs": {
18208
+ "version": "7.6.6",
18209
+ "resolved": "https://registry.npmmirror.com/protobufjs/-/protobufjs-7.6.6.tgz",
18210
+ "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==",
18211
+ "hasInstallScript": true,
18212
+ "license": "BSD-3-Clause",
18213
+ "dependencies": {
18214
+ "@protobufjs/aspromise": "^1.1.2",
18215
+ "@protobufjs/base64": "^1.1.2",
18216
+ "@protobufjs/codegen": "^2.0.5",
18217
+ "@protobufjs/eventemitter": "^1.1.1",
18218
+ "@protobufjs/fetch": "^1.1.1",
18219
+ "@protobufjs/float": "^1.0.2",
18220
+ "@protobufjs/path": "^1.1.2",
18221
+ "@protobufjs/pool": "^1.1.0",
18222
+ "@protobufjs/utf8": "^1.1.1",
18223
+ "@types/node": ">=13.7.0",
18224
+ "long": "^5.3.2"
18225
+ },
18226
+ "engines": {
18227
+ "node": ">=12.0.0"
18228
+ }
18229
+ },
18149
18230
  "node_modules/proxy-addr": {
18150
18231
  "version": "2.0.8",
18151
18232
  "resolved": "https://registry.npmmirror.com/proxy-addr/-/proxy-addr-2.0.8.tgz",
@@ -19360,16 +19441,6 @@
19360
19441
  "node": ">=8"
19361
19442
  }
19362
19443
  },
19363
- "node_modules/retry": {
19364
- "version": "0.12.0",
19365
- "resolved": "https://registry.npmmirror.com/retry/-/retry-0.12.0.tgz",
19366
- "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
19367
- "dev": true,
19368
- "license": "MIT",
19369
- "engines": {
19370
- "node": ">= 4"
19371
- }
19372
- },
19373
19444
  "node_modules/reusify": {
19374
19445
  "version": "1.1.0",
19375
19446
  "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz",
@@ -21152,13 +21223,6 @@
21152
21223
  "dev": true,
21153
21224
  "license": "MIT"
21154
21225
  },
21155
- "node_modules/tiny-pinyin": {
21156
- "version": "1.3.2",
21157
- "resolved": "https://registry.npmmirror.com/tiny-pinyin/-/tiny-pinyin-1.3.2.tgz",
21158
- "integrity": "sha512-uHNGu4evFt/8eNLldazeAM1M8JrMc1jshhJJfVRARTN3yT8HEEibofeQ7QETWQ5ISBjd6fKtTVBCC/+mGS6FpA==",
21159
- "dev": true,
21160
- "license": "MIT"
21161
- },
21162
21226
  "node_modules/tinyexec": {
21163
21227
  "version": "1.3.0",
21164
21228
  "resolved": "https://registry.npmmirror.com/tinyexec/-/tinyexec-1.3.0.tgz",
@@ -22624,6 +22688,27 @@
22624
22688
  "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
22625
22689
  "license": "ISC"
22626
22690
  },
22691
+ "node_modules/ws": {
22692
+ "version": "8.23.0",
22693
+ "resolved": "https://registry.npmmirror.com/ws/-/ws-8.23.0.tgz",
22694
+ "integrity": "sha512-wCkmX8QMOrKjgO8HW2WyDbTSGeqkocxgDzS9iR79rEAexty6/2qzilx3Ag8Tqf9ykop3irLKle0MtVn5qjVnoQ==",
22695
+ "license": "MIT",
22696
+ "engines": {
22697
+ "node": ">=10.0.0"
22698
+ },
22699
+ "peerDependencies": {
22700
+ "bufferutil": "^4.0.1",
22701
+ "utf-8-validate": ">=5.0.2"
22702
+ },
22703
+ "peerDependenciesMeta": {
22704
+ "bufferutil": {
22705
+ "optional": true
22706
+ },
22707
+ "utf-8-validate": {
22708
+ "optional": true
22709
+ }
22710
+ }
22711
+ },
22627
22712
  "node_modules/wsl-utils": {
22628
22713
  "version": "0.1.0",
22629
22714
  "resolved": "https://registry.npmmirror.com/wsl-utils/-/wsl-utils-0.1.0.tgz",
@@ -11,7 +11,7 @@
11
11
  "dev": "./scripts/dev.sh",
12
12
  "dev:server": "NODE_ENV=development nest start --watch",
13
13
  "dev:client": "NODE_ENV=development vite --config vite.config.ts",
14
- "gen:db-schema": "FORCE_FRAMEWORK_CLI_CANARY_ENV=boe_miaoda_base npx -y @lark-apaas/db-schema-sync@0.1.24-alpha.20261120130330 --output server/database/schema.ts --export-custom-types",
14
+ "gen:db-schema": "npx -y @lark-apaas/db-schema-sync@latest --output server/database/schema.ts --export-custom-types",
15
15
  "gen:openapi": "echo 'UNSUPPORTED, SKIP'",
16
16
  "build": "./scripts/build.sh",
17
17
  "build:prod": "npm run build:server && npm run build:client",
@@ -28,7 +28,8 @@
28
28
  "upgrade": "npx -y @lark-apaas/fullstack-cli sync --disable-gen-openapi"
29
29
  },
30
30
  "dependencies": {
31
- "@lark-apaas/fullstack-nestjs-core": "1.2.0-alpha.20261120083426",
31
+ "@lark-apaas/fullstack-nestjs-core": "^1.1.79",
32
+ "@larksuiteoapi/node-sdk": "^1.76.0",
32
33
  "@nestjs/axios": "^4.0.1",
33
34
  "@nestjs/cache-manager": "^3.1.3",
34
35
  "@nestjs/common": "^10.4.20",
@@ -51,9 +52,8 @@
51
52
  "tslib": "^2.8.1"
52
53
  },
53
54
  "devDependencies": {
54
- "@lark-apaas/db-schema-sync": "0.1.24-alpha.20261120130330",
55
55
  "@hookform/resolvers": "^5.2.2",
56
- "@lark-apaas/client-toolkit": "1.2.86-alpha.20261120083445",
56
+ "@lark-apaas/client-toolkit": "^1.2.85",
57
57
  "@lark-apaas/coding-preset-vite-react": "^1.0.33",
58
58
  "@lark-apaas/fullstack-presets": "^1.1.26",
59
59
  "@nestjs/cli": "^10.4.9",