@microsoft/teamsfx-core 1.1.1 → 1.1.2-alpha.378e6f1e.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 (223) hide show
  1. package/build/common/constants.d.ts +2 -1
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +2 -1
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/samples-config.json +14 -0
  6. package/build/common/tools.d.ts +11 -1
  7. package/build/common/tools.d.ts.map +1 -1
  8. package/build/common/tools.js +24 -10
  9. package/build/common/tools.js.map +1 -1
  10. package/build/core/SolutionPluginContainer.d.ts +2 -0
  11. package/build/core/SolutionPluginContainer.d.ts.map +1 -1
  12. package/build/core/SolutionPluginContainer.js +16 -1
  13. package/build/core/SolutionPluginContainer.js.map +1 -1
  14. package/build/core/error.d.ts +2 -1
  15. package/build/core/error.d.ts.map +1 -1
  16. package/build/core/error.js +7 -3
  17. package/build/core/error.js.map +1 -1
  18. package/build/core/index.d.ts +12 -3
  19. package/build/core/index.d.ts.map +1 -1
  20. package/build/core/index.js +143 -30
  21. package/build/core/index.js.map +1 -1
  22. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  23. package/build/core/middleware/projectMigrator.js +0 -25
  24. package/build/core/middleware/projectMigrator.js.map +1 -1
  25. package/build/core/middleware/projectSettingsLoader.js +1 -1
  26. package/build/core/middleware/projectSettingsLoader.js.map +1 -1
  27. package/build/core/middleware/projectSettingsLoaderV3.d.ts +4 -0
  28. package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +1 -0
  29. package/build/core/middleware/projectSettingsLoaderV3.js +49 -0
  30. package/build/core/middleware/projectSettingsLoaderV3.js.map +1 -0
  31. package/build/core/middleware/questionModel.d.ts +2 -1
  32. package/build/core/middleware/questionModel.d.ts.map +1 -1
  33. package/build/core/middleware/questionModel.js +98 -1
  34. package/build/core/middleware/questionModel.js.map +1 -1
  35. package/build/core/middleware/solutionLoaderV3.d.ts +4 -0
  36. package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -0
  37. package/build/core/middleware/solutionLoaderV3.js +15 -0
  38. package/build/core/middleware/solutionLoaderV3.js.map +1 -0
  39. package/build/core/question.d.ts +9 -1
  40. package/build/core/question.d.ts.map +1 -1
  41. package/build/core/question.js +113 -3
  42. package/build/core/question.js.map +1 -1
  43. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  44. package/build/plugins/resource/aad/plugin.js +1 -10
  45. package/build/plugins/resource/aad/plugin.js.map +1 -1
  46. package/build/plugins/resource/appstudio/appStudio.d.ts +1 -1
  47. package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
  48. package/build/plugins/resource/appstudio/appStudio.js +106 -85
  49. package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
  50. package/build/plugins/resource/appstudio/constants.d.ts +1 -0
  51. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  52. package/build/plugins/resource/appstudio/constants.js +1 -0
  53. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  54. package/build/plugins/resource/appstudio/errors.d.ts +1 -1
  55. package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
  56. package/build/plugins/resource/appstudio/errors.js +2 -1
  57. package/build/plugins/resource/appstudio/errors.js.map +1 -1
  58. package/build/plugins/resource/appstudio/index.js +1 -1
  59. package/build/plugins/resource/appstudio/index.js.map +1 -1
  60. package/build/plugins/resource/appstudio/plugin.d.ts +2 -3
  61. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  62. package/build/plugins/resource/appstudio/plugin.js +51 -105
  63. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  64. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -1
  65. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +1 -1
  66. package/build/plugins/resource/function/utils/depsChecker/checker.js +2 -2
  67. package/build/plugins/resource/function/utils/depsChecker/checker.js.map +1 -1
  68. package/build/plugins/resource/function/utils/depsChecker/common.d.ts +1 -2
  69. package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +1 -1
  70. package/build/plugins/resource/function/utils/depsChecker/common.js +2 -6
  71. package/build/plugins/resource/function/utils/depsChecker/common.js.map +1 -1
  72. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -1
  73. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +1 -1
  74. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +1 -23
  75. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +1 -1
  76. package/build/plugins/resource/localdebug/certificate.js +3 -3
  77. package/build/plugins/resource/localdebug/certificate.js.map +1 -1
  78. package/build/plugins/resource/localdebug/index.d.ts.map +1 -1
  79. package/build/plugins/resource/localdebug/index.js +8 -6
  80. package/build/plugins/resource/localdebug/index.js.map +1 -1
  81. package/build/plugins/resource/localdebug/settings.d.ts +1 -1
  82. package/build/plugins/resource/localdebug/settings.d.ts.map +1 -1
  83. package/build/plugins/resource/localdebug/settings.js +10 -6
  84. package/build/plugins/resource/localdebug/settings.js.map +1 -1
  85. package/build/plugins/resource/localdebug/tasks.js +5 -5
  86. package/build/plugins/resource/localdebug/util/error.d.ts.map +1 -1
  87. package/build/plugins/resource/localdebug/util/error.js +1 -1
  88. package/build/plugins/resource/localdebug/util/error.js.map +1 -1
  89. package/build/plugins/resource/localdebug/util/ngrok.js +2 -2
  90. package/build/plugins/resource/localdebug/util/ngrok.js.map +1 -1
  91. package/build/plugins/resource/simpleauth/utils/common.d.ts.map +1 -1
  92. package/build/plugins/resource/simpleauth/utils/common.js +3 -1
  93. package/build/plugins/resource/simpleauth/utils/common.js.map +1 -1
  94. package/build/plugins/resource/sql/config.d.ts +0 -1
  95. package/build/plugins/resource/sql/config.d.ts.map +1 -1
  96. package/build/plugins/resource/sql/config.js +0 -1
  97. package/build/plugins/resource/sql/config.js.map +1 -1
  98. package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
  99. package/build/plugins/resource/sql/plugin.js +0 -1
  100. package/build/plugins/resource/sql/plugin.js.map +1 -1
  101. package/build/plugins/resource/sql/utils/checkInput.js +2 -2
  102. package/build/plugins/resource/sql/utils/checkInput.js.map +1 -1
  103. package/build/plugins/solution/fx-solution/arm.d.ts +2 -1
  104. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  105. package/build/plugins/solution/fx-solution/arm.js +79 -14
  106. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  107. package/build/plugins/solution/fx-solution/commonQuestions.d.ts +13 -2
  108. package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
  109. package/build/plugins/solution/fx-solution/commonQuestions.js +24 -26
  110. package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
  111. package/build/plugins/solution/fx-solution/index.d.ts +1 -0
  112. package/build/plugins/solution/fx-solution/index.d.ts.map +1 -1
  113. package/build/plugins/solution/fx-solution/index.js +1 -0
  114. package/build/plugins/solution/fx-solution/index.js.map +1 -1
  115. package/build/plugins/solution/fx-solution/question.d.ts +0 -1
  116. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  117. package/build/plugins/solution/fx-solution/question.js +1 -32
  118. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  119. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  120. package/build/plugins/solution/fx-solution/solution.js +8 -4
  121. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  122. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts +1 -1
  123. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  124. package/build/plugins/solution/fx-solution/v2/getQuestions.js +17 -22
  125. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  126. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  127. package/build/plugins/solution/fx-solution/v2/provision.js +8 -0
  128. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  129. package/build/plugins/solution/fx-solution/v2/solution.d.ts +1 -1
  130. package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
  131. package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
  132. package/build/plugins/solution/fx-solution/v3/addModule.d.ts +6 -0
  133. package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -0
  134. package/build/plugins/solution/fx-solution/v3/addModule.js +35 -0
  135. package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -0
  136. package/build/plugins/solution/fx-solution/v3/addResource.d.ts +31 -0
  137. package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -0
  138. package/build/plugins/solution/fx-solution/v3/addResource.js +261 -0
  139. package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -0
  140. package/build/plugins/solution/fx-solution/v3/constants.d.ts +6 -0
  141. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -0
  142. package/build/plugins/solution/fx-solution/v3/constants.js +11 -0
  143. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -0
  144. package/build/plugins/solution/fx-solution/v3/deploy.d.ts +6 -0
  145. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -0
  146. package/build/plugins/solution/fx-solution/v3/deploy.js +78 -0
  147. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -0
  148. package/build/plugins/solution/fx-solution/v3/error.d.ts +11 -0
  149. package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -0
  150. package/build/plugins/solution/fx-solution/v3/error.js +23 -0
  151. package/build/plugins/solution/fx-solution/v3/error.js.map +1 -0
  152. package/build/plugins/solution/fx-solution/v3/init.d.ts +4 -0
  153. package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -0
  154. package/build/plugins/solution/fx-solution/v3/init.js +25 -0
  155. package/build/plugins/solution/fx-solution/v3/init.js.map +1 -0
  156. package/build/plugins/solution/fx-solution/v3/provision.d.ts +4 -0
  157. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -0
  158. package/build/plugins/solution/fx-solution/v3/provision.js +123 -0
  159. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -0
  160. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +4 -0
  161. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -0
  162. package/build/plugins/solution/fx-solution/v3/provisionLocal.js +13 -0
  163. package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -0
  164. package/build/plugins/solution/fx-solution/v3/publish.d.ts +4 -0
  165. package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -0
  166. package/build/plugins/solution/fx-solution/v3/publish.js +15 -0
  167. package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -0
  168. package/build/plugins/solution/fx-solution/v3/questions.d.ts +16 -0
  169. package/build/plugins/solution/fx-solution/v3/questions.d.ts.map +1 -0
  170. package/build/plugins/solution/fx-solution/v3/questions.js +86 -0
  171. package/build/plugins/solution/fx-solution/v3/questions.js.map +1 -0
  172. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +18 -0
  173. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -0
  174. package/build/plugins/solution/fx-solution/v3/scaffold.js +176 -0
  175. package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -0
  176. package/build/plugins/solution/fx-solution/v3/solution.d.ts +51 -0
  177. package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -0
  178. package/build/plugins/solution/fx-solution/v3/solution.js +70 -0
  179. package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -0
  180. package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -0
  181. package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -0
  182. package/build/plugins/solution/fx-solution/v3/userTask.js +15 -0
  183. package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -0
  184. package/build/plugins/solution/fx-solution/v3/utils.d.ts +3 -0
  185. package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -0
  186. package/build/plugins/solution/fx-solution/v3/utils.js +16 -0
  187. package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -0
  188. package/build/plugins/solution/index.d.ts +1 -0
  189. package/build/plugins/solution/index.d.ts.map +1 -1
  190. package/build/plugins/solution/index.js +1 -0
  191. package/build/plugins/solution/index.js.map +1 -1
  192. package/build/plugins/solution/spfx-solution/index.d.ts +2 -0
  193. package/build/plugins/solution/spfx-solution/index.d.ts.map +1 -0
  194. package/build/plugins/solution/spfx-solution/index.js +5 -0
  195. package/build/plugins/solution/spfx-solution/index.js.map +1 -0
  196. package/build/plugins/solution/spfx-solution/questions.d.ts +3 -0
  197. package/build/plugins/solution/spfx-solution/questions.d.ts.map +1 -0
  198. package/build/plugins/solution/spfx-solution/questions.js +24 -0
  199. package/build/plugins/solution/spfx-solution/questions.js.map +1 -0
  200. package/build/plugins/solution/spfx-solution/scaffolding.d.ts +14 -0
  201. package/build/plugins/solution/spfx-solution/scaffolding.d.ts.map +1 -0
  202. package/build/plugins/solution/spfx-solution/scaffolding.js +29 -0
  203. package/build/plugins/solution/spfx-solution/scaffolding.js.map +1 -0
  204. package/build/plugins/solution/spfx-solution/solution.d.ts +19 -0
  205. package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -0
  206. package/build/plugins/solution/spfx-solution/solution.js +27 -0
  207. package/build/plugins/solution/spfx-solution/solution.js.map +1 -0
  208. package/package.json +4 -3
  209. package/resource/strings.json +0 -1
  210. package/templates/azure/config.bicep +0 -22
  211. package/templates/azure/provision/azureBot.bicep +0 -0
  212. package/templates/azure/provision/azureWebApp.bicep +0 -0
  213. package/templates/azure/provision.bicep +2 -56
  214. package/templates/plugins/resource/simpleauth/version.txt +2 -1
  215. package/templates/azure/provision/azureSql.bicep +0 -39
  216. package/templates/azure/provision/frontendHosting.bicep +0 -23
  217. package/templates/azure/provision/function.bicep +0 -79
  218. package/templates/azure/provision/simpleAuth.bicep +0 -44
  219. package/templates/azure/teamsFx/bot.bicep +0 -34
  220. package/templates/azure/teamsFx/function.bicep +0 -71
  221. package/templates/azure/teamsFx/simpleAuth.bicep +0 -40
  222. package/templates/plugins/resource/aad/bicep/param.template.bicep +0 -6
  223. package/templates/plugins/resource/aad/bicep/variables.template.bicep +0 -13
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.TeamsFxSFPxSolution = exports.TeamsFxAzureSolution = void 0;
6
+ const tslib_1 = require("tslib");
7
+ const typedi_1 = require("typedi");
8
+ const addModule_1 = require("./addModule");
9
+ const addResource_1 = require("./addResource");
10
+ const constants_1 = require("./constants");
11
+ const deploy_1 = require("./deploy");
12
+ const init_1 = require("./init");
13
+ const provision_1 = require("./provision");
14
+ const provisionLocal_1 = require("./provisionLocal");
15
+ const publish_1 = require("./publish");
16
+ const scaffold_1 = require("./scaffold");
17
+ const userTask_1 = require("./userTask");
18
+ let TeamsFxAzureSolution = class TeamsFxAzureSolution {
19
+ constructor() {
20
+ this.name = constants_1.TeamsFxAzureSolutionNameV3;
21
+ this.init = init_1.init;
22
+ this.getQuestionsForScaffold = scaffold_1.getQuestionsForScaffold;
23
+ this.scaffold = scaffold_1.scaffold;
24
+ this.getQuestionsForAddResource = addResource_1.getQuestionsForAddResource;
25
+ this.addResource = addResource_1.addResource;
26
+ this.getQuestionsForAddModule = addModule_1.getQuestionsForAddModule;
27
+ this.addModule = addModule_1.addModule;
28
+ this.getQuestionsForProvision = provision_1.getQuestionsForProvision;
29
+ this.provisionResources = provision_1.provisionResources;
30
+ this.getQuestionsForLocalProvision = provisionLocal_1.getQuestionsForLocalProvision;
31
+ this.provisionLocalResources = provisionLocal_1.provisionLocalResources;
32
+ this.getQuestionsForDeploy = deploy_1.getQuestionsForDeploy;
33
+ this.deploy = deploy_1.deploy;
34
+ this.getQuestionsForPublish = publish_1.getQuestionsForPublish;
35
+ this.publishApplication = publish_1.publishApplication;
36
+ this.getQuestionsForUserTask = userTask_1.getQuestionsForUserTask;
37
+ this.executeUserTask = userTask_1.executeUserTask;
38
+ }
39
+ };
40
+ TeamsFxAzureSolution = tslib_1.__decorate([
41
+ typedi_1.Service(constants_1.TeamsFxAzureSolutionNameV3)
42
+ ], TeamsFxAzureSolution);
43
+ exports.TeamsFxAzureSolution = TeamsFxAzureSolution;
44
+ let TeamsFxSFPxSolution = class TeamsFxSFPxSolution {
45
+ constructor() {
46
+ this.name = "fx-solution-spfx";
47
+ this.init = init_1.init;
48
+ this.getQuestionsForScaffold = scaffold_1.getQuestionsForScaffold;
49
+ this.scaffold = scaffold_1.scaffold;
50
+ this.getQuestionsForAddResource = addResource_1.getQuestionsForAddResource;
51
+ this.addResource = addResource_1.addResource;
52
+ this.getQuestionsForAddModule = addModule_1.getQuestionsForAddModule;
53
+ this.addModule = addModule_1.addModule;
54
+ this.getQuestionsForProvision = provision_1.getQuestionsForProvision;
55
+ this.provisionResources = provision_1.provisionResources;
56
+ this.getQuestionsForLocalProvision = provisionLocal_1.getQuestionsForLocalProvision;
57
+ this.provisionLocalResources = provisionLocal_1.provisionLocalResources;
58
+ this.getQuestionsForDeploy = deploy_1.getQuestionsForDeploy;
59
+ this.deploy = deploy_1.deploy;
60
+ this.getQuestionsForPublish = publish_1.getQuestionsForPublish;
61
+ this.publishApplication = publish_1.publishApplication;
62
+ this.getQuestionsForUserTask = userTask_1.getQuestionsForUserTask;
63
+ this.executeUserTask = userTask_1.executeUserTask;
64
+ }
65
+ };
66
+ TeamsFxSFPxSolution = tslib_1.__decorate([
67
+ typedi_1.Service("fx-solution-spfx")
68
+ ], TeamsFxSFPxSolution);
69
+ exports.TeamsFxSFPxSolution = TeamsFxSFPxSolution;
70
+ //# sourceMappingURL=solution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/solution.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,mCAAiC;AACjC,2CAAkE;AAClE,+CAAwE;AACxE,2CAAyD;AACzD,qCAAyD;AACzD,iCAA8B;AAC9B,2CAA2E;AAC3E,qDAA0F;AAC1F,uCAAuE;AACvE,yCAA+D;AAC/D,yCAAsE;AAGtE,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAAjC;QACE,SAAI,GAAG,sCAA0B,CAAC;QAClC,SAAI,GAAG,WAAI,CAAC;QACZ,4BAAuB,GAAG,kCAAuB,CAAC;QAClD,aAAQ,GAAG,mBAAQ,CAAC;QACpB,+BAA0B,GAAG,wCAA0B,CAAC;QACxD,gBAAW,GAAG,yBAAW,CAAC;QAC1B,6BAAwB,GAAG,oCAAwB,CAAC;QACpD,cAAS,GAAG,qBAAS,CAAC;QACtB,6BAAwB,GAAG,oCAAwB,CAAC;QACpD,uBAAkB,GAAG,8BAAkB,CAAC;QACxC,kCAA6B,GAAG,8CAA6B,CAAC;QAC9D,4BAAuB,GAAG,wCAAuB,CAAC;QAClD,0BAAqB,GAAG,8BAAqB,CAAC;QAC9C,WAAM,GAAG,eAAM,CAAC;QAChB,2BAAsB,GAAG,gCAAsB,CAAC;QAChD,uBAAkB,GAAG,4BAAkB,CAAC;QACxC,4BAAuB,GAAG,kCAAuB,CAAC;QAClD,oBAAe,GAAG,0BAAe,CAAC;IACpC,CAAC;CAAA,CAAA;AAnBY,oBAAoB;IADhC,gBAAO,CAAC,sCAA0B,CAAC;GACvB,oBAAoB,CAmBhC;AAnBY,oDAAoB;AAsBjC,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAAhC;QACE,SAAI,GAAG,kBAAkB,CAAC;QAC1B,SAAI,GAAG,WAAI,CAAC;QACZ,4BAAuB,GAAG,kCAAuB,CAAC;QAClD,aAAQ,GAAG,mBAAQ,CAAC;QACpB,+BAA0B,GAAG,wCAA0B,CAAC;QACxD,gBAAW,GAAG,yBAAW,CAAC;QAC1B,6BAAwB,GAAG,oCAAwB,CAAC;QACpD,cAAS,GAAG,qBAAS,CAAC;QACtB,6BAAwB,GAAG,oCAAwB,CAAC;QACpD,uBAAkB,GAAG,8BAAkB,CAAC;QACxC,kCAA6B,GAAG,8CAA6B,CAAC;QAC9D,4BAAuB,GAAG,wCAAuB,CAAC;QAClD,0BAAqB,GAAG,8BAAqB,CAAC;QAC9C,WAAM,GAAG,eAAM,CAAC;QAChB,2BAAsB,GAAG,gCAAsB,CAAC;QAChD,uBAAkB,GAAG,4BAAkB,CAAC;QACxC,4BAAuB,GAAG,kCAAuB,CAAC;QAClD,oBAAe,GAAG,0BAAe,CAAC;IACpC,CAAC;CAAA,CAAA;AAnBY,mBAAmB;IAD/B,gBAAO,CAAC,kBAAkB,CAAC;GACf,mBAAmB,CAmB/B;AAnBY,kDAAmB"}
@@ -0,0 +1,4 @@
1
+ import { Func, FxError, Inputs, Json, QTreeNode, Result, TokenProvider, v2, v3 } from "@microsoft/teamsfx-api";
2
+ export declare function getQuestionsForUserTask(ctx: v2.Context, inputs: Inputs, func: Func, localSettings: Json, envInfo: v2.DeepReadonly<v3.EnvInfoV3>, tokenProvider: TokenProvider): Promise<Result<QTreeNode | undefined, FxError>>;
3
+ export declare function executeUserTask(ctx: v2.Context, inputs: Inputs, func: Func, localSettings: Json, envInfo: v3.EnvInfoV3, tokenProvider: TokenProvider): Promise<Result<unknown, FxError>>;
4
+ //# sourceMappingURL=userTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userTask.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/userTask.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,IAAI,EACJ,OAAO,EACP,MAAM,EACN,IAAI,EAGJ,SAAS,EACT,MAAM,EACN,aAAa,EACb,EAAE,EACF,EAAE,EACH,MAAM,wBAAwB,CAAC;AAEhC,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,IAAI,EACnB,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,CAAC,EACtC,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAEjD;AACD,wBAAsB,eAAe,CACnC,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,IAAI,EACnB,OAAO,EAAE,EAAE,CAAC,SAAS,EACrB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAEnC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.executeUserTask = exports.getQuestionsForUserTask = void 0;
6
+ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
7
+ async function getQuestionsForUserTask(ctx, inputs, func, localSettings, envInfo, tokenProvider) {
8
+ return teamsfx_api_1.ok(undefined);
9
+ }
10
+ exports.getQuestionsForUserTask = getQuestionsForUserTask;
11
+ async function executeUserTask(ctx, inputs, func, localSettings, envInfo, tokenProvider) {
12
+ return teamsfx_api_1.err(new teamsfx_api_1.NotImplementedError("Solution", "executeUserTask"));
13
+ }
14
+ exports.executeUserTask = executeUserTask;
15
+ //# sourceMappingURL=userTask.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userTask.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/userTask.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,wDAagC;AAEzB,KAAK,UAAU,uBAAuB,CAC3C,GAAe,EACf,MAAc,EACd,IAAU,EACV,aAAmB,EACnB,OAAsC,EACtC,aAA4B;IAE5B,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;AACvB,CAAC;AATD,0DASC;AACM,KAAK,UAAU,eAAe,CACnC,GAAe,EACf,MAAc,EACd,IAAU,EACV,aAAmB,EACnB,OAAqB,EACrB,aAA4B;IAE5B,OAAO,iBAAG,CAAC,IAAI,iCAAmB,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC;AACrE,CAAC;AATD,0CASC"}
@@ -0,0 +1,3 @@
1
+ import { v3 } from "@microsoft/teamsfx-api";
2
+ export declare function getModule(solutionSettings: v3.TeamsFxSolutionSettings, module?: string): v3.Module | undefined;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,wBAAwB,CAAC;AAG5C,wBAAgB,SAAS,CACvB,gBAAgB,EAAE,EAAE,CAAC,uBAAuB,EAC5C,MAAM,CAAC,EAAE,MAAM,GACd,EAAE,CAAC,MAAM,GAAG,SAAS,CASvB"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getModule = void 0;
4
+ const lodash_1 = require("lodash");
5
+ function getModule(solutionSettings, module) {
6
+ if (!lodash_1.isNumber(Number(module))) {
7
+ return undefined;
8
+ }
9
+ const index = Number(module);
10
+ if (index >= 0 && index < solutionSettings.modules.length) {
11
+ return solutionSettings.modules[index];
12
+ }
13
+ return undefined;
14
+ }
15
+ exports.getModule = getModule;
16
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/plugins/solution/fx-solution/v3/utils.ts"],"names":[],"mappings":";;;AACA,mCAAkC;AAElC,SAAgB,SAAS,CACvB,gBAA4C,EAC5C,MAAe;IAEf,IAAI,CAAC,iBAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE;QAC7B,OAAO,SAAS,CAAC;KAClB;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7B,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE;QACzD,OAAO,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KACxC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAZD,8BAYC"}
@@ -1,2 +1,3 @@
1
1
  export * from "./fx-solution";
