@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,20 @@
|
|
|
1
|
+
export class ObjectWrapper {
|
|
2
|
+
static wrap(raw, strict = false) {
|
|
3
|
+
const handler = {
|
|
4
|
+
get(target, property, receiver) {
|
|
5
|
+
const value = target[property];
|
|
6
|
+
if (value === undefined) {
|
|
7
|
+
if (strict) {
|
|
8
|
+
throw new Error('Property "' + property + '" does not exist');
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
console.warn('Unable to get property on object.', { property: property, object: raw });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return value;
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
const wrapper = new Proxy(raw, handler);
|
|
18
|
+
return wrapper;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StateAware } from '../StateAware.js';
|
|
2
|
+
import { State } from '../State.js';
|
|
3
|
+
export declare class RunnerImage implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
image: string;
|
|
7
|
+
version: string;
|
|
8
|
+
buildDate: Date;
|
|
9
|
+
deprecated: boolean;
|
|
10
|
+
endOfSupport: Date | null;
|
|
11
|
+
endOfLife: Date | null;
|
|
12
|
+
state: State;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Adapter } from '../Adapter/Adapter.js';
|
|
2
|
+
import { AdapterConnection } from '../Adapter/AdapterConnection.js';
|
|
3
|
+
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
4
|
+
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
5
|
+
import { EntityType } from '../EntityType.js';
|
|
6
|
+
import { Flow } from '../Flow/Flow.js';
|
|
7
|
+
import { FlowRun } from '../Flow/FlowRun.js';
|
|
8
|
+
import { Channel } from '../Messaging/Channel/Channel.js';
|
|
9
|
+
import { Subscriber } from '../Messaging/Subscriber.js';
|
|
10
|
+
import { CodeDeploy } from '../Project/CodeDeploy.js';
|
|
11
|
+
import { Project } from '../Project/Project.js';
|
|
12
|
+
import { ProjectEnvironment } from '../Project/ProjectEnvironment.js';
|
|
13
|
+
import { Trigger } from '../Trigger/Trigger.js';
|
|
14
|
+
import { Workspace } from '../Workspace/Workspace.js';
|
|
15
|
+
import { WorkspaceMember } from '../Workspace/WorkspaceMember.js';
|
|
16
|
+
export declare class SearchResult {
|
|
17
|
+
type: EntityType;
|
|
18
|
+
label: string;
|
|
19
|
+
description: string;
|
|
20
|
+
entity: Workspace | WorkspaceMember | Project | ProjectEnvironment | Flow | FlowRun | Trigger | Channel | Subscriber | Adapter | AdapterConnection | CodeSourceAccount | CodeSource | CodeDeploy;
|
|
21
|
+
score: number;
|
|
22
|
+
static parse(rawResult: Record<string, unknown>): SearchResult;
|
|
23
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Adapter } from '../Adapter/Adapter.js';
|
|
2
|
+
import { AdapterConnection } from '../Adapter/AdapterConnection.js';
|
|
3
|
+
import { CodeSource } from '../Deployment/CodeSource.js';
|
|
4
|
+
import { CodeSourceAccount } from '../Deployment/CodeSourceAccount.js';
|
|
5
|
+
import { EntityType } from '../EntityType.js';
|
|
6
|
+
import { Flow } from '../Flow/Flow.js';
|
|
7
|
+
import { FlowRun } from '../Flow/FlowRun.js';
|
|
8
|
+
import { Channel } from '../Messaging/Channel/Channel.js';
|
|
9
|
+
import { Subscriber } from '../Messaging/Subscriber.js';
|
|
10
|
+
import { CodeDeploy } from '../Project/CodeDeploy.js';
|
|
11
|
+
import { Project } from '../Project/Project.js';
|
|
12
|
+
import { ProjectEnvironment } from '../Project/ProjectEnvironment.js';
|
|
13
|
+
import { Trigger } from '../Trigger/Trigger.js';
|
|
14
|
+
import { Workspace } from '../Workspace/Workspace.js';
|
|
15
|
+
import { WorkspaceMember } from '../Workspace/WorkspaceMember.js';
|
|
16
|
+
export class SearchResult {
|
|
17
|
+
type;
|
|
18
|
+
label;
|
|
19
|
+
description;
|
|
20
|
+
entity;
|
|
21
|
+
score;
|
|
22
|
+
static parse(rawResult) {
|
|
23
|
+
const searchResult = new SearchResult();
|
|
24
|
+
searchResult.type = EntityType.fromString(rawResult.entity_type);
|
|
25
|
+
// searchResult.entity = rawResult.entity;
|
|
26
|
+
searchResult.label = rawResult.label;
|
|
27
|
+
searchResult.description = rawResult.description;
|
|
28
|
+
searchResult.score = rawResult.score;
|
|
29
|
+
const rawEntity = rawResult.entity;
|
|
30
|
+
switch (searchResult.type) {
|
|
31
|
+
case EntityType.Organisation:
|
|
32
|
+
// TODO: implement
|
|
33
|
+
searchResult.entity = rawEntity;
|
|
34
|
+
break;
|
|
35
|
+
case EntityType.Workspace:
|
|
36
|
+
searchResult.entity = Workspace.parse(rawEntity);
|
|
37
|
+
break;
|
|
38
|
+
case EntityType.Project:
|
|
39
|
+
searchResult.entity = Project.parse(rawEntity);
|
|
40
|
+
break;
|
|
41
|
+
case EntityType.ProjectEnvironment:
|
|
42
|
+
searchResult.entity = ProjectEnvironment.parse(rawEntity);
|
|
43
|
+
break;
|
|
44
|
+
case EntityType.Flow:
|
|
45
|
+
searchResult.entity = Flow.parse(rawEntity);
|
|
46
|
+
break;
|
|
47
|
+
case EntityType.FlowRun:
|
|
48
|
+
searchResult.entity = FlowRun.parse(rawEntity);
|
|
49
|
+
break;
|
|
50
|
+
case EntityType.WorkspaceMember:
|
|
51
|
+
searchResult.entity = WorkspaceMember.parse(rawEntity);
|
|
52
|
+
break;
|
|
53
|
+
case EntityType.Adapter:
|
|
54
|
+
searchResult.entity = Adapter.parse(rawEntity);
|
|
55
|
+
break;
|
|
56
|
+
case EntityType.AdapterConnection:
|
|
57
|
+
searchResult.entity = AdapterConnection.parse(rawEntity);
|
|
58
|
+
break;
|
|
59
|
+
case EntityType.Channel:
|
|
60
|
+
searchResult.entity = Channel.parse(rawEntity);
|
|
61
|
+
break;
|
|
62
|
+
case EntityType.ChannelSubscriber:
|
|
63
|
+
searchResult.entity = Subscriber.parseRaw(rawEntity);
|
|
64
|
+
break;
|
|
65
|
+
case EntityType.Trigger:
|
|
66
|
+
searchResult.entity = Trigger.parse(rawEntity);
|
|
67
|
+
break;
|
|
68
|
+
case EntityType.CodeSourceAccount:
|
|
69
|
+
searchResult.entity = CodeSourceAccount.parse(rawEntity);
|
|
70
|
+
break;
|
|
71
|
+
case EntityType.CodeSource:
|
|
72
|
+
searchResult.entity = CodeSource.parse(rawEntity);
|
|
73
|
+
break;
|
|
74
|
+
case EntityType.CodeSourceDeploy:
|
|
75
|
+
searchResult.entity = CodeDeploy.parse(rawEntity);
|
|
76
|
+
break;
|
|
77
|
+
case EntityType.StorageBucket:
|
|
78
|
+
// TODO: implement
|
|
79
|
+
searchResult.entity = rawEntity;
|
|
80
|
+
break;
|
|
81
|
+
case EntityType.LogStream:
|
|
82
|
+
// TODO: implement
|
|
83
|
+
searchResult.entity = rawEntity;
|
|
84
|
+
break;
|
|
85
|
+
case EntityType.RunnerPool:
|
|
86
|
+
// TODO: implement
|
|
87
|
+
searchResult.entity = rawEntity;
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
throw new Error('Unknown search result type "' + searchResult.type + '"');
|
|
91
|
+
}
|
|
92
|
+
return searchResult;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Utils } from '../Utils.js';
|
|
2
|
+
export var State;
|
|
3
|
+
(function (State) {
|
|
4
|
+
State["Active"] = "active";
|
|
5
|
+
State["Inactive"] = "inactive";
|
|
6
|
+
State["Removed"] = "removed";
|
|
7
|
+
})(State || (State = {}));
|
|
8
|
+
(function (State) {
|
|
9
|
+
State.fromString = (input) => {
|
|
10
|
+
const result = Utils.parseEnum(input, State);
|
|
11
|
+
if (result === null) {
|
|
12
|
+
throw new Error('Unable to parse State from string: Unknown State "' + input + '"');
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
})(State || (State = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export class StorageItem {
|
|
3
|
+
// public id: string | null = null;
|
|
4
|
+
key;
|
|
5
|
+
bytes;
|
|
6
|
+
created;
|
|
7
|
+
updated;
|
|
8
|
+
expiration;
|
|
9
|
+
value;
|
|
10
|
+
static parse(raw) {
|
|
11
|
+
const storageItem = new StorageItem();
|
|
12
|
+
// storageItem.id = raw.id === null || raw.id === undefined ? null : raw.id;
|
|
13
|
+
storageItem.key = raw.key;
|
|
14
|
+
storageItem.bytes = raw.bytes;
|
|
15
|
+
storageItem.value = raw.value;
|
|
16
|
+
storageItem.created = raw.created === null ? null : Utils.parseRawDate(raw.created);
|
|
17
|
+
storageItem.updated = raw.updated === null ? null : Utils.parseRawDate(raw.updated);
|
|
18
|
+
storageItem.expiration = raw.expiration === null ? null : Utils.parseRawDate(raw.expiration);
|
|
19
|
+
return storageItem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export class StorageItemInformation {
|
|
3
|
+
// public id: string | null = null;
|
|
4
|
+
key;
|
|
5
|
+
bytes;
|
|
6
|
+
created;
|
|
7
|
+
updated;
|
|
8
|
+
expiration;
|
|
9
|
+
static parse(raw) {
|
|
10
|
+
const storageItemInformation = new StorageItemInformation();
|
|
11
|
+
// storageItemInformation.id = raw.id;
|
|
12
|
+
storageItemInformation.key = raw.key;
|
|
13
|
+
storageItemInformation.bytes = raw.bytes;
|
|
14
|
+
storageItemInformation.created = raw.created === null ? null : Utils.parseRawDate(raw.created);
|
|
15
|
+
storageItemInformation.updated = raw.updated === null ? null : Utils.parseRawDate(raw.updated);
|
|
16
|
+
storageItemInformation.expiration = raw.expiration === null ? null : Utils.parseRawDate(raw.expiration);
|
|
17
|
+
return storageItemInformation;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Utils } from '../../Utils.js';
|
|
2
|
+
export var StorageType;
|
|
3
|
+
(function (StorageType) {
|
|
4
|
+
StorageType["Cache"] = "cache";
|
|
5
|
+
StorageType["Persistent"] = "persistent";
|
|
6
|
+
StorageType["Vault"] = "vault";
|
|
7
|
+
StorageType["Infrastructure"] = "infrastructure";
|
|
8
|
+
})(StorageType || (StorageType = {}));
|
|
9
|
+
(function (StorageType) {
|
|
10
|
+
StorageType.fromString = (input) => {
|
|
11
|
+
const result = Utils.parseEnum(input, StorageType);
|
|
12
|
+
if (result === null) {
|
|
13
|
+
throw new Error('Unable to parse StorageType from string: Unknown StorageType "' + input + '"');
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
};
|
|
17
|
+
})(StorageType || (StorageType = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { StateAware } from '../StateAware.js';
|
|
3
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
4
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
5
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
6
|
+
export declare class Trigger extends MetaDataAware implements StateAware {
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
projectEnvironmentId: string;
|
|
10
|
+
flowId: string;
|
|
11
|
+
target: string;
|
|
12
|
+
arguments: {};
|
|
13
|
+
data: DataValueCollection;
|
|
14
|
+
state: State;
|
|
15
|
+
constructor(id: string, type: string, projectEnvironmentId: string, flowId: string, data: DataValueCollection);
|
|
16
|
+
static parse(rawTrigger: ApiRecord): Trigger;
|
|
17
|
+
getData(): DataValueCollection;
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
3
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
4
|
+
export class Trigger extends MetaDataAware {
|
|
5
|
+
id;
|
|
6
|
+
type;
|
|
7
|
+
projectEnvironmentId;
|
|
8
|
+
flowId;
|
|
9
|
+
target;
|
|
10
|
+
arguments;
|
|
11
|
+
data;
|
|
12
|
+
state = State.Active;
|
|
13
|
+
constructor(id, type, projectEnvironmentId, flowId, data) {
|
|
14
|
+
super();
|
|
15
|
+
this.id = id;
|
|
16
|
+
this.type = type;
|
|
17
|
+
this.projectEnvironmentId = projectEnvironmentId;
|
|
18
|
+
this.flowId = flowId;
|
|
19
|
+
this.data = data;
|
|
20
|
+
this.arguments = {};
|
|
21
|
+
}
|
|
22
|
+
static parse(rawTrigger) {
|
|
23
|
+
const flowId = rawTrigger.flow;
|
|
24
|
+
const parsedData = DataValueCollection.fromObject(rawTrigger.data);
|
|
25
|
+
const trigger = new Trigger(rawTrigger.id, rawTrigger.type, rawTrigger.project_environment, flowId, parsedData);
|
|
26
|
+
trigger.target = rawTrigger.target;
|
|
27
|
+
trigger.arguments = rawTrigger.arguments;
|
|
28
|
+
trigger.state = State.fromString(rawTrigger.state);
|
|
29
|
+
return trigger;
|
|
30
|
+
}
|
|
31
|
+
getData() {
|
|
32
|
+
return this.data;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StateAware } from '../StateAware.js';
|
|
2
|
+
import { State } from '../State.js';
|
|
3
|
+
export declare class User implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
emailIsVerified: boolean;
|
|
7
|
+
email: string;
|
|
8
|
+
phone: string;
|
|
9
|
+
language: string;
|
|
10
|
+
time_zone: string;
|
|
11
|
+
locale: string;
|
|
12
|
+
date_format: string | null;
|
|
13
|
+
time_format: string | null;
|
|
14
|
+
number_format: string | null;
|
|
15
|
+
picture: string;
|
|
16
|
+
state: State;
|
|
17
|
+
static parse(rawUser: any): User;
|
|
18
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
export class User {
|
|
3
|
+
id;
|
|
4
|
+
name;
|
|
5
|
+
emailIsVerified;
|
|
6
|
+
email;
|
|
7
|
+
phone;
|
|
8
|
+
language;
|
|
9
|
+
time_zone;
|
|
10
|
+
locale;
|
|
11
|
+
date_format = null;
|
|
12
|
+
time_format = null;
|
|
13
|
+
number_format = null;
|
|
14
|
+
picture;
|
|
15
|
+
state = State.Active;
|
|
16
|
+
static parse(rawUser) {
|
|
17
|
+
const user = new User();
|
|
18
|
+
user.id = rawUser.id;
|
|
19
|
+
user.name = rawUser.name;
|
|
20
|
+
user.email = rawUser.email;
|
|
21
|
+
user.emailIsVerified = rawUser.email_is_verified;
|
|
22
|
+
user.phone = rawUser.phone;
|
|
23
|
+
user.language = rawUser.language;
|
|
24
|
+
user.time_zone = rawUser.time_zone;
|
|
25
|
+
user.locale = rawUser.locale;
|
|
26
|
+
user.date_format = rawUser.date_format;
|
|
27
|
+
user.time_format = rawUser.time_format;
|
|
28
|
+
user.number_format = rawUser.number_format;
|
|
29
|
+
user.picture = rawUser.picture;
|
|
30
|
+
user.state = State.fromString(rawUser.state);
|
|
31
|
+
return user;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
2
|
+
export declare class UserAction {
|
|
3
|
+
id: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
action: string;
|
|
7
|
+
entityId: string;
|
|
8
|
+
entityType: string;
|
|
9
|
+
description: string;
|
|
10
|
+
ip: string;
|
|
11
|
+
time: Date;
|
|
12
|
+
result: string;
|
|
13
|
+
data: DataValueCollection;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters for the audit-log list. userIds is multi-value; entityId is a single prefixed entity id;
|
|
3
|
+
* timeFrom/timeTo bound the action time (inclusive). All optional.
|
|
4
|
+
*/
|
|
5
|
+
export interface UserActionFilter {
|
|
6
|
+
userIds?: string[];
|
|
7
|
+
entityId?: string;
|
|
8
|
+
timeFrom?: Date;
|
|
9
|
+
timeTo?: Date;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { StateAware } from '../StateAware.js';
|
|
3
|
+
export declare class UserAuthProvider implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
provider: string;
|
|
7
|
+
providerUserId: string;
|
|
8
|
+
providerUserEmail: string;
|
|
9
|
+
lastUsed: Date | null;
|
|
10
|
+
state: State;
|
|
11
|
+
static parse(raw: any): UserAuthProvider;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { Utils } from '../../Utils.js';
|
|
3
|
+
export class UserAuthProvider {
|
|
4
|
+
id;
|
|
5
|
+
userId;
|
|
6
|
+
provider;
|
|
7
|
+
providerUserId;
|
|
8
|
+
providerUserEmail;
|
|
9
|
+
lastUsed = null;
|
|
10
|
+
state = State.Active;
|
|
11
|
+
static parse(raw) {
|
|
12
|
+
const userAuthProvider = new UserAuthProvider();
|
|
13
|
+
userAuthProvider.id = raw.id;
|
|
14
|
+
userAuthProvider.userId = raw.user;
|
|
15
|
+
userAuthProvider.provider = raw.provider;
|
|
16
|
+
userAuthProvider.providerUserId = raw.provider_user;
|
|
17
|
+
userAuthProvider.providerUserEmail = raw.provider_user_email;
|
|
18
|
+
userAuthProvider.lastUsed = Utils.parseRawDate(raw.last_used);
|
|
19
|
+
userAuthProvider.state = State.fromString(raw.state);
|
|
20
|
+
return userAuthProvider;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { StateAware } from '../StateAware.js';
|
|
3
|
+
export declare class UserNotificationSession implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
session: string;
|
|
6
|
+
subscription: unknown;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
expiresAt: Date;
|
|
10
|
+
state: State;
|
|
11
|
+
os: string;
|
|
12
|
+
browser: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
export type UserSummaryType = 'user' | 'system';
|
|
3
|
+
/**
|
|
4
|
+
* Display-safe view of a user (no email/PII). Resolved via UserEndpoint.getSummaries().
|
|
5
|
+
* `state` drives the badge (reuses the global State enum); `null` = not resolvable for this caller.
|
|
6
|
+
* `displayName` is always safe to show ("System", "Removed user", "Unknown user" for the edge cases).
|
|
7
|
+
*/
|
|
8
|
+
export declare class UserSummary {
|
|
9
|
+
id: string;
|
|
10
|
+
type: UserSummaryType;
|
|
11
|
+
state: State | null;
|
|
12
|
+
displayName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Display-safe view of a user (no email/PII). Resolved via UserEndpoint.getSummaries().
|
|
3
|
+
* `state` drives the badge (reuses the global State enum); `null` = not resolvable for this caller.
|
|
4
|
+
* `displayName` is always safe to show ("System", "Removed user", "Unknown user" for the edge cases).
|
|
5
|
+
*/
|
|
6
|
+
export class UserSummary {
|
|
7
|
+
id;
|
|
8
|
+
type;
|
|
9
|
+
state;
|
|
10
|
+
displayName;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class InfrastructureConfiguration {
|
|
2
|
+
static readonly KEY_FLOW_RUN_ENABLED: string;
|
|
3
|
+
static readonly KEY_FLOW_RUN_VERSION: string;
|
|
4
|
+
static readonly KEY_FLOW_RUN_WORKER_IMAGE: string;
|
|
5
|
+
static readonly KEY_FLOW_RUN_WORKER_NAME: string;
|
|
6
|
+
static readonly KEY_FLOW_RUN_WORKER_SCALE: string;
|
|
7
|
+
static readonly KEY_FLOW_RUN_WORKER_SCALE_LIMIT: string;
|
|
8
|
+
static readonly KEY_FLOW_RUN_RUNNER_ENDPOINT: string;
|
|
9
|
+
static readonly KEY_FLOW_RUN_RUNNER_TOKEN: string;
|
|
10
|
+
static readonly KEY_FLOW_RUN_CODE_ENDPOINT: string;
|
|
11
|
+
static readonly KEY_FLOW_RUN_CODE_TOKEN: string;
|
|
12
|
+
static readonly KEY_FLOW_RUN_WORKER_MEMORY_LIMIT: string;
|
|
13
|
+
static readonly KEY_FLOW_RUN_WORKER_CPU_LIMIT: string;
|
|
14
|
+
static readonly KEY_FLOW_RUN_QUEUE_NAME: string;
|
|
15
|
+
static readonly KEY_FLOW_RUN_QUEUE_SUFFIX: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class InfrastructureConfiguration {
|
|
2
|
+
static KEY_FLOW_RUN_ENABLED = 'flow_run_enabled';
|
|
3
|
+
static KEY_FLOW_RUN_VERSION = 'flow_run_version';
|
|
4
|
+
static KEY_FLOW_RUN_WORKER_IMAGE = 'flow_run_worker_image';
|
|
5
|
+
static KEY_FLOW_RUN_WORKER_NAME = 'flow_run_worker_name';
|
|
6
|
+
static KEY_FLOW_RUN_WORKER_SCALE = 'flow_run_worker_scale';
|
|
7
|
+
static KEY_FLOW_RUN_WORKER_SCALE_LIMIT = 'flow_run_worker_scale_limit';
|
|
8
|
+
// Endpoint the runner process itself calls back to
|
|
9
|
+
static KEY_FLOW_RUN_RUNNER_ENDPOINT = 'flow_run_runner_endpoint';
|
|
10
|
+
// OAuthAccessTokenId the runner authenticates with
|
|
11
|
+
static KEY_FLOW_RUN_RUNNER_TOKEN = 'flow_run_runner_token';
|
|
12
|
+
// Endpoint injected into the customer flow code
|
|
13
|
+
static KEY_FLOW_RUN_CODE_ENDPOINT = 'flow_run_code_endpoint';
|
|
14
|
+
// OAuthAccessTokenId injected into the customer flow code
|
|
15
|
+
static KEY_FLOW_RUN_CODE_TOKEN = 'flow_run_code_token';
|
|
16
|
+
static KEY_FLOW_RUN_WORKER_MEMORY_LIMIT = 'flow_run_worker_memory_limit';
|
|
17
|
+
static KEY_FLOW_RUN_WORKER_CPU_LIMIT = 'flow_run_worker_cpu_limit';
|
|
18
|
+
static KEY_FLOW_RUN_QUEUE_NAME = 'flow_run_queue_name';
|
|
19
|
+
static KEY_FLOW_RUN_QUEUE_SUFFIX = 'flow_run_queue_suffix';
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { StateAware } from '../StateAware.js';
|
|
3
|
+
export declare class Platform implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
languageId: string;
|
|
7
|
+
released: Date;
|
|
8
|
+
endOfSupport: Date;
|
|
9
|
+
endOfLife: Date;
|
|
10
|
+
activeImage: string | null;
|
|
11
|
+
state: State;
|
|
12
|
+
static parse(raw: any): Platform;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { Utils } from '../../Utils.js';
|
|
3
|
+
export class Platform {
|
|
4
|
+
id;
|
|
5
|
+
name;
|
|
6
|
+
languageId;
|
|
7
|
+
released;
|
|
8
|
+
endOfSupport;
|
|
9
|
+
endOfLife;
|
|
10
|
+
activeImage;
|
|
11
|
+
state = State.Active;
|
|
12
|
+
static parse(raw) {
|
|
13
|
+
const platform = new Platform();
|
|
14
|
+
platform.id = raw.id;
|
|
15
|
+
platform.name = raw.name;
|
|
16
|
+
platform.languageId = raw.language;
|
|
17
|
+
platform.released = Utils.parseRawDate(raw.released);
|
|
18
|
+
platform.endOfSupport = Utils.parseRawDate(raw.end_of_support);
|
|
19
|
+
platform.endOfLife = Utils.parseRawDate(raw.end_of_life);
|
|
20
|
+
platform.activeImage = raw.active_image;
|
|
21
|
+
platform.state = State.fromString(raw.state);
|
|
22
|
+
return platform;
|
|
23
|
+
}
|
|
24
|
+
}
|