@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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
2
|
+
export declare class Collection {
|
|
3
|
+
id: string;
|
|
4
|
+
project: string;
|
|
5
|
+
name: string;
|
|
6
|
+
properties: {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
options: string[];
|
|
11
|
+
}[];
|
|
12
|
+
static parse(raw: ApiRecord): Collection;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class Collection {
|
|
2
|
+
id;
|
|
3
|
+
project;
|
|
4
|
+
name;
|
|
5
|
+
properties;
|
|
6
|
+
// records: CollectionRecord[];
|
|
7
|
+
static parse(raw) {
|
|
8
|
+
const collection = new Collection();
|
|
9
|
+
collection.id = raw.id;
|
|
10
|
+
collection.project = raw.project;
|
|
11
|
+
collection.name = raw.name;
|
|
12
|
+
collection.properties = raw.properties;
|
|
13
|
+
return collection;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
2
|
+
import { CommandExecutionStatus } from './CommandExecutionStatus.js';
|
|
3
|
+
export declare class CommandExecutionHistory {
|
|
4
|
+
id: string;
|
|
5
|
+
commandType: string;
|
|
6
|
+
commandTime: Date;
|
|
7
|
+
commandData: DataValueCollection;
|
|
8
|
+
commandVersion: string;
|
|
9
|
+
requestedBy: string;
|
|
10
|
+
executionStarted: Date | null;
|
|
11
|
+
executionFinished: Date | null;
|
|
12
|
+
executionStatus: CommandExecutionStatus;
|
|
13
|
+
executionError: string | null;
|
|
14
|
+
executionResult: string | null;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class CommandExecutionHistory {
|
|
2
|
+
id;
|
|
3
|
+
commandType;
|
|
4
|
+
commandTime;
|
|
5
|
+
commandData;
|
|
6
|
+
commandVersion;
|
|
7
|
+
// The user that requested the command (the platform system user for cron/event/maintenance commands).
|
|
8
|
+
requestedBy;
|
|
9
|
+
executionStarted;
|
|
10
|
+
executionFinished;
|
|
11
|
+
executionStatus;
|
|
12
|
+
executionError;
|
|
13
|
+
// Structured result payload as a JSON string (e.g. '{"removedCount": 1234}'); shape depends on the command type.
|
|
14
|
+
executionResult;
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export var CommandExecutionStatus;
|
|
2
|
+
(function (CommandExecutionStatus) {
|
|
3
|
+
CommandExecutionStatus["Pending"] = "pending";
|
|
4
|
+
CommandExecutionStatus["Running"] = "running";
|
|
5
|
+
CommandExecutionStatus["Completed"] = "completed";
|
|
6
|
+
CommandExecutionStatus["Failed"] = "failed";
|
|
7
|
+
})(CommandExecutionStatus || (CommandExecutionStatus = {}));
|
|
8
|
+
(function (CommandExecutionStatus) {
|
|
9
|
+
CommandExecutionStatus.fromString = (input) => {
|
|
10
|
+
switch (input) {
|
|
11
|
+
case CommandExecutionStatus.Pending:
|
|
12
|
+
case CommandExecutionStatus.Running:
|
|
13
|
+
case CommandExecutionStatus.Completed:
|
|
14
|
+
case CommandExecutionStatus.Failed:
|
|
15
|
+
return input;
|
|
16
|
+
default:
|
|
17
|
+
throw new Error('Unknown CommandExecutionStatus "' + input + '"');
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
})(CommandExecutionStatus || (CommandExecutionStatus = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { State } from './State.js';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export declare class Config {
|
|
6
|
+
id: number;
|
|
7
|
+
projectId: string;
|
|
8
|
+
projectEnvironmentId: string;
|
|
9
|
+
flowId: string;
|
|
10
|
+
scope: string;
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
inheritable: boolean;
|
|
14
|
+
sensitive: boolean;
|
|
15
|
+
state: State;
|
|
16
|
+
static parse(rawConfig: Record<string, any>): Config;
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Utils } from '../Utils.js';
|
|
2
|
+
import { State } from './State.js';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export class Config {
|
|
7
|
+
id;
|
|
8
|
+
projectId;
|
|
9
|
+
projectEnvironmentId;
|
|
10
|
+
flowId;
|
|
11
|
+
scope;
|
|
12
|
+
key;
|
|
13
|
+
value;
|
|
14
|
+
inheritable = true;
|
|
15
|
+
sensitive = true;
|
|
16
|
+
state = State.Active;
|
|
17
|
+
static parse(rawConfig) {
|
|
18
|
+
const config = new Config();
|
|
19
|
+
config.id = rawConfig.id;
|
|
20
|
+
config.projectId = rawConfig.project;
|
|
21
|
+
config.projectEnvironmentId = rawConfig.project_environment;
|
|
22
|
+
config.flowId = rawConfig.flow;
|
|
23
|
+
config.scope = rawConfig.scope;
|
|
24
|
+
config.key = rawConfig.key;
|
|
25
|
+
config.value = rawConfig.value;
|
|
26
|
+
config.inheritable = Utils.isTrue(rawConfig.inheritable);
|
|
27
|
+
config.sensitive = Utils.isTrue(rawConfig.sensitive);
|
|
28
|
+
config.state = State.fromString(rawConfig.state);
|
|
29
|
+
return config;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { DataValueValue } from '../DataValue.js';
|
|
3
|
+
export declare class Configuration {
|
|
4
|
+
id: string;
|
|
5
|
+
path: string;
|
|
6
|
+
value: DataValueValue;
|
|
7
|
+
state: State;
|
|
8
|
+
scope: string;
|
|
9
|
+
static parse(rawConfig: Record<string, unknown>): Configuration;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
export class Configuration {
|
|
3
|
+
id;
|
|
4
|
+
path;
|
|
5
|
+
value;
|
|
6
|
+
state;
|
|
7
|
+
scope;
|
|
8
|
+
static parse(rawConfig) {
|
|
9
|
+
const config = new Configuration();
|
|
10
|
+
config.id = rawConfig.id;
|
|
11
|
+
config.path = rawConfig.path;
|
|
12
|
+
config.value = rawConfig.value;
|
|
13
|
+
config.state = State.fromString(rawConfig.state);
|
|
14
|
+
config.scope = rawConfig.scope;
|
|
15
|
+
return config;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DataValue, DataValueValue } from './DataValue.js';
|
|
2
|
+
import { JsonSerializable } from './JsonSerializable.js';
|
|
3
|
+
export declare class DataValueCollection extends JsonSerializable implements Iterable<DataValue> {
|
|
4
|
+
private _values;
|
|
5
|
+
get length(): number;
|
|
6
|
+
static fromObject(rawValues: {
|
|
7
|
+
key: string;
|
|
8
|
+
value: DataValueValue;
|
|
9
|
+
}[] | null): DataValueCollection;
|
|
10
|
+
set(key: string, value: DataValueValue): void;
|
|
11
|
+
has(key: string): boolean;
|
|
12
|
+
get(key: string): DataValueValue | null;
|
|
13
|
+
unset(key: string): void;
|
|
14
|
+
serialize(): string | null;
|
|
15
|
+
[Symbol.iterator](): Iterator<DataValue>;
|
|
16
|
+
jsonSerialize(): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Utils } from '../Utils.js';
|
|
2
|
+
import { DataValue } from './DataValue.js';
|
|
3
|
+
import { JsonSerializable } from './JsonSerializable.js';
|
|
4
|
+
export class DataValueCollection extends JsonSerializable {
|
|
5
|
+
_values = [];
|
|
6
|
+
get length() {
|
|
7
|
+
return this._values.length;
|
|
8
|
+
}
|
|
9
|
+
static fromObject(rawValues) {
|
|
10
|
+
if (rawValues === null || rawValues === undefined) {
|
|
11
|
+
return new DataValueCollection();
|
|
12
|
+
}
|
|
13
|
+
if (!Utils.isIterable(rawValues)) {
|
|
14
|
+
throw new Error('Unable to parse data value collection: values are not iterable: ' + JSON.stringify(rawValues));
|
|
15
|
+
}
|
|
16
|
+
const result = new DataValueCollection();
|
|
17
|
+
for (const rawValue of rawValues) {
|
|
18
|
+
// TODO: validate rawTag
|
|
19
|
+
result.set(rawValue.key, rawValue.value);
|
|
20
|
+
}
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
set(key, value) {
|
|
24
|
+
const existingIndex = this._values.findIndex((tag) => tag.key === key);
|
|
25
|
+
if (existingIndex !== -1) {
|
|
26
|
+
this._values.splice(existingIndex);
|
|
27
|
+
}
|
|
28
|
+
this._values.push(new DataValue(key, value));
|
|
29
|
+
}
|
|
30
|
+
has(key) {
|
|
31
|
+
for (const tag of this._values) {
|
|
32
|
+
if (tag.key === key) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
get(key) {
|
|
39
|
+
for (const tag of this._values) {
|
|
40
|
+
if (tag.key === key) {
|
|
41
|
+
return tag.value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
unset(key) {
|
|
47
|
+
this._values = this._values.filter((tag) => tag.key !== key);
|
|
48
|
+
}
|
|
49
|
+
serialize() {
|
|
50
|
+
if (this._values.length === 0) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return JSON.stringify(this._values);
|
|
54
|
+
}
|
|
55
|
+
[Symbol.iterator]() {
|
|
56
|
+
return this._values.values();
|
|
57
|
+
}
|
|
58
|
+
jsonSerialize() {
|
|
59
|
+
return this._values;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MetaDataWithIconAware } from '../../Core/MetaDataWithIconAware.js';
|
|
2
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
3
|
+
import { State } from '../State.js';
|
|
4
|
+
import { StateAware } from '../StateAware.js';
|
|
5
|
+
export declare class CodeSource extends MetaDataWithIconAware implements StateAware {
|
|
6
|
+
id: string;
|
|
7
|
+
codeSourceAccountId: string;
|
|
8
|
+
repository: {
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
branch: string;
|
|
14
|
+
platformId: string;
|
|
15
|
+
buildStrategyId: string;
|
|
16
|
+
runStrategyId: string;
|
|
17
|
+
state: State;
|
|
18
|
+
usage: {
|
|
19
|
+
flows: number;
|
|
20
|
+
environments: number;
|
|
21
|
+
} | null;
|
|
22
|
+
deployCount: number | null;
|
|
23
|
+
static parse(rawCodeSource: ApiRecord): CodeSource;
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MetaDataWithIconAware } from '../../Core/MetaDataWithIconAware.js';
|
|
2
|
+
import { State } from '../State.js';
|
|
3
|
+
export class CodeSource extends MetaDataWithIconAware {
|
|
4
|
+
id;
|
|
5
|
+
codeSourceAccountId;
|
|
6
|
+
repository;
|
|
7
|
+
branch;
|
|
8
|
+
platformId;
|
|
9
|
+
buildStrategyId;
|
|
10
|
+
runStrategyId;
|
|
11
|
+
state = State.Active;
|
|
12
|
+
usage = null;
|
|
13
|
+
deployCount = null;
|
|
14
|
+
static parse(rawCodeSource) {
|
|
15
|
+
const codeSource = MetaDataWithIconAware.parseMetaData(new CodeSource(), rawCodeSource);
|
|
16
|
+
codeSource.id = rawCodeSource.id;
|
|
17
|
+
codeSource.codeSourceAccountId = rawCodeSource.code_source_account;
|
|
18
|
+
codeSource.repository = rawCodeSource.repository;
|
|
19
|
+
codeSource.branch = rawCodeSource.branch;
|
|
20
|
+
codeSource.platformId = rawCodeSource.platform;
|
|
21
|
+
codeSource.buildStrategyId = rawCodeSource.build_strategy;
|
|
22
|
+
codeSource.runStrategyId = rawCodeSource.run_strategy;
|
|
23
|
+
codeSource.state = State.fromString(rawCodeSource.state);
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(rawCodeSource, 'usage')) {
|
|
25
|
+
codeSource.usage = rawCodeSource.usage;
|
|
26
|
+
}
|
|
27
|
+
if (Object.prototype.hasOwnProperty.call(rawCodeSource, 'deploys')) {
|
|
28
|
+
codeSource.deployCount = rawCodeSource.deploys;
|
|
29
|
+
}
|
|
30
|
+
return codeSource;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
2
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
3
|
+
import { State } from '../State.js';
|
|
4
|
+
import { StateAware } from '../StateAware.js';
|
|
5
|
+
export declare class CodeSourceAccount extends MetaDataAware implements StateAware {
|
|
6
|
+
id: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
type: string;
|
|
10
|
+
providerToken: string | null;
|
|
11
|
+
state: State;
|
|
12
|
+
static parse(rawSourcesAccount: ApiRecord): CodeSourceAccount;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
2
|
+
import { State } from '../State.js';
|
|
3
|
+
export class CodeSourceAccount extends MetaDataAware {
|
|
4
|
+
id;
|
|
5
|
+
userId;
|
|
6
|
+
workspaceId;
|
|
7
|
+
type;
|
|
8
|
+
providerToken;
|
|
9
|
+
// public access_token: string;
|
|
10
|
+
// public refresh_token: string;
|
|
11
|
+
// public scopes: string;
|
|
12
|
+
state;
|
|
13
|
+
static parse(rawSourcesAccount) {
|
|
14
|
+
const sourcesAccount = MetaDataAware.parseMetaData(new CodeSourceAccount(), rawSourcesAccount);
|
|
15
|
+
sourcesAccount.userId = rawSourcesAccount.user;
|
|
16
|
+
sourcesAccount.workspaceId = rawSourcesAccount.workspace;
|
|
17
|
+
sourcesAccount.type = rawSourcesAccount.type;
|
|
18
|
+
sourcesAccount.providerToken = rawSourcesAccount.provider_token;
|
|
19
|
+
// sourcesAccount.access_token = rawSourcesAccount.access_token;
|
|
20
|
+
// sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
|
|
21
|
+
// sourcesAccount.scopes = rawSourcesAccount.scopes;
|
|
22
|
+
sourcesAccount.state = State.fromString(rawSourcesAccount.state);
|
|
23
|
+
return sourcesAccount;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
import { StateAware } from '../StateAware.js';
|
|
3
|
+
export declare class CodeSourceBuildStrategy implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
languageId: string;
|
|
8
|
+
state: State;
|
|
9
|
+
static parse(raw: any): CodeSourceBuildStrategy;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
export class CodeSourceBuildStrategy {
|
|
3
|
+
id;
|
|
4
|
+
name;
|
|
5
|
+
description;
|
|
6
|
+
languageId;
|
|
7
|
+
state = State.Active;
|
|
8
|
+
static parse(raw) {
|
|
9
|
+
const codeDeployStrategy = new CodeSourceBuildStrategy();
|
|
10
|
+
codeDeployStrategy.id = raw.id;
|
|
11
|
+
codeDeployStrategy.name = raw.name;
|
|
12
|
+
codeDeployStrategy.description = raw.description;
|
|
13
|
+
codeDeployStrategy.languageId = raw.language;
|
|
14
|
+
codeDeployStrategy.state = State.fromString(raw.state);
|
|
15
|
+
return codeDeployStrategy;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StateAware } from '../StateAware.js';
|
|
2
|
+
import { State } from '../State.js';
|
|
3
|
+
export declare class CodeSourceRunStrategy implements StateAware {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
languageId: string;
|
|
8
|
+
state: State;
|
|
9
|
+
static parse(raw: any): CodeSourceRunStrategy;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { State } from '../State.js';
|
|
2
|
+
export class CodeSourceRunStrategy {
|
|
3
|
+
id;
|
|
4
|
+
name;
|
|
5
|
+
description;
|
|
6
|
+
languageId;
|
|
7
|
+
state = State.Active;
|
|
8
|
+
static parse(raw) {
|
|
9
|
+
const runStrategy = new CodeSourceRunStrategy();
|
|
10
|
+
runStrategy.id = raw.id;
|
|
11
|
+
runStrategy.name = raw.name;
|
|
12
|
+
runStrategy.description = raw.description;
|
|
13
|
+
runStrategy.languageId = raw.language;
|
|
14
|
+
runStrategy.state = State.fromString(raw.state);
|
|
15
|
+
return runStrategy;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class SourcesAccountRepository {
|
|
2
|
+
key;
|
|
3
|
+
name;
|
|
4
|
+
url;
|
|
5
|
+
description;
|
|
6
|
+
static parse(rawSourcesAccountRepository) {
|
|
7
|
+
const sourcesAccountRepository = new SourcesAccountRepository();
|
|
8
|
+
sourcesAccountRepository.key = rawSourcesAccountRepository.key;
|
|
9
|
+
sourcesAccountRepository.name = rawSourcesAccountRepository.name;
|
|
10
|
+
sourcesAccountRepository.url = rawSourcesAccountRepository.url;
|
|
11
|
+
sourcesAccountRepository.description = rawSourcesAccountRepository.description;
|
|
12
|
+
return sourcesAccountRepository;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare abstract class EntityId {
|
|
2
|
+
protected readonly id: string;
|
|
3
|
+
protected readonly abstract TYPE: string;
|
|
4
|
+
constructor(id: string);
|
|
5
|
+
getIdType(): string;
|
|
6
|
+
toString(): string;
|
|
7
|
+
jsonSerialize(): any;
|
|
8
|
+
isEqual<T extends this>(entityId: T): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export class EntityId {
|
|
2
|
+
id;
|
|
3
|
+
constructor(id) {
|
|
4
|
+
this.id = id;
|
|
5
|
+
if (id === null || id === undefined || (id + '').length < 1) {
|
|
6
|
+
throw new Error('Invalid entity id (' + this.constructor.name + ')');
|
|
7
|
+
}
|
|
8
|
+
if ((id + '').length !== 27) {
|
|
9
|
+
// console.error('Id `' + id + '` does not seem a valid KSUID (type `' + this.getIdType() + '`)');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
getIdType() {
|
|
13
|
+
return this.TYPE;
|
|
14
|
+
}
|
|
15
|
+
toString() {
|
|
16
|
+
return this.id;
|
|
17
|
+
}
|
|
18
|
+
jsonSerialize() {
|
|
19
|
+
return this.toString();
|
|
20
|
+
}
|
|
21
|
+
isEqual(entityId) {
|
|
22
|
+
if (this.getIdType() !== entityId.getIdType()) {
|
|
23
|
+
throw new Error('Types are not the same');
|
|
24
|
+
}
|
|
25
|
+
return this.getIdType() !== '' && entityId.getIdType() !== '' && this.getIdType() === entityId.getIdType() && this.toString() === entityId.toString();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum EntityType {
|
|
2
|
+
Organisation = "organisation",
|
|
3
|
+
Workspace = "workspace",
|
|
4
|
+
Project = "project",
|
|
5
|
+
ProjectEnvironment = "project-environment",
|
|
6
|
+
Flow = "flow",
|
|
7
|
+
FlowRun = "flow-run",
|
|
8
|
+
User = "user",
|
|
9
|
+
UserAuthProvider = "user-auth-provider",
|
|
10
|
+
WorkspaceMember = "workspace-member",
|
|
11
|
+
Adapter = "adapter",
|
|
12
|
+
AdapterConnection = "adapter-connection",
|
|
13
|
+
Trigger = "trigger",
|
|
14
|
+
Channel = "channel",
|
|
15
|
+
ChannelSubscriber = "channel-subscriber",
|
|
16
|
+
CodeSourceAccount = "code-source-account",
|
|
17
|
+
CodeSource = "code-source",
|
|
18
|
+
CodeSourceDeploy = "code-source-deploy",
|
|
19
|
+
StorageBucket = "storage-bucket",
|
|
20
|
+
LogStream = "log-stream",
|
|
21
|
+
RunnerPool = "runner-pool"
|
|
22
|
+
}
|
|
23
|
+
export declare namespace EntityType {
|
|
24
|
+
const fromString: (input: string) => EntityType;
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Utils } from '../Utils.js';
|
|
2
|
+
export var EntityType;
|
|
3
|
+
(function (EntityType) {
|
|
4
|
+
EntityType["Organisation"] = "organisation";
|
|
5
|
+
EntityType["Workspace"] = "workspace";
|
|
6
|
+
EntityType["Project"] = "project";
|
|
7
|
+
EntityType["ProjectEnvironment"] = "project-environment";
|
|
8
|
+
EntityType["Flow"] = "flow";
|
|
9
|
+
EntityType["FlowRun"] = "flow-run";
|
|
10
|
+
EntityType["User"] = "user";
|
|
11
|
+
EntityType["UserAuthProvider"] = "user-auth-provider";
|
|
12
|
+
EntityType["WorkspaceMember"] = "workspace-member";
|
|
13
|
+
EntityType["Adapter"] = "adapter";
|
|
14
|
+
EntityType["AdapterConnection"] = "adapter-connection";
|
|
15
|
+
EntityType["Trigger"] = "trigger";
|
|
16
|
+
EntityType["Channel"] = "channel";
|
|
17
|
+
EntityType["ChannelSubscriber"] = "channel-subscriber";
|
|
18
|
+
EntityType["CodeSourceAccount"] = "code-source-account";
|
|
19
|
+
EntityType["CodeSource"] = "code-source";
|
|
20
|
+
EntityType["CodeSourceDeploy"] = "code-source-deploy";
|
|
21
|
+
EntityType["StorageBucket"] = "storage-bucket";
|
|
22
|
+
EntityType["LogStream"] = "log-stream";
|
|
23
|
+
EntityType["RunnerPool"] = "runner-pool";
|
|
24
|
+
})(EntityType || (EntityType = {}));
|
|
25
|
+
(function (EntityType) {
|
|
26
|
+
EntityType.fromString = (input) => {
|
|
27
|
+
const result = Utils.parseEnum(input, EntityType);
|
|
28
|
+
if (result === null) {
|
|
29
|
+
throw new Error('Unable to parse EntityType from string: Unknown EntityType "' + input + '"');
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
})(EntityType || (EntityType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientError } from '../../Http/ClientError.js';
|
|
2
|
+
/**
|
|
3
|
+
* Domain-level error produced at the API/Endpoint boundary. Extends ClientError so a single
|
|
4
|
+
* `instanceof ClientError` catches both transport failures (ClientError) and API errors
|
|
5
|
+
* (ApiError), while adding the server's structured error fields (type/code/param).
|
|
6
|
+
*
|
|
7
|
+
* httpStatus, message and response are inherited from ClientError.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ApiError extends ClientError {
|
|
10
|
+
type: string;
|
|
11
|
+
code: string;
|
|
12
|
+
param?: string | undefined;
|
|
13
|
+
constructor(message: string, httpErrorCode?: number | null);
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClientError } from '../../Http/ClientError.js';
|
|
2
|
+
/**
|
|
3
|
+
* Domain-level error produced at the API/Endpoint boundary. Extends ClientError so a single
|
|
4
|
+
* `instanceof ClientError` catches both transport failures (ClientError) and API errors
|
|
5
|
+
* (ApiError), while adding the server's structured error fields (type/code/param).
|
|
6
|
+
*
|
|
7
|
+
* httpStatus, message and response are inherited from ClientError.
|
|
8
|
+
*/
|
|
9
|
+
export class ApiError extends ClientError {
|
|
10
|
+
type;
|
|
11
|
+
code;
|
|
12
|
+
param = undefined;
|
|
13
|
+
constructor(message, httpErrorCode = null) {
|
|
14
|
+
super(message, httpErrorCode);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum EventType {
|
|
2
|
+
/** @deprecated * */
|
|
3
|
+
TaskExecutionRequested = "TaskExecutionRequested",
|
|
4
|
+
/** @deprecated * */
|
|
5
|
+
TaskExecutionStarted = "TaskExecutionStarted",
|
|
6
|
+
/** @deprecated * */
|
|
7
|
+
TaskExecutionFailed = "TaskExecutionFailed",
|
|
8
|
+
/** @deprecated * */
|
|
9
|
+
TaskExecutionComplete = "TaskExecutionComplete",
|
|
10
|
+
/** @deprecated * */
|
|
11
|
+
TaskExecutionRetry = "TaskExecutionRetry",
|
|
12
|
+
FlowRunRequested = "FlowRunRequested",
|
|
13
|
+
FlowRunStarted = "FlowRunStarted",
|
|
14
|
+
FlowRunFailed = "FlowRunFailed",
|
|
15
|
+
FlowRunComplete = "FlowRunComplete",
|
|
16
|
+
FlowRunRetry = "FlowRunRetry"
|
|
17
|
+
}
|