@microsoft/teamsfx-core 2.0.7 → 2.0.8-alpha.2f5decfcc.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 (294) hide show
  1. package/build/common/constants.d.ts +7 -1
  2. package/build/common/constants.d.ts.map +1 -1
  3. package/build/common/constants.js +7 -1
  4. package/build/common/constants.js.map +1 -1
  5. package/build/common/featureFlags.d.ts +6 -0
  6. package/build/common/featureFlags.d.ts.map +1 -1
  7. package/build/common/featureFlags.js +28 -2
  8. package/build/common/featureFlags.js.map +1 -1
  9. package/build/common/m365/packageService.d.ts +1 -0
  10. package/build/common/m365/packageService.d.ts.map +1 -1
  11. package/build/common/m365/packageService.js +15 -2
  12. package/build/common/m365/packageService.js.map +1 -1
  13. package/build/common/projectSettingsHelper.d.ts +3 -0
  14. package/build/common/projectSettingsHelper.d.ts.map +1 -1
  15. package/build/common/projectSettingsHelper.js +29 -1
  16. package/build/common/projectSettingsHelper.js.map +1 -1
  17. package/build/common/projectTypeChecker.d.ts.map +1 -1
  18. package/build/common/projectTypeChecker.js +1 -2
  19. package/build/common/projectTypeChecker.js.map +1 -1
  20. package/build/common/samples.d.ts +3 -2
  21. package/build/common/samples.d.ts.map +1 -1
  22. package/build/common/samples.js +84 -40
  23. package/build/common/samples.js.map +1 -1
  24. package/build/common/telemetry.d.ts +3 -1
  25. package/build/common/telemetry.d.ts.map +1 -1
  26. package/build/common/telemetry.js +2 -0
  27. package/build/common/telemetry.js.map +1 -1
  28. package/build/common/templates-config.json +3 -2
  29. package/build/common/wrappedAxiosClient.d.ts +59 -0
  30. package/build/common/wrappedAxiosClient.d.ts.map +1 -0
  31. package/build/common/wrappedAxiosClient.js +247 -0
  32. package/build/common/wrappedAxiosClient.js.map +1 -0
  33. package/build/component/constant/commonConstant.d.ts +5 -0
  34. package/build/component/constant/commonConstant.d.ts.map +1 -1
  35. package/build/component/constant/commonConstant.js +7 -1
  36. package/build/component/constant/commonConstant.js.map +1 -1
  37. package/build/component/coordinator/index.d.ts +10 -1
  38. package/build/component/coordinator/index.d.ts.map +1 -1
  39. package/build/component/coordinator/index.js +77 -10
  40. package/build/component/coordinator/index.js.map +1 -1
  41. package/build/component/developerPortalScaffoldUtils.d.ts.map +1 -1
  42. package/build/component/developerPortalScaffoldUtils.js +0 -2
  43. package/build/component/developerPortalScaffoldUtils.js.map +1 -1
  44. package/build/component/driver/aad/utility/aadAppClient.d.ts +1 -0
  45. package/build/component/driver/aad/utility/aadAppClient.d.ts.map +1 -1
  46. package/build/component/driver/aad/utility/aadAppClient.js +9 -0
  47. package/build/component/driver/aad/utility/aadAppClient.js.map +1 -1
  48. package/build/component/driver/aad/utility/aadManifestHelper.js +2 -1
  49. package/build/component/driver/aad/utility/aadManifestHelper.js.map +1 -1
  50. package/build/component/driver/apiKey/create.d.ts.map +1 -1
  51. package/build/component/driver/apiKey/create.js +11 -10
  52. package/build/component/driver/apiKey/create.js.map +1 -1
  53. package/build/component/driver/botFramework/createOrUpdateBot.d.ts.map +1 -1
  54. package/build/component/driver/botFramework/createOrUpdateBot.js +0 -2
  55. package/build/component/driver/botFramework/createOrUpdateBot.js.map +1 -1
  56. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.d.ts.map +1 -1
  57. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js +5 -5
  58. package/build/component/driver/deploy/azure/impl/AzureZipDeployImpl.js.map +1 -1
  59. package/build/component/driver/deploy/spfx/utility/spoClient.d.ts.map +1 -1
  60. package/build/component/driver/deploy/spfx/utility/spoClient.js +3 -1
  61. package/build/component/driver/deploy/spfx/utility/spoClient.js.map +1 -1
  62. package/build/component/driver/index.d.ts +1 -0
  63. package/build/component/driver/index.d.ts.map +1 -1
  64. package/build/component/driver/index.js +1 -0
  65. package/build/component/driver/index.js.map +1 -1
  66. package/build/component/driver/teamsApp/appStudio.d.ts.map +1 -1
  67. package/build/component/driver/teamsApp/appStudio.js +0 -2
  68. package/build/component/driver/teamsApp/appStudio.js.map +1 -1
  69. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts +31 -9
  70. package/build/component/driver/teamsApp/clients/appStudioClient.d.ts.map +1 -1
  71. package/build/component/driver/teamsApp/clients/appStudioClient.js +86 -111
  72. package/build/component/driver/teamsApp/clients/appStudioClient.js.map +1 -1
  73. package/build/component/driver/teamsApp/clients/authSvcClient.d.ts.map +1 -1
  74. package/build/component/driver/teamsApp/clients/authSvcClient.js +3 -24
  75. package/build/component/driver/teamsApp/clients/authSvcClient.js.map +1 -1
  76. package/build/component/driver/teamsApp/configure.d.ts.map +1 -1
  77. package/build/component/driver/teamsApp/configure.js +0 -2
  78. package/build/component/driver/teamsApp/configure.js.map +1 -1
  79. package/build/component/driver/teamsApp/constants.d.ts +4 -0
  80. package/build/component/driver/teamsApp/constants.d.ts.map +1 -1
  81. package/build/component/driver/teamsApp/constants.js +6 -1
  82. package/build/component/driver/teamsApp/constants.js.map +1 -1
  83. package/build/component/driver/teamsApp/create.d.ts.map +1 -1
  84. package/build/component/driver/teamsApp/create.js +0 -2
  85. package/build/component/driver/teamsApp/create.js.map +1 -1
  86. package/build/component/driver/teamsApp/createAppPackage.d.ts +3 -0
  87. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  88. package/build/component/driver/teamsApp/createAppPackage.js +61 -14
  89. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  90. package/build/component/driver/teamsApp/errors.d.ts +4 -0
  91. package/build/component/driver/teamsApp/errors.d.ts.map +1 -1
  92. package/build/component/driver/teamsApp/errors.js +7 -0
  93. package/build/component/driver/teamsApp/errors.js.map +1 -1
  94. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.d.ts +21 -0
  95. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.d.ts.map +1 -0
  96. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.js +5 -0
  97. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationDetailsResponse.js.map +1 -0
  98. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.d.ts +17 -0
  99. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.d.ts.map +1 -0
  100. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.js +16 -0
  101. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResponse.js.map +1 -0
  102. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.d.ts +41 -0
  103. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.d.ts.map +1 -0
  104. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.js +5 -0
  105. package/build/component/driver/teamsApp/interfaces/AsyncAppValidationResultsResponse.js.map +1 -0
  106. package/build/component/driver/teamsApp/interfaces/ValidateWithTestCasesArgs.d.ts +17 -0
  107. package/build/component/driver/teamsApp/interfaces/ValidateWithTestCasesArgs.d.ts.map +1 -0
  108. package/build/component/driver/teamsApp/interfaces/ValidateWithTestCasesArgs.js +5 -0
  109. package/build/component/driver/teamsApp/interfaces/ValidateWithTestCasesArgs.js.map +1 -0
  110. package/build/component/driver/teamsApp/publishAppPackage.d.ts.map +1 -1
  111. package/build/component/driver/teamsApp/publishAppPackage.js +3 -5
  112. package/build/component/driver/teamsApp/publishAppPackage.js.map +1 -1
  113. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts +1 -0
  114. package/build/component/driver/teamsApp/utils/ManifestUtils.d.ts.map +1 -1
  115. package/build/component/driver/teamsApp/utils/ManifestUtils.js +17 -0
  116. package/build/component/driver/teamsApp/utils/ManifestUtils.js.map +1 -1
  117. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts +8 -0
  118. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -0
  119. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +63 -0
  120. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -0
  121. package/build/component/driver/teamsApp/utils/telemetry.d.ts +0 -31
  122. package/build/component/driver/teamsApp/utils/telemetry.d.ts.map +1 -1
  123. package/build/component/driver/teamsApp/utils/telemetry.js +1 -53
  124. package/build/component/driver/teamsApp/utils/telemetry.js.map +1 -1
  125. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  126. package/build/component/driver/teamsApp/validate.js +0 -1
  127. package/build/component/driver/teamsApp/validate.js.map +1 -1
  128. package/build/component/driver/teamsApp/validateAppPackage.d.ts.map +1 -1
  129. package/build/component/driver/teamsApp/validateAppPackage.js +0 -1
  130. package/build/component/driver/teamsApp/validateAppPackage.js.map +1 -1
  131. package/build/component/driver/teamsApp/validateTestCases.d.ts +22 -0
  132. package/build/component/driver/teamsApp/validateTestCases.d.ts.map +1 -0
  133. package/build/component/driver/teamsApp/validateTestCases.js +156 -0
  134. package/build/component/driver/teamsApp/validateTestCases.js.map +1 -0
  135. package/build/component/feature/collaboration.d.ts +1 -1
  136. package/build/component/feature/collaboration.d.ts.map +1 -1
  137. package/build/component/feature/collaboration.js +2 -4
  138. package/build/component/feature/collaboration.js.map +1 -1
  139. package/build/component/generator/copilotPlugin/generator.d.ts +5 -2
  140. package/build/component/generator/copilotPlugin/generator.d.ts.map +1 -1
  141. package/build/component/generator/copilotPlugin/generator.js +101 -26
  142. package/build/component/generator/copilotPlugin/generator.js.map +1 -1
  143. package/build/component/generator/copilotPlugin/helper.d.ts +8 -3
  144. package/build/component/generator/copilotPlugin/helper.d.ts.map +1 -1
  145. package/build/component/generator/copilotPlugin/helper.js +278 -30
  146. package/build/component/generator/copilotPlugin/helper.js.map +1 -1
  147. package/build/component/generator/error.d.ts +1 -1
  148. package/build/component/generator/error.d.ts.map +1 -1
  149. package/build/component/generator/error.js +4 -4
  150. package/build/component/generator/error.js.map +1 -1
  151. package/build/component/generator/generator.d.ts +6 -1
  152. package/build/component/generator/generator.d.ts.map +1 -1
  153. package/build/component/generator/generator.js +32 -26
  154. package/build/component/generator/generator.js.map +1 -1
  155. package/build/component/generator/generatorAction.d.ts +5 -16
  156. package/build/component/generator/generatorAction.d.ts.map +1 -1
  157. package/build/component/generator/generatorAction.js +46 -87
  158. package/build/component/generator/generatorAction.js.map +1 -1
  159. package/build/component/generator/officeAddin/config/projectProperties.d.ts +32 -1
  160. package/build/component/generator/officeAddin/config/projectProperties.d.ts.map +1 -1
  161. package/build/component/generator/officeAddin/config/projectProperties.js +33 -2
  162. package/build/component/generator/officeAddin/config/projectProperties.js.map +1 -1
  163. package/build/component/generator/officeAddin/config/projectsJsonData.d.ts +7 -1
  164. package/build/component/generator/officeAddin/config/projectsJsonData.d.ts.map +1 -1
  165. package/build/component/generator/officeAddin/config/projectsJsonData.js +54 -4
  166. package/build/component/generator/officeAddin/config/projectsJsonData.js.map +1 -1
  167. package/build/component/generator/officeAddin/generator.d.ts.map +1 -1
  168. package/build/component/generator/officeAddin/generator.js +31 -10
  169. package/build/component/generator/officeAddin/generator.js.map +1 -1
  170. package/build/component/generator/officeAddin/helperMethods.d.ts +2 -1
  171. package/build/component/generator/officeAddin/helperMethods.d.ts.map +1 -1
  172. package/build/component/generator/officeAddin/helperMethods.js +21 -10
  173. package/build/component/generator/officeAddin/helperMethods.js.map +1 -1
  174. package/build/component/generator/officeXMLAddin/generator.d.ts +9 -0
  175. package/build/component/generator/officeXMLAddin/generator.d.ts.map +1 -0
  176. package/build/component/generator/officeXMLAddin/generator.js +90 -0
  177. package/build/component/generator/officeXMLAddin/generator.js.map +1 -0
  178. package/build/component/generator/officeXMLAddin/projectConfig.d.ts +36 -0
  179. package/build/component/generator/officeXMLAddin/projectConfig.d.ts.map +1 -0
  180. package/build/component/generator/officeXMLAddin/projectConfig.js +127 -0
  181. package/build/component/generator/officeXMLAddin/projectConfig.js.map +1 -0
  182. package/build/component/generator/utils.d.ts +2 -1
  183. package/build/component/generator/utils.d.ts.map +1 -1
  184. package/build/component/generator/utils.js +35 -16
  185. package/build/component/generator/utils.js.map +1 -1
  186. package/build/component/middleware/envMW.d.ts.map +1 -1
  187. package/build/component/middleware/envMW.js +1 -0
  188. package/build/component/middleware/envMW.js.map +1 -1
  189. package/build/component/resource/botService/appStudio/appStudioClient.d.ts.map +1 -1
  190. package/build/component/resource/botService/appStudio/appStudioClient.js +11 -39
  191. package/build/component/resource/botService/appStudio/appStudioClient.js.map +1 -1
  192. package/build/component/utils/envUtil.d.ts +2 -0
  193. package/build/component/utils/envUtil.d.ts.map +1 -1
  194. package/build/component/utils/envUtil.js +23 -0
  195. package/build/component/utils/envUtil.js.map +1 -1
  196. package/build/component/utils/pathUtils.d.ts.map +1 -1
  197. package/build/component/utils/pathUtils.js +2 -0
  198. package/build/component/utils/pathUtils.js.map +1 -1
  199. package/build/core/FxCore.d.ts +2 -0
  200. package/build/core/FxCore.d.ts.map +1 -1
  201. package/build/core/FxCore.js +94 -18
  202. package/build/core/FxCore.js.map +1 -1
  203. package/build/core/collaborator.js +3 -3
  204. package/build/core/collaborator.js.map +1 -1
  205. package/build/core/middleware/projectMigratorV3.d.ts.map +1 -1
  206. package/build/core/middleware/projectMigratorV3.js +6 -1
  207. package/build/core/middleware/projectMigratorV3.js.map +1 -1
  208. package/build/error/common.d.ts.map +1 -1
  209. package/build/error/common.js +1 -1
  210. package/build/error/common.js.map +1 -1
  211. package/build/error/deploy.d.ts.map +1 -1
  212. package/build/error/deploy.js +17 -6
  213. package/build/error/deploy.js.map +1 -1
  214. package/build/index.d.ts +0 -1
  215. package/build/index.d.ts.map +1 -1
  216. package/build/index.js +1 -3
  217. package/build/index.js.map +1 -1
  218. package/build/question/constants.d.ts +1 -0
  219. package/build/question/constants.d.ts.map +1 -1
  220. package/build/question/constants.js +2 -1
  221. package/build/question/constants.js.map +1 -1
  222. package/build/question/create.d.ts +35 -2
  223. package/build/question/create.d.ts.map +1 -1
  224. package/build/question/create.js +578 -79
  225. package/build/question/create.js.map +1 -1
  226. package/build/question/inputs/CreateProjectInputs.d.ts +22 -8
  227. package/build/question/inputs/CreateProjectInputs.d.ts.map +1 -1
  228. package/build/question/options/CreateProjectOptions.d.ts.map +1 -1
  229. package/build/question/options/CreateProjectOptions.js +58 -12
  230. package/build/question/options/CreateProjectOptions.js.map +1 -1
  231. package/build/question/other.d.ts +1 -0
  232. package/build/question/other.d.ts.map +1 -1
  233. package/build/question/other.js +17 -1
  234. package/build/question/other.js.map +1 -1
  235. package/build/question/questionNames.d.ts +10 -1
  236. package/build/question/questionNames.d.ts.map +1 -1
  237. package/build/question/questionNames.js +9 -0
  238. package/build/question/questionNames.js.map +1 -1
  239. package/package.json +4 -4
  240. package/resource/package.nls.json +208 -116
  241. package/templates/fallback/common.zip +0 -0
  242. package/templates/fallback/csharp.zip +0 -0
  243. package/templates/fallback/js.zip +0 -0
  244. package/templates/fallback/python.zip +0 -0
  245. package/templates/fallback/ts.zip +0 -0
  246. package/templates/plugins/resource/aad/auth/V3/Enable SSO.txt +1 -1
  247. package/build/common/spec-parser/adaptiveCardGenerator.d.ts +0 -7
  248. package/build/common/spec-parser/adaptiveCardGenerator.d.ts.map +0 -1
  249. package/build/common/spec-parser/adaptiveCardGenerator.js +0 -168
  250. package/build/common/spec-parser/adaptiveCardGenerator.js.map +0 -1
  251. package/build/common/spec-parser/adaptiveCardWrapper.d.ts +0 -15
  252. package/build/common/spec-parser/adaptiveCardWrapper.d.ts.map +0 -1
  253. package/build/common/spec-parser/adaptiveCardWrapper.js +0 -98
  254. package/build/common/spec-parser/adaptiveCardWrapper.js.map +0 -1
  255. package/build/common/spec-parser/constants.d.ts +0 -41
  256. package/build/common/spec-parser/constants.d.ts.map +0 -1
  257. package/build/common/spec-parser/constants.js +0 -95
  258. package/build/common/spec-parser/constants.js.map +0 -1
  259. package/build/common/spec-parser/index.browser.d.ts +0 -6
  260. package/build/common/spec-parser/index.browser.d.ts.map +0 -1
  261. package/build/common/spec-parser/index.browser.js +0 -16
  262. package/build/common/spec-parser/index.browser.js.map +0 -1
  263. package/build/common/spec-parser/index.d.ts +0 -5
  264. package/build/common/spec-parser/index.d.ts.map +0 -1
  265. package/build/common/spec-parser/index.js +0 -16
  266. package/build/common/spec-parser/index.js.map +0 -1
  267. package/build/common/spec-parser/interfaces.d.ts +0 -180
  268. package/build/common/spec-parser/interfaces.d.ts.map +0 -1
  269. package/build/common/spec-parser/interfaces.js +0 -51
  270. package/build/common/spec-parser/interfaces.js.map +0 -1
  271. package/build/common/spec-parser/manifestUpdater.d.ts +0 -7
  272. package/build/common/spec-parser/manifestUpdater.d.ts.map +0 -1
  273. package/build/common/spec-parser/manifestUpdater.js +0 -98
  274. package/build/common/spec-parser/manifestUpdater.js.map +0 -1
  275. package/build/common/spec-parser/specFilter.d.ts +0 -3
  276. package/build/common/spec-parser/specFilter.d.ts.map +0 -1
  277. package/build/common/spec-parser/specFilter.js +0 -40
  278. package/build/common/spec-parser/specFilter.js.map +0 -1
  279. package/build/common/spec-parser/specParser.browser.d.ts +0 -46
  280. package/build/common/spec-parser/specParser.browser.d.ts.map +0 -1
  281. package/build/common/spec-parser/specParser.browser.js +0 -139
  282. package/build/common/spec-parser/specParser.browser.js.map +0 -1
  283. package/build/common/spec-parser/specParser.d.ts +0 -46
  284. package/build/common/spec-parser/specParser.d.ts.map +0 -1
  285. package/build/common/spec-parser/specParser.js +0 -244
  286. package/build/common/spec-parser/specParser.js.map +0 -1
  287. package/build/common/spec-parser/specParserError.d.ts +0 -6
  288. package/build/common/spec-parser/specParserError.d.ts.map +0 -1
  289. package/build/common/spec-parser/specParserError.js +0 -13
  290. package/build/common/spec-parser/specParserError.js.map +0 -1
  291. package/build/common/spec-parser/utils.d.ts +0 -43
  292. package/build/common/spec-parser/utils.d.ts.map +0 -1
  293. package/build/common/spec-parser/utils.js +0 -595
  294. package/build/common/spec-parser/utils.js.map +0 -1
