@pax8-cta/core 0.1.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/LICENSE +198 -0
- package/dist/auth/device-code-login.d.ts +40 -0
- package/dist/auth/device-code-login.d.ts.map +1 -0
- package/dist/auth/device-code-login.js +59 -0
- package/dist/auth/device-code-login.js.map +1 -0
- package/dist/auth/gdap-client.d.ts +81 -0
- package/dist/auth/gdap-client.d.ts.map +1 -0
- package/dist/auth/gdap-client.js +128 -0
- package/dist/auth/gdap-client.js.map +1 -0
- package/dist/auth/index.d.ts +19 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +19 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/token-manager.d.ts +54 -0
- package/dist/auth/token-manager.d.ts.map +1 -0
- package/dist/auth/token-manager.js +150 -0
- package/dist/auth/token-manager.js.map +1 -0
- package/dist/client.d.ts +27 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +27 -0
- package/dist/client.js.map +1 -0
- package/dist/config/client.d.ts +24 -0
- package/dist/config/client.d.ts.map +1 -0
- package/dist/config/client.js +18 -0
- package/dist/config/client.js.map +1 -0
- package/dist/config/index.d.ts +18 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +18 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +81 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +271 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/schema.d.ts +751 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +556 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/constants.d.ts +116 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +170 -0
- package/dist/constants.js.map +1 -0
- package/dist/dataverse/agent-resolver.d.ts +98 -0
- package/dist/dataverse/agent-resolver.d.ts.map +1 -0
- package/dist/dataverse/agent-resolver.js +185 -0
- package/dist/dataverse/agent-resolver.js.map +1 -0
- package/dist/dataverse/client.d.ts +104 -0
- package/dist/dataverse/client.d.ts.map +1 -0
- package/dist/dataverse/client.js +272 -0
- package/dist/dataverse/client.js.map +1 -0
- package/dist/dataverse/connection-refs.d.ts +115 -0
- package/dist/dataverse/connection-refs.d.ts.map +1 -0
- package/dist/dataverse/connection-refs.js +203 -0
- package/dist/dataverse/connection-refs.js.map +1 -0
- package/dist/dataverse/index.d.ts +20 -0
- package/dist/dataverse/index.d.ts.map +1 -0
- package/dist/dataverse/index.js +20 -0
- package/dist/dataverse/index.js.map +1 -0
- package/dist/dataverse/solution-ops.d.ts +100 -0
- package/dist/dataverse/solution-ops.d.ts.map +1 -0
- package/dist/dataverse/solution-ops.js +288 -0
- package/dist/dataverse/solution-ops.js.map +1 -0
- package/dist/errors.d.ts +171 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +178 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/mock/demo-data.d.ts +213 -0
- package/dist/mock/demo-data.d.ts.map +1 -0
- package/dist/mock/demo-data.js +1096 -0
- package/dist/mock/demo-data.js.map +1 -0
- package/dist/mock/demo-deployment-store.d.ts +77 -0
- package/dist/mock/demo-deployment-store.d.ts.map +1 -0
- package/dist/mock/demo-deployment-store.js +85 -0
- package/dist/mock/demo-deployment-store.js.map +1 -0
- package/dist/powerplatform/admin-client.d.ts +226 -0
- package/dist/powerplatform/admin-client.d.ts.map +1 -0
- package/dist/powerplatform/admin-client.js +315 -0
- package/dist/powerplatform/admin-client.js.map +1 -0
- package/dist/powerplatform/index.d.ts +18 -0
- package/dist/powerplatform/index.d.ts.map +1 -0
- package/dist/powerplatform/index.js +18 -0
- package/dist/powerplatform/index.js.map +1 -0
- package/dist/powerplatform/tenant-discovery.d.ts +100 -0
- package/dist/powerplatform/tenant-discovery.d.ts.map +1 -0
- package/dist/powerplatform/tenant-discovery.js +205 -0
- package/dist/powerplatform/tenant-discovery.js.map +1 -0
- package/dist/preconditions/check.d.ts +41 -0
- package/dist/preconditions/check.d.ts.map +1 -0
- package/dist/preconditions/check.js +173 -0
- package/dist/preconditions/check.js.map +1 -0
- package/dist/preconditions/index.d.ts +20 -0
- package/dist/preconditions/index.d.ts.map +1 -0
- package/dist/preconditions/index.js +20 -0
- package/dist/preconditions/index.js.map +1 -0
- package/dist/preconditions/loader.d.ts +33 -0
- package/dist/preconditions/loader.d.ts.map +1 -0
- package/dist/preconditions/loader.js +65 -0
- package/dist/preconditions/loader.js.map +1 -0
- package/dist/preconditions/schema.d.ts +103 -0
- package/dist/preconditions/schema.d.ts.map +1 -0
- package/dist/preconditions/schema.js +93 -0
- package/dist/preconditions/schema.js.map +1 -0
- package/dist/preconditions/types.d.ts +118 -0
- package/dist/preconditions/types.d.ts.map +1 -0
- package/dist/preconditions/types.js +17 -0
- package/dist/preconditions/types.js.map +1 -0
- package/dist/queue/index.d.ts +17 -0
- package/dist/queue/index.d.ts.map +1 -0
- package/dist/queue/index.js +17 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/memory-queue.d.ts +86 -0
- package/dist/queue/memory-queue.d.ts.map +1 -0
- package/dist/queue/memory-queue.js +221 -0
- package/dist/queue/memory-queue.js.map +1 -0
- package/dist/services/audit-log.d.ts +59 -0
- package/dist/services/audit-log.d.ts.map +1 -0
- package/dist/services/audit-log.js +193 -0
- package/dist/services/audit-log.js.map +1 -0
- package/dist/services/auth-error-parser.d.ts +36 -0
- package/dist/services/auth-error-parser.d.ts.map +1 -0
- package/dist/services/auth-error-parser.js +90 -0
- package/dist/services/auth-error-parser.js.map +1 -0
- package/dist/services/deployment-doctor.d.ts +109 -0
- package/dist/services/deployment-doctor.d.ts.map +1 -0
- package/dist/services/deployment-doctor.js +476 -0
- package/dist/services/deployment-doctor.js.map +1 -0
- package/dist/services/deployment-notifications.d.ts +41 -0
- package/dist/services/deployment-notifications.d.ts.map +1 -0
- package/dist/services/deployment-notifications.js +161 -0
- package/dist/services/deployment-notifications.js.map +1 -0
- package/dist/services/deployment-progress.d.ts +89 -0
- package/dist/services/deployment-progress.d.ts.map +1 -0
- package/dist/services/deployment-progress.js +244 -0
- package/dist/services/deployment-progress.js.map +1 -0
- package/dist/services/deployment-service.d.ts +97 -0
- package/dist/services/deployment-service.d.ts.map +1 -0
- package/dist/services/deployment-service.js +375 -0
- package/dist/services/deployment-service.js.map +1 -0
- package/dist/services/drift-analyzer.d.ts +86 -0
- package/dist/services/drift-analyzer.d.ts.map +1 -0
- package/dist/services/drift-analyzer.js +273 -0
- package/dist/services/drift-analyzer.js.map +1 -0
- package/dist/services/environment-setup.d.ts +97 -0
- package/dist/services/environment-setup.d.ts.map +1 -0
- package/dist/services/environment-setup.js +250 -0
- package/dist/services/environment-setup.js.map +1 -0
- package/dist/services/health-check.d.ts +168 -0
- package/dist/services/health-check.d.ts.map +1 -0
- package/dist/services/health-check.js +705 -0
- package/dist/services/health-check.js.map +1 -0
- package/dist/services/index.d.ts +39 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +39 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/logger.d.ts +139 -0
- package/dist/services/logger.d.ts.map +1 -0
- package/dist/services/logger.js +268 -0
- package/dist/services/logger.js.map +1 -0
- package/dist/services/notification-service.d.ts +55 -0
- package/dist/services/notification-service.d.ts.map +1 -0
- package/dist/services/notification-service.js +184 -0
- package/dist/services/notification-service.js.map +1 -0
- package/dist/services/risk-analyzer.d.ts +252 -0
- package/dist/services/risk-analyzer.d.ts.map +1 -0
- package/dist/services/risk-analyzer.js +866 -0
- package/dist/services/risk-analyzer.js.map +1 -0
- package/dist/services/rollback.d.ts +57 -0
- package/dist/services/rollback.d.ts.map +1 -0
- package/dist/services/rollback.js +270 -0
- package/dist/services/rollback.js.map +1 -0
- package/dist/services/scheduler.d.ts +80 -0
- package/dist/services/scheduler.d.ts.map +1 -0
- package/dist/services/scheduler.js +350 -0
- package/dist/services/scheduler.js.map +1 -0
- package/dist/services/secrets.d.ts +31 -0
- package/dist/services/secrets.d.ts.map +1 -0
- package/dist/services/secrets.js +206 -0
- package/dist/services/secrets.js.map +1 -0
- package/dist/services/settings-service.d.ts +132 -0
- package/dist/services/settings-service.d.ts.map +1 -0
- package/dist/services/settings-service.js +378 -0
- package/dist/services/settings-service.js.map +1 -0
- package/dist/services/solution-diff.d.ts +127 -0
- package/dist/services/solution-diff.d.ts.map +1 -0
- package/dist/services/solution-diff.js +260 -0
- package/dist/services/solution-diff.js.map +1 -0
- package/dist/services/solution-mode-detector.d.ts +35 -0
- package/dist/services/solution-mode-detector.d.ts.map +1 -0
- package/dist/services/solution-mode-detector.js +84 -0
- package/dist/services/solution-mode-detector.js.map +1 -0
- package/dist/services/tenant-resolver.d.ts +55 -0
- package/dist/services/tenant-resolver.d.ts.map +1 -0
- package/dist/services/tenant-resolver.js +126 -0
- package/dist/services/tenant-resolver.js.map +1 -0
- package/dist/services/unmanaged-customizations.d.ts +104 -0
- package/dist/services/unmanaged-customizations.d.ts.map +1 -0
- package/dist/services/unmanaged-customizations.js +521 -0
- package/dist/services/unmanaged-customizations.js.map +1 -0
- package/dist/services/url-templater.d.ts +184 -0
- package/dist/services/url-templater.d.ts.map +1 -0
- package/dist/services/url-templater.js +327 -0
- package/dist/services/url-templater.js.map +1 -0
- package/dist/services/version-checker.d.ts +108 -0
- package/dist/services/version-checker.d.ts.map +1 -0
- package/dist/services/version-checker.js +403 -0
- package/dist/services/version-checker.js.map +1 -0
- package/dist/services/waves.d.ts +90 -0
- package/dist/services/waves.d.ts.map +1 -0
- package/dist/services/waves.js +222 -0
- package/dist/services/waves.js.map +1 -0
- package/dist/services/webhook.d.ts +95 -0
- package/dist/services/webhook.d.ts.map +1 -0
- package/dist/services/webhook.js +244 -0
- package/dist/services/webhook.js.map +1 -0
- package/dist/utils/deployment-tools.d.ts +110 -0
- package/dist/utils/deployment-tools.d.ts.map +1 -0
- package/dist/utils/deployment-tools.js +121 -0
- package/dist/utils/deployment-tools.js.map +1 -0
- package/dist/utils/index.d.ts +17 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +49 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ConfidentialClientApplication, } from "@azure/msal-node";
|
|
17
|
+
import { TOKEN_REFRESH_BUFFER_MS } from "../constants.js";
|
|
18
|
+
import { AuthError, ErrorCode } from "../errors.js";
|
|
19
|
+
/**
|
|
20
|
+
* Manages OAuth tokens with caching and automatic refresh
|
|
21
|
+
*/
|
|
22
|
+
export class TokenManager {
|
|
23
|
+
msalClient;
|
|
24
|
+
tokenCache = new Map();
|
|
25
|
+
config;
|
|
26
|
+
constructor(config) {
|
|
27
|
+
this.config = config;
|
|
28
|
+
const msalConfig = {
|
|
29
|
+
auth: {
|
|
30
|
+
clientId: config.clientId,
|
|
31
|
+
authority: `https://login.microsoftonline.com/${config.tenantId}`,
|
|
32
|
+
clientSecret: config.clientSecret,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
this.msalClient = new ConfidentialClientApplication(msalConfig);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Get the client ID for this token manager
|
|
39
|
+
*/
|
|
40
|
+
getClientId() {
|
|
41
|
+
return this.config.clientId;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get an access token for the specified resource/scope
|
|
45
|
+
* Tokens are cached and automatically refreshed when near expiry
|
|
46
|
+
*/
|
|
47
|
+
async getToken(scopes) {
|
|
48
|
+
const cacheKey = scopes.sort().join(",");
|
|
49
|
+
const cached = this.tokenCache.get(cacheKey);
|
|
50
|
+
if (cached && !this.isTokenExpired(cached)) {
|
|
51
|
+
return cached.accessToken;
|
|
52
|
+
}
|
|
53
|
+
const result = await this.acquireToken(scopes);
|
|
54
|
+
this.cacheToken(cacheKey, result);
|
|
55
|
+
return result.accessToken;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get a token for Dataverse API access
|
|
59
|
+
*/
|
|
60
|
+
async getDataverseToken(environmentUrl) {
|
|
61
|
+
// Dataverse scope is the environment URL with /.default
|
|
62
|
+
const baseUrl = environmentUrl.replace(/\/$/, "");
|
|
63
|
+
const scopes = [`${baseUrl}/.default`];
|
|
64
|
+
return this.getToken(scopes);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get a token for Microsoft Graph API access
|
|
68
|
+
*/
|
|
69
|
+
async getGraphToken() {
|
|
70
|
+
return this.getToken(["https://graph.microsoft.com/.default"]);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Clear all cached tokens
|
|
74
|
+
*/
|
|
75
|
+
clearCache() {
|
|
76
|
+
this.tokenCache.clear();
|
|
77
|
+
}
|
|
78
|
+
async acquireToken(scopes) {
|
|
79
|
+
try {
|
|
80
|
+
const result = await this.msalClient.acquireTokenByClientCredential({
|
|
81
|
+
scopes,
|
|
82
|
+
});
|
|
83
|
+
if (!result) {
|
|
84
|
+
throw new AuthError(ErrorCode.AUTH_FAILED, "Failed to acquire token - no result returned", {
|
|
85
|
+
clientId: this.config.clientId,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
// Re-throw if already a typed error
|
|
92
|
+
if (error instanceof AuthError) {
|
|
93
|
+
throw error;
|
|
94
|
+
}
|
|
95
|
+
const errorString = String(error);
|
|
96
|
+
const context = { clientId: this.config.clientId, tenantId: this.config.tenantId };
|
|
97
|
+
// Check for common authentication errors
|
|
98
|
+
if (/AADSTS700016/i.test(errorString)) {
|
|
99
|
+
throw new AuthError(ErrorCode.AUTH_APP_NOT_FOUND, `Token acquisition failed: ${error instanceof Error ? error.message : String(error)}\n\n` +
|
|
100
|
+
`The application (Client ID: ${this.config.clientId}) is not registered in the tenant.\n` +
|
|
101
|
+
`\nTo fix:\n` +
|
|
102
|
+
`1. Verify the Client ID in your configuration\n` +
|
|
103
|
+
`2. Go to https://portal.azure.com → Azure Active Directory → App registrations\n` +
|
|
104
|
+
`3. Ensure the app is registered in the correct tenant\n` +
|
|
105
|
+
`4. Check that the app has not been deleted`, context, { cause: error });
|
|
106
|
+
}
|
|
107
|
+
else if (/AADSTS7000215/i.test(errorString)) {
|
|
108
|
+
throw new AuthError(ErrorCode.AUTH_INVALID_SECRET, `Token acquisition failed: ${error instanceof Error ? error.message : String(error)}\n\n` +
|
|
109
|
+
`The client secret for application (Client ID: ${this.config.clientId}) is invalid.\n` +
|
|
110
|
+
`\nTo fix:\n` +
|
|
111
|
+
`1. Go to https://portal.azure.com → Azure Active Directory → App registrations\n` +
|
|
112
|
+
`2. Find your application and go to "Certificates & secrets"\n` +
|
|
113
|
+
`3. Generate a new client secret\n` +
|
|
114
|
+
`4. Update your configuration with the new secret\n` +
|
|
115
|
+
`5. Note: Secrets expire - check the expiration date`, context, { cause: error });
|
|
116
|
+
}
|
|
117
|
+
else if (/AADSTS50034/i.test(errorString)) {
|
|
118
|
+
throw new AuthError(ErrorCode.AUTH_ACCOUNT_NOT_FOUND, `Token acquisition failed: ${error instanceof Error ? error.message : String(error)}\n\n` +
|
|
119
|
+
`The application (Client ID: ${this.config.clientId}) account does not exist in tenant ${this.config.tenantId}.\n` +
|
|
120
|
+
`\nTo fix:\n` +
|
|
121
|
+
`1. Verify the Tenant ID in your configuration\n` +
|
|
122
|
+
`2. Ensure the application is registered in the correct Azure AD tenant`, context, { cause: error });
|
|
123
|
+
}
|
|
124
|
+
else if (/invalid_client/i.test(errorString)) {
|
|
125
|
+
throw new AuthError(ErrorCode.AUTH_INVALID_CLIENT, `Token acquisition failed: ${error instanceof Error ? error.message : String(error)}\n\n` +
|
|
126
|
+
`Authentication credentials are invalid for application (Client ID: ${this.config.clientId}).\n` +
|
|
127
|
+
`\nTo fix:\n` +
|
|
128
|
+
`1. Verify Client ID and Client Secret are correct\n` +
|
|
129
|
+
`2. Check if the client secret has expired\n` +
|
|
130
|
+
`3. Ensure the application has the required API permissions:\n` +
|
|
131
|
+
` - For Power Platform: "Dynamics CRM" → "user_impersonation"\n` +
|
|
132
|
+
` - Click "Grant admin consent" after adding permissions`, context, { cause: error });
|
|
133
|
+
}
|
|
134
|
+
// Generic auth failure
|
|
135
|
+
throw new AuthError(ErrorCode.AUTH_FAILED, `Token acquisition failed: ${error instanceof Error ? error.message : String(error)}`, context, { cause: error });
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
cacheToken(key, result) {
|
|
139
|
+
this.tokenCache.set(key, {
|
|
140
|
+
accessToken: result.accessToken,
|
|
141
|
+
expiresAt: result.expiresOn || new Date(Date.now() + 3600 * 1000),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
isTokenExpired(cached) {
|
|
145
|
+
const now = Date.now();
|
|
146
|
+
const expiresAt = cached.expiresAt.getTime();
|
|
147
|
+
return now >= expiresAt - TOKEN_REFRESH_BUFFER_MS;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=token-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-manager.js","sourceRoot":"","sources":["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7C,OAAO,GAAG,IAAI,SAAS,GAAG,uBAAuB,CAAC;IACpD,CAAC;CACF"}
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Client-safe exports from @pax8-cta/core
|
|
18
|
+
*
|
|
19
|
+
* Use this entry point when importing in client-side (browser) code.
|
|
20
|
+
* These exports don't require Node.js APIs.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // In a 'use client' component:
|
|
24
|
+
* import { DEPLOYMENT_STATUS_CATEGORIES } from '@pax8-cta/core/client'
|
|
25
|
+
*/
|
|
26
|
+
export * from "./config/client.js";
|
|
27
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;GASG;AAEH,cAAc,oBAAoB,CAAC"}
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Client-safe exports from @pax8-cta/core
|
|
18
|
+
*
|
|
19
|
+
* Use this entry point when importing in client-side (browser) code.
|
|
20
|
+
* These exports don't require Node.js APIs.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // In a 'use client' component:
|
|
24
|
+
* import { DEPLOYMENT_STATUS_CATEGORIES } from '@pax8-cta/core/client'
|
|
25
|
+
*/
|
|
26
|
+
export * from "./config/client.js";
|
|
27
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;GASG;AAEH,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Client-safe exports from the config module.
|
|
18
|
+
*
|
|
19
|
+
* This file only exports types and constants that don't require Node.js APIs,
|
|
20
|
+
* making them safe to import in client-side (browser) code.
|
|
21
|
+
*/
|
|
22
|
+
export type { DeploymentStatus, TenantDeploymentResult, DeploymentTrigger, DeploymentJob, Deployment, DeploymentBatch, StatusCategory, } from "./schema.js";
|
|
23
|
+
export { DEPLOYMENT_STATUS_CATEGORIES, calculateDeploymentStatus } from "./schema.js";
|
|
24
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/config/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;GAKG;AAGH,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,eAAe,EACf,cAAc,GACf,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
// Re-export status constants and utilities
|
|
17
|
+
export { DEPLOYMENT_STATUS_CATEGORIES, calculateDeploymentStatus } from "./schema.js";
|
|
18
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/config/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoBH,2CAA2C;AAC3C,OAAO,EAAE,4BAA4B,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from "./schema.js";
|
|
17
|
+
export * from "./loader.js";
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export * from "./schema.js";
|
|
17
|
+
export * from "./loader.js";
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2024 Pax8, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Config } from "./schema.js";
|
|
17
|
+
import { ConfigValidationError } from "../errors.js";
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use ConfigValidationError from @pax8-cta/core/errors instead.
|
|
20
|
+
* Kept for backwards compatibility.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ConfigError extends ConfigValidationError {
|
|
23
|
+
readonly name: "ConfigValidationError";
|
|
24
|
+
constructor(message: string, cause?: unknown);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Load and validate configuration from YAML file with optional env var overrides
|
|
28
|
+
*
|
|
29
|
+
* Priority:
|
|
30
|
+
* - Tenants ALWAYS come from config file (never from env vars)
|
|
31
|
+
* - Env vars can override partner/source config fields
|
|
32
|
+
* - Secrets (like PARTNER_CLIENT_SECRET) come from env vars via getClientSecret()
|
|
33
|
+
*/
|
|
34
|
+
export declare function loadConfig(configPath: string): Promise<Config>;
|
|
35
|
+
/**
|
|
36
|
+
* Get client secret from environment variable
|
|
37
|
+
*/
|
|
38
|
+
export declare function getClientSecret(envVar?: string): string;
|
|
39
|
+
/**
|
|
40
|
+
* Filter tenants by tags
|
|
41
|
+
*/
|
|
42
|
+
export declare function filterTenantsByTags(config: Config, tags: string[]): Config["tenants"];
|
|
43
|
+
/**
|
|
44
|
+
* Filter tenants by name (partial match)
|
|
45
|
+
*/
|
|
46
|
+
export declare function filterTenantsByName(config: Config, namePattern: string): Config["tenants"];
|
|
47
|
+
/**
|
|
48
|
+
* Get a single tenant by ID
|
|
49
|
+
*/
|
|
50
|
+
export declare function getTenantById(config: Config, tenantId: string): Config["tenants"][0] | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Find a tenant by ID, name, or environment URL
|
|
53
|
+
*
|
|
54
|
+
* Matches tenants using the following strategies (in order):
|
|
55
|
+
* 1. Exact match on tenantId (UUID)
|
|
56
|
+
* 2. Case-insensitive exact match on name
|
|
57
|
+
* 3. Case-insensitive partial match on environmentUrl
|
|
58
|
+
*
|
|
59
|
+
* This is useful when multiple environments share the same Azure AD tenant,
|
|
60
|
+
* allowing users to specify tenants by name or URL instead of just tenant ID.
|
|
61
|
+
*
|
|
62
|
+
* @param config - The configuration containing tenant definitions
|
|
63
|
+
* @param identifier - The tenant identifier (ID, name, or environment URL)
|
|
64
|
+
* @returns The matching tenant config, or undefined if not found
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* // Match by tenant ID
|
|
69
|
+
* findTenant(config, "12345678-1234-1234-1234-123456789012");
|
|
70
|
+
*
|
|
71
|
+
* // Match by name (case-insensitive)
|
|
72
|
+
* findTenant(config, "production");
|
|
73
|
+
* findTenant(config, "Production"); // same result
|
|
74
|
+
*
|
|
75
|
+
* // Match by environment URL (partial, case-insensitive)
|
|
76
|
+
* findTenant(config, "contoso.crm.dynamics.com");
|
|
77
|
+
* findTenant(config, "contoso"); // same result
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare function findTenant(config: Config, identifier: string): Config["tenants"][0] | undefined;
|
|
81
|
+
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/config/loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAAE,MAAM,EAAgB,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAa,MAAM,cAAc,CAAC;AAEhE;;;GAGG;AACH,qBAAa,WAAY,SAAQ,qBAAqB;IACpD,SAAkB,IAAI,EAAG,uBAAuB,CAAU;gBAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAc7C;AA+FD;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAiEpE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,MAAgC,GAAG,MAAM,CAMhF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,SAAS,CAAC,CAQrF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAK1F;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAEhG;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAsB/F"}
|