@giteeteam/apps-manifest 0.5.2 → 0.6.0

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/lib/manifest.d.ts CHANGED
@@ -9,6 +9,7 @@ export declare class Manifest {
9
9
  get modules(): import("./types").TManifestModules;
10
10
  get storage(): import("./types").IStorage | undefined;
11
11
  get locales(): import("./types").TManifestLocales | undefined;
12
+ get mq(): import("./types").IMq[] | undefined;
12
13
  getManifest(): IManifest;
13
14
  getManifestString(): string;
14
15
  /**
package/lib/manifest.js CHANGED
@@ -26,6 +26,9 @@ class Manifest {
26
26
  get locales() {
27
27
  return this.manifest.locales;
28
28
  }
29
+ get mq() {
30
+ return this.manifest.mq;
31
+ }
29
32
  getManifest() {
30
33
  return this.manifest;
31
34
  }
@@ -22,6 +22,9 @@
22
22
  },
23
23
  "storage": {
24
24
  "$ref": "storage.json"
25
+ },
26
+ "mq": {
27
+ "$ref": "mq.json"
25
28
  }
26
29
  },
27
30
  "required": [
package/lib/types.d.ts CHANGED
@@ -20,6 +20,7 @@ export interface IManifestModule {
20
20
  resource?: string;
21
21
  route?: string;
22
22
  type?: string;
23
+ displayConditions?: Record<string, any>;
23
24
  }
24
25
  export interface IManifestFunction {
25
26
  key: string;
@@ -55,6 +56,18 @@ export interface IManifestCustomFieldType {
55
56
  resource: string;
56
57
  description?: string;
57
58
  }
59
+ export interface IConsumer {
60
+ key: string;
61
+ queue: string;
62
+ resolver: {
63
+ function: string;
64
+ method: string;
65
+ };
66
+ }
67
+ export interface IMqConsumer extends IConsumer {
68
+ mq: string;
69
+ messageTransformer: Record<string, any>;
70
+ }
58
71
  export type TManifestModules = {
59
72
  [k in string]?: IManifestModule[];
60
73
  } & {
@@ -64,6 +77,8 @@ export type TManifestModules = {
64
77
  customField?: IManifestCustomField[];
65
78
  customFieldType?: IManifestCustomFieldType[];
66
79
  customItemType?: any[];
80
+ consumer?: IConsumer[];
81
+ mqConsumer?: IMqConsumer[];
67
82
  };
68
83
  export type TDependProduct = 'team' | 'one';
69
84
  export type TManifestLanguage = 'en-US' | 'zh-CN' | 'ru-RU';
@@ -85,6 +100,11 @@ export interface IStorageEntity {
85
100
  export interface IStorage {
86
101
  entities: IStorageEntity[];
87
102
  }
103
+ export interface IMq {
104
+ key: string;
105
+ type: string;
106
+ endpoint: string;
107
+ }
88
108
  export interface IManifest {
89
109
  app: IManifestApp;
90
110
  modules: TManifestModules;
@@ -93,4 +113,5 @@ export interface IManifest {
93
113
  locales?: TManifestLocales;
94
114
  dependVersion?: TDependVersion;
95
115
  storage?: IStorage;
116
+ mq?: IMq[];
96
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-manifest",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "Giteeteam Apps Manifest",
5
5
  "keywords": [
6
6
  "typescript",