@giteeteam/apps-manifest 0.8.5 → 0.8.7

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,9 +3,7 @@
3
3
  "type": "array",
4
4
  "minItems": 1,
5
5
  "uniqueItems": true,
6
- "uniqueItemProperties": [
7
- "key"
8
- ],
6
+ "uniqueItemProperties": ["key"],
9
7
  "items": {
10
8
  "type": "object",
11
9
  "properties": {
@@ -17,13 +15,12 @@
17
15
  },
18
16
  "endpoint": {
19
17
  "type": "string"
18
+ },
19
+ "namespace": {
20
+ "type": "string"
20
21
  }
21
22
  },
22
- "required": [
23
- "key",
24
- "type",
25
- "endpoint"
26
- ]
23
+ "required": ["key", "type", "endpoint"]
27
24
  },
28
25
  "errorMessage": {
29
26
  "uniqueItemProperties": "key must be unique"
package/lib/types.d.ts CHANGED
@@ -77,10 +77,12 @@ export interface IConsumer {
77
77
  batchSize?: number;
78
78
  /** 最大重试次数,默认是5 */
79
79
  maxRetries?: number;
80
+ /** 数据的解析 */
81
+ messageTransformer?: Record<string, any>;
80
82
  }
81
83
  export interface IMessageQueueConsumer extends IConsumer {
82
84
  messageQueue: string;
83
- messageTransformer: Record<string, any>;
85
+ tag?: string;
84
86
  }
85
87
  export interface IScheduledTrigger {
86
88
  key: string;
@@ -124,6 +126,7 @@ export interface IMessageQueue {
124
126
  key: string;
125
127
  type: string;
126
128
  endpoint: string;
129
+ namespace?: string;
127
130
  }
128
131
  export interface IManifest {
129
132
  app: IManifestApp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-manifest",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "Giteeteam Apps Manifest",
5
5
  "keywords": [
6
6
  "typescript",
@@ -46,7 +46,7 @@
46
46
  "devDependencies": {
47
47
  "@types/lodash": "^4.14.195",
48
48
  "@vitest/coverage-v8": "^2.1.3",
49
- "typescript": "^4.8.3",
49
+ "typescript": "^5.7.2",
50
50
  "vitest": "^2.1.3"
51
51
  }
52
52
  }