2
+ export * from "./spfx-solution";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/solution/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/solution/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -4,4 +4,5 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  const tslib_1 = require("tslib");
6
6
  tslib_1.__exportStar(require("./fx-solution"), exports);
7
+ tslib_1.__exportStar(require("./spfx-solution"), exports);
7
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/solution/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,wDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/plugins/solution/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,wDAA8B;AAC9B,0DAAgC"}
@@ -0,0 +1,2 @@
1
+ export * from "./solution";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./solution"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
@@ -0,0 +1,3 @@
1
+ import { FxError, QTreeNode, Result, v2 } from "@microsoft/teamsfx-api";
2
+ export declare function getQuestionsForScaffolding(ctx: v2.Context, inputs: v2.InputsWithProjectPath): Promise<Result<QTreeNode | QTreeNode[] | undefined, FxError>>;
3
+ //# sourceMappingURL=questions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/questions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,SAAS,EAAE,MAAM,EAAE,EAAE,EAAM,MAAM,wBAAwB,CAAC;AAKpF,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAe/D"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getQuestionsForScaffolding = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
6
+ const typedi_1 = tslib_1.__importDefault(require("typedi"));
7
+ const question_1 = require("../fx-solution/question");
8
+ const ResourcePluginContainer_1 = require("../fx-solution/ResourcePluginContainer");
9
+ async function getQuestionsForScaffolding(ctx, inputs) {
10
+ const spfxPlugin = typedi_1.default.get(ResourcePluginContainer_1.ResourcePluginsV2.SpfxPlugin);
11
+ if (spfxPlugin.getQuestionsForScaffolding) {
12
+ const res = await spfxPlugin.getQuestionsForScaffolding(ctx, inputs);
13
+ if (res.isErr())
14
+ return res;
15
+ if (res.value) {
16
+ const spfxNode = res.value;
17
+ spfxNode.condition = { contains: question_1.TabSPFxItem.id };
18
+ return teamsfx_api_1.ok(spfxNode);
19
+ }
20
+ }
21
+ return teamsfx_api_1.ok(undefined);
22
+ }
23
+ exports.getQuestionsForScaffolding = getQuestionsForScaffolding;
24
+ //# sourceMappingURL=questions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"questions.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/questions.ts"],"names":[],"mappings":";;;;AAAA,wDAAoF;AACpF,4DAA+B;AAC/B,sDAAsD;AACtD,oFAA2E;AAEpE,KAAK,UAAU,0BAA0B,CAC9C,GAAe,EACf,MAAgC;IAEhC,MAAM,UAAU,GAAsB,gBAAS,CAAC,GAAG,CACjD,2CAAiB,CAAC,UAAU,CAC7B,CAAC;IACF,IAAI,UAAU,CAAC,0BAA0B,EAAE;QACzC,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC,0BAA0B,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QACrE,IAAI,GAAG,CAAC,KAAK,EAAE;YAAE,OAAO,GAAG,CAAC;QAC5B,IAAI,GAAG,CAAC,KAAK,EAAE;YACb,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAkB,CAAC;YACxC,QAAQ,CAAC,SAAS,GAAG,EAAE,QAAQ,EAAE,sBAAW,CAAC,EAAE,EAAE,CAAC;YAClD,OAAO,gBAAE,CAAC,QAAQ,CAAC,CAAC;SACrB;KACF;IAED,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;AACvB,CAAC;AAlBD,gEAkBC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { FxError, Inputs, Json, Result, v2, AppStudioTokenProvider, Void } from "@microsoft/teamsfx-api";
3
+ import Module from "module";
4
+ export declare function init(ctx: v2.Context, inputs: v2.InputsWithProjectPath): Promise<Result<Void, FxError>>;
5
+ export declare function scaffold(ctx: v2.Context, inputs: v2.InputsWithProjectPath): Promise<Result<Void, FxError>>;
6
+ export declare function generateResourceTemplate(ctx: v2.Context, inputs: Inputs): Promise<Result<Json, FxError>>;
7
+ export declare function publishApplication(ctx: v2.Context, inputs: Inputs, envInfo: v2.EnvInfoV2, tokenProvider: AppStudioTokenProvider): Promise<Result<Void, FxError>>;
8
+ export declare function addResource(ctx: v2.Context, inputs: v2.InputsWithProjectPath & {
9
+ module?: keyof Module;
10
+ }): Promise<Result<Void, FxError>>;
11
+ export declare function addModule(ctx: v2.Context, localSettings: Json, inputs: v2.InputsWithProjectPath & {
12
+ module?: keyof Module;
13
+ }): Promise<Result<Void, FxError>>;
14
+ //# sourceMappingURL=scaffolding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scaffolding.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/scaffolding.ts"],"names":[],"mappings":";AAAA,OAAO,EAEL,OAAO,EACP,MAAM,EACN,IAAI,EACJ,MAAM,EACN,EAAE,EACF,sBAAsB,EACtB,IAAI,EAEL,MAAM,wBAAwB,CAAC;AAChC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,wBAAsB,IAAI,CACxB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC;AAED,wBAAsB,QAAQ,CAC5B,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAC/B,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC;AAED,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC;AAED,wBAAsB,kBAAkB,CACtC,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,EAAE,CAAC,SAAS,EACrB,aAAa,EAAE,sBAAsB,GACpC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC;AAED,wBAAsB,WAAW,CAC/B,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GAC3D,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC;AAED,wBAAsB,SAAS,CAC7B,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,aAAa,EAAE,IAAI,EACnB,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GAC3D,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAEhC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addModule = exports.addResource = exports.publishApplication = exports.generateResourceTemplate = exports.scaffold = exports.init = void 0;
4
+ const teamsfx_api_1 = require("@microsoft/teamsfx-api");
5
+ async function init(ctx, inputs) {
6
+ return teamsfx_api_1.ok(teamsfx_api_1.Void);
7
+ }
8
+ exports.init = init;
9
+ async function scaffold(ctx, inputs) {
10
+ return teamsfx_api_1.ok(teamsfx_api_1.Void);
11
+ }
12
+ exports.scaffold = scaffold;
13
+ async function generateResourceTemplate(ctx, inputs) {
14
+ return teamsfx_api_1.ok({});
15
+ }
16
+ exports.generateResourceTemplate = generateResourceTemplate;
17
+ async function publishApplication(ctx, inputs, envInfo, tokenProvider) {
18
+ return teamsfx_api_1.ok(teamsfx_api_1.Void);
19
+ }
20
+ exports.publishApplication = publishApplication;
21
+ async function addResource(ctx, inputs) {
22
+ return teamsfx_api_1.ok(teamsfx_api_1.Void);
23
+ }
24
+ exports.addResource = addResource;
25
+ async function addModule(ctx, localSettings, inputs) {
26
+ return teamsfx_api_1.ok(teamsfx_api_1.Void);
27
+ }
28
+ exports.addModule = addModule;
29
+ //# sourceMappingURL=scaffolding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scaffolding.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/scaffolding.ts"],"names":[],"mappings":";;;AAAA,wDAUgC;AAGzB,KAAK,UAAU,IAAI,CACxB,GAAe,EACf,MAAgC;IAEhC,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AALD,oBAKC;AAEM,KAAK,UAAU,QAAQ,CAC5B,GAAe,EACf,MAAgC;IAEhC,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AALD,4BAKC;AAEM,KAAK,UAAU,wBAAwB,CAC5C,GAAe,EACf,MAAc;IAEd,OAAO,gBAAE,CAAC,EAAE,CAAC,CAAC;AAChB,CAAC;AALD,4DAKC;AAEM,KAAK,UAAU,kBAAkB,CACtC,GAAe,EACf,MAAc,EACd,OAAqB,EACrB,aAAqC;IAErC,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AAPD,gDAOC;AAEM,KAAK,UAAU,WAAW,CAC/B,GAAe,EACf,MAA4D;IAE5D,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AALD,kCAKC;AAEM,KAAK,UAAU,SAAS,CAC7B,GAAe,EACf,aAAmB,EACnB,MAA4D;IAE5D,OAAO,gBAAE,CAAC,kBAAI,CAAC,CAAC;AAClB,CAAC;AAND,8BAMC"}
@@ -0,0 +1,19 @@
1
+ import { FxError, Inputs, Json, Result, v2, v3, AppStudioTokenProvider, Void, QTreeNode } from "@microsoft/teamsfx-api";
2
+ export declare class TeamsSPFxSolution implements v3.ISolution {
3
+ name: string;
4
+ displayName: string;
5
+ init: (ctx: v2.Context, inputs: v2.InputsWithProjectPath) => Promise<Result<Void, FxError>>;
6
+ scaffold: (ctx: v2.Context, inputs: v2.InputsWithProjectPath & {
7
+ moduleIndex?: number;
8
+ }) => Promise<Result<Void, FxError>>;
9
+ generateResourceTemplate: (ctx: v2.Context, inputs: Inputs) => Promise<Result<Json, FxError>>;
10
+ publishApplication: (ctx: v2.Context, inputs: Inputs, envInfo: v2.EnvInfoV2, tokenProvider: AppStudioTokenProvider) => Promise<Result<Void, FxError>>;
11
+ addResource: (ctx: v2.Context, inputs: v2.InputsWithProjectPath & {
12
+ moduleIndex?: number;
13
+ }) => Promise<Result<Void, FxError>>;
14
+ addModule: (ctx: v2.Context, localSettings: Json, inputs: v2.InputsWithProjectPath & {
15
+ capabilities?: string[];
16
+ }) => Promise<Result<Void, FxError>>;
17
+ getQuestionsForScaffolding?: (ctx: v2.Context, inputs: v2.InputsWithProjectPath) => Promise<Result<QTreeNode | QTreeNode[] | undefined, FxError>>;
18
+ }
19
+ //# sourceMappingURL=solution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/solution.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,MAAM,EACN,IAAI,EACJ,MAAM,EACN,EAAE,EACF,EAAE,EACF,sBAAsB,EACtB,IAAI,EACJ,SAAS,EACV,MAAM,wBAAwB,CAAC;AAehC,qBACa,iBAAkB,YAAW,EAAE,CAAC,SAAS;IACpD,IAAI,SAAsB;IAC1B,WAAW,EAAE,MAAM,CAAkC;IAErD,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,qBAAqB,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CACpF;IAEP,QAAQ,EAAE,CACR,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAAG;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,KACxD,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAY;IAE/C,wBAAwB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAClE;IAE3B,kBAAkB,EAAE,CAClB,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,EAAE,CAAC,SAAS,EACrB,aAAa,EAAE,sBAAsB,KAClC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAsB;IAEzD,WAAW,EAAE,CACX,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAAG;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,KACxD,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAe;IAElD,SAAS,EAAE,CACT,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,aAAa,EAAE,IAAI,EACnB,MAAM,EAAE,EAAE,CAAC,qBAAqB,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,KAC3D,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAa;IAEhD,0BAA0B,CAAC,EAAE,CAC3B,GAAG,EAAE,EAAE,CAAC,OAAO,EACf,MAAM,EAAE,EAAE,CAAC,qBAAqB,KAC7B,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,EAAE,OAAO,CAAC,CAAC,CAA8B;CACjG"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamsSPFxSolution = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const constants_1 = require("../../../common/constants");
6
+ const scaffolding_1 = require("./scaffolding");
7
+ const typedi_1 = require("typedi");
8
+ const SolutionPluginContainer_1 = require("../../../core/SolutionPluginContainer");
9
+ const questions_1 = require("./questions");
10
+ let TeamsSPFxSolution = class TeamsSPFxSolution {
11
+ constructor() {
12
+ this.name = "fx-solution-spfx";
13
+ this.displayName = constants_1.PluginDisplayName.SpfxSolution;
14
+ this.init = scaffolding_1.init;
15
+ this.scaffold = scaffolding_1.scaffold;
16
+ this.generateResourceTemplate = scaffolding_1.generateResourceTemplate;
17
+ this.publishApplication = scaffolding_1.publishApplication;
18
+ this.addResource = scaffolding_1.addResource;
19
+ this.addModule = scaffolding_1.addModule;
20
+ this.getQuestionsForScaffolding = questions_1.getQuestionsForScaffolding;
21
+ }
22
+ };
23
+ TeamsSPFxSolution = tslib_1.__decorate([
24
+ typedi_1.Service(SolutionPluginContainer_1.SolutionPluginsV2.TeamsSPFxSolution)
25
+ ], TeamsSPFxSolution);
26
+ exports.TeamsSPFxSolution = TeamsSPFxSolution;
27
+ //# sourceMappingURL=solution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../../src/plugins/solution/spfx-solution/solution.ts"],"names":[],"mappings":";;;;AAYA,yDAA8D;AAE9D,+CAOuB;AACvB,mCAAiC;AACjC,mFAA0E;AAC1E,2CAAyD;AAGzD,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,kBAAkB,CAAC;QAC1B,gBAAW,GAAW,6BAAiB,CAAC,YAAY,CAAC;QAErD,SAAI,GACF,kBAAI,CAAC;QAEP,aAAQ,GAG8B,sBAAQ,CAAC;QAE/C,6BAAwB,GACtB,sCAAwB,CAAC;QAE3B,uBAAkB,GAKoB,gCAAkB,CAAC;QAEzD,gBAAW,GAG2B,yBAAW,CAAC;QAElD,cAAS,GAI6B,uBAAS,CAAC;QAEhD,+BAA0B,GAG2C,sCAA0B,CAAC;IAClG,CAAC;CAAA,CAAA;AArCY,iBAAiB;IAD7B,gBAAO,CAAC,2CAAiB,CAAC,iBAAiB,CAAC;GAChC,iBAAiB,CAqC7B;AArCY,8CAAiB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/teamsfx-core",
3
- "version": "1.1.1",
3
+ "version": "1.1.2-alpha.378e6f1e.0",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "MIT",
@@ -26,6 +26,7 @@
26
26
  "test:core-mw": "nyc mocha \"tests/core/middleware/*.test.ts\"",
