@microsoft/teamsfx-api 0.22.3 → 0.22.4-alpha.0237b70e3.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.
Files changed (111) hide show
  1. package/build/constants.d.ts +2 -11
  2. package/build/constants.d.ts.map +1 -1
  3. package/build/constants.js +2 -11
  4. package/build/constants.js.map +1 -1
  5. package/build/context.d.ts +9 -28
  6. package/build/context.d.ts.map +1 -1
  7. package/build/error.d.ts +4 -47
  8. package/build/error.d.ts.map +1 -1
  9. package/build/error.js +9 -139
  10. package/build/error.js.map +1 -1
  11. package/build/index.d.ts +4 -16
  12. package/build/index.d.ts.map +1 -1
  13. package/build/index.js +4 -17
  14. package/build/index.js.map +1 -1
  15. package/build/qm/index.d.ts +0 -1
  16. package/build/qm/index.d.ts.map +1 -1
  17. package/build/qm/index.js +0 -1
  18. package/build/qm/index.js.map +1 -1
  19. package/build/qm/question.d.ts +54 -7
  20. package/build/qm/question.d.ts.map +1 -1
  21. package/build/qm/question.js.map +1 -1
  22. package/build/qm/ui.d.ts +66 -92
  23. package/build/qm/ui.d.ts.map +1 -1
  24. package/build/qm/ui.js +0 -86
  25. package/build/qm/ui.js.map +1 -1
  26. package/build/qm/validation.d.ts +6 -1
  27. package/build/qm/validation.d.ts.map +1 -1
  28. package/build/qm/validation.js +11 -0
  29. package/build/qm/validation.js.map +1 -1
  30. package/build/types.d.ts +58 -130
  31. package/build/types.d.ts.map +1 -1
  32. package/build/types.js +8 -97
  33. package/build/types.js.map +1 -1
  34. package/build/utils/telemetry.d.ts.map +1 -1
  35. package/package.json +5 -4
  36. package/build/action.d.ts +0 -109
  37. package/build/action.d.ts.map +0 -1
  38. package/build/action.js +0 -5
  39. package/build/action.js.map +0 -1
  40. package/build/bicep.d.ts +0 -19
  41. package/build/bicep.d.ts.map +0 -1
  42. package/build/bicep.js +0 -5
  43. package/build/bicep.js.map +0 -1
  44. package/build/component.d.ts +0 -31
  45. package/build/component.d.ts.map +0 -1
  46. package/build/component.js +0 -3
  47. package/build/component.js.map +0 -1
  48. package/build/core.d.ts +0 -50
  49. package/build/core.d.ts.map +0 -1
  50. package/build/core.js +0 -5
  51. package/build/core.js.map +0 -1
  52. package/build/plugin.d.ts +0 -71
  53. package/build/plugin.d.ts.map +0 -1
  54. package/build/plugin.js +0 -5
  55. package/build/plugin.js.map +0 -1
  56. package/build/qm/visitor.d.ts +0 -15
  57. package/build/qm/visitor.d.ts.map +0 -1
  58. package/build/qm/visitor.js +0 -388
  59. package/build/qm/visitor.js.map +0 -1
  60. package/build/solution.d.ts +0 -29
  61. package/build/solution.d.ts.map +0 -1
  62. package/build/solution.js +0 -5
  63. package/build/solution.js.map +0 -1
  64. package/build/v2/index.d.ts +0 -4
  65. package/build/v2/index.d.ts.map +0 -1
  66. package/build/v2/index.js +0 -9
  67. package/build/v2/index.js.map +0 -1
  68. package/build/v2/resourcePlugin.d.ts +0 -180
  69. package/build/v2/resourcePlugin.d.ts.map +0 -1
  70. package/build/v2/resourcePlugin.js +0 -5
  71. package/build/v2/resourcePlugin.js.map +0 -1
  72. package/build/v2/solutionPlugin.d.ts +0 -100
  73. package/build/v2/solutionPlugin.d.ts.map +0 -1
  74. package/build/v2/solutionPlugin.js +0 -5
  75. package/build/v2/solutionPlugin.js.map +0 -1
  76. package/build/v2/types.d.ts +0 -67
  77. package/build/v2/types.d.ts.map +0 -1
  78. package/build/v2/types.js +0 -28
  79. package/build/v2/types.js.map +0 -1
  80. package/build/v3/AzureResourceStates.d.ts +0 -58
  81. package/build/v3/AzureResourceStates.d.ts.map +0 -1
  82. package/build/v3/AzureResourceStates.js +0 -3
  83. package/build/v3/AzureResourceStates.js.map +0 -1
  84. package/build/v3/core.d.ts +0 -22
  85. package/build/v3/core.d.ts.map +0 -1
  86. package/build/v3/core.js +0 -5
  87. package/build/v3/core.js.map +0 -1
  88. package/build/v3/index.d.ts +0 -7
  89. package/build/v3/index.d.ts.map +0 -1
  90. package/build/v3/index.js +0 -12
  91. package/build/v3/index.js.map +0 -1
  92. package/build/v3/plugins.d.ts +0 -104
  93. package/build/v3/plugins.d.ts.map +0 -1
  94. package/build/v3/plugins.js +0 -5
  95. package/build/v3/plugins.js.map +0 -1
  96. package/build/v3/resourceStates.d.ts +0 -66
  97. package/build/v3/resourceStates.d.ts.map +0 -1
  98. package/build/v3/resourceStates.js +0 -5
  99. package/build/v3/resourceStates.js.map +0 -1
  100. package/build/v3/solution.d.ts +0 -40
  101. package/build/v3/solution.d.ts.map +0 -1
  102. package/build/v3/solution.js +0 -5
  103. package/build/v3/solution.js.map +0 -1
  104. package/build/v3/types.d.ts +0 -28
  105. package/build/v3/types.d.ts.map +0 -1
  106. package/build/v3/types.js +0 -5
  107. package/build/v3/types.js.map +0 -1
  108. package/build/vscode.d.ts +0 -22
  109. package/build/vscode.d.ts.map +0 -1
  110. package/build/vscode.js +0 -5
  111. package/build/vscode.js.map +0 -1
