@microsoft/teamsfx-core 3.0.5-alpha.4ca19e75b.0 → 3.0.5-alpha.4dbe374ea.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/constants.d.ts +1 -0
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +2 -1
- package/build/common/constants.js.map +1 -1
- package/build/common/templates-config.json +1 -1
- package/build/component/coordinator/index.d.ts +0 -1
- package/build/component/coordinator/index.d.ts.map +1 -1
- package/build/component/coordinator/index.js +53 -56
- package/build/component/coordinator/index.js.map +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js +1 -1
- package/build/component/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/component/driver/share/utils.d.ts +5 -1
- package/build/component/driver/share/utils.d.ts.map +1 -1
- package/build/component/driver/share/utils.js +14 -15
- package/build/component/driver/share/utils.js.map +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js +1 -1
- package/build/component/driver/teamsApp/createAppPackage.js.map +1 -1
- package/build/component/driver/teamsApp/validate.d.ts.map +1 -1
- package/build/component/driver/teamsApp/validate.js +3 -1
- package/build/component/driver/teamsApp/validate.js.map +1 -1
- package/build/component/generator/combinedProject/generator.d.ts.map +1 -1
- package/build/component/generator/combinedProject/generator.js +2 -1
- package/build/component/generator/combinedProject/generator.js.map +1 -1
- package/build/component/generator/declarativeAgent/generator.d.ts.map +1 -1
- package/build/component/generator/declarativeAgent/generator.js +2 -1
- package/build/component/generator/declarativeAgent/generator.js.map +1 -1
- package/build/component/generator/generator.d.ts +1 -1
- package/build/component/generator/generator.d.ts.map +1 -1
- package/build/component/generator/generator.js +2 -1
- package/build/component/generator/generator.js.map +1 -1
- package/build/component/generator/openApiSpec/common.d.ts.map +1 -1
- package/build/component/generator/openApiSpec/common.js +2 -1
- package/build/component/generator/openApiSpec/common.js.map +1 -1
- package/build/component/generator/other/ssrTabGenerator.d.ts.map +1 -1
- package/build/component/generator/other/ssrTabGenerator.js +2 -1
- package/build/component/generator/other/ssrTabGenerator.js.map +1 -1
- package/build/component/generator/other/tdpGenerator.d.ts.map +1 -1
- package/build/component/generator/other/tdpGenerator.js +2 -1
- package/build/component/generator/other/tdpGenerator.js.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.d.ts.map +1 -1
- package/build/component/generator/templates/templateReplaceMap.js +8 -6
- package/build/component/generator/templates/templateReplaceMap.js.map +1 -1
- package/build/component/m365/interface.d.ts +6 -5
- package/build/component/m365/interface.d.ts.map +1 -1
- package/build/component/m365/interface.js +6 -5
- package/build/component/m365/interface.js.map +1 -1
- package/build/component/m365/packageService.d.ts +7 -2
- package/build/component/m365/packageService.d.ts.map +1 -1
- package/build/component/m365/packageService.js +130 -7
- package/build/component/m365/packageService.js.map +1 -1
- package/build/core/FxCore.d.ts +0 -3
- package/build/core/FxCore.d.ts.map +1 -1
- package/build/core/FxCore.js +40 -40
- package/build/core/FxCore.js.map +1 -1
- package/build/core/collaborator.d.ts.map +1 -1
- package/build/core/collaborator.js +26 -0
- package/build/core/collaborator.js.map +1 -1
- package/build/core/middleware/utils/debug/taskMigrator.js +1 -1
- package/build/core/share.d.ts +9 -0
- package/build/core/share.d.ts.map +1 -0
- package/build/core/share.js +104 -0
- package/build/core/share.js.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -1
- package/build/index.js.map +1 -1
- package/build/question/constants.d.ts +1 -0
- package/build/question/constants.d.ts.map +1 -1
- package/build/question/constants.js +2 -1
- package/build/question/constants.js.map +1 -1
- package/build/question/generator.d.ts.map +1 -1
- package/build/question/generator.js.map +1 -1
- package/build/question/index.d.ts.map +1 -1
- package/build/question/index.js +3 -2
- package/build/question/index.js.map +1 -1
- package/build/question/inputs/ShareInputs.d.ts +6 -4
- package/build/question/inputs/ShareInputs.d.ts.map +1 -1
- package/build/question/inputs/index.d.ts +12 -12
- package/build/question/inputs/index.d.ts.map +1 -1
- package/build/question/inputs/index.js +12 -12
- package/build/question/inputs/index.js.map +1 -1
- package/build/question/options/ShareOptions.d.ts.map +1 -1
- package/build/question/options/ShareOptions.js +12 -5
- package/build/question/options/ShareOptions.js.map +1 -1
- package/build/question/other.d.ts +1 -4
- package/build/question/other.d.ts.map +1 -1
- package/build/question/other.js +23 -135
- package/build/question/other.js.map +1 -1
- package/build/question/questionNames.d.ts +3 -4
- package/build/question/questionNames.d.ts.map +1 -1
- package/build/question/questionNames.js +3 -4
- package/build/question/questionNames.js.map +1 -1
- package/build/question/share.d.ts +24 -0
- package/build/question/share.d.ts.map +1 -0
- package/build/question/share.js +177 -0
- package/build/question/share.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/resource/package.nls.json +19 -10
- package/templates/fallback/common.zip +0 -0
- package/templates/fallback/csharp.zip +0 -0
- package/templates/fallback/js.zip +0 -0
- package/templates/fallback/python.zip +0 -0
- package/templates/fallback/ts.zip +0 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/BotAuthenticationOptions.cs +44 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/IIdentityClientAdapter.cs +21 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/ITeamsInfo.cs +24 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/IdentityClientAdapter.cs +30 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoDialog.cs +12 -9
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/SsoOperations.cs +2 -2
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPrompt.cs +423 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPromptSettings.cs +41 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsBotSsoPromptTokenResponse.cs +21 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsInfoWrapper.cs +20 -0
- package/templates/plugins/resource/aad/auth/V3/Bot/SSO/TeamsSsoBot.cs +6 -5
|
@@ -0,0 +1,177 @@
|
|
|
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["ShareAppWithOwners"] = "owners";
|
|
24
|
+
})(ShareScopeOption = exports.ShareScopeOption || (exports.ShareScopeOption = {}));
|
|
25
|
+
exports.MAX_SHARE_EMAILS = 20;
|
|
26
|
+
function shareNode() {
|
|
27
|
+
return {
|
|
28
|
+
data: shareOperationOptions(),
|
|
29
|
+
children: [
|
|
30
|
+
shareScopeOptions(),
|
|
31
|
+
{
|
|
32
|
+
condition: (inputs) => {
|
|
33
|
+
return (inputs[constants_2.QuestionNames.ShareOperation] === ShareOperationOption.RemoveShareAccessFromUsers);
|
|
34
|
+
},
|
|
35
|
+
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),
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.shareNode = shareNode;
|
|
41
|
+
function shareOperationOptions() {
|
|
42
|
+
return {
|
|
43
|
+
name: constants_2.QuestionNames.ShareOperation,
|
|
44
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.shareOptionQuestion.title"),
|
|
45
|
+
type: "singleSelect",
|
|
46
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.shareOptionQuestion.placeholder"),
|
|
47
|
+
staticOptions: [
|
|
48
|
+
ShareOperationOptions.shareWithUsers(),
|
|
49
|
+
ShareOperationOptions.removeShareAccessFromUsers(),
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function shareScopeOptions() {
|
|
54
|
+
return {
|
|
55
|
+
condition: { equals: ShareOperationOptions.shareWithUsers().id },
|
|
56
|
+
data: {
|
|
57
|
+
type: "singleSelect",
|
|
58
|
+
name: constants_2.QuestionNames.ShareScope,
|
|
59
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.title"),
|
|
60
|
+
placeholder: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.placeholder"),
|
|
61
|
+
staticOptions: [
|
|
62
|
+
ShareScopeOptions.shareWithTenant(),
|
|
63
|
+
ShareScopeOptions.shareWithUsers(),
|
|
64
|
+
ShareScopeOptions.shareWithOwners(),
|
|
65
|
+
],
|
|
66
|
+
default: ShareScopeOptions.shareWithUsers().id,
|
|
67
|
+
},
|
|
68
|
+
children: [
|
|
69
|
+
{
|
|
70
|
+
condition: (inputs) => {
|
|
71
|
+
return (inputs[constants_2.QuestionNames.ShareScope] === ShareScopeOption.ShareAppWithOwners ||
|
|
72
|
+
inputs[constants_2.QuestionNames.ShareScope] === ShareScopeOption.ShareAppWithSpecificUsers);
|
|
73
|
+
},
|
|
74
|
+
data: (0, other_1.inputUserEmailQuestion)((0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.emails.title"), "Email address of specific users or groups separated by comma.", false),
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
class ShareOperationOptions {
|
|
80
|
+
static shareWithUsers() {
|
|
81
|
+
return {
|
|
82
|
+
id: ShareOperationOption.ShareWithUsers,
|
|
83
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.shareOperationQuestion.option.shareWithUsers"),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static removeShareAccessFromUsers() {
|
|
87
|
+
return {
|
|
88
|
+
id: ShareOperationOption.RemoveShareAccessFromUsers,
|
|
89
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.shareOperationQuestion.option.removeShareAccessFromUsers"),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.ShareOperationOptions = ShareOperationOptions;
|
|
94
|
+
class ShareScopeOptions {
|
|
95
|
+
static shareWithTenant() {
|
|
96
|
+
return {
|
|
97
|
+
id: ShareScopeOption.ShareAppWithTenantUsers,
|
|
98
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.option.shareWithTenant"),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
static shareWithUsers() {
|
|
102
|
+
return {
|
|
103
|
+
id: ShareScopeOption.ShareAppWithSpecificUsers,
|
|
104
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.shareScopeQuestion.option.shareWithUsers"),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
static shareWithOwners() {
|
|
108
|
+
return {
|
|
109
|
+
id: ShareScopeOption.ShareAppWithOwners,
|
|
110
|
+
label: (0, localizeUtils_1.getLocalizedString)("core.shareOptionQuestion.option.shareWithOwners"),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.ShareScopeOptions = ShareScopeOptions;
|
|
115
|
+
function removeSharedAccessNode() {
|
|
116
|
+
return {
|
|
117
|
+
data: {
|
|
118
|
+
type: "group",
|
|
119
|
+
},
|
|
120
|
+
children: [
|
|
121
|
+
{
|
|
122
|
+
data: selectUsersToRemoveSharedAccess(),
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
exports.removeSharedAccessNode = removeSharedAccessNode;
|
|
128
|
+
function selectUsersToRemoveSharedAccess() {
|
|
129
|
+
return {
|
|
130
|
+
name: constants_2.QuestionNames.RemoveUsers,
|
|
131
|
+
title: (0, localizeUtils_1.getLocalizedString)("core.selectUsersToRemoveShareAccess.title"),
|
|
132
|
+
type: "multiSelect",
|
|
133
|
+
cliDescription: (0, localizeUtils_1.getLocalizedString)("core.selectUsersToRemoveShareAccess.title"),
|
|
134
|
+
staticOptions: [],
|
|
135
|
+
dynamicOptions: async (inputs) => {
|
|
136
|
+
if (!inputs.projectPath) {
|
|
137
|
+
throw new Error("Project path is not defined");
|
|
138
|
+
}
|
|
139
|
+
const tokenRes = await globalVars_1.TOOLS.tokenProvider.m365TokenProvider.getAccessToken({
|
|
140
|
+
scopes: constants_1.AppStudioScopes,
|
|
141
|
+
});
|
|
142
|
+
if (tokenRes.isErr()) {
|
|
143
|
+
throw tokenRes.error;
|
|
144
|
+
}
|
|
145
|
+
const token = tokenRes.value;
|
|
146
|
+
const configRes = await (0, utils_1.parseShareAppActionYamlConfig)(inputs.projectPath);
|
|
147
|
+
if (configRes.isErr()) {
|
|
148
|
+
throw configRes.error;
|
|
149
|
+
}
|
|
150
|
+
const teamsAppId = configRes.value.teamsappId;
|
|
151
|
+
const app = await teamsDevPortalClient_1.teamsDevPortalClient.getApp(token, teamsAppId);
|
|
152
|
+
if (!app.userList || app.userList.length === 0) {
|
|
153
|
+
throw new Error("No owner found in the app");
|
|
154
|
+
}
|
|
155
|
+
const currentUserInfoRes = await collaborator_1.CollaborationUtil.getCurrentUserInfo(globalVars_1.TOOLS.tokenProvider.m365TokenProvider);
|
|
156
|
+
if (currentUserInfoRes.isErr()) {
|
|
157
|
+
throw currentUserInfoRes.error;
|
|
158
|
+
}
|
|
159
|
+
const operatorId = currentUserInfoRes.value.aadId;
|
|
160
|
+
const options = [];
|
|
161
|
+
for (const user of app.userList) {
|
|
162
|
+
if (user.aadId === operatorId) {
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
options.push({
|
|
166
|
+
id: user.userPrincipalName,
|
|
167
|
+
label: user.displayName,
|
|
168
|
+
description: user.userPrincipalName,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return options;
|
|
172
|
+
},
|
|
173
|
+
skipValidation: true,
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
exports.selectUsersToRemoveSharedAccess = selectUsersToRemoveSharedAccess;
|
|
177
|
+
//# 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,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,sDAAkC,CAAA;IAClC,uDAAmC,CAAA;IACnC,iDAA6B,CAAA;AAC/B,CAAC,EAJW,g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