@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
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
* Structured error codes for Pax8 CTA.
|
|
18
|
+
*
|
|
19
|
+
* These codes are used by the CLI error handler to provide actionable
|
|
20
|
+
* recovery guidance. When adding a new code, also update the CLI
|
|
21
|
+
* error-handler.ts `formatError` function to handle it.
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ErrorCode {
|
|
24
|
+
AUTH_FAILED = "AUTH_FAILED",
|
|
25
|
+
AUTH_TOKEN_EXPIRED = "AUTH_TOKEN_EXPIRED",
|
|
26
|
+
AUTH_APP_NOT_FOUND = "AUTH_APP_NOT_FOUND",
|
|
27
|
+
AUTH_INVALID_SECRET = "AUTH_INVALID_SECRET",
|
|
28
|
+
AUTH_ACCOUNT_NOT_FOUND = "AUTH_ACCOUNT_NOT_FOUND",
|
|
29
|
+
AUTH_INVALID_CLIENT = "AUTH_INVALID_CLIENT",
|
|
30
|
+
GDAP_MISSING = "GDAP_MISSING",
|
|
31
|
+
GDAP_APP_USER_NOT_REGISTERED = "GDAP_APP_USER_NOT_REGISTERED",
|
|
32
|
+
GDAP_SETUP_FAILED = "GDAP_SETUP_FAILED",
|
|
33
|
+
GDAP_ENVIRONMENT_ID_MISSING = "GDAP_ENVIRONMENT_ID_MISSING",
|
|
34
|
+
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
35
|
+
PERMISSION_PRIVILEGE_MISSING = "PERMISSION_PRIVILEGE_MISSING",
|
|
36
|
+
DATAVERSE_API_ERROR = "DATAVERSE_API_ERROR",
|
|
37
|
+
DATAVERSE_NOT_MEMBER = "DATAVERSE_NOT_MEMBER",
|
|
38
|
+
DATAVERSE_FORBIDDEN = "DATAVERSE_FORBIDDEN",
|
|
39
|
+
DATAVERSE_UNAUTHORIZED = "DATAVERSE_UNAUTHORIZED",
|
|
40
|
+
SOLUTION_NOT_FOUND = "SOLUTION_NOT_FOUND",
|
|
41
|
+
SOLUTION_IMPORT_FAILED = "SOLUTION_IMPORT_FAILED",
|
|
42
|
+
SOLUTION_EXPORT_FAILED = "SOLUTION_EXPORT_FAILED",
|
|
43
|
+
SOLUTION_PARSE_FAILED = "SOLUTION_PARSE_FAILED",
|
|
44
|
+
AGENT_NOT_FOUND = "AGENT_NOT_FOUND",
|
|
45
|
+
AGENT_URL_INVALID = "AGENT_URL_INVALID",
|
|
46
|
+
AGENT_RESOLUTION_FAILED = "AGENT_RESOLUTION_FAILED",
|
|
47
|
+
CONFIG_NOT_FOUND = "CONFIG_NOT_FOUND",
|
|
48
|
+
CONFIG_INVALID = "CONFIG_INVALID",
|
|
49
|
+
CONFIG_READ_FAILED = "CONFIG_READ_FAILED",
|
|
50
|
+
CONFIG_PARSE_FAILED = "CONFIG_PARSE_FAILED",
|
|
51
|
+
CONFIG_SECRET_MISSING = "CONFIG_SECRET_MISSING",
|
|
52
|
+
NETWORK_CONNECTION_REFUSED = "NETWORK_CONNECTION_REFUSED",
|
|
53
|
+
NETWORK_TIMEOUT = "NETWORK_TIMEOUT",
|
|
54
|
+
NETWORK_DNS_FAILED = "NETWORK_DNS_FAILED",
|
|
55
|
+
NETWORK_ERROR = "NETWORK_ERROR",
|
|
56
|
+
QUEUE_CONNECTION_FAILED = "QUEUE_CONNECTION_FAILED",
|
|
57
|
+
DEPLOYMENT_FAILED = "DEPLOYMENT_FAILED",
|
|
58
|
+
DEPLOYMENT_VALIDATION_FAILED = "DEPLOYMENT_VALIDATION_FAILED",
|
|
59
|
+
DEPLOYMENT_TIMEOUT = "DEPLOYMENT_TIMEOUT",
|
|
60
|
+
UNKNOWN = "UNKNOWN"
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Context information attached to structured errors.
|
|
64
|
+
*/
|
|
65
|
+
export interface CtaErrorContext {
|
|
66
|
+
environmentUrl?: string;
|
|
67
|
+
tenantId?: string;
|
|
68
|
+
tenantName?: string;
|
|
69
|
+
solutionName?: string;
|
|
70
|
+
clientId?: string;
|
|
71
|
+
environmentId?: string;
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Base error class for all Pax8 CTA errors.
|
|
76
|
+
*
|
|
77
|
+
* Extends the native Error with a machine-readable `code` field
|
|
78
|
+
* (from the ErrorCode enum) and optional structured context, so the
|
|
79
|
+
* CLI error handler can switch on `error.code` or use `instanceof`
|
|
80
|
+
* instead of regex-matching message strings.
|
|
81
|
+
*/
|
|
82
|
+
export declare class CtaError extends Error {
|
|
83
|
+
readonly code: ErrorCode;
|
|
84
|
+
readonly context?: CtaErrorContext | undefined;
|
|
85
|
+
readonly name: string;
|
|
86
|
+
constructor(code: ErrorCode, message: string, context?: CtaErrorContext | undefined, options?: {
|
|
87
|
+
cause?: unknown;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Authentication and token errors.
|
|
92
|
+
*/
|
|
93
|
+
export declare class AuthError extends CtaError {
|
|
94
|
+
readonly name = "AuthError";
|
|
95
|
+
constructor(code: ErrorCode.AUTH_FAILED | ErrorCode.AUTH_TOKEN_EXPIRED | ErrorCode.AUTH_APP_NOT_FOUND | ErrorCode.AUTH_INVALID_SECRET | ErrorCode.AUTH_ACCOUNT_NOT_FOUND | ErrorCode.AUTH_INVALID_CLIENT, message: string, context?: CtaErrorContext, options?: {
|
|
96
|
+
cause?: unknown;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* GDAP and application-user setup errors.
|
|
101
|
+
*/
|
|
102
|
+
export declare class GdapError extends CtaError {
|
|
103
|
+
readonly name = "GdapError";
|
|
104
|
+
constructor(code: ErrorCode.GDAP_MISSING | ErrorCode.GDAP_APP_USER_NOT_REGISTERED | ErrorCode.GDAP_SETUP_FAILED | ErrorCode.GDAP_ENVIRONMENT_ID_MISSING, message: string, context?: CtaErrorContext, options?: {
|
|
105
|
+
cause?: unknown;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Dataverse API errors.
|
|
110
|
+
*/
|
|
111
|
+
export declare class DataverseApiError extends CtaError {
|
|
112
|
+
readonly name = "DataverseApiError";
|
|
113
|
+
readonly statusCode?: number;
|
|
114
|
+
constructor(code: ErrorCode.DATAVERSE_API_ERROR | ErrorCode.DATAVERSE_NOT_MEMBER | ErrorCode.DATAVERSE_FORBIDDEN | ErrorCode.DATAVERSE_UNAUTHORIZED | ErrorCode.PERMISSION_DENIED | ErrorCode.PERMISSION_PRIVILEGE_MISSING, message: string, statusCode?: number, context?: CtaErrorContext, options?: {
|
|
115
|
+
cause?: unknown;
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Solution-related errors.
|
|
120
|
+
*/
|
|
121
|
+
export declare class SolutionError extends CtaError {
|
|
122
|
+
readonly name = "SolutionError";
|
|
123
|
+
constructor(code: ErrorCode.SOLUTION_NOT_FOUND | ErrorCode.SOLUTION_IMPORT_FAILED | ErrorCode.SOLUTION_EXPORT_FAILED | ErrorCode.SOLUTION_PARSE_FAILED, message: string, context?: CtaErrorContext, options?: {
|
|
124
|
+
cause?: unknown;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Agent resolution errors.
|
|
129
|
+
*/
|
|
130
|
+
export declare class AgentResolutionError extends CtaError {
|
|
131
|
+
readonly name = "AgentResolutionError";
|
|
132
|
+
constructor(code: ErrorCode.AGENT_NOT_FOUND | ErrorCode.AGENT_URL_INVALID | ErrorCode.AGENT_RESOLUTION_FAILED, message: string, context?: CtaErrorContext, options?: {
|
|
133
|
+
cause?: unknown;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Configuration errors.
|
|
138
|
+
*/
|
|
139
|
+
export declare class ConfigValidationError extends CtaError {
|
|
140
|
+
readonly name = "ConfigValidationError";
|
|
141
|
+
constructor(code: ErrorCode.CONFIG_NOT_FOUND | ErrorCode.CONFIG_INVALID | ErrorCode.CONFIG_READ_FAILED | ErrorCode.CONFIG_PARSE_FAILED | ErrorCode.CONFIG_SECRET_MISSING, message: string, context?: CtaErrorContext, options?: {
|
|
142
|
+
cause?: unknown;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Network errors.
|
|
147
|
+
*/
|
|
148
|
+
export declare class NetworkError extends CtaError {
|
|
149
|
+
readonly name = "NetworkError";
|
|
150
|
+
constructor(code: ErrorCode.NETWORK_CONNECTION_REFUSED | ErrorCode.NETWORK_TIMEOUT | ErrorCode.NETWORK_DNS_FAILED | ErrorCode.NETWORK_ERROR, message: string, context?: CtaErrorContext, options?: {
|
|
151
|
+
cause?: unknown;
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Deployment errors.
|
|
156
|
+
*/
|
|
157
|
+
export declare class DeploymentError extends CtaError {
|
|
158
|
+
readonly name = "DeploymentError";
|
|
159
|
+
constructor(code: ErrorCode.DEPLOYMENT_FAILED | ErrorCode.DEPLOYMENT_VALIDATION_FAILED | ErrorCode.DEPLOYMENT_TIMEOUT, message: string, context?: CtaErrorContext, options?: {
|
|
160
|
+
cause?: unknown;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Helper to check if an error is an CtaError with a specific code.
|
|
165
|
+
*/
|
|
166
|
+
export declare function isErrorCode(error: unknown, code: ErrorCode): boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Helper to check if an error is any CtaError.
|
|
169
|
+
*/
|
|
170
|
+
export declare function isCtaError(error: unknown): error is CtaError;
|
|
171
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;GAMG;AACH,oBAAY,SAAS;IAEnB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,sBAAsB,2BAA2B;IACjD,mBAAmB,wBAAwB;IAG3C,YAAY,iBAAiB;IAC7B,4BAA4B,iCAAiC;IAC7D,iBAAiB,sBAAsB;IACvC,2BAA2B,gCAAgC;IAG3D,iBAAiB,sBAAsB;IACvC,4BAA4B,iCAAiC;IAG7D,mBAAmB,wBAAwB;IAC3C,oBAAoB,yBAAyB;IAC7C,mBAAmB,wBAAwB;IAC3C,sBAAsB,2BAA2B;IAGjD,kBAAkB,uBAAuB;IACzC,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,qBAAqB,0BAA0B;IAG/C,eAAe,oBAAoB;IACnC,iBAAiB,sBAAsB;IACvC,uBAAuB,4BAA4B;IAGnD,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA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,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
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
|
+
* Structured error codes for Pax8 CTA.
|
|
18
|
+
*
|
|
19
|
+
* These codes are used by the CLI error handler to provide actionable
|
|
20
|
+
* recovery guidance. When adding a new code, also update the CLI
|
|
21
|
+
* error-handler.ts `formatError` function to handle it.
|
|
22
|
+
*/
|
|
23
|
+
export var ErrorCode;
|
|
24
|
+
(function (ErrorCode) {
|
|
25
|
+
// Authentication
|
|
26
|
+
ErrorCode["AUTH_FAILED"] = "AUTH_FAILED";
|
|
27
|
+
ErrorCode["AUTH_TOKEN_EXPIRED"] = "AUTH_TOKEN_EXPIRED";
|
|
28
|
+
ErrorCode["AUTH_APP_NOT_FOUND"] = "AUTH_APP_NOT_FOUND";
|
|
29
|
+
ErrorCode["AUTH_INVALID_SECRET"] = "AUTH_INVALID_SECRET";
|
|
30
|
+
ErrorCode["AUTH_ACCOUNT_NOT_FOUND"] = "AUTH_ACCOUNT_NOT_FOUND";
|
|
31
|
+
ErrorCode["AUTH_INVALID_CLIENT"] = "AUTH_INVALID_CLIENT";
|
|
32
|
+
// GDAP / Application user
|
|
33
|
+
ErrorCode["GDAP_MISSING"] = "GDAP_MISSING";
|
|
34
|
+
ErrorCode["GDAP_APP_USER_NOT_REGISTERED"] = "GDAP_APP_USER_NOT_REGISTERED";
|
|
35
|
+
ErrorCode["GDAP_SETUP_FAILED"] = "GDAP_SETUP_FAILED";
|
|
36
|
+
ErrorCode["GDAP_ENVIRONMENT_ID_MISSING"] = "GDAP_ENVIRONMENT_ID_MISSING";
|
|
37
|
+
// Permissions
|
|
38
|
+
ErrorCode["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
39
|
+
ErrorCode["PERMISSION_PRIVILEGE_MISSING"] = "PERMISSION_PRIVILEGE_MISSING";
|
|
40
|
+
// Dataverse
|
|
41
|
+
ErrorCode["DATAVERSE_API_ERROR"] = "DATAVERSE_API_ERROR";
|
|
42
|
+
ErrorCode["DATAVERSE_NOT_MEMBER"] = "DATAVERSE_NOT_MEMBER";
|
|
43
|
+
ErrorCode["DATAVERSE_FORBIDDEN"] = "DATAVERSE_FORBIDDEN";
|
|
44
|
+
ErrorCode["DATAVERSE_UNAUTHORIZED"] = "DATAVERSE_UNAUTHORIZED";
|
|
45
|
+
// Solutions
|
|
46
|
+
ErrorCode["SOLUTION_NOT_FOUND"] = "SOLUTION_NOT_FOUND";
|
|
47
|
+
ErrorCode["SOLUTION_IMPORT_FAILED"] = "SOLUTION_IMPORT_FAILED";
|
|
48
|
+
ErrorCode["SOLUTION_EXPORT_FAILED"] = "SOLUTION_EXPORT_FAILED";
|
|
49
|
+
ErrorCode["SOLUTION_PARSE_FAILED"] = "SOLUTION_PARSE_FAILED";
|
|
50
|
+
// Agent resolution
|
|
51
|
+
ErrorCode["AGENT_NOT_FOUND"] = "AGENT_NOT_FOUND";
|
|
52
|
+
ErrorCode["AGENT_URL_INVALID"] = "AGENT_URL_INVALID";
|
|
53
|
+
ErrorCode["AGENT_RESOLUTION_FAILED"] = "AGENT_RESOLUTION_FAILED";
|
|
54
|
+
// Configuration
|
|
55
|
+
ErrorCode["CONFIG_NOT_FOUND"] = "CONFIG_NOT_FOUND";
|
|
56
|
+
ErrorCode["CONFIG_INVALID"] = "CONFIG_INVALID";
|
|
57
|
+
ErrorCode["CONFIG_READ_FAILED"] = "CONFIG_READ_FAILED";
|
|
58
|
+
ErrorCode["CONFIG_PARSE_FAILED"] = "CONFIG_PARSE_FAILED";
|
|
59
|
+
ErrorCode["CONFIG_SECRET_MISSING"] = "CONFIG_SECRET_MISSING";
|
|
60
|
+
// Network
|
|
61
|
+
ErrorCode["NETWORK_CONNECTION_REFUSED"] = "NETWORK_CONNECTION_REFUSED";
|
|
62
|
+
ErrorCode["NETWORK_TIMEOUT"] = "NETWORK_TIMEOUT";
|
|
63
|
+
ErrorCode["NETWORK_DNS_FAILED"] = "NETWORK_DNS_FAILED";
|
|
64
|
+
ErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR";
|
|
65
|
+
// Queue / Redis
|
|
66
|
+
ErrorCode["QUEUE_CONNECTION_FAILED"] = "QUEUE_CONNECTION_FAILED";
|
|
67
|
+
// Deployment
|
|
68
|
+
ErrorCode["DEPLOYMENT_FAILED"] = "DEPLOYMENT_FAILED";
|
|
69
|
+
ErrorCode["DEPLOYMENT_VALIDATION_FAILED"] = "DEPLOYMENT_VALIDATION_FAILED";
|
|
70
|
+
ErrorCode["DEPLOYMENT_TIMEOUT"] = "DEPLOYMENT_TIMEOUT";
|
|
71
|
+
// Generic
|
|
72
|
+
ErrorCode["UNKNOWN"] = "UNKNOWN";
|
|
73
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
74
|
+
/**
|
|
75
|
+
* Base error class for all Pax8 CTA errors.
|
|
76
|
+
*
|
|
77
|
+
* Extends the native Error with a machine-readable `code` field
|
|
78
|
+
* (from the ErrorCode enum) and optional structured context, so the
|
|
79
|
+
* CLI error handler can switch on `error.code` or use `instanceof`
|
|
80
|
+
* instead of regex-matching message strings.
|
|
81
|
+
*/
|
|
82
|
+
export class CtaError extends Error {
|
|
83
|
+
code;
|
|
84
|
+
context;
|
|
85
|
+
name = "CtaError";
|
|
86
|
+
constructor(code, message, context, options) {
|
|
87
|
+
super(message, options);
|
|
88
|
+
this.code = code;
|
|
89
|
+
this.context = context;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Authentication and token errors.
|
|
94
|
+
*/
|
|
95
|
+
export class AuthError extends CtaError {
|
|
96
|
+
name = "AuthError";
|
|
97
|
+
constructor(code, message, context, options) {
|
|
98
|
+
super(code, message, context, options);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* GDAP and application-user setup errors.
|
|
103
|
+
*/
|
|
104
|
+
export class GdapError extends CtaError {
|
|
105
|
+
name = "GdapError";
|
|
106
|
+
constructor(code, message, context, options) {
|
|
107
|
+
super(code, message, context, options);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Dataverse API errors.
|
|
112
|
+
*/
|
|
113
|
+
export class DataverseApiError extends CtaError {
|
|
114
|
+
name = "DataverseApiError";
|
|
115
|
+
statusCode;
|
|
116
|
+
constructor(code, message, statusCode, context, options) {
|
|
117
|
+
super(code, message, context, options);
|
|
118
|
+
this.statusCode = statusCode;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Solution-related errors.
|
|
123
|
+
*/
|
|
124
|
+
export class SolutionError extends CtaError {
|
|
125
|
+
name = "SolutionError";
|
|
126
|
+
constructor(code, message, context, options) {
|
|
127
|
+
super(code, message, context, options);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Agent resolution errors.
|
|
132
|
+
*/
|
|
133
|
+
export class AgentResolutionError extends CtaError {
|
|
134
|
+
name = "AgentResolutionError";
|
|
135
|
+
constructor(code, message, context, options) {
|
|
136
|
+
super(code, message, context, options);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Configuration errors.
|
|
141
|
+
*/
|
|
142
|
+
export class ConfigValidationError extends CtaError {
|
|
143
|
+
name = "ConfigValidationError";
|
|
144
|
+
constructor(code, message, context, options) {
|
|
145
|
+
super(code, message, context, options);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Network errors.
|
|
150
|
+
*/
|
|
151
|
+
export class NetworkError extends CtaError {
|
|
152
|
+
name = "NetworkError";
|
|
153
|
+
constructor(code, message, context, options) {
|
|
154
|
+
super(code, message, context, options);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Deployment errors.
|
|
159
|
+
*/
|
|
160
|
+
export class DeploymentError extends CtaError {
|
|
161
|
+
name = "DeploymentError";
|
|
162
|
+
constructor(code, message, context, options) {
|
|
163
|
+
super(code, message, context, options);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Helper to check if an error is an CtaError with a specific code.
|
|
168
|
+
*/
|
|
169
|
+
export function isErrorCode(error, code) {
|
|
170
|
+
return error instanceof CtaError && error.code === code;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Helper to check if an error is any CtaError.
|
|
174
|
+
*/
|
|
175
|
+
export function isCtaError(error) {
|
|
176
|
+
return error instanceof CtaError;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,SA2DX;AA3DD,WAAY,SAAS;IACnB,iBAAiB;IACjB,wCAA2B,CAAA;IAC3B,sDAAyC,CAAA;IACzC,sDAAyC,CAAA;IACzC,wDAA2C,CAAA;IAC3C,8DAAiD,CAAA;IACjD,wDAA2C,CAAA;IAE3C,0BAA0B;IAC1B,0CAA6B,CAAA;IAC7B,0EAA6D,CAAA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AAO,CAAC,CAAC;IACzC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACtB,IAAI,GAAG,cAAc,CAAC;IAExC,YACE,IAI2B,EAC3B,OAAe,EACf,OAAyB,EACzB,OAA6B;QAE7B,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IACzB,IAAI,GAAG,iBAAiB,CAAC;IAE3C,YACE,IAGgC,EAChC,OAAe,EACf,OAAyB,EACzB,OAA6B;QAE7B,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,KAAc,EAAE,IAAe;IACzD,OAAO,KAAK,YAAY,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC;AAC1D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAAc;IACvC,OAAO,KAAK,YAAY,QAAQ,CAAC;AACnC,CAAC"}
|
package/dist/index.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
|
+
export * from "./errors.js";
|
|
17
|
+
export * from "./constants.js";
|
|
18
|
+
export * from "./utils/index.js";
|
|
19
|
+
export * from "./config/index.js";
|
|
20
|
+
export * from "./auth/index.js";
|
|
21
|
+
export * from "./dataverse/index.js";
|
|
22
|
+
export * from "./powerplatform/index.js";
|
|
23
|
+
export * from "./services/index.js";
|
|
24
|
+
export * from "./mock/demo-data.js";
|
|
25
|
+
export * from "./mock/demo-deployment-store.js";
|
|
26
|
+
export * from "./preconditions/index.js";
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,aAAa,CAAC;AAG5B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,kBAAkB,CAAC;AAGjC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,iBAAiB,CAAC;AAGhC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAGhD,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
// Errors
|
|
17
|
+
export * from "./errors.js";
|
|
18
|
+
// Constants
|
|
19
|
+
export * from "./constants.js";
|
|
20
|
+
// Utilities
|
|
21
|
+
export * from "./utils/index.js";
|
|
22
|
+
// Configuration
|
|
23
|
+
export * from "./config/index.js";
|
|
24
|
+
// Authentication
|
|
25
|
+
export * from "./auth/index.js";
|
|
26
|
+
// Dataverse
|
|
27
|
+
export * from "./dataverse/index.js";
|
|
28
|
+
// Power Platform Admin
|
|
29
|
+
export * from "./powerplatform/index.js";
|
|
30
|
+
// Services
|
|
31
|
+
export * from "./services/index.js";
|
|
32
|
+
// Mock/Demo data
|
|
33
|
+
export * from "./mock/demo-data.js";
|
|
34
|
+
export * from "./mock/demo-deployment-store.js";
|
|
35
|
+
// Preconditions (preflight)
|
|
36
|
+
export * from "./preconditions/index.js";
|
|
37
|
+
// Test utilities are available at:
|
|
38
|
+
// import { createMockTokenManager, ... } from '@pax8-cta/core/dist/__tests__/test-utils.js'
|
|
39
|
+
// Do NOT export them from main index to avoid vitest being bundled in production
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,SAAS;AACT,cAAc,aAAa,CAAC;AAE5B,YAAY;AACZ,cAAc,gBAAgB,CAAC;AAE/B,YAAY;AACZ,cAAc,kBAAkB,CAAC;AAEjC,gBAAgB;AAChB,cAAc,mBAAmB,CAAC;AAElC,iBAAiB;AACjB,cAAc,iBAAiB,CAAC;AAEhC,YAAY;AACZ,cAAc,sBAAsB,CAAC;AAErC,uBAAuB;AACvB,cAAc,0BAA0B,CAAC;AAEzC,WAAW;AACX,cAAc,qBAAqB,CAAC;AAEpC,iBAAiB;AACjB,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAEhD,4BAA4B;AAC5B,cAAc,0BAA0B,CAAC;AAEzC,mCAAmC;AACnC,4FAA4F;AAC5F,iFAAiF"}
|
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
* Demo/mock data for testing the UX without real Azure connections
|
|
18
|
+
*
|
|
19
|
+
* Enable by setting DEMO_MODE=true in environment variables
|
|
20
|
+
*/
|
|
21
|
+
import { Config, TenantConfig, DeploymentJob } from "../config/schema.js";
|
|
22
|
+
/**
|
|
23
|
+
* Check if demo mode is enabled
|
|
24
|
+
*/
|
|
25
|
+
export declare function isDemoMode(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Risk profile types for demo tenants
|
|
28
|
+
*/
|
|
29
|
+
export type DemoRiskProfile = "healthy" | "test" | "problematic" | "production-critical";
|
|
30
|
+
/**
|
|
31
|
+
* GDAP status types for demo tenants
|
|
32
|
+
*/
|
|
33
|
+
export type DemoGdapStatus = "valid" | "missing_role" | "expired" | "propagating" | "expiring_soon";
|
|
34
|
+
/**
|
|
35
|
+
* Connection status types for demo tenants
|
|
36
|
+
*/
|
|
37
|
+
export type DemoConnectionStatus = "valid" | "expired" | "missing" | "expiring_certificate";
|
|
38
|
+
/**
|
|
39
|
+
* Demo-mode tenant config. Same shape as `TenantConfig` from the YAML schema
|
|
40
|
+
* but with a stronger `metadata` type that can carry richer data than the
|
|
41
|
+
* runtime YAML loader allows (nested arrays, objects, `null`). Production
|
|
42
|
+
* `tenants.yaml` files still flow through the strict primitive-only schema.
|
|
43
|
+
*/
|
|
44
|
+
export type DemoTenantConfig = Omit<TenantConfig, "metadata"> & {
|
|
45
|
+
metadata?: DemoTenantMetadata;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Snapshot of one tenant-config resource (a CA policy, a transport rule, a
|
|
49
|
+
* connection ref…) used by the Phase 1 preflight diff engine. The shape
|
|
50
|
+
* mirrors what real Microsoft Graph TCM responses will look like in Phase 2,
|
|
51
|
+
* so the resolver swap is a one-line change in `risk-analyzer.ts`.
|
|
52
|
+
*
|
|
53
|
+
* - `resourceType` and `resourceMatcher` are how the diff engine pairs this
|
|
54
|
+
* snapshot to a manifest precondition (matched by `displayName` etc.).
|
|
55
|
+
* - `currentProperties` carries whatever properties the manifest's
|
|
56
|
+
* requirements address, walked via dot-path.
|
|
57
|
+
*/
|
|
58
|
+
export interface DemoPreconditionState {
|
|
59
|
+
resourceType: string;
|
|
60
|
+
resourceMatcher: Record<string, string>;
|
|
61
|
+
resourceDisplayName: string;
|
|
62
|
+
currentProperties: Record<string, unknown>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Per-solution version status for a demo tenant.
|
|
66
|
+
* Acts as the single source of truth for both `solutions drift` and
|
|
67
|
+
* `solutions show --tenants` so the two views never contradict each other.
|
|
68
|
+
*
|
|
69
|
+
* `deployedVersion === null` means the solution has never been deployed to
|
|
70
|
+
* this tenant. Any other string is the version currently installed.
|
|
71
|
+
*/
|
|
72
|
+
export interface DemoDeployedSolution {
|
|
73
|
+
uniqueName: string;
|
|
74
|
+
deployedVersion: string | null;
|
|
75
|
+
/** When this version was last deployed (ISO timestamp). */
|
|
76
|
+
deployedAt?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Extended demo metadata for risk analysis scenarios
|
|
80
|
+
*/
|
|
81
|
+
export interface DemoTenantMetadata {
|
|
82
|
+
industry: string;
|
|
83
|
+
employees: number;
|
|
84
|
+
contractTier: string;
|
|
85
|
+
riskProfile: DemoRiskProfile;
|
|
86
|
+
gdapStatus: DemoGdapStatus;
|
|
87
|
+
gdapIssue?: string;
|
|
88
|
+
gdapRelationshipExpiry?: string;
|
|
89
|
+
connectionStatus: DemoConnectionStatus;
|
|
90
|
+
connectionIssue?: string;
|
|
91
|
+
recentFailures: number;
|
|
92
|
+
lastSuccessfulDeployment?: string;
|
|
93
|
+
lastDeploymentError?: string;
|
|
94
|
+
disabledReason?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Authoritative per-solution version state for this tenant.
|
|
97
|
+
* Read by both `solutions drift` and `solutions show --tenants` so the
|
|
98
|
+
* two commands always agree about which tenant is current vs outdated.
|
|
99
|
+
*/
|
|
100
|
+
deployedSolutions?: DemoDeployedSolution[];
|
|
101
|
+
/**
|
|
102
|
+
* Deployment history signal for risk analysis. Used by
|
|
103
|
+
* `generateDemoDeployHistory` to derive last-deploy-result, success rate,
|
|
104
|
+
* and recency. Lets a tenant naturally land in HIGH risk without
|
|
105
|
+
* touching the algorithm.
|
|
106
|
+
*/
|
|
107
|
+
deploymentHistory?: {
|
|
108
|
+
totalDeploys: number;
|
|
109
|
+
successfulDeploys: number;
|
|
110
|
+
/** Days since last deploy attempt. */
|
|
111
|
+
lastDeployDaysAgo: number;
|
|
112
|
+
lastDeployResult: "success" | "failure";
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Synthetic per-tenant precondition state for Phase 1 preflight. Each
|
|
116
|
+
* entry is a snapshot of one tenant-config resource (CA policy, transport
|
|
117
|
+
* rule, connection ref…) the manifest may target. Phase 2 replaces this
|
|
118
|
+
* with live Microsoft Graph TCM lookups.
|
|
119
|
+
*/
|
|
120
|
+
preconditionState?: DemoPreconditionState[];
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get demo metadata for a tenant by ID.
|
|
124
|
+
* Returns typed metadata or undefined for non-demo tenants.
|
|
125
|
+
*/
|
|
126
|
+
export declare function getDemoTenantMetadata(tenantId: string): DemoTenantMetadata | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* `DEMO_TENANTS` exposed as `TenantConfig[]` for compatibility with all
|
|
129
|
+
* downstream callers. The metadata still carries the rich `DemoTenantMetadata`
|
|
130
|
+
* shape — read it via `getDemoTenantMetadata()` to recover the typed view.
|
|
131
|
+
*/
|
|
132
|
+
export declare const DEMO_TENANTS: TenantConfig[];
|
|
133
|
+
/**
|
|
134
|
+
* Demo configuration
|
|
135
|
+
*/
|
|
136
|
+
export declare const DEMO_CONFIG: Config;
|
|
137
|
+
/**
|
|
138
|
+
* Generate a mock deployment with realistic-looking data
|
|
139
|
+
* Uses seeded randomness based on deployment ID for consistent results
|
|
140
|
+
*/
|
|
141
|
+
export declare function generateMockDeployment(overrides?: Partial<DeploymentJob>): DeploymentJob;
|
|
142
|
+
/**
|
|
143
|
+
* Generate a list of mock deployments for history view.
|
|
144
|
+
* Uses deterministic IDs based on index for consistent data across refreshes.
|
|
145
|
+
*
|
|
146
|
+
* Deployment history is designed to exercise risk analysis scenarios:
|
|
147
|
+
* - 70% success, 20% failure, 10% partial (completed with tenant failures)
|
|
148
|
+
* - Varied time distribution: recent (last 7 days), medium (last 30 days), old (90+ days)
|
|
149
|
+
* - Varied durations: fast (2-5 min), normal (8-15 min), slow (20-45 min)
|
|
150
|
+
* - Different error types: permission, timeout, connection, validation
|
|
151
|
+
*/
|
|
152
|
+
export declare function generateMockDeploymentHistory(count?: number): DeploymentJob[];
|
|
153
|
+
/**
|
|
154
|
+
* Mock solution metadata with extended details
|
|
155
|
+
*/
|
|
156
|
+
export declare const DEMO_SOLUTIONS: {
|
|
157
|
+
uniqueName: string;
|
|
158
|
+
friendlyName: string;
|
|
159
|
+
version: string;
|
|
160
|
+
isManaged: boolean;
|
|
161
|
+
publisherName: string;
|
|
162
|
+
description: string;
|
|
163
|
+
category: string;
|
|
164
|
+
capabilities: string[];
|
|
165
|
+
tags: string[];
|
|
166
|
+
dependencies: string[];
|
|
167
|
+
connectionReferences: {
|
|
168
|
+
name: string;
|
|
169
|
+
connectorId: string;
|
|
170
|
+
required: boolean;
|
|
171
|
+
}[];
|
|
172
|
+
environmentVariables: ({
|
|
173
|
+
name: string;
|
|
174
|
+
type: string;
|
|
175
|
+
required: boolean;
|
|
176
|
+
defaultValue?: undefined;
|
|
177
|
+
} | {
|
|
178
|
+
name: string;
|
|
179
|
+
type: string;
|
|
180
|
+
required: boolean;
|
|
181
|
+
defaultValue: string;
|
|
182
|
+
})[];
|
|
183
|
+
lastPublished: string;
|
|
184
|
+
sizeKb: number;
|
|
185
|
+
changelog: string;
|
|
186
|
+
}[];
|
|
187
|
+
/**
|
|
188
|
+
* Simulate async operation with random delay
|
|
189
|
+
*/
|
|
190
|
+
export declare function simulateDelay(minMs?: number, maxMs?: number): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Mock tenant health check result
|
|
193
|
+
*/
|
|
194
|
+
export declare function generateMockHealthCheck(_tenantId: string): {
|
|
195
|
+
healthy: boolean;
|
|
196
|
+
checks: Array<{
|
|
197
|
+
name: string;
|
|
198
|
+
passed: boolean;
|
|
199
|
+
message?: string;
|
|
200
|
+
}>;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Mock deployment preview/diff
|
|
204
|
+
*/
|
|
205
|
+
export declare function generateMockDeploymentPreview(_solutionName: string, tenantName: string): {
|
|
206
|
+
willInstall: boolean;
|
|
207
|
+
willUpgrade: boolean;
|
|
208
|
+
sourceVersion: string;
|
|
209
|
+
targetVersion: string | null;
|
|
210
|
+
warnings: string[];
|
|
211
|
+
estimatedDurationMs: number;
|
|
212
|
+
};
|
|
213
|
+
//# sourceMappingURL=demo-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demo-data.d.ts","sourceR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