@attlaz/client 1.77.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/README.md +30 -0
- package/dist/AttlazResource.d.ts +3 -0
- package/dist/AttlazResource.js +4 -0
- package/dist/Client.d.ts +114 -0
- package/dist/Client.js +278 -0
- package/dist/Core/MetaDataAware.d.ts +11 -0
- package/dist/Core/MetaDataAware.js +27 -0
- package/dist/Core/MetaDataWithIconAware.d.ts +13 -0
- package/dist/Core/MetaDataWithIconAware.js +26 -0
- package/dist/Helper/LoadAllHelper.d.ts +8 -0
- package/dist/Helper/LoadAllHelper.js +25 -0
- package/dist/Helper/ResponseParser.d.ts +2 -0
- package/dist/Helper/ResponseParser.js +2 -0
- package/dist/Http/ClientError.d.ts +22 -0
- package/dist/Http/ClientError.js +79 -0
- package/dist/Http/ContentTypeHelper.d.ts +6 -0
- package/dist/Http/ContentTypeHelper.js +13 -0
- package/dist/Http/Data/Headers.d.ts +3 -0
- package/dist/Http/Data/Headers.js +1 -0
- package/dist/Http/Data/Parameters.d.ts +3 -0
- package/dist/Http/Data/Parameters.js +1 -0
- package/dist/Http/Data/QueryString.d.ts +18 -0
- package/dist/Http/Data/QueryString.js +67 -0
- package/dist/Http/HttpClient.d.ts +5 -0
- package/dist/Http/HttpClient.js +54 -0
- package/dist/Http/HttpClientRequest.d.ts +17 -0
- package/dist/Http/HttpClientRequest.js +39 -0
- package/dist/Http/HttpClientResponse.d.ts +8 -0
- package/dist/Http/HttpClientResponse.js +10 -0
- package/dist/Http/HttpStatus.d.ts +13 -0
- package/dist/Http/HttpStatus.js +13 -0
- package/dist/Http/OAuthClientOptions.d.ts +11 -0
- package/dist/Http/OAuthClientOptions.js +15 -0
- package/dist/Http/OAuthClientToken.d.ts +11 -0
- package/dist/Http/OAuthClientToken.js +32 -0
- package/dist/Http/Transport/DirectTransport.d.ts +41 -0
- package/dist/Http/Transport/DirectTransport.js +83 -0
- package/dist/Http/Transport/ITransport.d.ts +13 -0
- package/dist/Http/Transport/ITransport.js +1 -0
- package/dist/Http/Transport/OAuthClient.d.ts +45 -0
- package/dist/Http/Transport/OAuthClient.js +315 -0
- package/dist/Model/AccessToken/UserAccessToken.d.ts +15 -0
- package/dist/Model/AccessToken/UserAccessToken.js +28 -0
- package/dist/Model/AccessToken/UserAccessTokenStatus.d.ts +11 -0
- package/dist/Model/AccessToken/UserAccessTokenStatus.js +12 -0
- package/dist/Model/Adapter/Adapter.d.ts +14 -0
- package/dist/Model/Adapter/Adapter.js +28 -0
- package/dist/Model/Adapter/AdapterCategory.d.ts +6 -0
- package/dist/Model/Adapter/AdapterCategory.js +12 -0
- package/dist/Model/Adapter/AdapterConfiguration.d.ts +12 -0
- package/dist/Model/Adapter/AdapterConfiguration.js +22 -0
- package/dist/Model/Adapter/AdapterConnection.d.ts +15 -0
- package/dist/Model/Adapter/AdapterConnection.js +24 -0
- package/dist/Model/Adapter/AdapterConnectionConfigurationValue.d.ts +7 -0
- package/dist/Model/Adapter/AdapterConnectionConfigurationValue.js +6 -0
- package/dist/Model/Adapter/AdapterConnectionEvent.d.ts +9 -0
- package/dist/Model/Adapter/AdapterConnectionEvent.js +18 -0
- package/dist/Model/Adapter/AdapterConnectionStatus.d.ts +9 -0
- package/dist/Model/Adapter/AdapterConnectionStatus.js +20 -0
- package/dist/Model/Adapter/TestConnectionResult.d.ts +33 -0
- package/dist/Model/Adapter/TestConnectionResult.js +19 -0
- package/dist/Model/ApiRecord.d.ts +1 -0
- package/dist/Model/ApiRecord.js +1 -0
- package/dist/Model/Collections/Collection.d.ts +13 -0
- package/dist/Model/Collections/Collection.js +15 -0
- package/dist/Model/Collections/CollectionRecord.d.ts +6 -0
- package/dist/Model/Collections/CollectionRecord.js +12 -0
- package/dist/Model/Command/CommandExecutionFilter.d.ts +6 -0
- package/dist/Model/Command/CommandExecutionFilter.js +1 -0
- package/dist/Model/Command/CommandExecutionHistory.d.ts +15 -0
- package/dist/Model/Command/CommandExecutionHistory.js +15 -0
- package/dist/Model/Command/CommandExecutionStatus.d.ts +9 -0
- package/dist/Model/Command/CommandExecutionStatus.js +20 -0
- package/dist/Model/Config.d.ts +17 -0
- package/dist/Model/Config.js +31 -0
- package/dist/Model/Configuration/Configuration.d.ts +10 -0
- package/dist/Model/Configuration/Configuration.js +17 -0
- package/dist/Model/DataValue.d.ts +6 -0
- package/dist/Model/DataValue.js +8 -0
- package/dist/Model/DataValueCollection.d.ts +17 -0
- package/dist/Model/DataValueCollection.js +61 -0
- package/dist/Model/Deployment/CodeSource.d.ts +24 -0
- package/dist/Model/Deployment/CodeSource.js +32 -0
- package/dist/Model/Deployment/CodeSourceAccount.d.ts +13 -0
- package/dist/Model/Deployment/CodeSourceAccount.js +25 -0
- package/dist/Model/Deployment/CodeSourceBuildStrategy.d.ts +10 -0
- package/dist/Model/Deployment/CodeSourceBuildStrategy.js +17 -0
- package/dist/Model/Deployment/CodeSourceRunStrategy.d.ts +10 -0
- package/dist/Model/Deployment/CodeSourceRunStrategy.js +17 -0
- package/dist/Model/Deployment/SourcesAccountRepository.d.ts +7 -0
- package/dist/Model/Deployment/SourcesAccountRepository.js +14 -0
- package/dist/Model/Deployment/SourcesAccountRepositoryBranch.d.ts +4 -0
- package/dist/Model/Deployment/SourcesAccountRepositoryBranch.js +8 -0
- package/dist/Model/EntityId.d.ts +9 -0
- package/dist/Model/EntityId.js +27 -0
- package/dist/Model/EntityType.d.ts +25 -0
- package/dist/Model/EntityType.js +33 -0
- package/dist/Model/Error/ApiError.d.ts +14 -0
- package/dist/Model/Error/ApiError.js +16 -0
- package/dist/Model/Event/EventType.d.ts +17 -0
- package/dist/Model/Event/EventType.js +18 -0
- package/dist/Model/Filter/FilterNode.d.ts +18 -0
- package/dist/Model/Filter/FilterNode.js +1 -0
- package/dist/Model/Filter/FilterOperator.d.ts +1 -0
- package/dist/Model/Filter/FilterOperator.js +1 -0
- package/dist/Model/Flow/Flow.d.ts +17 -0
- package/dist/Model/Flow/Flow.js +27 -0
- package/dist/Model/Flow/FlowRun.d.ts +18 -0
- package/dist/Model/Flow/FlowRun.js +32 -0
- package/dist/Model/Flow/FlowRunHistory.d.ts +8 -0
- package/dist/Model/Flow/FlowRunHistory.js +14 -0
- package/dist/Model/Flow/FlowRunHistoryStatus.d.ts +16 -0
- package/dist/Model/Flow/FlowRunHistoryStatus.js +24 -0
- package/dist/Model/Flow/FlowRunLifecycle.d.ts +16 -0
- package/dist/Model/Flow/FlowRunLifecycle.js +24 -0
- package/dist/Model/Flow/FlowRunPriority.d.ts +9 -0
- package/dist/Model/Flow/FlowRunPriority.js +17 -0
- package/dist/Model/Flow/FlowRunResponse.d.ts +5 -0
- package/dist/Model/Flow/FlowRunResponse.js +6 -0
- package/dist/Model/Flow/FlowRunStats.d.ts +13 -0
- package/dist/Model/Flow/FlowRunStats.js +27 -0
- package/dist/Model/Flow/FlowRunStatus.d.ts +12 -0
- package/dist/Model/Flow/FlowRunStatus.js +20 -0
- package/dist/Model/Flow/FlowRunSummary.d.ts +17 -0
- package/dist/Model/Flow/FlowRunSummary.js +33 -0
- package/dist/Model/Flow/FlowSummary.d.ts +11 -0
- package/dist/Model/Flow/FlowSummary.js +21 -0
- package/dist/Model/Flow/FlowTemplate.d.ts +10 -0
- package/dist/Model/Flow/FlowTemplate.js +10 -0
- package/dist/Model/HealthAlert/HealthAlert.d.ts +17 -0
- package/dist/Model/HealthAlert/HealthAlert.js +34 -0
- package/dist/Model/HealthAlert/HealthAlertSeverity.d.ts +8 -0
- package/dist/Model/HealthAlert/HealthAlertSeverity.js +16 -0
- package/dist/Model/HealthAlert/HealthAlertStatus.d.ts +8 -0
- package/dist/Model/HealthAlert/HealthAlertStatus.js +16 -0
- package/dist/Model/HealthAlert/HealthTestType.d.ts +14 -0
- package/dist/Model/HealthAlert/HealthTestType.js +22 -0
- package/dist/Model/Inbox/InboxMessage.d.ts +10 -0
- package/dist/Model/Inbox/InboxMessage.js +21 -0
- package/dist/Model/Infrastructure/RunnerPool.d.ts +39 -0
- package/dist/Model/Infrastructure/RunnerPool.js +77 -0
- package/dist/Model/InfrastructureStatus/QueueStatus.d.ts +11 -0
- package/dist/Model/InfrastructureStatus/QueueStatus.js +11 -0
- package/dist/Model/InfrastructureStatus/RunnersStatus.d.ts +9 -0
- package/dist/Model/InfrastructureStatus/RunnersStatus.js +9 -0
- package/dist/Model/InfrastructureStatus/StorageStatus.d.ts +13 -0
- package/dist/Model/InfrastructureStatus/StorageStatus.js +7 -0
- package/dist/Model/JsonSerializable.d.ts +6 -0
- package/dist/Model/JsonSerializable.js +12 -0
- package/dist/Model/Log/Log.d.ts +17 -0
- package/dist/Model/Log/Log.js +37 -0
- package/dist/Model/Log/LogLevel.d.ts +15 -0
- package/dist/Model/Log/LogLevel.js +54 -0
- package/dist/Model/Log/LogQuery.d.ts +26 -0
- package/dist/Model/Log/LogQuery.js +15 -0
- package/dist/Model/Log/LogStatus.d.ts +8 -0
- package/dist/Model/Log/LogStatus.js +16 -0
- package/dist/Model/Log/LogStream.d.ts +6 -0
- package/dist/Model/Log/LogStream.js +8 -0
- package/dist/Model/Log/LogStreamId.d.ts +5 -0
- package/dist/Model/Log/LogStreamId.js +7 -0
- package/dist/Model/Log/LogStreamInformation.d.ts +18 -0
- package/dist/Model/Log/LogStreamInformation.js +58 -0
- package/dist/Model/Messaging/Channel/Channel.d.ts +16 -0
- package/dist/Model/Messaging/Channel/Channel.js +31 -0
- package/dist/Model/Messaging/Channel/ChannelData.d.ts +6 -0
- package/dist/Model/Messaging/Channel/ChannelData.js +9 -0
- package/dist/Model/Messaging/Channel/ChannelType.d.ts +10 -0
- package/dist/Model/Messaging/Channel/ChannelType.js +18 -0
- package/dist/Model/Messaging/Channel/EmailChannelData.d.ts +5 -0
- package/dist/Model/Messaging/Channel/EmailChannelData.js +9 -0
- package/dist/Model/Messaging/Channel/PushChannelData.d.ts +5 -0
- package/dist/Model/Messaging/Channel/PushChannelData.js +9 -0
- package/dist/Model/Messaging/Channel/SlackChannelData.d.ts +10 -0
- package/dist/Model/Messaging/Channel/SlackChannelData.js +19 -0
- package/dist/Model/Messaging/Channel/SmsChannelData.d.ts +5 -0
- package/dist/Model/Messaging/Channel/SmsChannelData.js +9 -0
- package/dist/Model/Messaging/Channel/WebhookChannelData.d.ts +6 -0
- package/dist/Model/Messaging/Channel/WebhookChannelData.js +11 -0
- package/dist/Model/Messaging/ChannelHistory.d.ts +10 -0
- package/dist/Model/Messaging/ChannelHistory.js +31 -0
- package/dist/Model/Messaging/Subscriber.d.ts +19 -0
- package/dist/Model/Messaging/Subscriber.js +35 -0
- package/dist/Model/Pagination/CursorPagination.d.ts +5 -0
- package/dist/Model/Pagination/CursorPagination.js +5 -0
- package/dist/Model/Pagination/Filters.d.ts +20 -0
- package/dist/Model/Pagination/Filters.js +33 -0
- package/dist/Model/Project/CodeDeploy.d.ts +28 -0
- package/dist/Model/Project/CodeDeploy.js +57 -0
- package/dist/Model/Project/CodeDeployStatus.d.ts +12 -0
- package/dist/Model/Project/CodeDeployStatus.js +20 -0
- package/dist/Model/Project/PlatformLanguage.d.ts +11 -0
- package/dist/Model/Project/PlatformLanguage.js +19 -0
- package/dist/Model/Project/Project.d.ts +13 -0
- package/dist/Model/Project/Project.js +26 -0
- package/dist/Model/Project/ProjectDeployCommit.d.ts +7 -0
- package/dist/Model/Project/ProjectDeployCommit.js +7 -0
- package/dist/Model/Project/ProjectEnvironment.d.ts +16 -0
- package/dist/Model/Project/ProjectEnvironment.js +25 -0
- package/dist/Model/Project/ProjectEnvironmentType.d.ts +8 -0
- package/dist/Model/Project/ProjectEnvironmentType.js +16 -0
- package/dist/Model/ProviderToken/ProviderToken.d.ts +11 -0
- package/dist/Model/ProviderToken/ProviderToken.js +12 -0
- package/dist/Model/ProviderToken/ProviderTokenAccessToken.d.ts +6 -0
- package/dist/Model/ProviderToken/ProviderTokenAccessToken.js +11 -0
- package/dist/Model/Result/CollectionResult.d.ts +7 -0
- package/dist/Model/Result/CollectionResult.js +27 -0
- package/dist/Model/Result/ObjectResult.d.ts +5 -0
- package/dist/Model/Result/ObjectResult.js +21 -0
- package/dist/Model/Result/ObjectWrapper.d.ts +3 -0
- package/dist/Model/Result/ObjectWrapper.js +20 -0
- package/dist/Model/Result/ResultError.d.ts +4 -0
- package/dist/Model/Result/ResultError.js +6 -0
- package/dist/Model/Runner/RunnerImage.d.ts +13 -0
- package/dist/Model/Runner/RunnerImage.js +12 -0
- package/dist/Model/Search/SearchResult.d.ts +23 -0
- package/dist/Model/Search/SearchResult.js +94 -0
- package/dist/Model/State.d.ts +8 -0
- package/dist/Model/State.js +16 -0
- package/dist/Model/StateAware.d.ts +4 -0
- package/dist/Model/StateAware.js +1 -0
- package/dist/Model/Storage/StorageInformation.d.ts +10 -0
- package/dist/Model/Storage/StorageInformation.js +7 -0
- package/dist/Model/Storage/StorageItem.d.ts +9 -0
- package/dist/Model/Storage/StorageItem.js +21 -0
- package/dist/Model/Storage/StorageItemInformation.d.ts +8 -0
- package/dist/Model/Storage/StorageItemInformation.js +19 -0
- package/dist/Model/Storage/StorageType.d.ts +9 -0
- package/dist/Model/Storage/StorageType.js +17 -0
- package/dist/Model/Trigger/Trigger.d.ts +18 -0
- package/dist/Model/Trigger/Trigger.js +34 -0
- package/dist/Model/User/User.d.ts +18 -0
- package/dist/Model/User/User.js +33 -0
- package/dist/Model/User/UserAction.d.ts +14 -0
- package/dist/Model/User/UserAction.js +13 -0
- package/dist/Model/User/UserActionFilter.d.ts +10 -0
- package/dist/Model/User/UserActionFilter.js +1 -0
- package/dist/Model/User/UserAuthProvider.d.ts +12 -0
- package/dist/Model/User/UserAuthProvider.js +22 -0
- package/dist/Model/User/UserNotificationSession.d.ts +13 -0
- package/dist/Model/User/UserNotificationSession.js +11 -0
- package/dist/Model/User/UserSummary.d.ts +13 -0
- package/dist/Model/User/UserSummary.js +11 -0
- package/dist/Model/Worker/InfrastructureConfiguration.d.ts +16 -0
- package/dist/Model/Worker/InfrastructureConfiguration.js +20 -0
- package/dist/Model/Worker/Platform.d.ts +13 -0
- package/dist/Model/Worker/Platform.js +24 -0
- package/dist/Model/Worker/PlatformImage.d.ts +13 -0
- package/dist/Model/Worker/PlatformImage.js +24 -0
- package/dist/Model/Workspace/Workspace.d.ts +10 -0
- package/dist/Model/Workspace/Workspace.js +14 -0
- package/dist/Model/Workspace/WorkspaceMember.d.ts +14 -0
- package/dist/Model/Workspace/WorkspaceMember.js +32 -0
- package/dist/Model/Workspace/WorkspaceMemberInvite.d.ts +13 -0
- package/dist/Model/Workspace/WorkspaceMemberInvite.js +13 -0
- package/dist/Model/Workspace/WorkspaceMemberInvite2.d.ts +10 -0
- package/dist/Model/Workspace/WorkspaceMemberInvite2.js +19 -0
- package/dist/Model/Workspace/WorkspaceMemberInviteState.d.ts +11 -0
- package/dist/Model/Workspace/WorkspaceMemberInviteState.js +19 -0
- package/dist/Model/Workspace/WorkspaceMemberRole.d.ts +4 -0
- package/dist/Model/Workspace/WorkspaceMemberRole.js +4 -0
- package/dist/ResourceNamespace.d.ts +2 -0
- package/dist/ResourceNamespace.js +2 -0
- package/dist/Service/AccessTokenEndpoint.d.ts +11 -0
- package/dist/Service/AccessTokenEndpoint.js +82 -0
- package/dist/Service/AdapterConnectionEndpoint.d.ts +28 -0
- package/dist/Service/AdapterConnectionEndpoint.js +124 -0
- package/dist/Service/AdapterEndpoint.d.ts +12 -0
- package/dist/Service/AdapterEndpoint.js +64 -0
- package/dist/Service/ChannelEndpoint.d.ts +13 -0
- package/dist/Service/ChannelEndpoint.js +96 -0
- package/dist/Service/CodeDeployEndpoint.d.ts +9 -0
- package/dist/Service/CodeDeployEndpoint.js +56 -0
- package/dist/Service/CodeSourceStrategiesEndpoint.d.ts +8 -0
- package/dist/Service/CodeSourceStrategiesEndpoint.js +13 -0
- package/dist/Service/CollectionsEndpoint.d.ts +11 -0
- package/dist/Service/CollectionsEndpoint.js +54 -0
- package/dist/Service/CommandExecutionEndpoint.d.ts +14 -0
- package/dist/Service/CommandExecutionEndpoint.js +60 -0
- package/dist/Service/ConfigEndpoint.d.ts +8 -0
- package/dist/Service/ConfigEndpoint.js +46 -0
- package/dist/Service/ConfigurationEndpoint.d.ts +20 -0
- package/dist/Service/ConfigurationEndpoint.js +53 -0
- package/dist/Service/Endpoint.d.ts +16 -0
- package/dist/Service/Endpoint.js +185 -0
- package/dist/Service/FirewallEndpoint.d.ts +29 -0
- package/dist/Service/FirewallEndpoint.js +88 -0
- package/dist/Service/FlowEndpoint.d.ts +12 -0
- package/dist/Service/FlowEndpoint.js +84 -0
- package/dist/Service/FlowRunEndpoint.d.ts +21 -0
- package/dist/Service/FlowRunEndpoint.js +93 -0
- package/dist/Service/FlowRunRequestEndpoint.d.ts +6 -0
- package/dist/Service/FlowRunRequestEndpoint.js +32 -0
- package/dist/Service/FlowRunStatsEndpoint.d.ts +5 -0
- package/dist/Service/FlowRunStatsEndpoint.js +21 -0
- package/dist/Service/HealthAlertEndpoint.d.ts +13 -0
- package/dist/Service/HealthAlertEndpoint.js +36 -0
- package/dist/Service/InboxEndpoint.d.ts +8 -0
- package/dist/Service/InboxEndpoint.js +20 -0
- package/dist/Service/LogEndpoint.d.ts +18 -0
- package/dist/Service/LogEndpoint.js +127 -0
- package/dist/Service/PlatformEndpoint.d.ts +9 -0
- package/dist/Service/PlatformEndpoint.js +18 -0
- package/dist/Service/PlatformLanguageEndpoint.d.ts +6 -0
- package/dist/Service/PlatformLanguageEndpoint.js +7 -0
- package/dist/Service/ProjectEndpoint.d.ts +11 -0
- package/dist/Service/ProjectEndpoint.js +63 -0
- package/dist/Service/ProjectEnvironmentEndpoint.d.ts +8 -0
- package/dist/Service/ProjectEnvironmentEndpoint.js +48 -0
- package/dist/Service/ProviderTokenEndpoint.d.ts +16 -0
- package/dist/Service/ProviderTokenEndpoint.js +43 -0
- package/dist/Service/RunnerEndpoint.d.ts +6 -0
- package/dist/Service/RunnerEndpoint.js +28 -0
- package/dist/Service/RunnerPoolEndpoint.d.ts +9 -0
- package/dist/Service/RunnerPoolEndpoint.js +20 -0
- package/dist/Service/SearchEndpoint.d.ts +6 -0
- package/dist/Service/SearchEndpoint.js +14 -0
- package/dist/Service/SourcesAccountEndpoint.d.ts +16 -0
- package/dist/Service/SourcesAccountEndpoint.js +85 -0
- package/dist/Service/StorageEndpoint.d.ts +20 -0
- package/dist/Service/StorageEndpoint.js +130 -0
- package/dist/Service/SubscriberEndpoint.d.ts +9 -0
- package/dist/Service/SubscriberEndpoint.js +29 -0
- package/dist/Service/TriggerEndpoint.d.ts +10 -0
- package/dist/Service/TriggerEndpoint.js +67 -0
- package/dist/Service/UserActionEndpoint.d.ts +16 -0
- package/dist/Service/UserActionEndpoint.js +96 -0
- package/dist/Service/UserEndpoint.d.ts +29 -0
- package/dist/Service/UserEndpoint.js +178 -0
- package/dist/Service/WorkspaceEndpoint.d.ts +9 -0
- package/dist/Service/WorkspaceEndpoint.js +49 -0
- package/dist/Service/WorkspaceMemberEndpoint.d.ts +14 -0
- package/dist/Service/WorkspaceMemberEndpoint.js +77 -0
- package/dist/Utils.d.ts +11 -0
- package/dist/Utils.js +68 -0
- package/dist/index.d.ts +169 -0
- package/dist/index.js +154 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var EventType;
|
|
2
|
+
(function (EventType) {
|
|
3
|
+
/** @deprecated * */
|
|
4
|
+
EventType["TaskExecutionRequested"] = "TaskExecutionRequested";
|
|
5
|
+
/** @deprecated * */
|
|
6
|
+
EventType["TaskExecutionStarted"] = "TaskExecutionStarted";
|
|
7
|
+
/** @deprecated * */
|
|
8
|
+
EventType["TaskExecutionFailed"] = "TaskExecutionFailed";
|
|
9
|
+
/** @deprecated * */
|
|
10
|
+
EventType["TaskExecutionComplete"] = "TaskExecutionComplete";
|
|
11
|
+
/** @deprecated * */
|
|
12
|
+
EventType["TaskExecutionRetry"] = "TaskExecutionRetry";
|
|
13
|
+
EventType["FlowRunRequested"] = "FlowRunRequested";
|
|
14
|
+
EventType["FlowRunStarted"] = "FlowRunStarted";
|
|
15
|
+
EventType["FlowRunFailed"] = "FlowRunFailed";
|
|
16
|
+
EventType["FlowRunComplete"] = "FlowRunComplete";
|
|
17
|
+
EventType["FlowRunRetry"] = "FlowRunRetry";
|
|
18
|
+
})(EventType || (EventType = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FilterOperator } from './FilterOperator.js';
|
|
2
|
+
export type FilterPrimitive = string | number | boolean | null;
|
|
3
|
+
export type FilterValue = FilterPrimitive | FilterPrimitive[];
|
|
4
|
+
export interface AndFilterNode {
|
|
5
|
+
and: FilterNode[];
|
|
6
|
+
}
|
|
7
|
+
export interface OrFilterNode {
|
|
8
|
+
or: FilterNode[];
|
|
9
|
+
}
|
|
10
|
+
export interface NotFilterNode {
|
|
11
|
+
not: FilterNode;
|
|
12
|
+
}
|
|
13
|
+
export interface CompareFilterNode {
|
|
14
|
+
field: string;
|
|
15
|
+
op: FilterOperator;
|
|
16
|
+
value: FilterValue;
|
|
17
|
+
}
|
|
18
|
+
export type FilterNode = AndFilterNode | OrFilterNode | NotFilterNode | CompareFilterNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type FilterOperator = 'eq' | 'neq' | 'in' | 'not_in' | 'lt' | 'lte' | 'gt' | 'gte' | 'is_null' | 'is_not_null' | 'starts_with' | 'ends_with' | 'contains';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { StateAware } from '../StateAware.js';
|
|
3
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
4
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
5
|
+
export declare class Flow extends MetaDataAware implements StateAware {
|
|
6
|
+
id: string;
|
|
7
|
+
key: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
isDirect: boolean;
|
|
10
|
+
state: State;
|
|
11
|
+
/** The maximum number of flows to run at any time (0 = no limit) * */
|
|
12
|
+
parallelLimit: number;
|
|
13
|
+
codeSourceId: string | null;
|
|
14
|
+
runStrategyId: string | null;
|
|
15
|
+
runnerPoolId: string | null;
|
|
16
|
+
static parse(rawFlow: ApiRecord): Flow;
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { Utils } from '../../Utils.js';
|
|
3
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
4
|
+
export class Flow extends MetaDataAware {
|
|
5
|
+
id;
|
|
6
|
+
key;
|
|
7
|
+
projectId;
|
|
8
|
+
isDirect = false;
|
|
9
|
+
state = State.Active;
|
|
10
|
+
/** The maximum number of flows to run at any time (0 = no limit) * */
|
|
11
|
+
parallelLimit = 0;
|
|
12
|
+
codeSourceId = null;
|
|
13
|
+
runStrategyId = null;
|
|
14
|
+
runnerPoolId = null;
|
|
15
|
+
static parse(rawFlow) {
|
|
16
|
+
const flow = MetaDataAware.parseMetaData(new Flow(), rawFlow);
|
|
17
|
+
flow.key = rawFlow.key;
|
|
18
|
+
flow.projectId = rawFlow.project;
|
|
19
|
+
flow.isDirect = Utils.isTrue(rawFlow.is_direct);
|
|
20
|
+
flow.state = State.fromString(rawFlow.state);
|
|
21
|
+
flow.parallelLimit = Utils.parseInt(rawFlow.parallel_limit);
|
|
22
|
+
flow.codeSourceId = rawFlow.code_source;
|
|
23
|
+
flow.runStrategyId = rawFlow.run_strategy;
|
|
24
|
+
flow.runnerPoolId = rawFlow.runner_pool;
|
|
25
|
+
return flow;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
2
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
3
|
+
import { LogLevel } from '../Log/LogLevel.js';
|
|
4
|
+
import { LogStreamId } from '../Log/LogStreamId.js';
|
|
5
|
+
import { FlowRunPriority } from './FlowRunPriority.js';
|
|
6
|
+
export declare class FlowRun extends MetaDataAware {
|
|
7
|
+
id: string;
|
|
8
|
+
flowId: string;
|
|
9
|
+
arguments: object | null;
|
|
10
|
+
projectEnvironmentId: string;
|
|
11
|
+
triggerId: string;
|
|
12
|
+
priority: FlowRunPriority;
|
|
13
|
+
deployId: string;
|
|
14
|
+
logStreamId: LogStreamId;
|
|
15
|
+
logLevelCount: Map<LogLevel, number>;
|
|
16
|
+
logsPurged: boolean;
|
|
17
|
+
static parse(rawFlowRun: ApiRecord): FlowRun;
|
|
18
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
2
|
+
import { Utils } from '../../Utils.js';
|
|
3
|
+
import { LogStreamId } from '../Log/LogStreamId.js';
|
|
4
|
+
import { FlowRunPriority } from './FlowRunPriority.js';
|
|
5
|
+
export class FlowRun extends MetaDataAware {
|
|
6
|
+
id;
|
|
7
|
+
// public key: string;
|
|
8
|
+
flowId;
|
|
9
|
+
arguments;
|
|
10
|
+
projectEnvironmentId;
|
|
11
|
+
triggerId;
|
|
12
|
+
// TODO: implement priority object
|
|
13
|
+
priority = FlowRunPriority.None;
|
|
14
|
+
deployId;
|
|
15
|
+
logStreamId;
|
|
16
|
+
logLevelCount;
|
|
17
|
+
logsPurged = false;
|
|
18
|
+
static parse(rawFlowRun) {
|
|
19
|
+
const flowRun = MetaDataAware.parseMetaData(new FlowRun(), rawFlowRun);
|
|
20
|
+
flowRun.id = rawFlowRun.id;
|
|
21
|
+
flowRun.flowId = rawFlowRun.flow;
|
|
22
|
+
flowRun.arguments = rawFlowRun.arguments;
|
|
23
|
+
flowRun.projectEnvironmentId = rawFlowRun.project_environment;
|
|
24
|
+
flowRun.priority = FlowRunPriority.fromString(rawFlowRun.priority);
|
|
25
|
+
flowRun.triggerId = rawFlowRun.trigger;
|
|
26
|
+
flowRun.deployId = rawFlowRun.deploy;
|
|
27
|
+
flowRun.logStreamId = new LogStreamId(rawFlowRun.log_stream);
|
|
28
|
+
flowRun.logLevelCount = rawFlowRun.log_level_count;
|
|
29
|
+
flowRun.logsPurged = Utils.isTrue(rawFlowRun.logs_purged);
|
|
30
|
+
return flowRun;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
2
|
+
import { FlowRunHistoryStatus } from './FlowRunHistoryStatus.js';
|
|
3
|
+
export declare class FlowRunHistory {
|
|
4
|
+
id: string;
|
|
5
|
+
time: Date;
|
|
6
|
+
status: FlowRunHistoryStatus;
|
|
7
|
+
static parse(rawFlowRunHistory: ApiRecord): FlowRunHistory;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
import { FlowRunHistoryStatus } from './FlowRunHistoryStatus.js';
|
|
3
|
+
export class FlowRunHistory {
|
|
4
|
+
id;
|
|
5
|
+
time;
|
|
6
|
+
status;
|
|
7
|
+
static parse(rawFlowRunHistory) {
|
|
8
|
+
const flowRunHistory = new FlowRunHistory();
|
|
9
|
+
flowRunHistory.id = rawFlowRunHistory.id;
|
|
10
|
+
flowRunHistory.time = Utils.parseRawDate(rawFlowRunHistory.time);
|
|
11
|
+
flowRunHistory.status = FlowRunHistoryStatus.fromString(rawFlowRunHistory.status);
|
|
12
|
+
return flowRunHistory;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Status values as stored in flow_run_history (distinct from FlowRunStatus, the derived run state).
|
|
3
|
+
* Notably `started`/`success` here vs `running`/`complete` on FlowRunStatus — reusing FlowRunStatus
|
|
4
|
+
* to parse history rows would throw on those two values and silently drop them.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum FlowRunHistoryStatus {
|
|
7
|
+
Pending = "pending",
|
|
8
|
+
Started = "started",
|
|
9
|
+
Success = "success",
|
|
10
|
+
Failed = "failed",
|
|
11
|
+
Stopped = "stopped",
|
|
12
|
+
Canceled = "canceled"
|
|
13
|
+
}
|
|
14
|
+
export declare namespace FlowRunHistoryStatus {
|
|
15
|
+
const fromString: (input: string) => FlowRunHistoryStatus;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
/**
|
|
3
|
+
* Status values as stored in flow_run_history (distinct from FlowRunStatus, the derived run state).
|
|
4
|
+
* Notably `started`/`success` here vs `running`/`complete` on FlowRunStatus — reusing FlowRunStatus
|
|
5
|
+
* to parse history rows would throw on those two values and silently drop them.
|
|
6
|
+
*/
|
|
7
|
+
export var FlowRunHistoryStatus;
|
|
8
|
+
(function (FlowRunHistoryStatus) {
|
|
9
|
+
FlowRunHistoryStatus["Pending"] = "pending";
|
|
10
|
+
FlowRunHistoryStatus["Started"] = "started";
|
|
11
|
+
FlowRunHistoryStatus["Success"] = "success";
|
|
12
|
+
FlowRunHistoryStatus["Failed"] = "failed";
|
|
13
|
+
FlowRunHistoryStatus["Stopped"] = "stopped";
|
|
14
|
+
FlowRunHistoryStatus["Canceled"] = "canceled";
|
|
15
|
+
})(FlowRunHistoryStatus || (FlowRunHistoryStatus = {}));
|
|
16
|
+
(function (FlowRunHistoryStatus) {
|
|
17
|
+
FlowRunHistoryStatus.fromString = (input) => {
|
|
18
|
+
const result = Utils.parseEnum(input, FlowRunHistoryStatus);
|
|
19
|
+
if (result === null) {
|
|
20
|
+
throw new Error('Unable to parse FlowRunHistoryStatus from string: Unknown FlowRunHistoryStatus "' + input + '"');
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
})(FlowRunHistoryStatus || (FlowRunHistoryStatus = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
2
|
+
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
3
|
+
/**
|
|
4
|
+
* The authoritative lifecycle of a flow run, as derived server-side from its event history
|
|
5
|
+
* (first-terminal-wins). Unlike FlowRunSummary, which reflects the (eventually-consistent) index
|
|
6
|
+
* projection, this is computed directly from the history and is safe for control-flow decisions
|
|
7
|
+
* such as the worker's "is this run already terminal?" tombstone check.
|
|
8
|
+
*/
|
|
9
|
+
export declare class FlowRunLifecycle {
|
|
10
|
+
id: string;
|
|
11
|
+
status: FlowRunStatus;
|
|
12
|
+
requested: Date | null;
|
|
13
|
+
started: Date | null;
|
|
14
|
+
ended: Date | null;
|
|
15
|
+
static parse(rawFlowRunLifecycle: ApiRecord): FlowRunLifecycle;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
3
|
+
/**
|
|
4
|
+
* The authoritative lifecycle of a flow run, as derived server-side from its event history
|
|
5
|
+
* (first-terminal-wins). Unlike FlowRunSummary, which reflects the (eventually-consistent) index
|
|
6
|
+
* projection, this is computed directly from the history and is safe for control-flow decisions
|
|
7
|
+
* such as the worker's "is this run already terminal?" tombstone check.
|
|
8
|
+
*/
|
|
9
|
+
export class FlowRunLifecycle {
|
|
10
|
+
id;
|
|
11
|
+
status;
|
|
12
|
+
requested;
|
|
13
|
+
started;
|
|
14
|
+
ended;
|
|
15
|
+
static parse(rawFlowRunLifecycle) {
|
|
16
|
+
const lifecycle = new FlowRunLifecycle();
|
|
17
|
+
lifecycle.id = rawFlowRunLifecycle.id;
|
|
18
|
+
lifecycle.status = FlowRunStatus.fromString(rawFlowRunLifecycle.status);
|
|
19
|
+
lifecycle.requested = rawFlowRunLifecycle.requested === null || rawFlowRunLifecycle.requested === undefined ? null : Utils.parseRawDate(rawFlowRunLifecycle.requested);
|
|
20
|
+
lifecycle.started = rawFlowRunLifecycle.started === null || rawFlowRunLifecycle.started === undefined ? null : Utils.parseRawDate(rawFlowRunLifecycle.started);
|
|
21
|
+
lifecycle.ended = rawFlowRunLifecycle.ended === null || rawFlowRunLifecycle.ended === undefined ? null : Utils.parseRawDate(rawFlowRunLifecycle.ended);
|
|
22
|
+
return lifecycle;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export var FlowRunPriority;
|
|
3
|
+
(function (FlowRunPriority) {
|
|
4
|
+
FlowRunPriority[FlowRunPriority["None"] = 0] = "None";
|
|
5
|
+
FlowRunPriority[FlowRunPriority["Low"] = 1] = "Low";
|
|
6
|
+
FlowRunPriority[FlowRunPriority["Medium"] = 2] = "Medium";
|
|
7
|
+
FlowRunPriority[FlowRunPriority["High"] = 3] = "High";
|
|
8
|
+
})(FlowRunPriority || (FlowRunPriority = {}));
|
|
9
|
+
(function (FlowRunPriority) {
|
|
10
|
+
FlowRunPriority.fromString = (input) => {
|
|
11
|
+
const result = Utils.parseEnum(input, FlowRunPriority);
|
|
12
|
+
if (result === null) {
|
|
13
|
+
throw new Error('Unable to parse FlowRunPriority from string: Unknown FlowRunPriority "' + input + '"');
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
})(FlowRunPriority || (FlowRunPriority = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class FlowRunStats {
|
|
2
|
+
flowRunId: string;
|
|
3
|
+
time: Date;
|
|
4
|
+
memory: number | null;
|
|
5
|
+
memoryLimit: number | null;
|
|
6
|
+
cpu: number | null;
|
|
7
|
+
cpuLimit: number | null;
|
|
8
|
+
networkOutbound: number | null;
|
|
9
|
+
networkInbound: number | null;
|
|
10
|
+
fileRead: number | null;
|
|
11
|
+
fileWrite: number | null;
|
|
12
|
+
static parse(raw: any): FlowRunStats;
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export class FlowRunStats {
|
|
3
|
+
flowRunId;
|
|
4
|
+
time;
|
|
5
|
+
memory = null;
|
|
6
|
+
memoryLimit = null;
|
|
7
|
+
cpu = null;
|
|
8
|
+
cpuLimit = null;
|
|
9
|
+
networkOutbound = null;
|
|
10
|
+
networkInbound = null;
|
|
11
|
+
fileRead = null;
|
|
12
|
+
fileWrite = null;
|
|
13
|
+
static parse(raw) {
|
|
14
|
+
const flowRunStats = new FlowRunStats();
|
|
15
|
+
flowRunStats.flowRunId = raw.flow_run;
|
|
16
|
+
flowRunStats.time = Utils.parseRawDate(raw.time);
|
|
17
|
+
flowRunStats.memory = raw.memory;
|
|
18
|
+
flowRunStats.memoryLimit = raw.memory_limit;
|
|
19
|
+
flowRunStats.cpu = raw.cpu;
|
|
20
|
+
flowRunStats.cpuLimit = raw.cpu_limit;
|
|
21
|
+
flowRunStats.networkOutbound = raw.network_outbound;
|
|
22
|
+
flowRunStats.networkInbound = raw.network_inbound;
|
|
23
|
+
flowRunStats.fileRead = raw.file_read;
|
|
24
|
+
flowRunStats.fileWrite = raw.file_write;
|
|
25
|
+
return flowRunStats;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum FlowRunStatus {
|
|
2
|
+
Unknown = "unknown",
|
|
3
|
+
Pending = "pending",
|
|
4
|
+
Canceled = "canceled",
|
|
5
|
+
Running = "running",
|
|
6
|
+
Failed = "failed",
|
|
7
|
+
Stopped = "stopped",
|
|
8
|
+
Complete = "complete"
|
|
9
|
+
}
|
|
10
|
+
export declare namespace FlowRunStatus {
|
|
11
|
+
const fromString: (input: string) => FlowRunStatus;
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export var FlowRunStatus;
|
|
3
|
+
(function (FlowRunStatus) {
|
|
4
|
+
FlowRunStatus["Unknown"] = "unknown";
|
|
5
|
+
FlowRunStatus["Pending"] = "pending";
|
|
6
|
+
FlowRunStatus["Canceled"] = "canceled";
|
|
7
|
+
FlowRunStatus["Running"] = "running";
|
|
8
|
+
FlowRunStatus["Failed"] = "failed";
|
|
9
|
+
FlowRunStatus["Stopped"] = "stopped";
|
|
10
|
+
FlowRunStatus["Complete"] = "complete";
|
|
11
|
+
})(FlowRunStatus || (FlowRunStatus = {}));
|
|
12
|
+
(function (FlowRunStatus) {
|
|
13
|
+
FlowRunStatus.fromString = (input) => {
|
|
14
|
+
const result = Utils.parseEnum(input, FlowRunStatus);
|
|
15
|
+
if (result === null) {
|
|
16
|
+
throw new Error('Unable to parse FlowRunStatus from string: Unknown FlowRunStatus "' + input + '"');
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
})(FlowRunStatus || (FlowRunStatus = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
2
|
+
import { FlowRun } from './FlowRun.js';
|
|
3
|
+
export declare class FlowRunSummary extends FlowRun {
|
|
4
|
+
time: Date;
|
|
5
|
+
runDuration: number;
|
|
6
|
+
pendingDuration: number;
|
|
7
|
+
status: FlowRunStatus;
|
|
8
|
+
networkUpload: number | null;
|
|
9
|
+
networkDownload: number | null;
|
|
10
|
+
fileRead: number | null;
|
|
11
|
+
fileWrite: number | null;
|
|
12
|
+
cpuAverage: number | null;
|
|
13
|
+
cpuMaximum: number | null;
|
|
14
|
+
memoryAverage: number | null;
|
|
15
|
+
memoryMaximum: number | null;
|
|
16
|
+
static parse(rawFlowRunSummary: any): FlowRunSummary;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
3
|
+
import { FlowRun } from './FlowRun.js';
|
|
4
|
+
export class FlowRunSummary extends FlowRun {
|
|
5
|
+
time;
|
|
6
|
+
runDuration;
|
|
7
|
+
pendingDuration;
|
|
8
|
+
status = FlowRunStatus.Unknown;
|
|
9
|
+
networkUpload = null;
|
|
10
|
+
networkDownload = null;
|
|
11
|
+
fileRead = null;
|
|
12
|
+
fileWrite = null;
|
|
13
|
+
cpuAverage = null;
|
|
14
|
+
cpuMaximum = null;
|
|
15
|
+
memoryAverage = null;
|
|
16
|
+
memoryMaximum = null;
|
|
17
|
+
static parse(rawFlowRunSummary) {
|
|
18
|
+
const flowRunSummary = FlowRun.parse(rawFlowRunSummary);
|
|
19
|
+
flowRunSummary.time = Utils.parseRawDate(rawFlowRunSummary.time);
|
|
20
|
+
flowRunSummary.runDuration = rawFlowRunSummary.run_duration;
|
|
21
|
+
flowRunSummary.pendingDuration = rawFlowRunSummary.pending_duration;
|
|
22
|
+
flowRunSummary.status = FlowRunStatus.fromString(rawFlowRunSummary.status);
|
|
23
|
+
flowRunSummary.networkUpload = rawFlowRunSummary.network_upload;
|
|
24
|
+
flowRunSummary.networkDownload = rawFlowRunSummary.network_download;
|
|
25
|
+
flowRunSummary.fileRead = rawFlowRunSummary.file_read;
|
|
26
|
+
flowRunSummary.fileWrite = rawFlowRunSummary.file_write;
|
|
27
|
+
flowRunSummary.cpuAverage = rawFlowRunSummary.cpu_average;
|
|
28
|
+
flowRunSummary.cpuMaximum = rawFlowRunSummary.cpu_maximum;
|
|
29
|
+
flowRunSummary.memoryAverage = rawFlowRunSummary.memory_average;
|
|
30
|
+
flowRunSummary.memoryMaximum = rawFlowRunSummary.memory_maximum;
|
|
31
|
+
return flowRunSummary;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Flow } from './Flow.js';
|
|
2
|
+
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
3
|
+
export declare class FlowSummary extends Flow {
|
|
4
|
+
projectEnvironment: string;
|
|
5
|
+
status: FlowRunStatus;
|
|
6
|
+
latestRun: Date | null;
|
|
7
|
+
averageRunDuration: number | null;
|
|
8
|
+
averagePendingDuration: number | null;
|
|
9
|
+
runCount: number;
|
|
10
|
+
static parse(rawFlowSummary: any): FlowSummary;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
import { Flow } from './Flow.js';
|
|
3
|
+
import { FlowRunStatus } from './FlowRunStatus.js';
|
|
4
|
+
export class FlowSummary extends Flow {
|
|
5
|
+
projectEnvironment;
|
|
6
|
+
status = FlowRunStatus.Unknown;
|
|
7
|
+
latestRun = null;
|
|
8
|
+
averageRunDuration = null;
|
|
9
|
+
averagePendingDuration = null;
|
|
10
|
+
runCount = 0;
|
|
11
|
+
static parse(rawFlowSummary) {
|
|
12
|
+
const flowSummary = Flow.parse(rawFlowSummary);
|
|
13
|
+
flowSummary.projectEnvironment = rawFlowSummary.project_environment;
|
|
14
|
+
flowSummary.status = FlowRunStatus.fromString(rawFlowSummary.status);
|
|
15
|
+
flowSummary.latestRun = rawFlowSummary.latest_run === null ? null : Utils.parseRawDate(rawFlowSummary.latest_run);
|
|
16
|
+
flowSummary.averageRunDuration = rawFlowSummary.average_run_duration;
|
|
17
|
+
flowSummary.averagePendingDuration = rawFlowSummary.average_pending_duration;
|
|
18
|
+
flowSummary.runCount = rawFlowSummary.run_count;
|
|
19
|
+
return flowSummary;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
2
|
+
import { HealthAlertSeverity } from './HealthAlertSeverity.js';
|
|
3
|
+
import { HealthAlertStatus } from './HealthAlertStatus.js';
|
|
4
|
+
import { HealthTestType } from './HealthTestType.js';
|
|
5
|
+
export declare class HealthAlert {
|
|
6
|
+
id: string;
|
|
7
|
+
scopeId: string;
|
|
8
|
+
parentScopeId: string | null;
|
|
9
|
+
healthTestType: HealthTestType;
|
|
10
|
+
status: HealthAlertStatus;
|
|
11
|
+
severity: HealthAlertSeverity;
|
|
12
|
+
date: Date;
|
|
13
|
+
updated: Date;
|
|
14
|
+
data: DataValueCollection;
|
|
15
|
+
constructor(healthTestType: HealthTestType, status: HealthAlertStatus);
|
|
16
|
+
static parse(raw: any): HealthAlert;
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
3
|
+
import { HealthAlertSeverity } from './HealthAlertSeverity.js';
|
|
4
|
+
import { HealthAlertStatus } from './HealthAlertStatus.js';
|
|
5
|
+
import { HealthTestType } from './HealthTestType.js';
|
|
6
|
+
export class HealthAlert {
|
|
7
|
+
id;
|
|
8
|
+
scopeId;
|
|
9
|
+
parentScopeId;
|
|
10
|
+
healthTestType;
|
|
11
|
+
status;
|
|
12
|
+
severity = HealthAlertSeverity.ERROR;
|
|
13
|
+
date;
|
|
14
|
+
updated;
|
|
15
|
+
data;
|
|
16
|
+
constructor(healthTestType, status) {
|
|
17
|
+
this.healthTestType = healthTestType;
|
|
18
|
+
this.status = status;
|
|
19
|
+
this.date = new Date();
|
|
20
|
+
this.data = new DataValueCollection();
|
|
21
|
+
}
|
|
22
|
+
static parse(raw) {
|
|
23
|
+
const healthAlert = new HealthAlert(HealthTestType.fromString(raw.health_test_type), HealthAlertStatus.fromString(raw.status));
|
|
24
|
+
healthAlert.id = raw.id;
|
|
25
|
+
healthAlert.scopeId = raw.scope;
|
|
26
|
+
healthAlert.parentScopeId = raw.parent_scope;
|
|
27
|
+
// severity defaults to ERROR — defensive for older API responses that don't yet send it.
|
|
28
|
+
healthAlert.severity = raw.severity ? HealthAlertSeverity.fromString(raw.severity) : HealthAlertSeverity.ERROR;
|
|
29
|
+
healthAlert.date = Utils.parseRawDate(raw.date);
|
|
30
|
+
healthAlert.updated = Utils.parseRawDate(raw.updated);
|
|
31
|
+
healthAlert.data = DataValueCollection.fromObject(raw.data);
|
|
32
|
+
return healthAlert;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export var HealthAlertSeverity;
|
|
3
|
+
(function (HealthAlertSeverity) {
|
|
4
|
+
HealthAlertSeverity["INFO"] = "info";
|
|
5
|
+
HealthAlertSeverity["WARNING"] = "warning";
|
|
6
|
+
HealthAlertSeverity["ERROR"] = "error";
|
|
7
|
+
})(HealthAlertSeverity || (HealthAlertSeverity = {}));
|
|
8
|
+
(function (HealthAlertSeverity) {
|
|
9
|
+
HealthAlertSeverity.fromString = (input) => {
|
|
10
|
+
const result = Utils.parseEnum(input, HealthAlertSeverity);
|
|
11
|
+
if (result === null) {
|
|
12
|
+
throw new Error('Unable to parse HealthAlertSeverity from string: Unknown HealthAlertSeverity "' + input + '"');
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
})(HealthAlertSeverity || (HealthAlertSeverity = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export var HealthAlertStatus;
|
|
3
|
+
(function (HealthAlertStatus) {
|
|
4
|
+
HealthAlertStatus["PASSED"] = "pass";
|
|
5
|
+
HealthAlertStatus["SKIPPED"] = "skip";
|
|
6
|
+
HealthAlertStatus["FAILED"] = "fail";
|
|
7
|
+
})(HealthAlertStatus || (HealthAlertStatus = {}));
|
|
8
|
+
(function (HealthAlertStatus) {
|
|
9
|
+
HealthAlertStatus.fromString = (input) => {
|
|
10
|
+
const result = Utils.parseEnum(input, HealthAlertStatus);
|
|
11
|
+
if (result === null) {
|
|
12
|
+
throw new Error('Unable to parse HealthAlertStatus from string: Unknown HealthAlertStatus "' + input + '"');
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
})(HealthAlertStatus || (HealthAlertStatus = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum HealthTestType {
|
|
2
|
+
PROJECT_ENVIRONMENT_HAS_WORKERS = "project_environment_has_workers",
|
|
3
|
+
QUEUE_FLOW_IS_HEALTHY = "queue_flow_is_healthy",
|
|
4
|
+
WORKER_IS_UP_TO_DATE = "worker_is_up_to_date",
|
|
5
|
+
ADAPTER_CONNECTION_IS_HEALTHY = "adapter_connection_is_healthy",
|
|
6
|
+
FLOW_RUNS_ARE_SUCCESSFUL = "flow_runs_are_successful",
|
|
7
|
+
STORAGE_CACHE_USAGE_WITHIN_LIMIT = "storage_cache_usage_within_limit",
|
|
8
|
+
STORAGE_PERSISTENT_USAGE_WITHIN_LIMIT = "storage_persistent_usage_within_limit",
|
|
9
|
+
STORAGE_VAULT_USAGE_WITHIN_LIMIT = "storage_vault_usage_within_limit",
|
|
10
|
+
STORAGE_INFRASTRUCTURE_USAGE_WITHIN_LIMIT = "storage_infrastructure_usage_within_limit"
|
|
11
|
+
}
|
|
12
|
+
export declare namespace HealthTestType {
|
|
13
|
+
const fromString: (input: string) => HealthTestType;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export var HealthTestType;
|
|
3
|
+
(function (HealthTestType) {
|
|
4
|
+
HealthTestType["PROJECT_ENVIRONMENT_HAS_WORKERS"] = "project_environment_has_workers";
|
|
5
|
+
HealthTestType["QUEUE_FLOW_IS_HEALTHY"] = "queue_flow_is_healthy";
|
|
6
|
+
HealthTestType["WORKER_IS_UP_TO_DATE"] = "worker_is_up_to_date";
|
|
7
|
+
HealthTestType["ADAPTER_CONNECTION_IS_HEALTHY"] = "adapter_connection_is_healthy";
|
|
8
|
+
HealthTestType["FLOW_RUNS_ARE_SUCCESSFUL"] = "flow_runs_are_successful";
|
|
9
|
+
HealthTestType["STORAGE_CACHE_USAGE_WITHIN_LIMIT"] = "storage_cache_usage_within_limit";
|
|
10
|
+
HealthTestType["STORAGE_PERSISTENT_USAGE_WITHIN_LIMIT"] = "storage_persistent_usage_within_limit";
|
|
11
|
+
HealthTestType["STORAGE_VAULT_USAGE_WITHIN_LIMIT"] = "storage_vault_usage_within_limit";
|
|
12
|
+
HealthTestType["STORAGE_INFRASTRUCTURE_USAGE_WITHIN_LIMIT"] = "storage_infrastructure_usage_within_limit";
|
|
13
|
+
})(HealthTestType || (HealthTestType = {}));
|
|
14
|
+
(function (HealthTestType) {
|
|
15
|
+
HealthTestType.fromString = (input) => {
|
|
16
|
+
const result = Utils.parseEnum(input, HealthTestType);
|
|
17
|
+
if (result === null) {
|
|
18
|
+
throw new Error('Unable to parse HealthTestType from string: Unknown HealthTestType "' + input + '"');
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
})(HealthTestType || (HealthTestType = {}));
|