package/build/v2/index.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- const tslib_1 = require("tslib");
6
- tslib_1.__exportStar(require("./resourcePlugin"), exports);
7
- tslib_1.__exportStar(require("./solutionPlugin"), exports);
8
- tslib_1.__exportStar(require("./types"), exports);
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v2/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,2DAAiC;AACjC,2DAAiC;AACjC,kDAAwB"}
@@ -1,180 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { FxError } from "../error";
3
- import { Func, QTreeNode } from "../qm/question";
4
- import { ProjectSettings, Inputs, Json, Void } from "../types";
5
- import { M365TokenProvider, TokenProvider } from "../utils";
6
- import { Context, DeepReadonly, DeploymentInputs, EnvInfoV2, InputsWithProjectPath, ProvisionInputs } from "./types";
7
- export declare type ResourceTemplate = BicepTemplate | JsonTemplate;
8
- export declare type JsonTemplate = {
9
- kind: "json";
10
- template: Json;
11
- };
12
- export declare type BicepTemplate = {
13
- kind: "bicep";
14
- template: Record<string, unknown>;
15
- };
16
- export declare type ResourceProvisionOutput = {
17
- output: Json;
18
- secrets: Json;
19
- };
20
- /**
21
- * Interface for ResourcePlugins. a ResourcePlugin can hook into Toolkit's
22
- * lifecycles by implementing the corresponding API.
23
- * Implementation of all lifecycles is expected to be idempotent. The return values
24
- * and observable side effects of each lifecycle are expected to be the same with the same input.
25
- *
26
- * All lifecycles follow the same pattern of returning a Promise<Result<T, FxError>>.
27
- * Please return {@link UserError} or {@link SystemError} when error happens
28
- * instead of throwing.
29
- */
30
- export interface ResourcePlugin {
31
- name: string;
32
- displayName: string;
33
- /**
34
- * A resource plugin can decide whether it needs to be activated when the Toolkit initializes
35
- * based on project settings.
36
- *
37
- * @param projectSettings project settings
38
- *
39
- * @returns whether to be activated
40
- */
41
- activate(projectSettings: ProjectSettings): boolean;
42
- /**
43
- * Called by Toolkit when creating a new project or adding a new resource.
44
- * A resource plugin is expected to scaffold source code or files on disk, relative to context.projectPath.
45
- *
46
- * @example
47
- * ```
48
- * scaffoldSourceCode(ctx: Context, inputs: Inputs) {
49
- * const fs = require("fs-extra");
50
- * let content = "let x = 1;"
51
- * let path = path.join(ctx.projectPath, "myFolder");
52
- * let sourcePath = "somePathhere";
53
- * let result = await fs.copy(sourcePath, content);
54
- * return ok(Void);
55
- * }
56
- * ```
57
- *
58
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
59
- * @param {Inputs} inputs - User answers to questions defined in {@link getQuestionsForScaffolding} along with some system inputs.
60
- *
61
- * @returns Void because side effect is expected.
62
- */
63
- scaffoldSourceCode?: (ctx: Context, inputs: Inputs) => Promise<Result<Void, FxError>>;
64
- /**
65
- * This method is called when creating a new project or adding a new resource.
66
- * A resource plugin is expected to return a resource template(e.g. Bicep templates/plain JSON) which will be persisted
67
- * by the Toolkit and will be used to provision resource when Provision command is called.
68
- *
69
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
70
- * @param {Inputs} inputs - User's answers to questions defined in {@link getQuestionsForScaffolding} along with some system inputs.
71
- *
72
- * @return {@link ResourceTemplate} return ARM template for solution to combine.
73
- */
74
- generateResourceTemplate?: (ctx: Context, inputs: Inputs & {
75
- existingResources: string[];
76
- }) => Promise<Result<ResourceTemplate, FxError>>;
77
- updateResourceTemplate?: (ctx: Context, inputs: Inputs & {
78
- existingResources: string[];
79
- }) => Promise<Result<ResourceTemplate, FxError>>;
80
- /**
81
- * provisionResource() runs before ARM/Bicep provision when Provision command is called.
82
- * There are two reasons why a resource needs to implement this method:
83
- * 1) to generate input for ARM/Bicep provision to consume.
84
- * 2) the resource can't be provisioned using resource templates like ARM/Bicep.
85
- * Two typical resources that need to implement this method are AAD(Azure Active Directory)
86
- * and AppSudio, which statisfy both above criteria.
87
- *
88
- * A plugin can get access tokens to cloud service using TokenProvider.
89
- *
90
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
91
- * @param {ProvisionInputs} inputs - inputs injected by Toolkit runtime and solution.
92
- * @param {EnvInfoV2} envInfo - a reference of environment info modeled after (config|state).${env}.json
93
- * @param {TokenProvider} tokenProvider - Tokens for Azure and AppStudio
94
- * @returns Void because side effect is expected.
95
- */
96
- provisionResource?: (ctx: Context, inputs: ProvisionInputs, envInfo: EnvInfoV2, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
97
- /**
98
- * configureResource() is guaranteed to run after Bicep/ARM provision.
99
- * Plugins are expected to read the provision output of other plugins via envInfo's state,
100
- * and return a new copy of its own provision output possibly with added and modified fields.
101
- *
102
- * Plugins can also sync their settings to the clould using access tokens provided by TokenProvider
103
- *
104
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
105
- * @param {ProvisionInputs} inputs - inputs injected by Toolkit runtime and solution.
106
- * @param {EnvInfoV2} envInfo - a reference of environment info modeled after (config|state).${env}.json
107
- * @param {TokenProvider} tokenProvider - Tokens for Azure and AppStudio
108
- * @returns Void because side effect is expected.
109
- */
110
- configureResource?: (ctx: Context, inputs: ProvisionInputs, envInfo: EnvInfoV2, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
111
- /**
112
- * Depends on the provision output values returned by {@link provisionResource}, ARM/Bicep provision
113
- * and {@link configureResource}.
114
- * Plugins are expected to deploy code to cloud using access tokens provided by {@link TokenProvider}.
115
- *
116
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
117
- * @param {DeploymentInputs} inputs - inputs injected by Toolkit runtime and solution.
118
- * @param {DeepReadonly<EnvInfoV2>} envInfo - a readonly view of environment info modeled after (config|state).${env}.json
119
- * @param {TokenProvider} tokenProvider - Token provider for Azure, AppStudio and m365
120
- * @returns Void because side effect is expected.
121
- */
122
- deploy?: (ctx: Context, inputs: DeploymentInputs, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
123
- /**
124
- * Depends on the output of {@link package}. Uploads Teams package to AppStudio
125
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
126
- * @param {Inputs} inputs - system inputs.
127
- * @param {DeepReadonly<EnvInfoV2>} envInfo - a readonly view of environment info modeled after (config|state).${env}.json
128
- * @param {M365TokenProvider} tokenProvider - Token for M365
129
- *
130
- * @returns Void because side effect is expected.
131
- */
132
- publishApplication?: (ctx: Context, inputs: Inputs, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: M365TokenProvider) => Promise<Result<Void, FxError>>;
133
- /**
134
- * provisionLocalResource is a special lifecycle, called when users press F5 in vscode.
135
- * It works like provision, but only creates necessary cloud resources for local debugging like AAD and AppStudio App.
136
- *
137
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
138
- * @param {Inputs} inputs - system inputs.
139
- * @param {Json} localSettings - local debug settings generated by {@link provisionLocalResource}
140
- * @param {TokenProvider} tokenProvider - Tokens for Azure and AppStudio
141
- * @param {EnvInfoV2} envInfo - a reference of environment info modeled after (config|state).${env}.json
142
- *
143
- * @returns Void because side effect is expected.
144
- */
145
- provisionLocalResource?: (ctx: Context, inputs: Inputs, localSettings: Json, tokenProvider: TokenProvider, envInfo?: EnvInfoV2) => Promise<Result<Void, FxError>>;
146
- /**
147
- * configureLocalResource works like {@link configureResource} but only for local debugging resources.
148
- * Plugins are expected to read the local provision output values of other plugins, and modify in-place
149
- *
150
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
151
- * @param {Json} localSettings - local debug settings generated by {@link scaffoldSourceCode}
152
- * @param {TokenProvider} tokenProvider - Tokens for Azure and AppStudio
153
- * @param {EnvInfoV2} envInfo - a reference of environment info modeled after (config|state).${env}.json
154
- *
155
- * @returns Void because side effect is expected.
156
- */
157
- configureLocalResource?: (ctx: Context, inputs: Inputs, localSettings: Json, tokenProvider: TokenProvider, envInfo?: EnvInfoV2) => Promise<Result<Void, FxError>>;
158
- /**
159
- * Plugins that need to collect user input are expected to implement this method.
160
- * Questions are organized as a tree. Please see {@link QTreeNode}.
161
- *
162
- * getQuestionsForScaffolding() is guaranteed to be called before scaffoldSourceCode().
163
- *
164
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
165
- * @param {Inputs} inputs - system inputs.
166
- *
167
- * @returns question tree.
168
- */
169
- getQuestionsForScaffolding?: (ctx: Context, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
170
- executeUserTask?: (ctx: Context, inputs: Inputs, func: Func, localSettings: Json, envInfo: EnvInfoV2, tokenProvider: TokenProvider) => Promise<Result<unknown, FxError>>;
171
- getQuestions?: (ctx: Context, inputs: Inputs, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
172
- getQuestionsForUserTask?: (ctx: Context, inputs: Inputs, func: Func, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
173
- /**
174
- * For grant and check permission in remote collaboration
175
- */
176
- grantPermission?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider, userInfo: Json) => Promise<Result<Json, FxError>>;
177
- checkPermission?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider, userInfo: Json) => Promise<Result<Json, FxError>>;
178
- listCollaborator?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider, userInfo: Json) => Promise<Result<Json, FxError>>;
179
- }
180
- //# sourceMappingURL=resourcePlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourcePlugin.d.ts","sourceRoot":"","sources":["../../src/v2/resourcePlugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC5D,OAAO,EACL,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,qBAAqB,EACrB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,oBAAY,gBAAgB,GAAG,aAAa,GAAG,YAAY,CAAC;AAE5D,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC1B,IAAI,EAAE,OAAO,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAEF,oBAAY,uBAAuB,GAAG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aAAa,EAC5B,QAAQ,EAAE,IAAI,KACX,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;CACrC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=resourcePlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourcePlugin.js","sourceRoot":"","sources":["../../src/v2/resourcePlugin.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -1,100 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { DeepReadonly, InputsWithProjectPath, ResourceProvisionOutput } from ".";
3
- import { M365TokenProvider, Func, FxError, Inputs, QTreeNode, TokenProvider, Void } from "../index";
4
- import { Json } from "../types";
5
- import { Context, EnvInfoV2, FxResult } from "./types";
6
- export declare type SolutionProvisionOutput = Record<string, ResourceProvisionOutput>;
7
- export interface SolutionPlugin {
8
- name: string;
9
- displayName: string;
10
- /**
11
- * Called by Toolkit when creating a new project or adding a new resource.
12
- * Scaffolds source code on disk, relative to context.projectPath.
13
- *
14
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
15
- * @param {Inputs} inputs - User answers to questions defined in {@link getQuestionsForScaffolding} along with some system inputs.
16
- *
17
- * @returns scaffold return nothing in API, all source code are persist in FS.
18
- */
19
- scaffoldSourceCode: (ctx: Context, inputs: Inputs) => Promise<Result<Void, FxError>>;
20
- /**
21
- * Called when creating a new project or adding a new resource.
22
- * Returns resource templates (e.g. Bicep templates/plain JSON) for provisioning
23
- * based on the resource templates returned by resource plugins.
24
- *
25
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
26
- * @param {Inputs} inputs - User's answers to questions defined in {@link getQuestionsForLifecycleTask} for {@link Stage.create} along with some system inputs.
27
- * @param {Json} - model for config.${env}.json, which is created core, solution will fill in some keys in it, such as azure, manifest
28
- *
29
- * @return {Json} envConfig
30
- */
31
- generateResourceTemplate: (ctx: Context, inputs: Inputs) => Promise<Result<Json, FxError>>;
32
- /**
33
- * This method is called by the Toolkit when users run "Provision in the Cloud" command.
34
- * The implementation of solution is expected to do these operations in order:
35
- * 1) Call resource plugins' provisionResource.
36
- * 2) Run Bicep/ARM deployment returned by {@link generateResourceTemplate}.
37
- * 3) Call resource plugins' configureResource.
38
- *
39
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
40
- * @param {ProvisionInputs} inputs - system inputs
41
- * @param {EnvInfoV2} envInfo - model for config.${env}.json, in which, user can customize some inputs for provision
42
- * @param {TokenProvider} tokenProvider - Tokens for Azure and AppStudio
43
- */
44
- provisionResources: (ctx: Context, inputs: Inputs, envInfo: EnvInfoV2, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
45
- /**
46
- * Depends on the values returned by {@link provisionResources}.
47
- * Expected behavior is to deploy code to cloud using credentials provided by {@link AzureAccountProvider}.
48
- *
49
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
50
- * @param {Inputs} inputs - system inputs
51
- * @param {DeepReadonly<EnvInfoV2>} envInfo - a readonly view of environment info modeled after (config|state).${env}.json
52
- * @param {TokenProvider} tokenProvider - Token providers for Azure, AppStudio and m365.
53
- *
54
- */
55
- deploy?: (ctx: Context, inputs: Inputs, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<Void, FxError>>;
56
- /**
57
- * Depends on the output of {@link package}. Uploads Teams package to AppStudio
58
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
59
- * @param {Inputs} inputs - User answers to questions defined in {@link getQuestionsForLifecycleTask}
60
- * @param {DeepReadonly<EnvInfoV2>} envInfo - a readonly view to the current env
61
- * @param {M365TokenProvider} tokenProvider - Token for M365
62
- */
63
- publishApplication: (ctx: Context, inputs: Inputs, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: M365TokenProvider) => Promise<Result<Void, FxError>>;
64
- /**
65
- * provisionLocalResource is a special lifecycle, called when users press F5 in vscode.
66
- * It works like provision, but only creates necessary cloud resources for local debugging like AAD and AppStudio App.
67
- * Implementation of this lifecycle is expected to call each resource plugins' provisionLocalResource, and after all of
68
- * them finishes, call configureLocalResource of each plugin.
69
- *
70
- * @param {Context} ctx - plugin's runtime context shared by all lifecycles.
71
- * @param {Inputs} inputs - User answers to questions defined in {@link getQuestionsForLifecycleTask}
72
- * @param {Json} localSettings - JSON holding the output values for debugging
73
- * @param {TokenProvider} tokenProvider - Tokens for Azure and AppStudio
74
- *
75
- * @returns the output localSettings
76
- */
77
- provisionLocalResource?: (ctx: Context, inputs: Inputs, localSettings: Json, tokenProvider: TokenProvider, envInfo?: EnvInfoV2) => Promise<FxResult<Json, FxError>>;
78
- /**
79
- * get question model for lifecycle {@link Stage} (create), Questions are organized as a tree. Please check {@link QTreeNode}.
80
- */
81
- getQuestionsForScaffolding?: (ctx: Context, inputs: Inputs) => Promise<Result<QTreeNode | undefined, FxError>>;
82
- /**
83
- * execute user customized task, for example `Add Resource`, `Add Capabilities`, etc
84
- */
85
- executeUserTask?: (ctx: Context, inputs: Inputs, func: Func, localSettings: Json, envInfo: EnvInfoV2, tokenProvider: TokenProvider) => Promise<Result<unknown, FxError>>;
86
- /**
87
- * for env management
88
- */
89
- createEnv?: (ctx: Context, inputs: Inputs) => Promise<Result<Void, FxError>>;
90
- activateEnv?: (ctx: Context, inputs: Inputs) => Promise<Result<Void, FxError>>;
91
- /**
92
- * For grant and check permission in remote collaboration
93
- */
94
- grantPermission?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<Json, FxError>>;
95
- checkPermission?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<Json, FxError>>;
96
- listCollaborator?: (ctx: Context, inputs: InputsWithProjectPath, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<Json, FxError>>;
97
- getQuestions?: (ctx: Context, inputs: Inputs, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
98
- getQuestionsForUserTask?: (ctx: Context, inputs: Inputs, func: Func, envInfo: DeepReadonly<EnvInfoV2>, tokenProvider: TokenProvider) => Promise<Result<QTreeNode | undefined, FxError>>;
99
- }
100
- //# sourceMappingURL=solutionPlugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solutionPlugin.d.ts","sourceRoot":"","sources":["../../src/v2/solutionPlugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAErB,uBAAuB,EACxB,MAAM,GAAG,CAAC;AAGX,OAAO,EACL,iBAAiB,EAEjB,IAAI,EACJ,OAAO,EACP,MAAM,EACN,SAAS,EACT,aAAa,EACb,IAAI,EACL,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEvD,oBAAY,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAE9E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAErF;;;;;;;;;;OAUG;IACH,wBAAwB,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAA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AuB,CAAC,EAAE,CACxB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,aAAa,EAAE,aAAa,KACzB,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;CACtD"}
@@ -1,5 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=solutionPlugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solutionPlugin.js","sourceRoot":"","sources":["../../src/v2/solutionPlugin.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC"}
@@ -1,67 +0,0 @@
1
- import { UserInteraction } from "../qm/ui";
2
- import { Inputs, Json, ProjectSettings } from "../types";
3
- import { CryptoProvider, LogProvider, TelemetryReporter, PermissionRequestProvider, ExpServiceProvider } from "../utils";
4
- import { EnvInfo } from "../context";
5
- import { FxError } from "../error";
6
- export declare type PluginName = string;
7
- export interface Context {
8
- userInteraction: UserInteraction;
9
- logProvider: LogProvider;
10
- telemetryReporter: TelemetryReporter;
11
- cryptoProvider: CryptoProvider;
12
- projectSetting: ProjectSettings;
13
- permissionRequestProvider?: PermissionRequestProvider;
14
- expServiceProvider?: ExpServiceProvider;
15
- }
16
- export interface LocalSettings extends Json {
17
- teamsApp: Record<string, string>;
18
- auth?: Record<string, string>;
19
- frontend?: Record<string, string>;
20
- backend?: Record<string, string>;
21
- bot?: Record<string, string>;
22
- }
23
- export declare type LocalSetting = {
24
- key: keyof LocalSettings;
25
- value: Record<string, string>;
26
- };
27
- export declare type SolutionInputs = {
28
- resourceNameSuffix: string;
29
- resourceGroupName: string;
30
- location: string;
31
- teamsAppTenantId: string;
32
- subscriptionId: string;
33
- tenantId: string;
34
- remoteTeamsAppId?: string;
35
- provisionSucceeded?: boolean;
36
- };
37
- export declare type InputsWithProjectPath = Inputs & {
38
- projectPath: string;
39
- };
40
- export declare type ProvisionInputs = InputsWithProjectPath & SolutionInputs;
41
- export declare type DeploymentInputs = InputsWithProjectPath & SolutionInputs;
42
- export declare class FxSuccess<T> {
43
- kind: "success";
44
- output: T;
45
- constructor(output: T);
46
- }
47
- export declare class FxPartialSuccess<T, Error = FxError> {
48
- kind: "partialSuccess";
49
- output: T;
50
- error: Error;
51
- constructor(output: T, error: Error);
52
- }
53
- export declare class FxFailure<Error = FxError> {
54
- kind: "failure";
55
- error: Error;
56
- constructor(error: Error);
57
- }
58
- export declare type FxResult<T, Error = FxError> = FxSuccess<T> | FxPartialSuccess<T, Error> | FxFailure<Error>;
59
- export declare type EnvInfoV2 = Omit<EnvInfo, "state" | "config"> & {
60
- state: Json;
61
- } & {
62
- config: Json;
63
- };
64
- export declare type DeepReadonly<T> = {
65
- readonly [P in keyof T]: DeepReadonly<T[P]>;
66
- };
67
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/v2/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EACL,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,oBAAY,UAAU,GAAG,MAAM,CAAC;AAEhC,MAAM,WAAW,OAAO;IACtB,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,WAAW,CAAC;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,cAAc,EAAE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ACE,MAAM,EAAE,CAAC;CAItB;AAED,qBAAa,gBAAgB,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO;IAC9C,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,KAAK,CAAC;gBACD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK;CAKpC;AAED,qBAAa,SAAS,CAAC,KAAK,GAAG,OAAO;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;gBACD,KAAK,EAAE,KAAK;CAIzB;AAED,oBAAY,QAAQ,CAAC,CAAC,EAAE,KAAK,GAAG,OAAO,IACnC,SAAS,CAAC,CAAC,CAAC,GACZ,gBAAgB,CAAC,CAAC,EAAE,KAAK,CAAC,GAC1B,SAAS,CAAC,KAAK,CAAC,CAAC;AAErB,oBAAY,SAAS,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC,GAAG;IAAE,KAAK,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;CAAE,CAAC;AAI/F,oBAAY,YAAY,CAAC,CAAC,IAAI;IAC5B,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5C,CAAC"}
package/build/v2/types.js DELETED
@@ -1,28 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- "use strict";
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.FxFailure = exports.FxPartialSuccess = exports.FxSuccess = void 0;
6
- class FxSuccess {
7
- constructor(output) {
8
- this.kind = "success";
9
- this.output = output;
10
- }
11
- }
12
- exports.FxSuccess = FxSuccess;
13
- class FxPartialSuccess {
14
- constructor(output, error) {
15
- this.kind = "partialSuccess";
16
- this.output = output;
17
- this.error = error;
18
- }
19
- }
20
- exports.FxPartialSuccess = FxPartialSuccess;
21
- class FxFailure {
22
- constructor(error) {
23
- this.kind = "failure";
24
- this.error = error;
25
- }
26
- }
27
- exports.FxFailure = FxFailure;
28
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/v2/types.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAwDb,MAAa,SAAS;IAGpB,YAAY,MAAS;QACnB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAPD,8BAOC;AAED,MAAa,gBAAgB;IAI3B,YAAY,MAAS,EAAE,KAAY;QACjC,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AATD,4CASC;AAED,MAAa,SAAS;IAGpB,YAAY,KAAY;QACtB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF;AAPD,8BAOC"}
@@ -1,58 +0,0 @@
1
- import { AzureResource } from "./resourceStates";
2
- export interface AzureIdentity extends AzureResource {
3
- identityName: string;
4
- identityResourceId: string;
5
- identityClientId: string;
6
- }
7
- export interface FrontendHostingResource extends AzureResource {
8
- domain: string;
9
- endpoint: string;
10
- storageResourceId: string;
11
- }
12
- export interface AzureSQL extends AzureResource {
13
- admin: string;
14
- sqlResourceId: string;
15
- sqlEndpoint: string;
16
- databaseName: string;
17
- }
18
- export interface AzureBot extends AzureResource {
19
- botId: string;
20
- objectId: string;
21
- skuName: string;
22
- siteName: string;
23
- validDomain: string;
24
- appServicePlanName: string;
25
- botWebAppResourceId: string;
26
- siteEndpoint: string;
27
- botPassword: string;
28
- secretFields: "botPassword"[];
29
- }
30
- export interface AADApp extends AzureResource {
31
- clientId: string;
32
- objectId: string;
33
- oauth2PermissionScopeId: string;
34
- tenantId: string;
35
- oauthHost: string;
36
- oauthAuthority: string;
37
- applicationIdUris: string;
38
- clientSecret: string;
39
- secretFields: "clientSecret"[];
40
- }
41
- export interface AzureFunction extends AzureResource {
42
- functionAppResourceId: string;
43
- functionEndpoint: string;
44
- }
45
- export interface APIM extends AzureResource {
46
- apimClientAADObjectId: string;
47
- apimClientAADClientId: string;
48
- serviceResourceId: string;
49
- productResourceId: string;
50
- authServerResourceId: string;
51
- apimClientAADClientSecret: string;
52
- secretFields: "apimClientAADClientSecret"[];
53
- }
54
- export interface SimpleAuth extends AzureResource {
55
- endpoint: string;
56
- webAppResourceId: string;
57
- }
58
- //# sourceMappingURL=AzureResourceStates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AzureResourceStates.d.ts","sourceRoot":"","sources":["../../src/v3/AzureResourceStates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,QAAS,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,MAAO,SAAQ,aAAa;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,uBAAuB,EAAE,MAAM,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,IAAK,SAAQ,aAAa;IACzC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,yBAAyB,EAAE,MAAM,CAAC;IAClC,YAAY,EAAE,2BAA2B,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=AzureResourceStates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AzureResourceStates.js","sourceRoot":"","sources":["../../src/v3/AzureResourceStates.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { Result } from "neverthrow";
2
- import { Core } from "../core";
3
- import { FxError } from "../error";
4
- import { Void } from "../types";
5
- import { InputsWithProjectPath } from "../v2/types";
6
- export interface ICore extends Core {
7
- /**
8
- * init means enable TeamsFx feature for current project folder.
9
- * init command is called to create a minimized teamsfx project
10
- */
11
- init: (inputs: InputsWithProjectPath & {
12
- solution?: string;
13
- }) => Promise<Result<Void, FxError>>;
14
- /**
15
- * add feature means add/modify files in local workspace folder:
16
- * 1. scaffold/update source code
17
- * 2. generate/update arm templates
18
- * 3. update teams app manifest file
19
- */
20
- addFeature: (inputs: InputsWithProjectPath) => Promise<Result<Void, FxError>>;
21
- }
22
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/v3/core.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,WAAW,KAAM,SAAQ,IAAI;IACjC;;;OAGG;IACH,IAAI,EAAE,CAAC,MAAM,EAAE,qBAAqB,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAChG;;;;;OAKG;IACH,UAAU,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/E"}
package/build/v3/core.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=core.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/v3/core.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
@@ -1,7 +0,0 @@
1
- export * from "./types";
2
- export * from "./resourceStates";
3
- export * from "./plugins";
4
- export * from "./solution";
5
- export * from "./core";
6
- export * from "./AzureResourceStates";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":"AAGA,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
package/build/v3/index.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- const tslib_1 = require("tslib");
6
- tslib_1.__exportStar(require("./types"), exports);
7
- tslib_1.__exportStar(require("./resourceStates"), exports);
8
- tslib_1.__exportStar(require("./plugins"), exports);
9
- tslib_1.__exportStar(require("./solution"), exports);
10
- tslib_1.__exportStar(require("./core"), exports);
11
- tslib_1.__exportStar(require("./AzureResourceStates"), exports);
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v3/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,kDAAwB;AACxB,2DAAiC;AACjC,oDAA0B;AAC1B,qDAA2B;AAC3B,iDAAuB;AACvB,gEAAsC"}