zentao-api 0.8.4 → 0.8.5

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.
@@ -3430,6 +3430,10 @@ export declare const BUILTIN_MODULES: ({
3430
3430
  type: string;
3431
3431
  description: string;
3432
3432
  };
3433
+ status: {
3434
+ type: string;
3435
+ description: string;
3436
+ };
3433
3437
  reviewer: {
3434
3438
  type: string;
3435
3439
  items: {
@@ -3556,6 +3560,7 @@ export declare const BUILTIN_MODULES: ({
3556
3560
  productID?: undefined;
3557
3561
  spec?: undefined;
3558
3562
  verify?: undefined;
3563
+ status?: undefined;
3559
3564
  reviewer?: undefined;
3560
3565
  project?: undefined;
3561
3566
  execution?: undefined;
@@ -3627,6 +3632,7 @@ export declare const BUILTIN_MODULES: ({
3627
3632
  source?: undefined;
3628
3633
  verify?: undefined;
3629
3634
  assignedTo?: undefined;
3635
+ status?: undefined;
3630
3636
  reviewer?: undefined;
3631
3637
  project?: undefined;
3632
3638
  execution?: undefined;
@@ -3734,6 +3740,7 @@ export declare const BUILTIN_MODULES: ({
3734
3740
  category?: undefined;
3735
3741
  source?: undefined;
3736
3742
  verify?: undefined;
3743
+ status?: undefined;
3737
3744
  reviewer?: undefined;
3738
3745
  project?: undefined;
3739
3746
  execution?: undefined;
@@ -3789,6 +3796,10 @@ export declare const BUILTIN_MODULES: ({
3789
3796
  type: string;
3790
3797
  description: string;
3791
3798
  };
3799
+ status: {
3800
+ type: string;
3801
+ description: string;
3802
+ };
3792
3803
  reviewer: {
3793
3804
  type: string;
3794
3805
  items: {
@@ -3882,6 +3893,7 @@ export declare const BUILTIN_MODULES: ({
3882
3893
  source?: undefined;
3883
3894
  verify?: undefined;
3884
3895
  assignedTo?: undefined;
3896
+ status?: undefined;
3885
3897
  reviewer?: undefined;
3886
3898
  project?: undefined;
3887
3899
  execution?: undefined;
@@ -4038,6 +4050,10 @@ export declare const BUILTIN_MODULES: ({
4038
4050
  type: string;
4039
4051
  description: string;
4040
4052
  };
4053
+ status: {
4054
+ type: string;
4055
+ description: string;
4056
+ };
4041
4057
  reviewer: {
4042
4058
  type: string;
4043
4059
  items: {
@@ -4144,6 +4160,7 @@ export declare const BUILTIN_MODULES: ({
4144
4160
  productID?: undefined;
4145
4161
  spec?: undefined;
4146
4162
  verify?: undefined;
4163
+ status?: undefined;
4147
4164
  reviewer?: undefined;
4148
4165
  comment?: undefined;
4149
4166
  closedReason?: undefined;
@@ -4221,6 +4238,7 @@ export declare const BUILTIN_MODULES: ({
4221
4238
  category?: undefined;
4222
4239
  source?: undefined;
4223
4240
  verify?: undefined;
4241
+ status?: undefined;
4224
4242
  reviewer?: undefined;
4225
4243
  closedReason?: undefined;
4226
4244
  };
@@ -4267,6 +4285,10 @@ export declare const BUILTIN_MODULES: ({
4267
4285
  type: string;
4268
4286
  description: string;
4269
4287
  };
4288
+ status: {
4289
+ type: string;
4290
+ description: string;
4291
+ };
4270
4292
  reviewer: {
4271
4293
  type: string;
4272
4294
  items: {
@@ -4351,6 +4373,7 @@ export declare const BUILTIN_MODULES: ({
4351
4373
  source?: undefined;
4352
4374
  verify?: undefined;
4353
4375
  assignedTo?: undefined;
4376
+ status?: undefined;
4354
4377
  reviewer?: undefined;
4355
4378
  };
4356
4379
  required: string[];
@@ -4501,6 +4524,10 @@ export declare const BUILTIN_MODULES: ({
4501
4524
  type: string;
4502
4525
  description: string;
4503
4526
  };
4527
+ status: {
4528
+ type: string;
4529
+ description: string;
4530
+ };
4504
4531
  reviewer: {
4505
4532
  type: string;
4506
4533
  items: {
@@ -4607,6 +4634,7 @@ export declare const BUILTIN_MODULES: ({
4607
4634
  productID?: undefined;
4608
4635
  spec?: undefined;
4609
4636
  verify?: undefined;
4637
+ status?: undefined;
4610
4638
  reviewer?: undefined;
4611
4639
  comment?: undefined;
4612
4640
  closedReason?: undefined;
@@ -4684,6 +4712,7 @@ export declare const BUILTIN_MODULES: ({
4684
4712
  category?: undefined;
4685
4713
  source?: undefined;
4686
4714
  verify?: undefined;
4715
+ status?: undefined;
4687
4716
  reviewer?: undefined;
4688
4717
  closedReason?: undefined;
4689
4718
  };
@@ -4738,6 +4767,10 @@ export declare const BUILTIN_MODULES: ({
4738
4767
  type: string;
4739
4768
  description: string;
4740
4769
  };
4770
+ status: {
4771
+ type: string;
4772
+ description: string;
4773
+ };
4741
4774
  reviewer: {
4742
4775
  type: string;
4743
4776
  items: {
@@ -4814,6 +4847,7 @@ export declare const BUILTIN_MODULES: ({
4814
4847
  source?: undefined;
4815
4848
  verify?: undefined;
4816
4849
  assignedTo?: undefined;
4850
+ status?: undefined;
4817
4851
  reviewer?: undefined;
4818
4852
  };
4819
4853
  required: string[];
@@ -2626,6 +2626,10 @@ export const BUILTIN_MODULES = [
2626
2626
  "type": "string",
2627
2627
  "description": "指派给"
2628
2628
  },
2629
+ "status": {
2630
+ "type": "string",
2631
+ "description": "无有效评审人时默认 active,可显式指定状态;有有效评审人时固定为 reviewing。"
2632
+ },
2629
2633
  "reviewer": {
2630
2634
  "type": "array",
2631
2635
  "items": {
@@ -2854,6 +2858,10 @@ export const BUILTIN_MODULES = [
2854
2858
  "type": "string",
2855
2859
  "description": "需求名称"
2856
2860
  },
2861
+ "status": {
2862
+ "type": "string",
2863
+ "description": "无有效评审人时默认 active,可显式指定状态;有有效评审人时固定为 reviewing。"
2864
+ },
2857
2865
  "reviewer": {
2858
2866
  "type": "array",
2859
2867
  "items": {
@@ -3062,6 +3070,10 @@ export const BUILTIN_MODULES = [
3062
3070
  "type": "string",
3063
3071
  "description": "指派给"
3064
3072
  },
3073
+ "status": {
3074
+ "type": "string",
3075
+ "description": "无有效评审人时默认 active,可显式指定状态;有有效评审人时固定为 reviewing。"
3076
+ },
3065
3077
  "reviewer": {
3066
3078
  "type": "array",
3067
3079
  "items": {
@@ -3235,6 +3247,10 @@ export const BUILTIN_MODULES = [
3235
3247
  "type": "string",
3236
3248
  "description": "需求名称"
3237
3249
  },
3250
+ "status": {
3251
+ "type": "string",
3252
+ "description": "无有效评审人时默认 active,可显式指定状态;有有效评审人时固定为 reviewing。"
3253
+ },
3238
3254
  "reviewer": {
3239
3255
  "type": "array",
3240
3256
  "items": {
@@ -3443,6 +3459,10 @@ export const BUILTIN_MODULES = [
3443
3459
  "type": "string",
3444
3460
  "description": "指派给"
3445
3461
  },
3462
+ "status": {
3463
+ "type": "string",
3464
+ "description": "无有效评审人时默认 active,可显式指定状态;有有效评审人时固定为 reviewing。"
3465
+ },
3446
3466
  "reviewer": {
3447
3467
  "type": "array",
3448
3468
  "items": {
@@ -3623,6 +3643,10 @@ export const BUILTIN_MODULES = [
3623
3643
  "type": "string",
3624
3644
  "description": "验收标准"
3625
3645
  },
3646
+ "status": {
3647
+ "type": "string",
3648
+ "description": "无有效评审人时默认 active,可显式指定状态;有有效评审人时固定为 reviewing。"
3649
+ },
3626
3650
  "reviewer": {
3627
3651
  "type": "array",
3628
3652
  "items": {
@@ -13116,8 +13140,8 @@ export const BUILTIN_MODULES = [
13116
13140
  name: 'browseType',
13117
13141
  required: false,
13118
13142
  type: 'string',
13119
- description: '待处理筛选类型,默认 myChecking,取值不区分大小写',
13120
- defaultValue: 'myChecking',
13143
+ description: '待处理筛选类型,默认 mychecking,取值不区分大小写',
13144
+ defaultValue: 'mychecking',
13121
13145
  options: [
13122
13146
  { value: 'mychecking', label: '待我检查' },
13123
13147
  { value: 'checked', label: '已检查' },
@@ -340,6 +340,14 @@ export function applyBuiltinOverrides() {
340
340
  return { data, query };
341
341
  },
342
342
  });
343
+ // 部分服务端从 query 读取 productID;复制已解析的 body 值以保留 data 优先级与类型转换。
344
+ extendModuleAction('bug', 'create', {
345
+ beforeRequest: async ({ data, query }) => {
346
+ if (data?.productID === undefined)
347
+ return {};
348
+ return { query: { ...query, productID: data.productID } };
349
+ },
350
+ });
343
351
  // 确认表单会重置缺省字段;仅补齐可写字段,不回传详情中的其他属性。
344
352
  extendModuleAction('bug', 'confirm', {
345
353
  request: async ({ request: command, body, bodyType, client, timeout, insecure, actionAssistant, options }) => {
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
- const fallbackBuild = "2026-11-11T08:05:19.775Z";
2
- const fallbackVersion = "0.8.4";
1
+ const fallbackBuild = "2026-11-11T09:35:14.648Z";
2
+ const fallbackVersion = "0.8.5";
3
3
  /**
4
4
  * 构建标识,由构建脚本通过 `__ZENTAO_API_BUILD__` 注入。
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zentao-api",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "type": "module",
5
5
  "description": "Browser and Node.js SDK for ZenTao API",
6
6
  "license": "MIT",