27
27
  "test:core-tools": "nyc mocha \"tests/core/tools.test.ts\"",
28
28
  "test:apiv2": "nyc mocha \"tests/plugins/resource/apiv2/*.test.ts\"",
29
+ "test:solutionv3": "nyc mocha \"tests/plugins/solutionv3/*.test.ts\"",
29
30
  "clean": "rm -rf build",
30
31
  "build": "rimraf build && npx tsc -p ./",
31
32
  "lint:fix": "eslint --fix \"src/**/*.ts\" \"tests/**/*.ts\"",
@@ -48,7 +49,7 @@
48
49
  "@azure/storage-blob": "^12.7.0",
49
50
  "@dbpiper/timer": "1.0.0-beta.2",
50
51
  "@feathersjs/hooks": "^0.6.5",
51
- "@microsoft/teamsfx-api": "^0.12.0",
52
+ "@microsoft/teamsfx-api": "0.12.1-alpha.378e6f1e.0",
52
53
  "@npmcli/package-json": "^1.0.1",
53
54
  "@types/jwt-decode": "3.1.0",
54
55
  "@types/proper-lockfile": "^4.1.1",
@@ -155,7 +156,7 @@
155
156
  "resource/**/*",
156
157
  "templates/**/*"
157
158
  ],
158
- "gitHead": "579ef726525eee7336fac0d42ca24dc896de9574",
159
+ "gitHead": "d5dced6538dd142471ac38832f1d3067c5050a09",
159
160
  "publishConfig": {
160
161
  "access": "public"
161
162
  },
