meeglesdk 0.2.0 → 0.2.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.1 - 2026-05-11
4
+
5
+ ### Fixed
6
+
7
+ - Aligned documented `work_item_id` request and response fields with the Meego MCP `int64` type, while preserving string-compatible URL path parameters where the Path table still documents `work_item_id` as `string`.
8
+
3
9
  ## 0.2.0 - 2026-05-10
4
10
 
5
11
  ### Added
@@ -18,4 +24,3 @@
18
24
 
19
25
  - Prepared `meeglesdk@0.2.0` for npm publication.
20
26
  - Added `release:check` and `prepublishOnly` so npm publishing runs typecheck, unit tests, and build first.
21
-
package/RELEASE.md CHANGED
@@ -5,8 +5,8 @@ This document is the npm release checklist for `meeglesdk`.
5
5
  ## Current Release
6
6
 
7
7
  - Package: `meeglesdk`
8
- - Version: `0.2.0`
9
- - Registry latest checked before release: `0.1.8`
8
+ - Version: `0.2.1`
9
+ - Registry latest checked before release: `0.2.0`
10
10
  - Runtime requirement: Node.js 18+
11
11
  - Development runtime: Bun 1.3+
12
12
 
@@ -37,7 +37,7 @@ This document is the npm release checklist for `meeglesdk`.
37
37
 
38
38
  ```bash
39
39
  npm view meeglesdk version dist-tags --json
40
- npm view meeglesdk@0.2.0 dist.tarball
40
+ npm view meeglesdk@0.2.1 dist.tarball
41
41
  ```
42
42
 
43
43
  ## Notes
@@ -45,4 +45,3 @@ This document is the npm release checklist for `meeglesdk`.
45
45
  - If `npm whoami` returns `E401`, run `npm login` or configure an npm token before publishing.
46
46
  - `prepublishOnly` runs the release gate automatically during `npm publish`.
47
47
  - The npm package includes `dist/`, `CHANGELOG.md`, `RELEASE.md`, and npm's always-included package metadata and README.
48
-
@@ -132,7 +132,7 @@ export declare class AttachmentService extends BaseService {
132
132
  * ```typescript
133
133
  * await client.workItem.attachment.deleteAttachment({
134
134
  * project_key: 'my-project',
135
- * work_item_id: '643711xxxx',
135
+ * work_item_id: 643711,
136
136
  * field_key: 'field_xxx',
137
137
  * uuids: ['uuid1', 'uuid2'],
138
138
  * });
@@ -220,7 +220,7 @@ export class AttachmentService extends BaseService {
220
220
  * ```typescript
221
221
  * await client.workItem.attachment.deleteAttachment({
222
222
  * project_key: 'my-project',
223
- * work_item_id: '643711xxxx',
223
+ * work_item_id: 643711,
224
224
  * field_key: 'field_xxx',
225
225
  * uuids: ['uuid1', 'uuid2'],
226
226
  * });
@@ -210,7 +210,7 @@ export interface WorkItem {
210
210
  * 字段返回按 field_selected 决定,键名为字段 key
211
211
  */
212
212
  export type WorkItemInfo = Record<string, unknown> & {
213
- work_item_id?: number | string;
213
+ work_item_id?: number;
214
214
  id?: number | string;
215
215
  };
216
216
  /**
@@ -576,7 +576,7 @@ export type DeleteAttachmentRequest = {
576
576
  /** 空间 ID 或域名 */
577
577
  project_key: string;
578
578
  /** 工作项 ID */
579
- work_item_id: number | string;
579
+ work_item_id: number;
580
580
  /** 要删除的附件 UUID 列表 */
581
581
  uuids: string[];
582
582
  } & DeleteAttachmentFieldSelector;
@@ -788,7 +788,7 @@ export interface Comment {
788
788
  /** 评论 ID(字符串格式,避免大整数精度丢失) */
789
789
  id: string;
790
790
  /** 评论所属工作项 ID */
791
- work_item_id: number | string;
791
+ work_item_id: number;
792
792
  /** 评论所属工作项类型 */
793
793
  work_item_type_key: string;
794
794
  /** 评论创建时间,毫秒精度 */
@@ -2789,7 +2789,7 @@ export interface ReviewBatchQueryRequest {
2789
2789
  /** 空间 ID(必填) */
2790
2790
  project_key: string;
2791
2791
  /** 工作项 ID(必填) */
2792
- work_item_id: number | string;
2792
+ work_item_id: number;
2793
2793
  /** 节点 ID 列表(必填,最多 10 个) */
2794
2794
  node_ids: string[];
2795
2795
  }
@@ -2798,7 +2798,7 @@ export interface ReviewBatchQueryRequest {
2798
2798
  */
2799
2799
  export interface ReviewBatchQueryResponse {
2800
2800
  project_key: string;
2801
- work_item_id: number | string;
2801
+ work_item_id: number;
2802
2802
  finished_infos: ReviewFinishedInfoItem[];
2803
2803
  }
2804
2804
  /**
@@ -2808,7 +2808,7 @@ export interface ReviewConclusionOptionRequest {
2808
2808
  /** 空间 ID */
2809
2809
  project_key: string;
2810
2810
  /** 工作项 ID */
2811
- work_item_id: number | string;
2811
+ work_item_id: number;
2812
2812
  /** 节点 ID 列表 */
2813
2813
  node_ids: string[];
2814
2814
  }
@@ -2836,7 +2836,7 @@ export interface UpdateReviewRequest {
2836
2836
  /** 空间 ID */
2837
2837
  project_key: string;
2838
2838
  /** 工作项 ID */
2839
- work_item_id: number | string;
2839
+ work_item_id: number;
2840
2840
  /** 节点 ID */
2841
2841
  node_id: string;
2842
2842
  /** 评审意见 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meeglesdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "飞书项目 Open API TypeScript SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",