@@ -5,7 +5,7 @@ On click of Visual Studio menu Project -> Teams Toolkit -> Add Authentication Co
5
5
 
6
6
  Teams Toolkit helps you generate the authentication files, then you will need to link the files to your Teams application by updating authentication configurations to make sure the Single Sign-on works for your application. Please be noted that for different Teams application type like Tab or Bot, the detailed steps are slightly different.
7
7
 
8
- Basically you will need take care these configurations:
8
+ Basically, you will need to take care of these configurations:
9
9
 
10
10
  * In the Microsoft Entra manifest file, you need to specify URIs such as the URI to identify the Microsoft Entra authentication app and the redirect URI for returning token.
11
11
  * In the Teams manifest file, add the SSO application to link it with Teams application.
@@ -1,7 +0,0 @@
1
- import { OpenAPIV3 } from "openapi-types";
2
- import { AdaptiveCard, ArrayElement, ImageElement, TextBlockElement } from "./interfaces";
3
- export declare function generateAdaptiveCard(operationItem: OpenAPIV3.OperationObject): [AdaptiveCard, string];
4
- export declare function generateCardFromResponse(schema: OpenAPIV3.SchemaObject, name: string, parentArrayName?: string): Array<TextBlockElement | ImageElement | ArrayElement>;
5
- export declare function getResponseJsonPathFromSchema(schema: OpenAPIV3.SchemaObject): string;
6
- export declare function isImageUrlProperty(schema: OpenAPIV3.NonArraySchemaObject, name: string, parentArrayName: string): boolean;
7
- //# sourceMappingURL=adaptiveCardGenerator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adaptiveCardGenerator.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/adaptiveCardGenerator.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EACL,YAAY,EACZ,YAAY,EAEZ,YAAY,EACZ,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAItB,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,SAAS,CAAC,eAAe,GACvC,CAAC,YAAY,EAAE,MAAM,CAAC,CAkDxB;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,SAAS,CAAC,YAAY,EAC9B,IAAI,EAAE,MAAM,EACZ,eAAe,SAAK,GACnB,KAAK,CAAC,gBAAgB,GAAG,YAAY,GAAG,YAAY,CAAC,CAiGvD;AAGD,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,GAAG,MAAM,CAepF;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,CAAC,oBAAoB,EACtC,IAAI,EAAE,MAAM,EACZ,eAAe,EAAE,MAAM,GACtB,OAAO,CAQT"}
@@ -1,168 +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.isImageUrlProperty = exports.getResponseJsonPathFromSchema = exports.generateCardFromResponse = exports.generateAdaptiveCard = void 0;
6
- const utils_1 = require("./utils");
7
- const interfaces_1 = require("./interfaces");
8
- const constants_1 = require("./constants");
9
- const specParserError_1 = require("./specParserError");
10
- function generateAdaptiveCard(operationItem) {
11
- try {
12
- const json = utils_1.getResponseJson(operationItem);
13
- let cardBody = [];
14
- let schema = json.schema;
15
- let jsonPath = "$";
16
- if (schema && Object.keys(schema).length > 0) {
17
- jsonPath = getResponseJsonPathFromSchema(schema);
18
- if (jsonPath !== "$") {
19
- schema = schema.properties[jsonPath];
20
- }
21
- cardBody = generateCardFromResponse(schema, "");
22
- }
23
- // if no schema, try to use example value
24
- if (cardBody.length === 0 && (json.examples || json.example)) {
25
- cardBody = [
26
- {
27
- type: constants_1.ConstantString.TextBlockType,
28
- text: "${jsonStringify($root)}",
29
- wrap: true,
30
- },
31
- ];
32
- }
33
- // if no example value, use default success response
34
- if (cardBody.length === 0) {
35
- cardBody = [
36
- {
37
- type: constants_1.ConstantString.TextBlockType,
38
- text: "success",
39
- wrap: true,
40
- },
41
- ];
42
- }
43
- const fullCard = {
44
- type: constants_1.ConstantString.AdaptiveCardType,
45
- $schema: constants_1.ConstantString.AdaptiveCardSchema,
46
- version: constants_1.ConstantString.AdaptiveCardVersion,
47
- body: cardBody,
48
- };
49
- return [fullCard, jsonPath];
50
- }
51
- catch (err) {
52
- throw new specParserError_1.SpecParserError(err.toString(), interfaces_1.ErrorType.GenerateAdaptiveCardFailed);
53
- }
54
- }
55
- exports.generateAdaptiveCard = generateAdaptiveCard;
56
- function generateCardFromResponse(schema, name, parentArrayName = "") {
57
- if (schema.type === "array") {
58
- // schema.items can be arbitrary object: schema { type: array, items: {} }
59
- if (Object.keys(schema.items).length === 0) {
60
- return [
61
- {
62
- type: constants_1.ConstantString.TextBlockType,
63
- text: name ? `${name}: \${jsonStringify(${name})}` : "result: ${jsonStringify($root)}",
64
- wrap: true,
65
- },
66
- ];
67
- }
68
- const obj = generateCardFromResponse(schema.items, "", name);
69
- const template = {
70
- type: constants_1.ConstantString.ContainerType,
71
- $data: name ? `\${${name}}` : "${$root}",
72
- items: Array(),
73
- };
74
- template.items.push(...obj);
75
- return [template];
76
- }
77
- // some schema may not contain type but contain properties
78
- if (schema.type === "object" || (!schema.type && schema.properties)) {
79
- const { properties } = schema;
80
- const result = [];
81
- for (const property in properties) {
82
- const obj = generateCardFromResponse(properties[property], name ? `${name}.${property}` : property, parentArrayName);
83
- result.push(...obj);
84
- }
85
- if (schema.additionalProperties) {
86
- // TODO: better ways to handler warnings.
87
- console.warn(constants_1.ConstantString.AdditionalPropertiesNotSupported);
88
- }
89
- return result;
90
- }
91
- if (schema.type === "string" ||
92
- schema.type === "integer" ||
93
- schema.type === "boolean" ||
94
- schema.type === "number") {
95
- if (!isImageUrlProperty(schema, name, parentArrayName)) {
96
- // string in root: "ddd"
97
- let text = "result: ${$root}";
98
- if (name) {
99
- // object { id: "1" }
100
- text = `${name}: \${if(${name}, ${name}, 'N/A')}`;
101
- if (parentArrayName) {
102
- // object types inside array: { tags: ["id": 1, "name": "name"] }
103
- text = `${parentArrayName}.${text}`;
104
- }
105
- }
106
- else if (parentArrayName) {
107
- // string array: photoUrls: ["1", "2"]
108
- text = `${parentArrayName}: ` + "${$data}";
109
- }
110
- return [
111
- {
112
- type: constants_1.ConstantString.TextBlockType,
113
- text,
114
- wrap: true,
115
- },
116
- ];
117
- }
118
- else {
119
- if (name) {
120
- return [
121
- {
122
- type: "Image",
123
- url: `\${${name}}`,
124
- $when: `\${${name} != null}`,
125
- },
126
- ];
127
- }
128
- else {
129
- return [
130
- {
131
- type: "Image",
132
- url: "${$data}",
133
- $when: "${$data != null}",
134
- },
135
- ];
136
- }
137
- }
138
- }
139
- if (schema.oneOf || schema.anyOf || schema.not || schema.allOf) {
140
- throw new Error(utils_1.format(constants_1.ConstantString.SchemaNotSupported, JSON.stringify(schema)));
141
- }
142
- throw new Error(utils_1.format(constants_1.ConstantString.UnknownSchema, JSON.stringify(schema)));
143
- }
144
- exports.generateCardFromResponse = generateCardFromResponse;
145
- // Find the first array property in the response schema object with the well-known name
146
- function getResponseJsonPathFromSchema(schema) {
147
- if (schema.type === "object" || (!schema.type && schema.properties)) {
148
- const { properties } = schema;
149
- for (const property in properties) {
150
- const schema = properties[property];
151
- if (schema.type === "array" &&
152
- utils_1.isWellKnownName(property, constants_1.ConstantString.WellknownResultNames)) {
153
- return property;
154
- }
155
- }
156
- }
157
- return "$";
158
- }
159
- exports.getResponseJsonPathFromSchema = getResponseJsonPathFromSchema;
160
- function isImageUrlProperty(schema, name, parentArrayName) {
161
- const propertyName = name ? name : parentArrayName;
162
- return (!!propertyName &&
163
- schema.type === "string" &&
164
- utils_1.isWellKnownName(propertyName, constants_1.ConstantString.WellknownImageName) &&
165
- (propertyName.toLocaleLowerCase().indexOf("url") >= 0 || schema.format === "uri"));
166
- }
167
- exports.isImageUrlProperty = isImageUrlProperty;
168
- //# sourceMappingURL=adaptiveCardGenerator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adaptiveCardGenerator.js","sourceRoot":"","sources":["../../../src/common/spec-parser/adaptiveCardGenerator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,mCAAmE;AACnE,6CAMsB;AACtB,2CAA6C;AAC7C,uDAAoD;AAEpD,SAAgB,oBAAoB,CAClC,aAAwC;IAExC,IAAI;QACF,MAAM,IAAI,GAAG,uBAAe,CAAC,aAAa,CAAC,CAAC;QAE5C,IAAI,QAAQ,GAA0D,EAAE,CAAC;QAEzE,IAAI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,YAAY,CAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,CAClF,CAAC;AACJ,CAAC;AAZD,gDAYC"}
@@ -1,15 +0,0 @@
1
- import { AdaptiveCard, PreviewCardTemplate, WrappedAdaptiveCard } from "./interfaces";
2
- export declare function wrapAdaptiveCard(card: AdaptiveCard, jsonPath: string): WrappedAdaptiveCard;
3
- /**
4
- * Infers the preview card template from an Adaptive Card and a JSON path.
5
- * The preview card template includes a title and an optional subtitle and image.
6
- * It populates the preview card template with the first text block that matches
7
- * each well-known name, in the order of title, subtitle, and image.
8
- * If no text block matches the title or subtitle, it uses the first two text block as the title and subtitle.
9
- * If the title is still empty and the subtitle is not empty, it uses subtitle as the title.
10
- * @param card The Adaptive Card to infer the preview card template from.
11
- * @param jsonPath The JSON path to the root object in the card body.
12
- * @returns The inferred preview card template.
13
- */
14
- export declare function inferPreviewCardTemplate(card: AdaptiveCard): PreviewCardTemplate;
15
- //# sourceMappingURL=adaptiveCardWrapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adaptiveCardWrapper.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/adaptiveCardWrapper.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,YAAY,EAGZ,mBAAmB,EAEnB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AAGtB,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAW1F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,YAAY,GAAG,mBAAmB,CAmEhF"}
@@ -1,98 +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.inferPreviewCardTemplate = exports.wrapAdaptiveCard = void 0;
6
- const constants_1 = require("./constants");
7
- const utils_1 = require("./utils");
8
- function wrapAdaptiveCard(card, jsonPath) {
9
- const result = {
10
- version: constants_1.ConstantString.WrappedCardVersion,
11
- $schema: constants_1.ConstantString.WrappedCardSchema,
12
- jsonPath: jsonPath,
13
- responseLayout: constants_1.ConstantString.WrappedCardResponseLayout,
14
- responseCardTemplate: card,
15
- previewCardTemplate: inferPreviewCardTemplate(card),
16
- };
17
- return result;
18
- }
19
- exports.wrapAdaptiveCard = wrapAdaptiveCard;
20
- /**
21
- * Infers the preview card template from an Adaptive Card and a JSON path.
22
- * The preview card template includes a title and an optional subtitle and image.
23
- * It populates the preview card template with the first text block that matches
24
- * each well-known name, in the order of title, subtitle, and image.
25
- * If no text block matches the title or subtitle, it uses the first two text block as the title and subtitle.
26
- * If the title is still empty and the subtitle is not empty, it uses subtitle as the title.
27
- * @param card The Adaptive Card to infer the preview card template from.
28
- * @param jsonPath The JSON path to the root object in the card body.
29
- * @returns The inferred preview card template.
30
- */
31
- function inferPreviewCardTemplate(card) {
32
- var _a;
33
- const result = {
34
- title: "",
35
- };
36
- const textBlockElements = new Set();
37
- let rootObject;
38
- if (((_a = card.body[0]) === null || _a === void 0 ? void 0 : _a.type) === constants_1.ConstantString.ContainerType) {
39
- rootObject = card.body[0].items;
40
- }
41
- else {
42
- rootObject = card.body;
43
- }
44
- for (const element of rootObject) {
45
- if (element.type === constants_1.ConstantString.TextBlockType) {
46
- const textElement = element;
47
- const index = textElement.text.indexOf("${if(");
48
- if (index > 0) {
49
- textElement.text = textElement.text.substring(index);
50
- textBlockElements.add(textElement);
51
- }
52
- }
53
- }
54
- for (const element of textBlockElements) {
55
- const text = element.text;
56
- if (!result.title && utils_1.isWellKnownName(text, constants_1.ConstantString.WellknownTitleName)) {
57
- result.title = text;
58
- textBlockElements.delete(element);
59
- }
60
- else if (!result.subtitle && utils_1.isWellKnownName(text, constants_1.ConstantString.WellknownSubtitleName)) {
61
- result.subtitle = text;
62
- textBlockElements.delete(element);
63
- }
64
- else if (!result.image && utils_1.isWellKnownName(text, constants_1.ConstantString.WellknownImageName)) {
65
- const match = text.match(/\${if\(([^,]+),/);
66
- const property = match ? match[1] : "";
67
- if (property) {
68
- result.image = {
69
- url: `\${${property}}`,
70
- alt: text,
71
- $when: `\${${property} != null}`,
72
- };
73
- }
74
- textBlockElements.delete(element);
75
- }
76
- }
77
- for (const element of textBlockElements) {
78
- const text = element.text;
79
- if (!result.title) {
80
- result.title = text;
81
- textBlockElements.delete(element);
82
- }
83
- else if (!result.subtitle) {
84
- result.subtitle = text;
85
- textBlockElements.delete(element);
86
- }
87
- }
88
- if (!result.title && result.subtitle) {
89
- result.title = result.subtitle;
90
- delete result.subtitle;
91
- }
92
- if (!result.title) {
93
- result.title = "result";
94
- }
95
- return result;
96
- }
97
- exports.inferPreviewCardTemplate = inferPreviewCardTemplate;
98
- //# sourceMappingURL=adaptiveCardWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adaptiveCardWrapper.js","sourceRoot":"","sources":["../../../src/common/spec-parser/adaptiveCardWrapper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,2CAA6C;AAS7C,mCAA0C;AAE1C,SAAgB,gBAAgB,CAAC,IAAkB,EAAE,QAAgB;IACnE,MAAM,MAAM,GAAwB;QAClC,OAAO,EAAE,0BAAc,CAAC,kBAAkB;QAC1C,OAAO,EAAE,0BAAc,CAAC,iBAAiB;QACzC,QAAQ,EAAE,QAAQ;QAClB,cAAc,EAAE,0BAAc,CAAC,yBAAyB;QACxD,oBAAoB,EAAE,IAAI;QAC1B,mBAAmB,EAAE,wBAAwB,CAAC,IAAI,CAAC;KACpD,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAXD,4CAWC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,wBAAwB,CAAC,IAAkB;;IACzD,MAAM,MAAM,GAAwB;QAClC,KAAK,EAAE,EAAE;KACV,CAAC;IACF,M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"Operation is cancelled.";
3
- static readonly NoServerInformation = "No server information is found in the OpenAPI description document.";
4
- static readonly RemoteRefNotSupported = "Remote reference is not supported: %s.";
5
- static readonly MissingOperationId = "Missing operationIds: %s.";
6
- static readonly NoSupportedApi = "No supported API is found in the OpenAPI description document: only GET and POST methods are supported, additionally, there can be at most one required parameter, and no auth is allowed.";
7
- static readonly AdditionalPropertiesNotSupported = "'additionalProperties' is not supported, and will be ignored.";
8
- static readonly SchemaNotSupported = "'oneOf', 'anyOf', and 'not' schema are not supported: %s.";
9
- static readonly UnknownSchema = "Unknown schema: %s.";
10
- static readonly UrlProtocolNotSupported = "Server url is not correct: protocol %s is not supported, you should use https protocol instead.";
11
- static readonly RelativeServerUrlNotSupported = "Server url is not correct: relative server url is not supported.";
12
- static readonly ResolveServerUrlFailed = "Unable to resolve the server URL: please make sure that the environment variable %s is defined.";
13
- static readonly OperationOnlyContainsOptionalParam = "Operation %s contains multiple optional parameters. The first optional parameter is used for this command.";
14
- static readonly ConvertSwaggerToOpenAPI = "The Swagger 2.0 file has been converted to OpenAPI 3.0.";
15
- static readonly SwaggerNotSupported = "Swagger 2.0 is not supported. Please convert to OpenAPI 3.0 manually before proceeding.";
16
- static readonly MultipleAPIKeyNotSupported = "Multiple API keys are not supported. Please make sure that all selected APIs use the same API key.";
17
- static readonly WrappedCardVersion = "devPreview";
18
- static readonly WrappedCardSchema = "https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.ResponseRenderingTemplate.schema.json";
19
- static readonly WrappedCardResponseLayout = "list";
20
- static readonly GetMethod = "get";
21
- static readonly PostMethod = "post";
22
- static readonly AdaptiveCardVersion = "1.5";
23
- static readonly AdaptiveCardSchema = "http://adaptivecards.io/schemas/adaptive-card.json";
24
- static readonly AdaptiveCardType = "AdaptiveCard";
25
- static readonly TextBlockType = "TextBlock";
26
- static readonly ContainerType = "Container";
27
- static readonly RegistrationIdPostfix = "REGISTRATION_ID";
28
- static readonly ResponseCodeFor20X: string[];
29
- static readonly AllOperationMethods: string[];
30
- static readonly WellknownResultNames: string[];
31
- static readonly WellknownTitleName: string[];
32
- static readonly WellknownSubtitleName: string[];
33
- static readonly WellknownImageName: string[];
34
- static readonly ShortDescriptionMaxLens = 80;
35
- static readonly FullDescriptionMaxLens = 4000;
36
- static readonly CommandDescriptionMaxLens = 128;
37
- static readonly ParameterDescriptionMaxLens = 128;
38
- static readonly CommandTitleMaxLens = 32;
39
- static readonly ParameterTitleMaxLens = 32;
40
- }
41
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/constants.ts"],"names":[],"mappings":"AAIA,qBAAa,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,gBAAgB,6BAA6B;IAC7D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yEACqC;IACxE,MAAM,CAAC,QAAQ,CAAC,qBAAqB,4CAA4C;IACjF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,+BAA+B;IACjE,MAAM,CAAC,QAAQ,CAAC,cAAc,gMACiK;IAE/L,MAAM,CAAC,QAAQ,CAAC,gCAAgC,mEACkB;IAClE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,+DAA+D;IACjG,MAAM,CAAC,QAAQ,CAAC,aAAa,yBAAyB;IAEtD,MAAM,CAAC,QAAQ,CAAC,uBAAuB,qGAC6D;IACpG,MAAM,CAAC,QAAQ,CAAC,6BAA6B,sEACwB;IACrE,MAAM,CAAC,QAAQ,CAAC,sBAAsB,qGAC8D;IACpG,MAAM,CAAC,QAAQ,CAAC,kCAAkC,gHAC6D;IAC/G,MAAM,CAAC,QAAQ,CAAC,uBAAuB,6DACqB;IAE5D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,6FACyD;IAE5F,MAAM,CAAC,QAAQ,CAAC,0BAA0B,wGAC6D;IAEvG,MAAM,CAAC,QAAQ,CAAC,kBAAkB,gBAAgB;IAClD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,yHACuF;IACxH,MAAM,CAAC,QAAQ,CAAC,yBAAyB,UAAU;IAEnD,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;IAClC,MAAM,CAAC,QAAQ,CAAC,UAAU,UAAU;IACpC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,SAAS;IAC5C,MAAM,CAAC,QAAQ,CAAC,kBAAkB,wDAAwD;IAC1F,MAAM,CAAC,QAAQ,CAAC,gBAAgB,kBAAkB;IAClD,MAAM,CAAC,QAAQ,CAAC,aAAa,eAAe;IAC5C,MAAM,CAAC,QAAQ,CAAC,aAAa,eAAe;IAC5C,MAAM,CAAC,QAAQ,CAAC,qBAAqB,qBAAqB;IAC1D,MAAM,CAAC,QAAQ,CAAC,kBAAkB,WAYhC;IACF,MAAM,CAAC,QAAQ,CAAC,mBAAmB,WASjC;IAGF,MAAM,CAAC,QAAQ,CAAC,oBAAoB,WASlC;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,WAA+D;IACjG,MAAM,CAAC,QAAQ,CAAC,qBAAqB,WAOnC;IACF,MAAM,CAAC,QAAQ,CAAC,kBAAkB,WAUhC;IAEF,MAAM,CAAC,QAAQ,CAAC,uBAAuB,MAAM;IAC7C,MAAM,CAAC,QAAQ,CAAC,sBAAsB,QAAQ;IAC9C,MAAM,CAAC,QAAQ,CAAC,yBAAyB,OAAO;IAChD,MAAM,CAAC,QAAQ,CAAC,2BAA2B,OAAO;IAClD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,MAAM;IACzC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,MAAM;CAC5C"}
@@ -1,95 +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.ConstantString = void 0;
6
- class ConstantString {
7
- }
8
- exports.ConstantString = ConstantString;
9
- ConstantString.CancelledMessage = "Operation is cancelled.";
10
- ConstantString.NoServerInformation = "No server information is found in the OpenAPI description document.";
11
- ConstantString.RemoteRefNotSupported = "Remote reference is not supported: %s.";
12
- ConstantString.MissingOperationId = "Missing operationIds: %s.";
13
- ConstantString.NoSupportedApi = "No supported API is found in the OpenAPI description document: only GET and POST methods are supported, additionally, there can be at most one required parameter, and no auth is allowed.";
14
- ConstantString.AdditionalPropertiesNotSupported = "'additionalProperties' is not supported, and will be ignored.";
15
- ConstantString.SchemaNotSupported = "'oneOf', 'anyOf', and 'not' schema are not supported: %s.";
16
- ConstantString.UnknownSchema = "Unknown schema: %s.";
17
- ConstantString.UrlProtocolNotSupported = "Server url is not correct: protocol %s is not supported, you should use https protocol instead.";
18
- ConstantString.RelativeServerUrlNotSupported = "Server url is not correct: relative server url is not supported.";
19
- ConstantString.ResolveServerUrlFailed = "Unable to resolve the server URL: please make sure that the environment variable %s is defined.";
20
- ConstantString.OperationOnlyContainsOptionalParam = "Operation %s contains multiple optional parameters. The first optional parameter is used for this command.";
21
- ConstantString.ConvertSwaggerToOpenAPI = "The Swagger 2.0 file has been converted to OpenAPI 3.0.";
22
- ConstantString.SwaggerNotSupported = "Swagger 2.0 is not supported. Please convert to OpenAPI 3.0 manually before proceeding.";
23
- ConstantString.MultipleAPIKeyNotSupported = "Multiple API keys are not supported. Please make sure that all selected APIs use the same API key.";
24
- ConstantString.WrappedCardVersion = "devPreview";
25
- ConstantString.WrappedCardSchema = "https://developer.microsoft.com/json-schemas/teams/vDevPreview/MicrosoftTeams.ResponseRenderingTemplate.schema.json";
26
- ConstantString.WrappedCardResponseLayout = "list";
27
- ConstantString.GetMethod = "get";
28
- ConstantString.PostMethod = "post";
29
- ConstantString.AdaptiveCardVersion = "1.5";
30
- ConstantString.AdaptiveCardSchema = "http://adaptivecards.io/schemas/adaptive-card.json";
31
- ConstantString.AdaptiveCardType = "AdaptiveCard";
32
- ConstantString.TextBlockType = "TextBlock";
33
- ConstantString.ContainerType = "Container";
34
- ConstantString.RegistrationIdPostfix = "REGISTRATION_ID";
35
- ConstantString.ResponseCodeFor20X = [
36
- "200",
37
- "201",
38
- "202",
39
- "203",
40
- "204",
41
- "205",
42
- "206",
43
- "207",
44
- "208",
45
- "226",
46
- "default",
47
- ];
48
- ConstantString.AllOperationMethods = [
49
- "get",
50
- "post",
51
- "put",
52
- "delete",
53
- "patch",
54
- "head",
55
- "options",
56
- "trace",
57
- ];
58
- // TODO: update after investigating the usage of these constants.
59
- ConstantString.WellknownResultNames = [
60
- "result",
61
- "data",
62
- "items",
63
- "root",
64
- "matches",
65
- "queries",
66
- "list",
67
- "output",
68
- ];
69
- ConstantString.WellknownTitleName = ["title", "name", "summary", "caption", "subject", "label"];
70
- ConstantString.WellknownSubtitleName = [
71
- "subtitle",
72
- "id",
73
- "uid",
74
- "description",
75
- "desc",
76
- "detail",
77
- ];
78
- ConstantString.WellknownImageName = [
79
- "image",
80
- "icon",
81
- "avatar",
82
- "picture",
83
- "photo",
84
- "logo",
85
- "pic",
86
- "thumbnail",
87
- "img",
88
- ];
89
- ConstantString.ShortDescriptionMaxLens = 80;
90
- ConstantString.FullDescriptionMaxLens = 4000;
91
- ConstantString.CommandDescriptionMaxLens = 128;
92
- ConstantString.ParameterDescriptionMaxLens = 128;
93
- ConstantString.CommandTitleMaxLens = 32;
94
- ConstantString.ParameterTitleMaxLens = 32;
95
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/spec-parser/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,MAAa,cAAc;;AAA3B,wCA0GC;AAzGiB,+BAAgB,GAAG,yBAAyB,CAAC;AAC7C,kCAAmB,GACjC,qEAAqE,CAAC;AACxD,oCAAqB,GAAG,wCAAwC,CAAC;AACjE,iCAAkB,GAAG,2BAA2B,CAAC;AACjD,6BAAc,GAC5B,4LAA4L,CAAC;AAE/K,+CAAgC,GAC9C,+DAA+D,CAAC;AAClD,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AI;IACJ,KAAK;IACL,aAAa;IACb,MAAM;IACN,QAAQ;CACT,CAAC;AACc,iCAAkB,GAAG;IACnC,OAAO;IACP,MAAM;IACN,QAAQ;IACR,SAAS;IACT,OAAO;IACP,MAAM;IACN,KAAK;IACL,WAAW;IACX,KAAK;CACN,CAAC;AAEc,sCAAuB,GAAG,EAAE,CAAC;AAC7B,qCAAsB,GAAG,IAAI,CAAC;AAC9B,wCAAyB,GAAG,GAAG,CAAC;AAChC,0CAA2B,GAAG,GAAG,CAAC;AAClC,kCAAmB,GAAG,EAAE,CAAC;AACzB,oCAAqB,GAAG,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- export { SpecParser } from "./specParser.browser";
2
- export { SpecParserError } from "./specParserError";
3
- export { ValidationStatus, WarningType, ErrorType, ListAPIResult } from "./interfaces";
4
- export type { ErrorResult, APIInfo, ValidateResult, WarningResult } from "./interfaces";
5
- export { ConstantString } from "./constants";
6
- //# sourceMappingURL=index.browser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/index.browser.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACvF,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -1,16 +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.ConstantString = exports.ErrorType = exports.WarningType = exports.ValidationStatus = exports.SpecParserError = exports.SpecParser = void 0;
6
- var specParser_browser_1 = require("./specParser.browser");
7
- Object.defineProperty(exports, "SpecParser", { enumerable: true, get: function () { return specParser_browser_1.SpecParser; } });
8
- var specParserError_1 = require("./specParserError");
9
- Object.defineProperty(exports, "SpecParserError", { enumerable: true, get: function () { return specParserError_1.SpecParserError; } });
10
- var interfaces_1 = require("./interfaces");
11
- Object.defineProperty(exports, "ValidationStatus", { enumerable: true, get: function () { return interfaces_1.ValidationStatus; } });
12
- Object.defineProperty(exports, "WarningType", { enumerable: true, get: function () { return interfaces_1.WarningType; } });
13
- Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function () { return interfaces_1.ErrorType; } });
14
- var constants_1 = require("./constants");
15
- Object.defineProperty(exports, "ConstantString", { enumerable: true, get: function () { return constants_1.ConstantString; } });
16
- //# sourceMappingURL=index.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../src/common/spec-parser/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,2DAAkD;AAAzC,gHAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,2CAAuF;AAA9E,8GAAA,gBAAgB,OAAA;AAAE,yGAAA,WAAW,OAAA;AAAE,uGAAA,SAAS,OAAA;AAEjD,yCAA6C;AAApC,2GAAA,cAAc,OAAA"}
@@ -1,5 +0,0 @@
1
- export { SpecParser } from "./specParser";
2
- export { SpecParserError } from "./specParserError";
3
- export { ValidationStatus, WarningType, ErrorType, WarningResult, ErrorResult, ListAPIResult, } from "./interfaces";
4
- export { ConstantString } from "./constants";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/spec-parser/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,aAAa,EACb,WAAW,EACX,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -1,16 +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.ConstantString = exports.ErrorType = exports.WarningType = exports.ValidationStatus = exports.SpecParserError = exports.SpecParser = void 0;
6
- var specParser_1 = require("./specParser");
7
- Object.defineProperty(exports, "SpecParser", { enumerable: true, get: function () { return specParser_1.SpecParser; } });
8
- var specParserError_1 = require("./specParserError");
9
- Object.defineProperty(exports, "SpecParserError", { enumerable: true, get: function () { return specParserError_1.SpecParserError; } });
10
- var interfaces_1 = require("./interfaces");
11
- Object.defineProperty(exports, "ValidationStatus", { enumerable: true, get: function () { return interfaces_1.ValidationStatus; } });
12
- Object.defineProperty(exports, "WarningType", { enumerable: true, get: function () { return interfaces_1.WarningType; } });
13
- Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function () { return interfaces_1.ErrorType; } });
14
- var constants_1 = require("./constants");
15
- Object.defineProperty(exports, "ConstantString", { enumerable: true, get: function () { return constants_1.ConstantString; } });
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/spec-parser/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,2CAOsB;AANpB,8GAAA,gBAAgB,OAAA;AAChB,yGAAA,WAAW,OAAA;AACX,uGAAA,SAAS,OAAA;AAKX,yCAA6C;AAApC,2GAAA,cAAc,OAAA"}