@@ -28,7 +28,6 @@
28
28
  "LocalDebugTenantConfirmNotice": "You already run local debug for the Teams app in another tenant '%s'. You can sign out %s and sign in with the matched M365 account to re-use the previous local debug resource. If you really want to switch tenant for local debug, you can delete the %s file and re-run local debug.",
29
29
  "MigrationToArmAndMultiEnvMessage": "Teams Toolkit will upgrade your project configuration files to support the latest features. The upgrade process will not change your custom code and create the backup files in case revert is needed.\nNotice this upgrade is a must-have to continue to use current version Teams Toolkit. If you are not ready to upgrade and want to continue to use the old version, please find Teams Toolkit in Extension and install the version <= 2.10.0",
30
30
  "MigrationToArmAndMultiEnvSuccessMessage": "Upgrade succeeded. Your project is upgraded to new configuration files.",
31
- "NeedToUpdateTeamsToolkitVersionMessage": "Your project is not supported. Please update Teams Toolkit to the latest version from the VSCode Extension Marketplace and make sure the setting (fx-extension: Insider Preview) is enabled",
32
31
  "MigrationToArmAndMultiEnvErrorMessage": "Upgrade Failed. Please check the error message in Output window to troubleshoot and fix. You can also click Learn More for the FAQ and how to upgrade manually.",
