@microsoft/teamsfx-api 0.22.4-alpha.be4f5dfbf.0 → 0.22.4-alpha.d7c19ebcf.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/build/constants.d.ts +0 -8
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +1 -9
- package/build/constants.js.map +1 -1
- package/build/context.d.ts +9 -28
- package/build/context.d.ts.map +1 -1
- package/build/error.d.ts +0 -47
- package/build/error.d.ts.map +1 -1
- package/build/error.js +3 -135
- package/build/error.js.map +1 -1
- package/build/index.d.ts +4 -14
- package/build/index.d.ts.map +1 -1
- package/build/index.js +4 -15
- package/build/index.js.map +1 -1
- package/build/qm/index.d.ts +0 -1
- package/build/qm/index.d.ts.map +1 -1
- package/build/qm/index.js +0 -1
- package/build/qm/index.js.map +1 -1
- package/build/qm/ui.d.ts +13 -5
- package/build/qm/ui.d.ts.map +1 -1
- package/build/types.d.ts +29 -129
- package/build/types.d.ts.map +1 -1
- package/build/types.js +1 -97
- package/build/types.js.map +1 -1
- package/build/utils/telemetry.d.ts.map +1 -1
- package/package.json +4 -4
- package/build/action.d.ts +0 -109
- package/build/action.d.ts.map +0 -1
- package/build/action.js +0 -5
- package/build/action.js.map +0 -1
- package/build/bicep.d.ts +0 -19
- package/build/bicep.d.ts.map +0 -1
- package/build/bicep.js +0 -5
- package/build/bicep.js.map +0 -1
- package/build/component.d.ts +0 -31
- package/build/component.d.ts.map +0 -1
- package/build/component.js +0 -3
- package/build/component.js.map +0 -1
- package/build/core.d.ts +0 -50
- package/build/core.d.ts.map +0 -1
- package/build/core.js +0 -5
- package/build/core.js.map +0 -1
- package/build/qm/visitor.d.ts +0 -15
- package/build/qm/visitor.d.ts.map +0 -1
- package/build/qm/visitor.js +0 -388
- package/build/qm/visitor.js.map +0 -1
- package/build/v2/index.d.ts +0 -2
- package/build/v2/index.d.ts.map +0 -1
- package/build/v2/index.js +0 -7
- package/build/v2/index.js.map +0 -1
- package/build/v2/types.d.ts +0 -54
- package/build/v2/types.d.ts.map +0 -1
- package/build/v2/types.js +0 -28
- package/build/v2/types.js.map +0 -1
- package/build/v3/AzureResourceStates.d.ts +0 -58
- package/build/v3/AzureResourceStates.d.ts.map +0 -1
- package/build/v3/AzureResourceStates.js +0 -3
- package/build/v3/AzureResourceStates.js.map +0 -1
- package/build/v3/core.d.ts +0 -15
- package/build/v3/core.d.ts.map +0 -1
- package/build/v3/core.js +0 -5
- package/build/v3/core.js.map +0 -1
- package/build/v3/index.d.ts +0 -7
- package/build/v3/index.d.ts.map +0 -1
- package/build/v3/index.js +0 -12
- package/build/v3/index.js.map +0 -1
- package/build/v3/plugins.d.ts +0 -12
- package/build/v3/plugins.d.ts.map +0 -1
- package/build/v3/plugins.js +0 -5
- package/build/v3/plugins.js.map +0 -1
- package/build/v3/resourceStates.d.ts +0 -66
- package/build/v3/resourceStates.d.ts.map +0 -1
- package/build/v3/resourceStates.js +0 -5
- package/build/v3/resourceStates.js.map +0 -1
- package/build/v3/solution.d.ts +0 -40
- package/build/v3/solution.d.ts.map +0 -1
- package/build/v3/solution.js +0 -5
- package/build/v3/solution.js.map +0 -1
- package/build/v3/types.d.ts +0 -28
- package/build/v3/types.d.ts.map +0 -1
- package/build/v3/types.js +0 -5
- package/build/v3/types.js.map +0 -1
- package/build/vscode.d.ts +0 -22
- package/build/vscode.d.ts.map +0 -1
- package/build/vscode.js +0 -5
- package/build/vscode.js.map +0 -1
package/build/types.d.ts
CHANGED
|
@@ -1,15 +1,5 @@
|
|
|
1
|
+
import { IBot, IComposeExtension, IConfigurableTab, IStaticTab, IWebApplicationInfo } from "@microsoft/teams-manifest";
|
|
1
2
|
import { Platform, Stage, VsCodeEnv } from "./constants";
|
|
2
|
-
import { TokenProvider } from "./utils/login";
|
|
3
|
-
import { Context } from "./v2/types";
|
|
4
|
-
import { AppManifestProvider } from "./v3/plugins";
|
|
5
|
-
import { EnvInfoV3 } from "./v3/types";
|
|
6
|
-
export declare type Json = Record<string, any>;
|
|
7
|
-
export declare type ConfigValue = any;
|
|
8
|
-
export declare type PluginIdentity = string;
|
|
9
|
-
export declare type PluginConfig = ConfigMap;
|
|
10
|
-
export declare type ReadonlyPluginConfig = ReadonlyMap<string, ConfigValue>;
|
|
11
|
-
export declare type SolutionConfig = Map<PluginIdentity, PluginConfig>;
|
|
12
|
-
export declare type ReadonlySolutionConfig = ReadonlyMap<PluginIdentity, ReadonlyPluginConfig>;
|
|
13
3
|
/**
|
|
14
4
|
* Definition of option item in single selection or multiple selection
|
|
15
5
|
*/
|
|
@@ -55,32 +45,8 @@ export interface OptionItem {
|
|
|
55
45
|
command: string;
|
|
56
46
|
}[];
|
|
57
47
|
}
|
|
58
|
-
export declare class ConfigMap extends Map<string, ConfigValue> {
|
|
59
|
-
getString(k: string, defaultValue?: string): string | undefined;
|
|
60
|
-
getBoolean(k: string, defaultValue?: boolean): boolean | undefined;
|
|
61
|
-
getNumber(k: string, defaultValue?: number): number | undefined;
|
|
62
|
-
getStringArray(k: string, defaultValue?: string[]): string[] | undefined;
|
|
63
|
-
getNumberArray(k: string, defaultValue?: number[]): number[] | undefined;
|
|
64
|
-
getBooleanArray(k: string, defaultValue?: boolean[]): boolean[] | undefined;
|
|
65
|
-
getOptionItem(k: string, defaultValue?: OptionItem): OptionItem | undefined;
|
|
66
|
-
getOptionItemArray(k: string, defaultValue?: OptionItem[]): OptionItem[] | undefined;
|
|
67
|
-
toJSON(): Json;
|
|
68
|
-
static fromJSON(obj?: Json): ConfigMap | undefined;
|
|
69
|
-
constructor(entries?: readonly (readonly [string, ConfigValue])[] | null);
|
|
70
|
-
}
|
|
71
|
-
export declare function mergeConfigMap(lhs?: ConfigMap, rhs?: ConfigMap): ConfigMap | undefined;
|
|
72
48
|
export declare type Void = {};
|
|
73
49
|
export declare const Void: {};
|
|
74
|
-
export declare type ResourceTemplate = Record<string, ConfigValue>;
|
|
75
|
-
export declare type ResourceTemplates = {
|
|
76
|
-
[k: string]: ResourceTemplate | undefined;
|
|
77
|
-
};
|
|
78
|
-
export declare type ResourceConfig = ResourceTemplate;
|
|
79
|
-
export declare type ResourceConfigs = ResourceTemplates;
|
|
80
|
-
export declare type ReadonlyResourceConfig = Readonly<ResourceConfig>;
|
|
81
|
-
export declare type ReadonlyResourceConfigs = Readonly<{
|
|
82
|
-
[k: string]: ReadonlyResourceConfig | undefined;
|
|
83
|
-
}>;
|
|
84
50
|
/**
|
|
85
51
|
* environment meta data
|
|
86
52
|
*/
|
|
@@ -89,59 +55,7 @@ export interface EnvMeta {
|
|
|
89
55
|
local: boolean;
|
|
90
56
|
sideloading: boolean;
|
|
91
57
|
}
|
|
92
|
-
|
|
93
|
-
* project static settings
|
|
94
|
-
*/
|
|
95
|
-
export interface ProjectSettings {
|
|
96
|
-
appName?: string;
|
|
97
|
-
version?: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
programmingLanguage?: string;
|
|
100
|
-
defaultFunctionName?: string;
|
|
101
|
-
solutionSettings?: SolutionSettings;
|
|
102
|
-
isFromSample?: boolean;
|
|
103
|
-
isM365?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* pluginSettings is used for plugin settings irrelevant to environments
|
|
106
|
-
*/
|
|
107
|
-
pluginSettings?: Json;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* solution settings
|
|
111
|
-
*/
|
|
112
|
-
export interface SolutionSettings extends Json {
|
|
113
|
-
name: string;
|
|
114
|
-
/**
|
|
115
|
-
* solution settings schema version
|
|
116
|
-
*/
|
|
117
|
-
version?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface AzureSolutionSettings extends SolutionSettings {
|
|
120
|
-
hostType: string;
|
|
121
|
-
capabilities: string[];
|
|
122
|
-
azureResources: string[];
|
|
123
|
-
activeResourcePlugins: string[];
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* local debug settings
|
|
127
|
-
*/
|
|
128
|
-
export interface LocalSettings {
|
|
129
|
-
teamsApp?: ConfigMap;
|
|
130
|
-
auth?: ConfigMap;
|
|
131
|
-
frontend?: ConfigMap;
|
|
132
|
-
backend?: ConfigMap;
|
|
133
|
-
bot?: ConfigMap;
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* project dynamic states
|
|
137
|
-
*/
|
|
138
|
-
export interface ProjectStates {
|
|
139
|
-
solution: Record<string, ConfigValue>;
|
|
140
|
-
resources: {
|
|
141
|
-
[k: string]: Record<string, ConfigValue>;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
export interface Inputs extends Json {
|
|
58
|
+
export interface Inputs extends Record<string, any> {
|
|
145
59
|
projectPath?: string;
|
|
146
60
|
targetEnvName?: string;
|
|
147
61
|
sourceEnvName?: string;
|
|
@@ -161,47 +75,12 @@ export interface Inputs extends Json {
|
|
|
161
75
|
inProductDoc?: boolean;
|
|
162
76
|
teamsAppFromTdp?: any;
|
|
163
77
|
}
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
envInfos: {
|
|
171
|
-
[key: string]: EnvInfoV3;
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
export interface Component extends Json {
|
|
175
|
-
name: string;
|
|
176
|
-
hosting?: string;
|
|
177
|
-
code?: string;
|
|
178
|
-
deployType?: "folder" | "zip";
|
|
179
|
-
language?: string;
|
|
180
|
-
folder?: string;
|
|
181
|
-
artifactFolder?: string;
|
|
182
|
-
build?: boolean;
|
|
183
|
-
provision?: boolean;
|
|
184
|
-
deploy?: boolean;
|
|
185
|
-
connections?: string[];
|
|
186
|
-
sso?: boolean;
|
|
187
|
-
}
|
|
188
|
-
export interface ProjectSettingsV3 extends ProjectSettings {
|
|
189
|
-
components: Component[];
|
|
190
|
-
}
|
|
191
|
-
export interface ContextV3 extends Context {
|
|
192
|
-
manifestProvider: AppManifestProvider;
|
|
193
|
-
projectSetting: ProjectSettingsV3;
|
|
194
|
-
envInfo?: EnvInfoV3;
|
|
195
|
-
tokenProvider?: TokenProvider;
|
|
196
|
-
projectPath?: string;
|
|
197
|
-
templateVariables?: {
|
|
198
|
-
[key: string]: string;
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
export interface ResourceContextV3 extends ContextV3 {
|
|
202
|
-
envInfo: EnvInfoV3;
|
|
203
|
-
tokenProvider: TokenProvider;
|
|
204
|
-
}
|
|
78
|
+
export declare type InputsWithProjectPath = Inputs & {
|
|
79
|
+
projectPath: string;
|
|
80
|
+
};
|
|
81
|
+
export declare type DeepReadonly<T> = {
|
|
82
|
+
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
|
83
|
+
};
|
|
205
84
|
export declare type MaybePromise<T> = T | Promise<T>;
|
|
206
85
|
/**
|
|
207
86
|
* simplified tooling settings for v3
|
|
@@ -210,4 +89,25 @@ export interface Settings {
|
|
|
210
89
|
version: string;
|
|
211
90
|
trackingId: string;
|
|
212
91
|
}
|
|
92
|
+
export declare type ManifestCapability = {
|
|
93
|
+
name: "staticTab";
|
|
94
|
+
snippet?: IStaticTab;
|
|
95
|
+
existingApp?: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
name: "configurableTab";
|
|
98
|
+
snippet?: IConfigurableTab;
|
|
99
|
+
existingApp?: boolean;
|
|
100
|
+
} | {
|
|
101
|
+
name: "Bot";
|
|
102
|
+
snippet?: IBot;
|
|
103
|
+
existingApp?: boolean;
|
|
104
|
+
} | {
|
|
105
|
+
name: "MessageExtension";
|
|
106
|
+
snippet?: IComposeExtension;
|
|
107
|
+
existingApp?: boolean;
|
|
108
|
+
} | {
|
|
109
|
+
name: "WebApplicationInfo";
|
|
110
|
+
snippet?: IWebApplicationInfo;
|
|
111
|
+
existingApp?: boolean;
|
|
112
|
+
};
|
|
213
113
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],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AAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GACD;IACE,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC"}
|
package/build/types.js
CHANGED
|
@@ -2,102 +2,6 @@
|
|
|
2
2
|
// Licensed under the MIT license.
|
|
3
3
|
"use strict";
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.Void =
|
|
6
|
-
class ConfigMap extends Map {
|
|
7
|
-
getString(k, defaultValue) {
|
|
8
|
-
const v = super.get(k);
|
|
9
|
-
if (!v)
|
|
10
|
-
return defaultValue;
|
|
11
|
-
return String(v);
|
|
12
|
-
}
|
|
13
|
-
getBoolean(k, defaultValue) {
|
|
14
|
-
const v = super.get(k);
|
|
15
|
-
if (!v)
|
|
16
|
-
return defaultValue;
|
|
17
|
-
return Boolean(v);
|
|
18
|
-
}
|
|
19
|
-
getNumber(k, defaultValue) {
|
|
20
|
-
const v = super.get(k);
|
|
21
|
-
if (!v)
|
|
22
|
-
return defaultValue;
|
|
23
|
-
return Number(v);
|
|
24
|
-
}
|
|
25
|
-
getStringArray(k, defaultValue) {
|
|
26
|
-
const v = super.get(k);
|
|
27
|
-
if (!v)
|
|
28
|
-
return defaultValue;
|
|
29
|
-
return v;
|
|
30
|
-
}
|
|
31
|
-
getNumberArray(k, defaultValue) {
|
|
32
|
-
const v = super.get(k);
|
|
33
|
-
if (!v)
|
|
34
|
-
return defaultValue;
|
|
35
|
-
return v;
|
|
36
|
-
}
|
|
37
|
-
getBooleanArray(k, defaultValue) {
|
|
38
|
-
const v = super.get(k);
|
|
39
|
-
if (!v)
|
|
40
|
-
return defaultValue;
|
|
41
|
-
return v;
|
|
42
|
-
}
|
|
43
|
-
getOptionItem(k, defaultValue) {
|
|
44
|
-
const v = super.get(k);
|
|
45
|
-
if (!v)
|
|
46
|
-
return defaultValue;
|
|
47
|
-
if (v instanceof ConfigMap) {
|
|
48
|
-
return v.toJSON();
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return v;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
getOptionItemArray(k, defaultValue) {
|
|
55
|
-
const v = super.get(k);
|
|
56
|
-
if (!v)
|
|
57
|
-
return defaultValue;
|
|
58
|
-
return v;
|
|
59
|
-
}
|
|
60
|
-
toJSON() {
|
|
61
|
-
const out = {};
|
|
62
|
-
for (const entry of super.entries()) {
|
|
63
|
-
if (entry[1] instanceof ConfigMap) {
|
|
64
|
-
out[entry[0]] = entry[1].toJSON();
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
out[entry[0]] = entry[1];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return out;
|
|
71
|
-
}
|
|
72
|
-
static fromJSON(obj) {
|
|
73
|
-
if (!obj)
|
|
74
|
-
return undefined;
|
|
75
|
-
const map = new ConfigMap();
|
|
76
|
-
for (const entry of Object.entries(obj)) {
|
|
77
|
-
if (typeof entry[1] !== "object") {
|
|
78
|
-
map.set(entry[0], entry[1]);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
map.set(entry[0], this.fromJSON(entry[1]));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return map;
|
|
85
|
-
}
|
|
86
|
-
constructor(entries) {
|
|
87
|
-
super(entries);
|
|
88
|
-
Object.setPrototypeOf(this, ConfigMap.prototype);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.ConfigMap = ConfigMap;
|
|
92
|
-
function mergeConfigMap(lhs, rhs) {
|
|
93
|
-
if (!lhs) {
|
|
94
|
-
return rhs;
|
|
95
|
-
}
|
|
96
|
-
if (!rhs) {
|
|
97
|
-
return lhs;
|
|
98
|
-
}
|
|
99
|
-
return new ConfigMap([...lhs.entries(), ...rhs.entries()]);
|
|
100
|
-
}
|
|
101
|
-
exports.mergeConfigMap = mergeConfigMap;
|
|
5
|
+
exports.Void = void 0;
|
|
102
6
|
exports.Void = {};
|
|
103
7
|
//# sourceMappingURL=types.js.map
|
package/build/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAwDA,QAAA,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/utils/telemetry.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/utils/telemetry.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;OAMG;IACH,kBAAkB,CAChB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI,CAAC;IAER;;;;;;OAMG;IACH,uBAAuB,CACrB,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACxC,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,IAAI,CAAC;IAER;;;;;OAKG;IACH,sBAAsB,CACpB,KAAK,EAAE,KAAK,EACZ,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACtC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GACvC,IAAI,CAAC;CACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-api",
|
|
3
|
-
"version": "0.22.4-alpha.
|
|
3
|
+
"version": "0.22.4-alpha.d7c19ebcf.0",
|
|
4
4
|
"description": "teamsfx framework api",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@istanbuljs/nyc-config-typescript": "^1.0.1",
|
|
32
32
|
"@microsoft/api-documenter": "^7.15.3",
|
|
33
33
|
"@microsoft/api-extractor": "^7.18.4",
|
|
34
|
-
"@microsoft/eslint-plugin-teamsfx": "0.0.4-alpha.
|
|
34
|
+
"@microsoft/eslint-plugin-teamsfx": "0.0.4-alpha.d7c19ebcf.0",
|
|
35
35
|
"@types/chai": "^4.2.14",
|
|
36
36
|
"@types/chai-as-promised": "^7.1.3",
|
|
37
37
|
"@types/chai-spies": "^1.0.3",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@azure/core-auth": "^1.4.0",
|
|
64
|
-
"@microsoft/teams-manifest": "0.1.1-alpha.
|
|
64
|
+
"@microsoft/teams-manifest": "0.1.1-alpha.d7c19ebcf.0",
|
|
65
65
|
"axios": "^0.21.2",
|
|
66
66
|
"chai": "^4.3.4",
|
|
67
67
|
"jsonschema": "^1.4.0",
|
|
68
68
|
"neverthrow": "^3.2.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "c35065d8ef4f6d153a64407a3bd2f9c931552c2c",
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|
package/build/action.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { Result } from "neverthrow";
|
|
2
|
-
import { Bicep } from "./bicep";
|
|
3
|
-
import { FxError } from "./error";
|
|
4
|
-
import { IProgressHandler } from "./qm";
|
|
5
|
-
import { QTreeNode } from "./qm/question";
|
|
6
|
-
import { Json, ContextV3, MaybePromise } from "./types";
|
|
7
|
-
import { InputsWithProjectPath } from "./v2/types";
|
|
8
|
-
/**
|
|
9
|
-
* Action is the basic concept to finish some lifecycle operation (create, provision, deploy, ...)
|
|
10
|
-
* Action can be named action or anonymous action: named actions can be called by other actions, anonymous actions can not be called by other actions
|
|
11
|
-
* An action can have the following types:
|
|
12
|
-
* 1. shell - execute a shell script
|
|
13
|
-
* 2. call - call an existing action
|
|
14
|
-
* 3. function - run a javascript function
|
|
15
|
-
* 4. group - a group of actions that can be executed in parallel or in sequence
|
|
16
|
-
*/
|
|
17
|
-
export interface ActionBase {
|
|
18
|
-
name?: string;
|
|
19
|
-
type: "group" | "shell" | "call" | "function";
|
|
20
|
-
inputs?: Json;
|
|
21
|
-
/**
|
|
22
|
-
* condition function to tell whether the action should be executed or not
|
|
23
|
-
* if return true: yes
|
|
24
|
-
* if return false: skip this node and all sub nodes
|
|
25
|
-
* if condition is undefined, default behavior is yes
|
|
26
|
-
*/
|
|
27
|
-
condition?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<boolean, FxError>>;
|
|
28
|
-
plan?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<Effect[], FxError>>;
|
|
29
|
-
question?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<QTreeNode | undefined, FxError>>;
|
|
30
|
-
pre?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<undefined, FxError>>;
|
|
31
|
-
post?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<undefined, FxError>>;
|
|
32
|
-
exception?: (context: ContextV3, inputs: InputsWithProjectPath) => MaybePromise<Result<undefined, FxError>>;
|
|
33
|
-
}
|
|
34
|
-
export declare type Action = GroupAction | ShellAction | CallAction | FunctionAction;
|
|
35
|
-
/**
|
|
36
|
-
* group action: group action make it possible to leverage multiple sub-actions to accomplishment more complex task
|
|
37
|
-
*/
|
|
38
|
-
export interface GroupAction extends ActionBase {
|
|
39
|
-
type: "group";
|
|
40
|
-
/**
|
|
41
|
-
* execution mode, in sequence or in parallel, if undefined, default is sequential
|
|
42
|
-
*/
|
|
43
|
-
mode?: "sequential" | "parallel";
|
|
44
|
-
actions: Action[];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* shell action: execute a shell script
|
|
48
|
-
*/
|
|
49
|
-
export interface ShellAction extends ActionBase {
|
|
50
|
-
type: "shell";
|
|
51
|
-
description: string;
|
|
52
|
-
command: string;
|
|
53
|
-
cwd?: string;
|
|
54
|
-
async?: boolean;
|
|
55
|
-
captureStdout?: boolean;
|
|
56
|
-
captureStderr?: boolean;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* call action: call an existing action (defined locally or in other package)
|
|
60
|
-
*/
|
|
61
|
-
export interface CallAction extends ActionBase {
|
|
62
|
-
type: "call";
|
|
63
|
-
required: boolean;
|
|
64
|
-
targetAction: string;
|
|
65
|
-
}
|
|
66
|
-
export declare type ErrorHandler = (error: any, telemetryProps: Record<string, string>) => FxError;
|
|
67
|
-
/**
|
|
68
|
-
* function action: run a javascript function call that can do any kinds of work
|
|
69
|
-
*/
|
|
70
|
-
export interface FunctionAction extends ActionBase {
|
|
71
|
-
name: string;
|
|
72
|
-
type: "function";
|
|
73
|
-
errorSource?: string;
|
|
74
|
-
errorHelpLink?: string;
|
|
75
|
-
errorIssueLink?: string;
|
|
76
|
-
errorHandler?: ErrorHandler;
|
|
77
|
-
enableTelemetry?: boolean;
|
|
78
|
-
telemetryComponentName?: string;
|
|
79
|
-
telemetryEventName?: string;
|
|
80
|
-
telemetryProps?: Record<string, string>;
|
|
81
|
-
enableProgressBar?: boolean;
|
|
82
|
-
progressTitle?: string;
|
|
83
|
-
progressSteps?: number;
|
|
84
|
-
/**
|
|
85
|
-
* function body is a function that takes some context and inputs as parameter
|
|
86
|
-
*/
|
|
87
|
-
execute: (context: ContextV3, inputs: InputsWithProjectPath, progress?: IProgressHandler, telemetryProps?: Record<string, string>) => MaybePromise<Result<Effect[], FxError>>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* create: create a new file if it does not exist; skip if it already exists
|
|
91
|
-
* replace: create a new file if it does not exist; replace the file with new content if it already exists
|
|
92
|
-
* append: create a new file with the content if it does not exist; append the content to the end of the file if it already exists
|
|
93
|
-
* delete: delete the file if it exists; skip if it does not exist;
|
|
94
|
-
*/
|
|
95
|
-
export declare type FileOperation = "create" | "replace" | "append" | "delete" | "skipCreate" | "skipReplace";
|
|
96
|
-
export interface FileEffect {
|
|
97
|
-
type: "file";
|
|
98
|
-
filePath: string | string[];
|
|
99
|
-
operate: FileOperation;
|
|
100
|
-
remarks?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface CallServiceEffect {
|
|
103
|
-
type: "service";
|
|
104
|
-
name: string;
|
|
105
|
-
remarks?: string;
|
|
106
|
-
response?: string;
|
|
107
|
-
}
|
|
108
|
-
export declare type Effect = string | FileEffect | CallServiceEffect | Bicep | ShellAction;
|
|
109
|
-
//# sourceMappingURL=action.d.ts.map
|
package/build/action.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OA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;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,CACP,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,qBAAqB,EAC7B,QAAQ,CAAC,EAAE,gBAAgB,EAC3B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACpC,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;CAC9C;AAED;;;;;GAKG;AACH,oBAAY,aAAa,GACrB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,aAAa,CAAC;AAElB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,oBAAY,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,KAAK,GAAG,WAAW,CAAC"}
|
package/build/action.js
DELETED
package/build/action.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../src/action.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
|
package/build/bicep.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface ProvisionBicep {
|
|
2
|
-
Orchestration?: string;
|
|
3
|
-
Modules?: {
|
|
4
|
-
[moduleFileName: string]: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface ConfigurationBicep {
|
|
8
|
-
Orchestration?: string;
|
|
9
|
-
Modules?: {
|
|
10
|
-
[moduleFileName: string]: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface Bicep {
|
|
14
|
-
type: "bicep";
|
|
15
|
-
Provision?: ProvisionBicep;
|
|
16
|
-
Configuration?: ConfigurationBicep;
|
|
17
|
-
Parameters?: Record<string, string>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=bicep.d.ts.map
|
package/build/bicep.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bicep.d.ts","sourceRoot":"","sources":["../src/bicep.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAI7B,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,OAAO,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAChD;AAED,MAAM,WAAW,kBAAkB;IAIjC,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,OAAO,CAAC,EAAE;QAAE,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAChD;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,aAAa,CAAC,EAAE,kBAAkB,CAAC;IAKnC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC"}
|
package/build/bicep.js
DELETED
package/build/bicep.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bicep.js","sourceRoot":"","sources":["../src/bicep.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
|
package/build/component.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Result } from "neverthrow";
|
|
2
|
-
import { FxError } from "./error";
|
|
3
|
-
import { InputsWithProjectPath } from "./v2/types";
|
|
4
|
-
import { ContextV3, ResourceContextV3 } from "./types";
|
|
5
|
-
import { Bicep } from "./bicep";
|
|
6
|
-
import { IProgressHandler } from "./qm";
|
|
7
|
-
export { InputsWithProjectPath };
|
|
8
|
-
export interface ResourceOutput {
|
|
9
|
-
key: string;
|
|
10
|
-
bicepVariable?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ResourceOutputs {
|
|
13
|
-
[k: string]: ResourceOutput;
|
|
14
|
-
}
|
|
15
|
-
export interface CloudResource {
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly description?: string;
|
|
18
|
-
readonly outputs: ResourceOutputs;
|
|
19
|
-
readonly finalOutputKeys: string[];
|
|
20
|
-
readonly secretKeys?: string[];
|
|
21
|
-
generateBicep?: (context: ContextV3, inputs: InputsWithProjectPath, actionContext?: ActionContext) => Promise<Result<Bicep[], FxError>>;
|
|
22
|
-
provision?: (context: ResourceContextV3, inputs: InputsWithProjectPath, actionContext?: ActionContext) => Promise<Result<undefined, FxError>>;
|
|
23
|
-
configure?: (context: ResourceContextV3, inputs: InputsWithProjectPath, actionContext?: ActionContext) => Promise<Result<undefined, FxError>>;
|
|
24
|
-
deploy?: (context: ResourceContextV3, inputs: InputsWithProjectPath, actionContext?: ActionContext) => Promise<Result<undefined, FxError>>;
|
|
25
|
-
}
|
|
26
|
-
export interface ActionContext {
|
|
27
|
-
progressBar?: IProgressHandler;
|
|
28
|
-
telemetryProps?: Record<string, string>;
|
|
29
|
-
telemetryMeasures?: Record<string, number>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=component.d.ts.map
|
package/build/component.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/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,qBAAqB,EAC7B,aAAa,CAAC,EAAE,aAAa,KAC1B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACzC,MAAM,CAAC,EAAE,CACP,OAAO,EAAE,iBAAiB,EAC1B,MAAM,EAAE,qBAAqB,EAC7B,aAAa,CAAC,EAAE,aAAa,KAC1B,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;CAC1C;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC5C"}
|
package/build/component.js
DELETED
package/build/component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":""}
|
package/build/core.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Result } from "neverthrow";
|
|
2
|
-
import { CoreCallbackEvent, Stage } from "./constants";
|
|
3
|
-
import { FxError } from "./error";
|
|
4
|
-
import { Func, FunctionRouter, QTreeNode } from "./qm";
|
|
5
|
-
import { Inputs, Void } from "./types";
|
|
6
|
-
export declare type CoreCallbackFunc = (name: string, err?: FxError, data?: any) => void;
|
|
7
|
-
export interface Core {
|
|
8
|
-
version?: string;
|
|
9
|
-
createProject: (inputs: Inputs) => Promise<Result<string, FxError>>;
|
|
10
|
-
provisionResources: (inputs: Inputs) => Promise<Result<Void, FxError>>;
|
|
11
|
-
deployArtifacts: (inputs: Inputs) => Promise<Result<Void, FxError>>;
|
|
12
|
-
localDebug: (inputs: Inputs) => Promise<Result<Void, FxError>>;
|
|
13
|
-
publishApplication: (inputs: Inputs) => Promise<Result<Void, FxError>>;
|
|
14
|
-
executeUserTask: (func: Func, inputs: Inputs) => Promise<Result<unknown, FxError>>;
|
|
15
|
-
createEnv: (inputs: Inputs) => Promise<Result<Void, FxError>>;
|
|
16
|
-
activateEnv: (inputs: Inputs) => Promise<Result<Void, FxError>>;
|
|
17
|
-
/**
|
|
18
|
-
* only for CLI
|
|
19
|
-
*/
|
|
20
|
-
getQuestions: (task: Stage, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
|
|
21
|
-
getQuestionsForUserTask?: (router: FunctionRouter, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
|
|
22
|
-
/**
|
|
23
|
-
* Used for encryption of secrets in user data file
|
|
24
|
-
*/
|
|
25
|
-
encrypt: (plaintext: string, inputs: Inputs) => Promise<Result<string, FxError>>;
|
|
26
|
-
decrypt: (ciphertext: string, inputs: Inputs) => Promise<Result<string, FxError>>;
|
|
27
|
-
/**
|
|
28
|
-
* For grant and check permission in remote collaboration
|
|
29
|
-
*/
|
|
30
|
-
grantPermission: (inputs: Inputs) => Promise<Result<any, FxError>>;
|
|
31
|
-
checkPermission: (inputs: Inputs) => Promise<Result<any, FxError>>;
|
|
32
|
-
listCollaborator: (inputs: Inputs) => Promise<Result<any, FxError>>;
|
|
33
|
-
/**
|
|
34
|
-
* This callback type is called `onEventCallback` and is displayed as a global symbol.
|
|
35
|
-
* @callback onEventCallback
|
|
36
|
-
*
|
|
37
|
-
* @param {FxError=} err - Exist if panic.
|
|
38
|
-
* @param {any=} data - If there's any necessary data to deliver.
|
|
39
|
-
*/
|
|
40
|
-
/**
|
|
41
|
-
* In some cases, users are gonna get notified on specific event.
|
|
42
|
-
* For example, core will set a mutex to guarantee only on process
|
|
43
|
-
* is running at the same time.
|
|
44
|
-
*
|
|
45
|
-
* @param {CoreCallbackEvent=} event - predefined event, like "lock", "unlock"
|
|
46
|
-
* @param {CoreCallbackFunc=} callback - The callback that handles the response.
|
|
47
|
-
*/
|
|
48
|
-
on: (event: CoreCallbackEvent, callback: CoreCallbackFunc) => void;
|
|
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