@microsoft/teamsfx-core 3.0.5-alpha.00df99a59.0 → 3.0.5-alpha.1d492cee1.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 (193) hide show
  1. package/build/client/graphClient.d.ts +8 -4
  2. package/build/client/graphClient.d.ts.map +1 -1
  3. package/build/client/graphClient.js +35 -8
  4. package/build/client/graphClient.js.map +1 -1
  5. package/build/client/interfaces/GetGroupResponse.d.ts +6 -0
  6. package/build/client/interfaces/GetGroupResponse.d.ts.map +1 -0
  7. package/build/client/interfaces/GetGroupResponse.js +5 -0
  8. package/build/client/interfaces/GetGroupResponse.js.map +1 -0
  9. package/build/client/interfaces/GetUserResponse.d.ts +7 -0
  10. package/build/client/interfaces/GetUserResponse.d.ts.map +1 -0
  11. package/build/client/interfaces/GetUserResponse.js +5 -0
  12. package/build/client/interfaces/GetUserResponse.js.map +1 -0
  13. package/build/common/constants.d.ts +2 -0
  14. package/build/common/constants.d.ts.map +1 -1
  15. package/build/common/constants.js +3 -1
  16. package/build/common/constants.js.map +1 -1
  17. package/build/common/featureFlags.js +4 -4
  18. package/build/common/featureFlags.js.map +1 -1
  19. package/build/common/permissionInterface.d.ts +6 -0
  20. package/build/common/permissionInterface.d.ts.map +1 -1
  21. package/build/common/stringUtils.d.ts.map +1 -1
  22. package/build/common/stringUtils.js +2 -1
  23. package/build/common/stringUtils.js.map +1 -1
  24. package/build/common/templates-config.json +1 -1
  25. package/build/component/configManager/validator.d.ts.map +1 -1
  26. package/build/component/configManager/validator.js +1 -0
  27. package/build/component/configManager/validator.js.map +1 -1
  28. package/build/component/coordinator/index.d.ts +0 -1
  29. package/build/component/coordinator/index.d.ts.map +1 -1
  30. package/build/component/coordinator/index.js +53 -57
  31. package/build/component/coordinator/index.js.map +1 -1
  32. package/build/component/deps-checker/constant/helpLink.d.ts +2 -0
  33. package/build/component/deps-checker/constant/helpLink.d.ts.map +1 -1
  34. package/build/component/deps-checker/constant/helpLink.js +3 -1
  35. package/build/component/deps-checker/constant/helpLink.js.map +1 -1
  36. package/build/component/deps-checker/internal/funcToolChecker.js +5 -5
  37. package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
  38. package/build/component/deps-checker/internal/testToolChecker.js +4 -4
  39. package/build/component/deps-checker/internal/testToolChecker.js.map +1 -1
  40. package/build/component/driver/index.d.ts +19 -20
  41. package/build/component/driver/index.d.ts.map +1 -1
  42. package/build/component/driver/index.js +19 -20
  43. package/build/component/driver/index.js.map +1 -1
  44. package/build/component/driver/m365/acquire.d.ts +3 -0
  45. package/build/component/driver/m365/acquire.d.ts.map +1 -1
  46. package/build/component/driver/m365/acquire.js +29 -19
  47. package/build/component/driver/m365/acquire.js.map +1 -1
  48. package/build/component/driver/share/utils.d.ts +5 -1
  49. package/build/component/driver/share/utils.d.ts.map +1 -1
  50. package/build/component/driver/share/utils.js +23 -22
  51. package/build/component/driver/share/utils.js.map +1 -1
  52. package/build/component/driver/teamsApp/createAppPackage.d.ts.map +1 -1
  53. package/build/component/driver/teamsApp/createAppPackage.js +5 -5
  54. package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
  55. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts +1 -1
  56. package/build/component/driver/teamsApp/utils/PluginManifestUtils.d.ts.map +1 -1
  57. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js +5 -2
  58. package/build/component/driver/teamsApp/utils/PluginManifestUtils.js.map +1 -1
  59. package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
  60. package/build/component/driver/teamsApp/validate.js +3 -1
  61. package/build/component/driver/teamsApp/validate.js.map +1 -1
  62. package/build/component/driver/util/utils.d.ts.map +1 -1
  63. package/build/component/driver/util/utils.js +6 -4
  64. package/build/component/driver/util/utils.js.map +1 -1
  65. package/build/component/feature/collaboration.d.ts +7 -1
  66. package/build/component/feature/collaboration.d.ts.map +1 -1
  67. package/build/component/feature/collaboration.js +84 -1
  68. package/build/component/feature/collaboration.js.map +1 -1
  69. package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
  70. package/build/component/generator/combinedProject/generator.js +2 -1
  71. package/build/component/generator/combinedProject/generator.js.map +1 -1
  72. package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
  73. package/build/component/generator/declarativeAgent/generator.js +2 -1
  74. package/build/component/generator/declarativeAgent/generator.js.map +1 -1
  75. package/build/component/generator/generator.d.ts +1 -1
  76. package/build/component/generator/generator.d.ts.map +1 -1
  77. package/build/component/generator/generator.js +2 -1
  78. package/build/component/generator/generator.js.map +1 -1
  79. package/build/component/generator/openApiSpec/common.d.ts.map +1 -1
  80. package/build/component/generator/openApiSpec/common.js +2 -1
  81. package/build/component/generator/openApiSpec/common.js.map +1 -1
  82. package/build/component/generator/openApiSpec/helper.d.ts.map +1 -1
  83. package/build/component/generator/openApiSpec/helper.js +132 -98
  84. package/build/component/generator/openApiSpec/helper.js.map +1 -1
  85. package/build/component/generator/other/ssrTabGenerator.d.ts.map +1 -1
  86. package/build/component/generator/other/ssrTabGenerator.js +2 -1
  87. package/build/component/generator/other/ssrTabGenerator.js.map +1 -1
  88. package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
  89. package/build/component/generator/other/tdpGenerator.js +2 -1
  90. package/build/component/generator/other/tdpGenerator.js.map +1 -1
  91. package/build/component/generator/spfx/spfxGenerator.d.ts +1 -1
  92. package/build/component/generator/spfx/spfxGenerator.d.ts.map +1 -1
  93. package/build/component/generator/spfx/spfxGenerator.js +12 -9
  94. package/build/component/generator/spfx/spfxGenerator.js.map +1 -1
  95. package/build/component/generator/spfx/utils/constants.d.ts +2 -0
  96. package/build/component/generator/spfx/utils/constants.d.ts.map +1 -1
  97. package/build/component/generator/spfx/utils/constants.js +2 -0
  98. package/build/component/generator/spfx/utils/constants.js.map +1 -1
  99. package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -1
  100. package/build/component/generator/templates/templateReplaceMap.js +8 -6
  101. package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
  102. package/build/component/generator/utils.js +1 -1
  103. package/build/component/generator/utils.js.map +1 -1
  104. package/build/component/m365/constants.d.ts +1 -0
  105. package/build/component/m365/constants.d.ts.map +1 -1
  106. package/build/component/m365/constants.js +2 -1
  107. package/build/component/m365/constants.js.map +1 -1
  108. package/build/component/m365/interface.d.ts +6 -5
  109. package/build/component/m365/interface.d.ts.map +1 -1
  110. package/build/component/m365/interface.js +6 -5
  111. package/build/component/m365/interface.js.map +1 -1
  112. package/build/component/m365/packageService.d.ts +13 -3
  113. package/build/component/m365/packageService.d.ts.map +1 -1
  114. package/build/component/m365/packageService.js +175 -15
  115. package/build/component/m365/packageService.js.map +1 -1
  116. package/build/core/FxCore.d.ts +0 -3
  117. package/build/core/FxCore.d.ts.map +1 -1
  118. package/build/core/FxCore.js +35 -63
  119. package/build/core/FxCore.js.map +1 -1
  120. package/build/core/collaborator.d.ts +1 -0
  121. package/build/core/collaborator.d.ts.map +1 -1
  122. package/build/core/collaborator.js +55 -3
  123. package/build/core/collaborator.js.map +1 -1
  124. package/build/core/middleware/utils/debug/taskMigrator.js +1 -1
  125. package/build/core/share.d.ts +9 -0
  126. package/build/core/share.d.ts.map +1 -0
  127. package/build/core/share.js +118 -0
  128. package/build/core/share.js.map +1 -0
  129. package/build/error/depCheck.js +1 -1
  130. package/build/error/depCheck.js.map +1 -1
  131. package/build/index.d.ts +1 -0
  132. package/build/index.d.ts.map +1 -1
  133. package/build/index.js +3 -1
  134. package/build/index.js.map +1 -1
  135. package/build/question/collaborator.d.ts +6 -0
  136. package/build/question/collaborator.d.ts.map +1 -0
  137. package/build/question/collaborator.js +166 -0
  138. package/build/question/collaborator.js.map +1 -0
  139. package/build/question/constants.d.ts +1 -0
  140. package/build/question/constants.d.ts.map +1 -1
  141. package/build/question/constants.js +2 -1
  142. package/build/question/constants.js.map +1 -1
  143. package/build/question/generator.d.ts.map +1 -1
  144. package/build/question/generator.js.map +1 -1
  145. package/build/question/index.d.ts.map +1 -1
  146. package/build/question/index.js +6 -4
  147. package/build/question/index.js.map +1 -1
  148. package/build/question/inputs/ShareInputs.d.ts +6 -4
  149. package/build/question/inputs/ShareInputs.d.ts.map +1 -1
  150. package/build/question/inputs/index.d.ts +12 -12
  151. package/build/question/inputs/index.d.ts.map +1 -1
  152. package/build/question/inputs/index.js +12 -12
  153. package/build/question/inputs/index.js.map +1 -1
  154. package/build/question/options/ShareOptions.d.ts.map +1 -1
  155. package/build/question/options/ShareOptions.js +12 -5
  156. package/build/question/options/ShareOptions.js.map +1 -1
  157. package/build/question/other.d.ts +2 -8
  158. package/build/question/other.d.ts.map +1 -1
  159. package/build/question/other.js +11 -266
  160. package/build/question/other.js.map +1 -1
  161. package/build/question/questionNames.d.ts +3 -4
  162. package/build/question/questionNames.d.ts.map +1 -1
  163. package/build/question/questionNames.js +3 -4
  164. package/build/question/questionNames.js.map +1 -1
  165. package/build/question/share.d.ts +22 -0
  166. package/build/question/share.d.ts.map +1 -0
  167. package/build/question/share.js +165 -0
  168. package/build/question/share.js.map +1 -0
  169. package/build/tsconfig.tsbuildinfo +1 -1
  170. package/package.json +4 -4
  171. package/resource/package.nls.json +23 -13
  172. package/resource/yaml-schema/v1.10/yaml.schema.json +2058 -0
  173. package/resource/yaml-schema/yaml.schema.json +5 -54
  174. package/templates/fallback/common.zip +0 -0
  175. package/templates/fallback/csharp.zip +0 -0
  176. package/templates/fallback/js.zip +0 -0
  177. package/templates/fallback/python.zip +0 -0
  178. package/templates/fallback/ts.zip +0 -0
  179. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/BotAuthenticationOptions.cs +44 -0
  180. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/IIdentityClientAdapter.cs +21 -0
  181. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/ITeamsInfo.cs +24 -0
  182. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/IdentityClientAdapter.cs +30 -0
  183. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoDialog.cs +12 -9
  184. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoOperations.cs +2 -2
  185. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPrompt.cs +423 -0
  186. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPromptSettings.cs +41 -0
  187. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPromptTokenResponse.cs +21 -0
  188. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsInfoWrapper.cs +20 -0
  189. package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsSsoBot.cs +6 -5
  190. package/build/component/driver/share/shareToOthers.d.ts +0 -17
  191. package/build/component/driver/share/shareToOthers.d.ts.map +0 -1
  192. package/build/component/driver/share/shareToOthers.js +0 -127
  193. package/build/component/driver/share/shareToOthers.js.map +0 -1
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.selectUsersToRemoveSharedAccess = exports.removeSharedAccessNode = exports.ShareScopeOptions = exports.ShareOperationOptions = exports.shareNode = exports.MAX_SHARE_EMAILS = exports.ShareScopeOption = exports.ShareOperationOption = void 0;
6
+ const teamsDevPortalClient_1 = require("../client/teamsDevPortalClient");
7
+ const constants_1 = require("../common/constants");
8
+ const globalVars_1 = require("../common/globalVars");
9
+ const localizeUtils_1 = require("../common/localizeUtils");
10
+ const utils_1 = require("../component/driver/share/utils");
11
+ const collaborator_1 = require("../core/collaborator");
12
+ const constants_2 = require("./constants");
13
+ const other_1 = require("./other");
14
+ var ShareOperationOption;
15
+ (function (ShareOperationOption) {
16
+ ShareOperationOption["ShareWithUsers"] = "share";
17
+ ShareOperationOption["RemoveShareAccessFromUsers"] = "unshare";
18
+ })(ShareOperationOption = exports.ShareOperationOption || (exports.ShareOperationOption = {}));
19
+ var ShareScopeOption;
20
+ (function (ShareScopeOption) {
21
+ ShareScopeOption["ShareAppWithTenantUsers"] = "tenant";
22
+ ShareScopeOption["ShareAppWithSpecificUsers"] = "users";
23
+ })(ShareScopeOption = exports.ShareScopeOption || (exports.ShareScopeOption = {}));
24
+ exports.MAX_SHARE_EMAILS = 20;
25
+ function shareNode() {
26
+ return {
27
+ data: shareOperationOptions(),
28
+ children: [
29
+ shareScopeOptions(),
30
+ {
31
+ condition: (inputs) => {
32
+ return (inputs[constants_2.QuestionNames.ShareOperation] === ShareOperationOption.RemoveShareAccessFromUsers);
33
+ },
34
+ data: (0, other_1.inputUserEmailQuestion)((0, localizeUtils_1.getLocalizedString)("core.shareOptionQuestion.unshare.emails.title"), "Email address of specific users or groups separated by comma.", false),
35
+ },
36
+ ],
37
+ };
38
+ }
39
+ exports.shareNode = shareNode;
40
+ function shareOperationOptions() {
41
+ return {
42
+ name: constants_2.QuestionNames.ShareOperation,
43
+ title: (0, localizeUtils_1.getLocalizedString)("core.shareOptionQuestion.title"),
44
+ type: "singleSelect",
45
+ placeholder: (0, localizeUtils_1.getLocalizedString)("core.shareOptionQuestion.placeholder"),
46
+ staticOptions: [
47
+ ShareOperationOptions.shareWithUsers(),
48
+ ShareOperationOptions.removeShareAccessFromUsers(),
49
+ ],
50
+ };
51
+ }
52
+ function shareScopeOptions() {
53
+ return {
54
+ condition: { equals: ShareOperationOptions.shareWithUsers().id },
55
+ data: {
56
+ type: "singleSelect",
57
+ name: constants_2.QuestionNames.ShareScope,
58
+ title: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.title"),
59
+ placeholder: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.placeholder"),
60
+ staticOptions: [ShareScopeOptions.shareWithTenant(), ShareScopeOptions.shareWithUsers()],
61
+ default: ShareScopeOptions.shareWithUsers().id,
62
+ },
63
+ children: [
64
+ {
65
+ condition: (inputs) => {
66
+ return inputs[constants_2.QuestionNames.ShareScope] === ShareScopeOption.ShareAppWithSpecificUsers;
67
+ },
68
+ data: (0, other_1.inputUserEmailQuestion)((0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.emails.title"), "Email address of specific users or groups separated by comma.", false),
69
+ },
70
+ ],
71
+ };
72
+ }
73
+ class ShareOperationOptions {
74
+ static shareWithUsers() {
75
+ return {
76
+ id: ShareOperationOption.ShareWithUsers,
77
+ label: (0, localizeUtils_1.getLocalizedString)("core.shareOperationQuestion.option.shareWithUsers"),
78
+ };
79
+ }
80
+ static removeShareAccessFromUsers() {
81
+ return {
82
+ id: ShareOperationOption.RemoveShareAccessFromUsers,
83
+ label: (0, localizeUtils_1.getLocalizedString)("core.shareOperationQuestion.option.removeShareAccessFromUsers"),
84
+ };
85
+ }
86
+ }
87
+ exports.ShareOperationOptions = ShareOperationOptions;
88
+ class ShareScopeOptions {
89
+ static shareWithTenant() {
90
+ return {
91
+ id: ShareScopeOption.ShareAppWithTenantUsers,
92
+ label: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.option.shareWithTenant"),
93
+ };
94
+ }
95
+ static shareWithUsers() {
96
+ return {
97
+ id: ShareScopeOption.ShareAppWithSpecificUsers,
98
+ label: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.option.shareWithUsers"),
99
+ };
100
+ }
101
+ }
102
+ exports.ShareScopeOptions = ShareScopeOptions;
103
+ function removeSharedAccessNode() {
104
+ return {
105
+ data: {
106
+ type: "group",
107
+ },
108
+ children: [
109
+ {
110
+ data: selectUsersToRemoveSharedAccess(),
111
+ },
112
+ ],
113
+ };
114
+ }
115
+ exports.removeSharedAccessNode = removeSharedAccessNode;
116
+ function selectUsersToRemoveSharedAccess() {
117
+ return {
118
+ name: constants_2.QuestionNames.RemoveUsers,
119
+ title: (0, localizeUtils_1.getLocalizedString)("core.selectUsersToRemoveShareAccess.title"),
120
+ type: "multiSelect",
121
+ cliDescription: (0, localizeUtils_1.getLocalizedString)("core.selectUsersToRemoveShareAccess.title"),
122
+ staticOptions: [],
123
+ dynamicOptions: async (inputs) => {
124
+ if (!inputs.projectPath) {
125
+ throw new Error("Project path is not defined");
126
+ }
127
+ const tokenRes = await globalVars_1.TOOLS.tokenProvider.m365TokenProvider.getAccessToken({
128
+ scopes: constants_1.AppStudioScopes,
129
+ });
130
+ if (tokenRes.isErr()) {
131
+ throw tokenRes.error;
132
+ }
133
+ const token = tokenRes.value;
134
+ const configRes = await (0, utils_1.parseShareAppActionYamlConfig)(inputs.projectPath);
135
+ if (configRes.isErr()) {
136
+ throw configRes.error;
137
+ }
138
+ const teamsAppId = configRes.value.teamsappId;
139
+ const app = await teamsDevPortalClient_1.teamsDevPortalClient.getApp(token, teamsAppId);
140
+ if (!app.userList || app.userList.length === 0) {
141
+ throw new Error("No owner found in the app");
142
+ }
143
+ const currentUserInfoRes = await collaborator_1.CollaborationUtil.getCurrentUserInfo(globalVars_1.TOOLS.tokenProvider.m365TokenProvider);
144
+ if (currentUserInfoRes.isErr()) {
145
+ throw currentUserInfoRes.error;
146
+ }
147
+ const operatorId = currentUserInfoRes.value.aadId;
148
+ const options = [];
149
+ for (const user of app.userList) {
150
+ if (user.aadId === operatorId) {
151
+ continue;
152
+ }
153
+ options.push({
154
+ id: user.userPrincipalName,
155
+ label: user.displayName,
156
+ description: user.userPrincipalName,
157
+ });
158
+ }
159
+ return options;
160
+ },
161
+ skipValidation: true,
162
+ };
163
+ }
164
+ exports.selectUsersToRemoveSharedAccess = selectUsersToRemoveSharedAccess;
165
+ //# sourceMappingURL=share.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.js","sourceRoot":"","sources":["../../src/question/share.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AASlC,yEAAsE;AACtE,mDAAsD;AACtD,qDAA6C;AAC7C,2DAA6D;AAC7D,2DAAgF;AAChF,uDAAyD;AACzD,2CAA4C;AAC5C,mCAAiD;AAEjD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,gDAAwB,CAAA;IACxB,8DAAsC,CAAA;AACxC,CAAC,EAH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