@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 +1 -0
- package/lib/manifest.js +3 -0
- package/lib/schema/all.json +3 -0
- package/lib/types.d.ts +21 -0
- package/package.json +1 -1
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
package/lib/schema/all.json
CHANGED
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
|
}
|