@microsoft/teamsfx-core 1.1.3-alpha.cef16e3d.0 → 1.2.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/deps-checker/depsChecker.d.ts +0 -1
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
- package/build/common/deps-checker/depsChecker.js.map +1 -1
- package/build/common/deps-checker/depsManager.d.ts +1 -1
- package/build/common/deps-checker/depsManager.d.ts.map +1 -1
- package/build/common/deps-checker/depsManager.js +4 -1
- package/build/common/deps-checker/depsManager.js.map +1 -1
- package/build/common/deps-checker/index.d.ts +0 -1
- package/build/common/deps-checker/index.d.ts.map +1 -1
- package/build/common/deps-checker/index.js +0 -1
- package/build/common/deps-checker/index.js.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/funcToolChecker.js +1 -2
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
- package/build/common/deps-checker/internal/ngrokChecker.js +4 -2
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
- package/build/common/local/localEnvManager.d.ts +0 -8
- package/build/common/local/localEnvManager.d.ts.map +1 -1
- package/build/common/local/localEnvManager.js +0 -41
- package/build/common/local/localEnvManager.js.map +1 -1
- package/build/common/local/taskDefinition.d.ts +1 -1
- package/build/common/local/taskDefinition.d.ts.map +1 -1
- package/build/common/local/taskDefinition.js +4 -6
- package/build/common/local/taskDefinition.js.map +1 -1
- package/build/core/index.d.ts +0 -1
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +1 -5
- package/build/core/index.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +4 -3
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +0 -4
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +5 -15
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +0 -2
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +0 -10
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +0 -1
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +0 -7
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +0 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +1 -2
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.js +8 -13
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
- package/build/plugins/resource/bot/plugin.js +13 -10
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/constants.d.ts +24 -7
- package/build/plugins/resource/frontend/{dotnet → blazor}/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/blazor/constants.js +98 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/constants.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/blazor/enum.js +39 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{dotnet → blazor}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.js +2 -2
- package/build/plugins/resource/frontend/{dotnet → blazor}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +8 -0
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +1 -0
- package/build/plugins/resource/frontend/blazor/ops/provision.js +42 -0
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +1 -0
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +35 -0
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/blazor/plugin.js +190 -0
- package/build/plugins/resource/frontend/blazor/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +41 -0
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/resources/errors.js +22 -10
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/resources/messages.d.ts +4 -0
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{dotnet → blazor}/resources/messages.js +4 -0
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +21 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +47 -0
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +9 -3
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +8 -0
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +11 -1
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/index.d.ts +2 -2
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +20 -8
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +2 -0
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +44 -7
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +18 -0
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +39 -1
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +12 -0
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/utils/azure-client.js +29 -0
- package/build/plugins/resource/frontend/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +8 -0
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +19 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +12 -8
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +9 -14
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +4 -5
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +4 -5
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +2 -11
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +8 -26
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +0 -1
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +0 -1
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +4 -2
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +5 -5
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +122 -194
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +1 -3
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +14 -9
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +95 -75
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +0 -6
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addResource.js +2 -5
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
- package/package.json +4 -4
- package/resource/strings.json +7 -17
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +0 -1
- package/templates/plugins/resource/apim/bicep/apimProvision.bicep +5 -7
- package/templates/plugins/resource/apim/bicep/config.template.bicep +0 -1
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +11 -15
- package/templates/plugins/resource/bot/bicep/config.template.bicep +0 -2
- package/templates/plugins/resource/bot/bot-msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot-msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.js.default.zip +0 -0
- package/templates/plugins/resource/bot/bot.ts.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.js.default.zip +0 -0
- package/templates/plugins/resource/bot/msgext.ts.default.zip +0 -0
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +2 -3
- package/templates/plugins/resource/frontend/tab.js.default.zip +0 -0
- package/templates/plugins/resource/frontend/tab.ts.default.zip +0 -0
- package/templates/plugins/resource/function/bicep/config.template.bicep +0 -2
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +14 -17
- package/templates/plugins/resource/function/function-base.js.default.zip +0 -0
- package/templates/plugins/resource/function/function-base.ts.default.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.js.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/function/function-triggers.ts.HTTPTrigger.zip +0 -0
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +1 -2
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +7 -9
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +0 -2
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +6 -9
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +5 -8
- package/build/common/deps-checker/util/extensionInstaller.d.ts +0 -3
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +0 -1
- package/build/common/deps-checker/util/extensionInstaller.js +0 -47
- package/build/common/deps-checker/util/extensionInstaller.js.map +0 -1
- package/build/common/deps-checker/util/index.d.ts +0 -5
- package/build/common/deps-checker/util/index.d.ts.map +0 -1
- package/build/common/deps-checker/util/index.js +0 -10
- package/build/common/deps-checker/util/index.js.map +0 -1
- package/build/common/local/depsAdapter.d.ts +0 -27
- package/build/common/local/depsAdapter.d.ts.map +0 -1
- package/build/common/local/depsAdapter.js +0 -86
- package/build/common/local/depsAdapter.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +0 -81
- package/build/plugins/resource/frontend/dotnet/enum.js +0 -39
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +0 -26
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/plugin.js +0 -69
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +0 -35
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +0 -6
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +0 -11
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +0 -1
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.DepsLoggerAdapter = exports.DepsTelemetryAdapter = void 0;
|
|
6
|
-
// TODO: Implement DepsTelemetryAdapter
|
|
7
|
-
class DepsTelemetryAdapter {
|
|
8
|
-
constructor(telemetryReporter) {
|
|
9
|
-
this.telemetryReporter = telemetryReporter;
|
|
10
|
-
}
|
|
11
|
-
sendEvent(eventName, properties, timecost) {
|
|
12
|
-
if (this.telemetryReporter) {
|
|
13
|
-
throw new Error("Method not implemented.");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
async sendEventWithDuration(eventName, action) {
|
|
17
|
-
if (this.telemetryReporter) {
|
|
18
|
-
throw new Error("Method not implemented.");
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
sendUserErrorEvent(eventName, errorMessage) {
|
|
22
|
-
if (this.telemetryReporter) {
|
|
23
|
-
throw new Error("Method not implemented.");
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
sendSystemErrorEvent(eventName, errorMessage, errorStack) {
|
|
27
|
-
if (this.telemetryReporter) {
|
|
28
|
-
throw new Error("Method not implemented.");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.DepsTelemetryAdapter = DepsTelemetryAdapter;
|
|
33
|
-
// TODO: Implement DepsLoggerAdapter
|
|
34
|
-
class DepsLoggerAdapter {
|
|
35
|
-
constructor(logger) {
|
|
36
|
-
this.logger = logger;
|
|
37
|
-
}
|
|
38
|
-
async debug(message) {
|
|
39
|
-
if (this.logger) {
|
|
40
|
-
throw new Error("Method not implemented.");
|
|
41
|
-
}
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
async info(message) {
|
|
45
|
-
if (this.logger) {
|
|
46
|
-
throw new Error("Method not implemented.");
|
|
47
|
-
}
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
async warning(message) {
|
|
51
|
-
if (this.logger) {
|
|
52
|
-
throw new Error("Method not implemented.");
|
|
53
|
-
}
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
async error(message) {
|
|
57
|
-
if (this.logger) {
|
|
58
|
-
throw new Error("Method not implemented.");
|
|
59
|
-
}
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
async append(message) {
|
|
63
|
-
if (this.logger) {
|
|
64
|
-
throw new Error("Method not implemented.");
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
async appendLine(message) {
|
|
69
|
-
if (this.logger) {
|
|
70
|
-
throw new Error("Method not implemented.");
|
|
71
|
-
}
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
async printDetailLog() {
|
|
75
|
-
if (this.logger) {
|
|
76
|
-
throw new Error("Method not implemented.");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
cleanup() {
|
|
80
|
-
if (this.logger) {
|
|
81
|
-
throw new Error("Method not implemented.");
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.DepsLoggerAdapter = DepsLoggerAdapter;
|
|
86
|
-
//# sourceMappingURL=depsAdapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"depsAdapter.js","sourceRoot":"","sources":["../../../src/common/local/depsAdapter.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAOl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OAAe;QAClC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACM,KAAK,CAAC,KAAK,CAAC,OAAe;QAChC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACM,KAAK,CAAC,MAAM,CAAC,OAAe;QACjC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACM,KAAK,CAAC,UAAU,CAAC,OAAe;QACrC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACM,KAAK,CAAC,cAAc;QACzB,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC5C;IACH,CAAC;IAED,OAAO;QACL,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;SAC5C;IACH,CAAC;CACF;AArDD,8CAqDC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.DotnetConfigInfo = exports.DependentPluginInfo = exports.DotnetCommands = exports.DotnetPathInfo = exports.DotnetPluginInfo = exports.DefaultProvisionConfigs = exports.RegularExpr = exports.AzureInfo = exports.Constants = void 0;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
-
class Constants {
|
|
9
|
-
}
|
|
10
|
-
exports.Constants = Constants;
|
|
11
|
-
Constants.emptyString = "";
|
|
12
|
-
class AzureInfo {
|
|
13
|
-
}
|
|
14
|
-
exports.AzureInfo = AzureInfo;
|
|
15
|
-
AzureInfo.webappNameLenMax = 24;
|
|
16
|
-
AzureInfo.suffixLenMax = 12;
|
|
17
|
-
AzureInfo.zipDeployURL = (appName) => `https://${appName}.scm.azurewebsites.net/api/zipdeploy`;
|
|
18
|
-
// TODO: static readonly requiredResourceProviders = ["Microsoft.Web"];
|
|
19
|
-
AzureInfo.aadMetadataAddress = (tenantId) => `https://login.microsoftonline.com/${tenantId}/v2.0/.well-known/openid-configuration`;
|
|
20
|
-
class RegularExpr {
|
|
21
|
-
}
|
|
22
|
-
exports.RegularExpr = RegularExpr;
|
|
23
|
-
RegularExpr.allCharToBeSkippedInName = /[^a-zA-Z0-9]/g;
|
|
24
|
-
RegularExpr.targetFramework = /(?<=<TargetFramework>)(.*)(?=<)/gim;
|
|
25
|
-
class DefaultProvisionConfigs {
|
|
26
|
-
}
|
|
27
|
-
exports.DefaultProvisionConfigs = DefaultProvisionConfigs;
|
|
28
|
-
DefaultProvisionConfigs.appServicePlansConfig = (location) => ({
|
|
29
|
-
location: location,
|
|
30
|
-
kind: "app",
|
|
31
|
-
sku: {
|
|
32
|
-
name: "B1",
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
DefaultProvisionConfigs.webAppConfig = (location) => ({
|
|
36
|
-
kind: "app",
|
|
37
|
-
location: location,
|
|
38
|
-
sku: {
|
|
39
|
-
name: "B1",
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
class DotnetPluginInfo {
|
|
43
|
-
}
|
|
44
|
-
exports.DotnetPluginInfo = DotnetPluginInfo;
|
|
45
|
-
DotnetPluginInfo.pluginName = "fx-resource-dotnet";
|
|
46
|
-
DotnetPluginInfo.displayName = "Dotnet";
|
|
47
|
-
DotnetPluginInfo.alias = "DN";
|
|
48
|
-
DotnetPluginInfo.issueLink = "https://github.com/OfficeDev/TeamsFx/issues/new";
|
|
49
|
-
DotnetPluginInfo.helpLink = "https://aka.ms/teamsfx-bz-help";
|
|
50
|
-
DotnetPluginInfo.persistentConfig = [
|
|
51
|
-
"webAppName",
|
|
52
|
-
"appServicePlanName",
|
|
53
|
-
"endpoint",
|
|
54
|
-
"domain",
|
|
55
|
-
"projectFilePath",
|
|
56
|
-
];
|
|
57
|
-
DotnetPluginInfo.defaultFramework = "net6.0";
|
|
58
|
-
DotnetPluginInfo.defaultRuntime = "win-x86";
|
|
59
|
-
class DotnetPathInfo {
|
|
60
|
-
}
|
|
61
|
-
exports.DotnetPathInfo = DotnetPathInfo;
|
|
62
|
-
DotnetPathInfo.publishFolderPath = (workingPath, framework = DotnetPluginInfo.defaultFramework, runtime = DotnetPluginInfo.defaultRuntime) => path_1.default.join(workingPath, "bin", "Release", framework, runtime, "publish");
|
|
63
|
-
class DotnetCommands {
|
|
64
|
-
}
|
|
65
|
-
exports.DotnetCommands = DotnetCommands;
|
|
66
|
-
DotnetCommands.buildRelease = (runtime) => `dotnet publish --configuration Release --runtime ${runtime} --self-contained`;
|
|
67
|
-
class DependentPluginInfo {
|
|
68
|
-
}
|
|
69
|
-
exports.DependentPluginInfo = DependentPluginInfo;
|
|
70
|
-
DependentPluginInfo.solutionPluginName = "solution";
|
|
71
|
-
DependentPluginInfo.subscriptionId = "subscriptionId";
|
|
72
|
-
DependentPluginInfo.resourceGroupName = "resourceGroupName";
|
|
73
|
-
class DotnetConfigInfo {
|
|
74
|
-
}
|
|
75
|
-
exports.DotnetConfigInfo = DotnetConfigInfo;
|
|
76
|
-
DotnetConfigInfo.webAppName = "webAppName";
|
|
77
|
-
DotnetConfigInfo.appServicePlanName = "appServicePlanName";
|
|
78
|
-
DotnetConfigInfo.webAppEndpoint = "endpoint";
|
|
79
|
-
DotnetConfigInfo.webAppDomain = "domain";
|
|
80
|
-
DotnetConfigInfo.projectFilePath = "projectFilePath";
|
|
81
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResourceType = exports.AppSettingsKey = exports.DotnetConfigKey = void 0;
|
|
4
|
-
var DotnetConfigKey;
|
|
5
|
-
(function (DotnetConfigKey) {
|
|
6
|
-
/* Config from solution */
|
|
7
|
-
DotnetConfigKey["resourceGroupName"] = "resourceGroupName";
|
|
8
|
-
DotnetConfigKey["subscriptionId"] = "subscriptionId";
|
|
9
|
-
DotnetConfigKey["resourceNameSuffix"] = "resourceNameSuffix";
|
|
10
|
-
DotnetConfigKey["location"] = "location";
|
|
11
|
-
DotnetConfigKey["credential"] = "credential";
|
|
12
|
-
DotnetConfigKey["teamsAppName"] = "teamsAppName";
|
|
13
|
-
/* Config exported by Dotnet plugin */
|
|
14
|
-
DotnetConfigKey["webAppName"] = "webAppName";
|
|
15
|
-
DotnetConfigKey["appServicePlanName"] = "appServicePlanName";
|
|
16
|
-
DotnetConfigKey["webAppEndpoint"] = "webAppEndpoint";
|
|
17
|
-
DotnetConfigKey["webAppDomain"] = "webAppDomain";
|
|
18
|
-
DotnetConfigKey["projectFilePath"] = "projectFilePath";
|
|
19
|
-
DotnetConfigKey["webAppResourceId"] = "webAppResourceId";
|
|
20
|
-
/* Intermediate */
|
|
21
|
-
DotnetConfigKey["site"] = "site";
|
|
22
|
-
})(DotnetConfigKey = exports.DotnetConfigKey || (exports.DotnetConfigKey = {}));
|
|
23
|
-
var AppSettingsKey;
|
|
24
|
-
(function (AppSettingsKey) {
|
|
25
|
-
AppSettingsKey["clientSecret"] = "CLIENT_SECRET";
|
|
26
|
-
AppSettingsKey["clientId"] = "CLIENT_ID";
|
|
27
|
-
AppSettingsKey["oauthHost"] = "OAUTH_AUTHORITY";
|
|
28
|
-
AppSettingsKey["tabAppEndpoint"] = "TAB_APP_ENDPOINT";
|
|
29
|
-
AppSettingsKey["aadMetadataAddress"] = "AAD_METADATA_ADDRESS";
|
|
30
|
-
AppSettingsKey["botId"] = "BOT_ID";
|
|
31
|
-
AppSettingsKey["botPassword"] = "BOT_PASSWORD";
|
|
32
|
-
AppSettingsKey["identifierUri"] = "IDENTIFIER_URI";
|
|
33
|
-
})(AppSettingsKey = exports.AppSettingsKey || (exports.AppSettingsKey = {}));
|
|
34
|
-
var ResourceType;
|
|
35
|
-
(function (ResourceType) {
|
|
36
|
-
ResourceType["webApp"] = "Azure Web App";
|
|
37
|
-
ResourceType["appServicePlan"] = "Azure App Service Plan";
|
|
38
|
-
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
39
|
-
//# sourceMappingURL=enum.js.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { PluginContext } from "@microsoft/teamsfx-api";
|
|
2
|
-
import { TeamsFxResult } from "./error-factory";
|
|
3
|
-
import { WebSiteManagementModels } from "@azure/arm-appservice";
|
|
4
|
-
declare type Site = WebSiteManagementModels.Site;
|
|
5
|
-
export interface DotnetPluginConfig {
|
|
6
|
-
resourceGroupName?: string;
|
|
7
|
-
subscriptionId?: string;
|
|
8
|
-
resourceNameSuffix?: string;
|
|
9
|
-
location?: string;
|
|
10
|
-
webAppName?: string;
|
|
11
|
-
appServicePlanName?: string;
|
|
12
|
-
endpoint?: string;
|
|
13
|
-
domain?: string;
|
|
14
|
-
projectFilePath?: string;
|
|
15
|
-
webAppResourceId?: string;
|
|
16
|
-
site?: Site;
|
|
17
|
-
}
|
|
18
|
-
export declare class DotnetPluginImpl {
|
|
19
|
-
config: DotnetPluginConfig;
|
|
20
|
-
private syncConfigFromContext;
|
|
21
|
-
private checkAndGet;
|
|
22
|
-
postProvision(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
23
|
-
deploy(ctx: PluginContext): Promise<TeamsFxResult>;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAA4B,MAAM,wBAAwB,CAAC;AAQjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAchE,aAAK,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;AAEzC,MAAM,WAAW,kBAAkB;IAEjC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,qBAAa,gBAAgB;IAC3B,MAAM,EAAE,kBAAkB,CAAM;IAEhC,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,WAAW;IAON,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAIzD,MAAM,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC;CAwChE"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DotnetPluginImpl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
// Copyright (c) Microsoft Corporation.
|
|
6
|
-
// Licensed under the MIT license.
|
|
7
|
-
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const messages_1 = require("./resources/messages");
|
|
10
|
-
const azure_client_1 = require("./utils/azure-client");
|
|
11
|
-
const enum_1 = require("./enum");
|
|
12
|
-
const errors_1 = require("./resources/errors");
|
|
13
|
-
const Deploy = tslib_1.__importStar(require("./ops/deploy"));
|
|
14
|
-
const logger_1 = require("../utils/logger");
|
|
15
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
16
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
17
|
-
const __1 = require("../../../..");
|
|
18
|
-
class DotnetPluginImpl {
|
|
19
|
-
constructor() {
|
|
20
|
-
this.config = {};
|
|
21
|
-
}
|
|
22
|
-
syncConfigFromContext(ctx) {
|
|
23
|
-
const solutionConfig = ctx.envInfo.state.get(constants_1.DependentPluginInfo.solutionPluginName);
|
|
24
|
-
this.config.resourceGroupName = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.resourceGroupName);
|
|
25
|
-
this.config.subscriptionId = solutionConfig === null || solutionConfig === void 0 ? void 0 : solutionConfig.get(constants_1.DependentPluginInfo.subscriptionId);
|
|
26
|
-
this.config.webAppName = ctx.config.get(constants_1.DotnetConfigInfo.webAppName);
|
|
27
|
-
this.config.appServicePlanName = ctx.config.get(constants_1.DotnetConfigInfo.appServicePlanName);
|
|
28
|
-
this.config.projectFilePath = ctx.config.get(constants_1.DotnetConfigInfo.projectFilePath);
|
|
29
|
-
// Resource id priors to other configs
|
|
30
|
-
const webAppResourceId = ctx.config.get(enum_1.DotnetConfigKey.webAppResourceId);
|
|
31
|
-
if (webAppResourceId) {
|
|
32
|
-
this.config.webAppResourceId = webAppResourceId;
|
|
33
|
-
this.config.resourceGroupName = __1.getResourceGroupNameFromResourceId(webAppResourceId);
|
|
34
|
-
this.config.webAppName = __1.getSiteNameFromResourceId(webAppResourceId);
|
|
35
|
-
this.config.subscriptionId = __1.getSubscriptionIdFromResourceId(webAppResourceId);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
checkAndGet(v, key) {
|
|
39
|
-
if (v) {
|
|
40
|
-
return v;
|
|
41
|
-
}
|
|
42
|
-
throw new errors_1.FetchConfigError(key);
|
|
43
|
-
}
|
|
44
|
-
async postProvision(ctx) {
|
|
45
|
-
return teamsfx_api_1.ok(undefined);
|
|
46
|
-
}
|
|
47
|
-
async deploy(ctx) {
|
|
48
|
-
var _a;
|
|
49
|
-
logger_1.Logger.info(messages_1.Messages.StartDeploy(constants_1.DotnetPluginInfo.displayName));
|
|
50
|
-
this.syncConfigFromContext(ctx);
|
|
51
|
-
const webAppName = this.checkAndGet(this.config.webAppName, enum_1.DotnetConfigKey.webAppName);
|
|
52
|
-
const resourceGroupName = this.checkAndGet(this.config.resourceGroupName, enum_1.DotnetConfigKey.resourceGroupName);
|
|
53
|
-
const subscriptionId = this.checkAndGet(this.config.subscriptionId, enum_1.DotnetConfigKey.subscriptionId);
|
|
54
|
-
const credential = this.checkAndGet(await ((_a = ctx.azureAccountProvider) === null || _a === void 0 ? void 0 : _a.getAccountCredentialAsync()), enum_1.DotnetConfigKey.credential);
|
|
55
|
-
const projectFilePath = path_1.default.resolve(ctx.root, this.checkAndGet(this.config.projectFilePath, enum_1.DotnetConfigKey.projectFilePath));
|
|
56
|
-
await errors_1.runWithErrorCatchAndThrow(new errors_1.ProjectPathError(projectFilePath), async () => await fs_extra_1.default.pathExists(projectFilePath));
|
|
57
|
-
const projectPath = path_1.default.dirname(projectFilePath);
|
|
58
|
-
const framework = await Deploy.getFrameworkVersion(projectFilePath);
|
|
59
|
-
const runtime = constants_1.DotnetPluginInfo.defaultRuntime;
|
|
60
|
-
const client = azure_client_1.AzureClientFactory.getWebSiteManagementClient(credential, subscriptionId);
|
|
61
|
-
await Deploy.build(projectPath, runtime);
|
|
62
|
-
const folderToBeZipped = constants_1.DotnetPathInfo.publishFolderPath(projectPath, framework, runtime);
|
|
63
|
-
await Deploy.zipDeploy(client, resourceGroupName, webAppName, folderToBeZipped);
|
|
64
|
-
logger_1.Logger.info(messages_1.Messages.EndDeploy(constants_1.DotnetPluginInfo.displayName));
|
|
65
|
-
return teamsfx_api_1.ok(undefined);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.DotnetPluginImpl = DotnetPluginImpl;
|
|
69
|
-
//# sourceMappingURL=plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../src/plugins/resource/frontend/dotnet/plugin.ts"],"names":[],"mappings":";;;;AAAA,uCAAuC;AACvC,kCAAkC;AAClC,wDAAiF;AACjF,2CAKqB;AACrB,mDAAgD;AAGhD,uDAA0D;AAC1D,iCAAsD;AACtD,+CAAmG;AACnG,6DAAuC;AACvC,4CAAyC;AACzC,wDAAwB;AACxB,gEAA0B;AAC1B,mCAIqB;AAuBrB,MAAa,gBAAgB;IAA7B;QACE,WAAM,GAAuB,EAAE,CAAC;IA4ElC,CAAC;IA1ES,qBAAqB,CAAC,GAAkB;QAC9C,MAAM,cAAc,GAAqC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAC5E,+BAAmB,CAAC,kBAAkB,CACvC,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,iBAAiB,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CACjD,+BAAmB,CAAC,iBAAiB,CAC5B,CAAC;QACZ,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,GAAG,CAAC,+BAAmB,CAAC,cAAc,CAAW,CAAC;QAE/F,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,4BAAU,CAAC,UAAU,CAAW,CAAC;QACzE,IAAI,CAAC,MAAM,CAAC,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AQ,CAAC,SAAS,CAAC,4BAAU,CAAC,WAAW,CAAC,CAAC,CAAC;QACxD,OAAO,gBAAE,CAAC,SAAS,CAAC,CAAC;IACvB,CAAC;CACF;AA7ED,4CA6EC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FrontendPluginError } from "../../resources/errors";
|
|
2
|
-
export declare enum ErrorType {
|
|
3
|
-
User = 0,
|
|
4
|
-
System = 1
|
|
5
|
-
}
|
|
6
|
-
export declare class DotnetPluginError extends FrontendPluginError {
|
|
7
|
-
innerError?: Error;
|
|
8
|
-
constructor(errorType: ErrorType, code: string, message: string, suggestions: string[], helpLink?: string, innerError?: Error);
|
|
9
|
-
getMessage(): string;
|
|
10
|
-
setInnerError(error: Error): void;
|
|
11
|
-
getInnerError(): Error | undefined;
|
|
12
|
-
}
|
|
13
|
-
export declare class FetchConfigError extends DotnetPluginError {
|
|
14
|
-
constructor(key: string);
|
|
15
|
-
}
|
|
16
|
-
export declare class ProjectPathError extends DotnetPluginError {
|
|
17
|
-
constructor(projectFilePath: string);
|
|
18
|
-
}
|
|
19
|
-
export declare class BuildError extends DotnetPluginError {
|
|
20
|
-
constructor(innerError?: Error);
|
|
21
|
-
}
|
|
22
|
-
export declare class ZipError extends DotnetPluginError {
|
|
23
|
-
constructor();
|
|
24
|
-
}
|
|
25
|
-
export declare class PublishCredentialError extends DotnetPluginError {
|
|
26
|
-
constructor();
|
|
27
|
-
}
|
|
28
|
-
export declare class UploadZipError extends DotnetPluginError {
|
|
29
|
-
constructor();
|
|
30
|
-
}
|
|
31
|
-
export declare const UnhandledErrorCode = "UnhandledError";
|
|
32
|
-
export declare const UnhandledErrorMessage = "Unhandled error.";
|
|
33
|
-
export declare function runWithErrorCatchAndThrow<T>(error: DotnetPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
34
|
-
export declare function runWithErrorCatchAndWrap<T>(wrap: (error: any) => DotnetPluginError, fn: () => T | Promise<T>): Promise<T>;
|
|
35
|
-
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/errors.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,oBAAY,SAAS;IACnB,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAYD,qBAAa,iBAAkB,SAAQ,mBAAmB;IACjD,UAAU,CAAC,EAAE,KAAK,CAAC;gBAGxB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,KAAK;IAMpB,UAAU,IAAI,MAAM;IAIpB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIjC,aAAa,IAAI,KAAK,GAAG,SAAS;CAGnC;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,GAAG,EAAE,MAAM;CAKxB;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB;gBACzC,eAAe,EAAE,MAAM;CAMpC;AAED,qBAAa,UAAW,SAAQ,iBAAiB;gBACnC,UAAU,CAAC,EAAE,KAAK;CAU/B;AAED,qBAAa,QAAS,SAAQ,iBAAiB;;CAO9C;AAED,qBAAa,sBAAuB,SAAQ,iBAAiB;;CAO5D;AAED,qBAAa,cAAe,SAAQ,iBAAiB;;CAOpD;AAED,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AACnD,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,wBAAsB,yBAAyB,CAAC,CAAC,EAC/C,KAAK,EAAE,iBAAiB,EACxB,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,wBAAsB,wBAAwB,CAAC,CAAC,EAC9C,IAAI,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,iBAAiB,EACvC,EAAE,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GACvB,OAAO,CAAC,CAAC,CAAC,CASZ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,+CAA4C;AAC5C,wDAA0D;AAC1D,mDAA6D;AAE7D,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,yCAAI,CAAA;IACJ,6CAAM,CAAA;AACR,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAED,MAAM,IAAI,GAAG;IACX,QAAQ,EAAE,iCAAiC;IAC3C,WAAW,EAAE,+CAA+C;IAC5D,WAAW,EAAE,gCAAgC;IAC7C,QAAQ,EAAE,6BAA6B;IACvC,YAAY,EAAE,gCAAgC;IAC9C,kBAAkB,EAAE,+DAA+D;IACnF,kBAAkB,EAAE,iEAAiE,8BAAgB,kBAAkB;CACxH,CAAC;AAEF,MAAa,iBAAkB,SAAQ,4BAAmB;IAGxD,YACE,SAAoB,EACpB,IAAY,EACZ,OAAe,EACf,WAAqB,EACrB,QAAiB,EACjB,UAAkB;QAElB,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,UAAU;QACR,OAAO,GAAG,IAAI,CAAC,OAAO,iBAAiB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACtE,CAAC;IAED,aAAa,CAAC,KAAY;QACxB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,U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AAE,+BAA+B,EAAE;YACvE,IAAI,CAAC,YAAY;YACjB,IAAI,CAAC,QAAQ;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAPD,wCAOC;AAEY,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AACtC,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAEjD,KAAK,UAAU,yBAAyB,CAC7C,KAAwB,EACxB,EAAwB;IAExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAXD,8DAWC;AAEM,KAAK,UAAU,wBAAwB,CAC5C,IAAuC,EACvC,EAAwB;IAExB,IAAI;QACF,OAAO,MAAM,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;KACpC;IAAC,OAAO,CAAM,EAAE;QACf,eAAM,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,KAAK,CAAC;KACb;AACH,CAAC;AAZD,4DAYC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":"AAGA,qBAAa,QAAQ;IAEnB,MAAM,CAAC,QAAQ,CAAC,aAAa,SAAU,MAAM,YAA8B;IAC3E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAU,MAAM,YAA0C;IACrF,MAAM,CAAC,QAAQ,CAAC,cAAc,SAAU,MAAM,YAAgC;IAC9E,MAAM,CAAC,QAAQ,CAAC,YAAY,SAAU,MAAM,YAA+B;IAC3E,MAAM,CAAC,QAAQ,CAAC,WAAW,SAAU,MAAM,YAA4B;IACvE,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAU,MAAM,YAAwC;CAClF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/resources/messages.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,MAAa,QAAQ;;AAArB,4BAQC;AAPC,mBAAmB;AACH,sBAAa,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,gBAAgB,IAAI,IAAI,CAAC;AAC3D,oBAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,4BAA4B,IAAI,IAAI,CAAC;AACrE,uBAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,IAAI,IAAI,CAAC;AAC9D,qBAAY,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,iBAAiB,IAAI,IAAI,CAAC;AAC3D,oBAAW,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,cAAc,IAAI,IAAI,CAAC;AACvD,kBAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,0BAA0B,IAAI,IAAI,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TokenCredentialsBase } from "@azure/ms-rest-nodeauth";
|
|
2
|
-
import { WebSiteManagementClient } from "@azure/arm-appservice";
|
|
3
|
-
export declare class AzureClientFactory {
|
|
4
|
-
static getWebSiteManagementClient(credentials: TokenCredentialsBase, subscriptionId: string): WebSiteManagementClient;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=azure-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-client.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/utils/azure-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,qBAAa,kBAAkB;WACf,0BAA0B,CACtC,WAAW,EAAE,oBAAoB,EACjC,cAAc,EAAE,MAAM,GACrB,uBAAuB;CAG3B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AzureClientFactory = void 0;
|
|
4
|
-
const arm_appservice_1 = require("@azure/arm-appservice");
|
|
5
|
-
class AzureClientFactory {
|
|
6
|
-
static getWebSiteManagementClient(credentials, subscriptionId) {
|
|
7
|
-
return new arm_appservice_1.WebSiteManagementClient(credentials, subscriptionId);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.AzureClientFactory = AzureClientFactory;
|
|
11
|
-
//# sourceMappingURL=azure-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-client.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/frontend/dotnet/utils/azure-client.ts"],"names":[],"mappings":";;;AAGA,0DAAgE;AAEhE,MAAa,kBAAkB;IACtB,MAAM,CAAC,0BAA0B,CACtC,WAAiC,EACjC,cAAsB;QAEtB,OAAO,IAAI,wCAAuB,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClE,CAAC;CACF;AAPD,gDAOC"}
|