sim-setup 1.0.20-preview.138.1 → 1.0.21-preview.140.1
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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1794,12 +1794,12 @@ function resolveIntegrationAvailability(values) {
|
|
|
1794
1794
|
name: integration.name,
|
|
1795
1795
|
state: "ready",
|
|
1796
1796
|
oauthAvailable: false,
|
|
1797
|
-
serviceAccountAvailable:
|
|
1797
|
+
serviceAccountAvailable: tokenCredentialTypes.has(integration.type),
|
|
1798
1798
|
missingFields: []
|
|
1799
1799
|
};
|
|
1800
1800
|
});
|
|
1801
1801
|
}
|
|
1802
|
-
var credentialConfiguredOAuthServiceIds, deploymentGatedIntegrationTypes, integrationTypesByOAuthServiceId, previewServiceAccountProvidersByIntegrationType;
|
|
1802
|
+
var credentialConfiguredOAuthServiceIds, deploymentGatedIntegrationTypes, integrationTypesByOAuthServiceId, tokenCredentialIntegrationTypes, tokenCredentialTypes, previewServiceAccountProvidersByIntegrationType;
|
|
1803
1803
|
var init_integration_availability = __esm(() => {
|
|
1804
1804
|
init_integration_metadata();
|
|
1805
1805
|
init_env_capabilities();
|
|
@@ -1809,6 +1809,11 @@ var init_integration_availability = __esm(() => {
|
|
|
1809
1809
|
deploymentGatedIntegrationTypes = new Set(INTEGRATION_METADATA.filter((integration) => integration.authType === "oauth").map((integration) => integration.type.toLowerCase()));
|
|
1810
1810
|
integrationTypesByOAuthServiceId = new Map;
|
|
1811
1811
|
integrationTypesByOAuthServiceId.set("github-repositories", ["github_v2"]);
|
|
1812
|
+
tokenCredentialIntegrationTypes = new Map([["coda", "coda"]]);
|
|
1813
|
+
for (const [serviceId, integrationType] of tokenCredentialIntegrationTypes) {
|
|
1814
|
+
integrationTypesByOAuthServiceId.set(serviceId, [integrationType]);
|
|
1815
|
+
}
|
|
1816
|
+
tokenCredentialTypes = new Set(tokenCredentialIntegrationTypes.values());
|
|
1812
1817
|
previewServiceAccountProvidersByIntegrationType = new Map;
|
|
1813
1818
|
for (const integration of INTEGRATION_METADATA) {
|
|
1814
1819
|
if (integration.authType !== "oauth" || !integration.oauthServiceId)
|