33
32
  "MigrationToArmAndMultiEnvPreCheckErrorMessage": "Upgrade Failed. '%s' doesn't exist or is not in json format. Please fix it and try again by running command (Teams: Upgrade project).\nYou can also click Learn More for the FAQ.",
34
33
  "DeployArmTemplates": {
@@ -1,25 +1,3 @@
1
1
  @secure()
2
2
  param provisionParameters object
3
3
  param provisionOutputs object
4
- var simpleAuthCurrentAppSettings = list('${provisionOutputs.simpleAuthOutput.value.webAppResourceId}/config/appsettings', '2021-02-01').properties
5
-
6
- module teamsFxSimpleAuthConfig './teamsFx/simpleAuth.bicep' = {
7
- name: 'addTeamsFxSimpleAuthConfiguration'
8
- params: {
9
- provisionParameters: provisionParameters
10
- provisionOutputs: provisionOutputs
11
- currentAppSettings: simpleAuthCurrentAppSettings
12
- }
13
- }
14
- var functionCurrentConfigs = reference('${provisionOutputs.functionOutput.value.functionAppResourceId}/config/web', '2021-02-01')
15
- var functionCurrentAppSettings = list('${provisionOutputs.functionOutput.value.functionAppResourceId}/config/appsettings', '2021-02-01').properties
16
-
17
- module teamsFxFunctionConfig './teamsFx/function.bicep' = {
18
- name: 'addTeamsFxFunctionConfiguration'
19
- params: {
20
- provisionParameters: provisionParameters
21
- provisionOutputs: provisionOutputs
22
- currentConfigs: functionCurrentConfigs
23
- currentAppSettings: functionCurrentAppSettings
24
- }
25
- }
File without changes
File without changes
@@ -1,58 +1,4 @@
1
1
  @secure()
2
2
  param provisionParameters object
3
- // Resources for frontend hosting
4
- module frontendHostingProvision './provision/frontendHosting.bicep' = {
5
- name: 'frontendHostingProvision'
6
- params: {
7
- provisionParameters: provisionParameters
8
- }
9
- }
10
-
11
- output frontendHostingOutput object = {
12
- teamsFxPluginId: 'fx-resource-frontend-hosting'
13
- domain: frontendHostingProvision.outputs.domain
14
- endpoint: frontendHostingProvision.outputs.endpoint
15
- storageResourceId: frontendHostingProvision.outputs.resourceId
16
- }
17
- // Resources for Simple Auth
18
- module simpleAuthProvision './provision/simpleAuth.bicep' = {
19
- name: 'simpleAuthProvision'
20
- params: {
21
- provisionParameters: provisionParameters
22
- userAssignedIdentityId: userAssignedIdentityProvision.outputs.identityResourceId
23
- }
24
- }
25
-
26
- output simpleAuthOutput object = {
27
- teamsFxPluginId: 'fx-resource-simple-auth'
28
- endpoint: simpleAuthProvision.outputs.endpoint
29
- webAppResourceId: simpleAuthProvision.outputs.webAppResourceId
30
- }
31
- // Resources for Azure SQL
32
- module azureSqlProvision './provision/azureSql.bicep' = {
33
- name: 'azureSqlProvision'
34
- params: {
35
- provisionParameters: provisionParameters
36
- }
37
- }
38
-
39
- output azureSqlOutput object = {
40
- teamsFxPluginId: 'fx-resource-azure-sql'
41
- sqlResourceId: azureSqlProvision.outputs.resourceId
42
- sqlEndpoint: azureSqlProvision.outputs.sqlEndpoint
43
- databaseName: azureSqlProvision.outputs.databaseName
44
- }
45
- // Resources for Azure Functions
46
- module functionProvision './provision/function.bicep' = {
47
- name: 'functionProvision'
48
- params: {
49
- provisionParameters: provisionParameters
50
- userAssignedIdentityId: userAssignedIdentityProvision.outputs.identityResourceId
51
- }
52
- }
53
-
54
- output functionOutput object = {
55
- teamsFxPluginId: 'fx-resource-function'
56
- functionAppResourceId: functionProvision.outputs.functionAppResourceId
57
- functionEndpoint: functionProvision.outputs.functionEndpoint
58
- }
3
+ Orchestration
4
+ Orchestration
@@ -1 +1,2 @@
1
- 0.1.1
1
+ 0.1.1
2
+ md5: 01f306767cb689dac8d973deccc1062d
@@ -1,39 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- var resourceBaseName = provisionParameters.resourceBaseName
4
- var sqlServerName = contains(provisionParameters, 'sqlServerName') ? provisionParameters['sqlServerName'] : '${resourceBaseName}'
5
- var sqlDatabaseName = contains(provisionParameters, 'sqlDatabaseName') ? provisionParameters['sqlDatabaseName'] : '${resourceBaseName}'
6
- var sqlDatabaseSku = contains(provisionParameters, 'sqlDatabaseSku') ? provisionParameters['sqlDatabaseSku'] : 'Basic'
7
- var administratorLogin = contains(provisionParameters, 'azureSqlAdmin') ? provisionParameters['azureSqlAdmin'] : ''
8
- var administratorLoginPassword = contains(provisionParameters, 'azureSqlAdminPassword') ? provisionParameters['azureSqlAdminPassword'] : ''
9
-
10
- resource sqlServer 'Microsoft.Sql/servers@2021-05-01-preview' = {
11
- location: resourceGroup().location
12
- name: sqlServerName
13
- properties: {
14
- administratorLogin: empty(administratorLogin) ? null : administratorLogin
15
- administratorLoginPassword: administratorLoginPassword
16
- }
17
- }
18
-
19
- resource sqlDatabase 'Microsoft.Sql/servers/databases@2021-05-01-preview' = {
20
- parent: sqlServer
21
- location: resourceGroup().location
22
- name: sqlDatabaseName
23
- sku: {
24
- name: sqlDatabaseSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add sqlDatabaseSku property to provisionParameters to override the default value "Basic".
25
- }
26
- }
27
-
28
- resource sqlFirewallRules 'Microsoft.Sql/servers/firewallRules@2021-05-01-preview' = {
29
- parent: sqlServer
30
- name: 'AllowAzure'
31
- properties: {
32
- endIpAddress: '0.0.0.0'
33
- startIpAddress: '0.0.0.0'
34
- }
35
- }
36
-
37
- output resourceId string = sqlServer.id
38
- output sqlEndpoint string = sqlServer.properties.fullyQualifiedDomainName
39
- output databaseName string = sqlDatabaseName
@@ -1,23 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- var resourceBaseName = provisionParameters.resourceBaseName
4
- var storageName = contains(provisionParameters, 'frontendHostingStorageName') ? provisionParameters['frontendHostingStorageName'] : '${resourceBaseName}tab'
5
- var storageSku = contains(provisionParameters, 'frontendHostingStorageSku') ? provisionParameters['frontendHostingStorageSku'] : 'Standard_LRS'
6
-
7
- resource storage 'Microsoft.Storage/storageAccounts@2021-06-01' = {
8
- kind: 'StorageV2'
9
- location: resourceGroup().location
10
- name: storageName
11
- properties: {
12
- supportsHttpsTrafficOnly: true
13
- }
14
- sku: {
15
- name: storageSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add frontendHostingStorageSku property to provisionParameters to override the default value "Standard_LRS".
16
- }
17
- }
18
-
19
- var siteDomain = replace(replace(storage.properties.primaryEndpoints.web, 'https://', ''), '/', '')
20
-
21
- output resourceId string = storage.id
22
- output endpoint string = 'https://${siteDomain}'
23
- output domain string = siteDomain
@@ -1,79 +0,0 @@
1
- @secure()
2
- param provisionParameters object
3
- param userAssignedIdentityId string
4
-
5
- var resourceBaseName = provisionParameters.resourceBaseName
6
- var serverfarmsName = contains(provisionParameters, 'functionServerfarmsName') ? provisionParameters['functionServerfarmsName'] : '${resourceBaseName}api'
7
- var serverfarmsSku = contains(provisionParameters, 'functionServerfarmsSku') ? provisionParameters['functionServerfarmsSku'] : 'Y1'
8
- var functionAppName = contains(provisionParameters, 'functionWebappName') ? provisionParameters['functionWebappName'] : '${resourceBaseName}api'
9
- var storageName = contains(provisionParameters, 'functionStorageName') ? provisionParameters['functionStorageName'] : '${resourceBaseName}api'
10
- var storageSku = contains(provisionParameters, 'functionStorageSku') ? provisionParameters['functionStorageSku'] : 'Standard_LRS'
11
-
12
- resource serverfarms 'Microsoft.Web/serverfarms@2021-02-01' = {
13
- name: serverfarmsName
14
- kind: 'functionapp'
15
- location: resourceGroup().location
16
- sku: {
17
- name: serverfarmsSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add functionServerfarmsSku property to provisionParameters to override the default value "Y1".
18
- }
19
- }
20
-
21
- resource functionApp 'Microsoft.Web/sites@2021-02-01' = {
22
- name: functionAppName
23
- kind: 'functionapp'
24
- location: resourceGroup().location
25
- properties: {
26
- serverFarmId: serverfarms.id
27
- keyVaultReferenceIdentity: userAssignedIdentityId
28
- siteConfig: {
29
- appSettings: [
30
- {
31
- name: 'AzureWebJobsDashboard'
32
- value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
33
- }
34
- {
35
- name: 'AzureWebJobsStorage'
36
- value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
37
- }
38
- {
39
- name: 'FUNCTIONS_EXTENSION_VERSION'
40
- value: '~3'
41
- }
42
- {
43
- name: 'FUNCTIONS_WORKER_RUNTIME'
44
- value: 'node'
45
- }
46
- {
47
- name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
48
- value: 'DefaultEndpointsProtocol=https;AccountName=${storage.name};AccountKey=${listKeys(storage.id, storage.apiVersion).keys[0].value};EndpointSuffix=${environment().suffixes.storage}'
49
- }
50
- {
51
- name: 'WEBSITE_RUN_FROM_PACKAGE'
52
- value: '1'
53
- }
54
- {
55
- name: 'WEBSITE_NODE_DEFAULT_VERSION'
56
- value: '~14'
57
- }
58
- ]
59
- }
60
- }
61
- identity: {
62
- type: 'UserAssigned'
63
- userAssignedIdentities: {
64
- '${userAssignedIdentityId}': {}
65
- }
66
- }
67
- }
68
-
69
- resource storage 'Microsoft.Storage/storageAccounts@2021-06-01' = {
70
- name: storageName
71
- kind: 'StorageV2'
72
- location: resourceGroup().location
73
- sku: {
74
- name: storageSku // You can follow https://aka.ms/teamsfx-bicep-add-param-tutorial to add functionStorageSku property to provisionParameters to override the default value "Standard_LRS".
75
- }
76
- }
77
-
78
- output functionEndpoint string = 'https://${functionApp.properties.defaultHostName}'
79
- output functionAppResourceId string = functionApp.id