@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,77 @@
|
|
|
1
|
+
import { QueryString } from '../Http/Data/QueryString.js';
|
|
2
|
+
import { WorkspaceMember } from '../Model/Workspace/WorkspaceMember.js';
|
|
3
|
+
import { WorkspaceMemberInvite2 } from '../Model/Workspace/WorkspaceMemberInvite2.js';
|
|
4
|
+
import { WorkspaceMemberRole } from '../Model/Workspace/WorkspaceMemberRole.js';
|
|
5
|
+
import { Endpoint } from './Endpoint.js';
|
|
6
|
+
export class WorkspaceMemberEndpoint extends Endpoint {
|
|
7
|
+
async getByWorkspace(workspaceId, pagination = null) {
|
|
8
|
+
const queryString = new QueryString('workspaces/' + workspaceId + '/members');
|
|
9
|
+
queryString.addPagination(pagination);
|
|
10
|
+
const result = await this.requestCollection(queryString, WorkspaceMember.parse);
|
|
11
|
+
return result;
|
|
12
|
+
}
|
|
13
|
+
async invite(workspaceId, invites) {
|
|
14
|
+
const cmd = '/workspaces/' + workspaceId + '/invites';
|
|
15
|
+
const rawInvites = [];
|
|
16
|
+
for (const invite of invites) {
|
|
17
|
+
rawInvites.push({ email: invite.email, role: invite.role.toString() });
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
const parser = (raw) => raw;
|
|
21
|
+
// The result is actually a collection with shape {email:string;invited:boolean}[]
|
|
22
|
+
const result = await this.requestObject(cmd, { invites: rawInvites }, parser, 'POST');
|
|
23
|
+
const re = result.getData();
|
|
24
|
+
if (re === null) {
|
|
25
|
+
console.log('invite member wrong data', { result, parsed: re });
|
|
26
|
+
throw new Error('Unable invite member: wrong response from API');
|
|
27
|
+
}
|
|
28
|
+
// if (Utils.isNullOrUndefined(result)) {
|
|
29
|
+
// return null;
|
|
30
|
+
// }
|
|
31
|
+
console.log('Invite', re);
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
catch (ex) {
|
|
35
|
+
if (this.httpClient.isDebugEnabled()) {
|
|
36
|
+
console.error('Failed to invite members to workspace "' + workspaceId + '": ', ex);
|
|
37
|
+
}
|
|
38
|
+
throw ex;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async getWorkspaceInviteByCode(inviteCode) {
|
|
42
|
+
const cmd = new QueryString('/workspaces/invites');
|
|
43
|
+
cmd.set('inviteCode', inviteCode);
|
|
44
|
+
const rawInvite = await this.requestObject(cmd, null, WorkspaceMemberInvite2.parse, 'GET', false);
|
|
45
|
+
if (rawInvite !== null) {
|
|
46
|
+
return rawInvite.getData();
|
|
47
|
+
}
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
async getRoles(workspaceId) {
|
|
51
|
+
const cmd = '/workspaces/' + workspaceId + '/member-roles';
|
|
52
|
+
const parser = (raw) => {
|
|
53
|
+
const role = new WorkspaceMemberRole();
|
|
54
|
+
role.id = raw.id;
|
|
55
|
+
role.name = raw.name;
|
|
56
|
+
return role;
|
|
57
|
+
};
|
|
58
|
+
return await this.requestCollection(cmd, parser);
|
|
59
|
+
}
|
|
60
|
+
async saveMember(member) {
|
|
61
|
+
try {
|
|
62
|
+
const url = '/workspaces/' + member.workspaceId + '/members/' + member.id;
|
|
63
|
+
const result = await this.requestObject(url, member, WorkspaceMember.parse, 'POST');
|
|
64
|
+
const updatedWorkspaceMember = result.getData();
|
|
65
|
+
if (updatedWorkspaceMember === null) {
|
|
66
|
+
throw new Error('WorkspaceMember not updated');
|
|
67
|
+
}
|
|
68
|
+
return updatedWorkspaceMember;
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
if (this.httpClient.isDebugEnabled()) {
|
|
72
|
+
console.error('Failed to save workspace members: ', error);
|
|
73
|
+
}
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
package/dist/Utils.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class Utils {
|
|
2
|
+
static isNullOrUndefined(variable: any): boolean;
|
|
3
|
+
static isTrue(input: string | number | boolean | null | undefined): boolean;
|
|
4
|
+
static isDate(value: any): boolean;
|
|
5
|
+
static parseRawDate(input: Date): Date;
|
|
6
|
+
static parseEnum<T>(input: string, Enum: any): T | null;
|
|
7
|
+
static parseInt(input: string | number | boolean): number;
|
|
8
|
+
static base64encode(input: string): string;
|
|
9
|
+
static base64decode(encodedString: string): string;
|
|
10
|
+
static isIterable(variable: any): boolean;
|
|
11
|
+
}
|
package/dist/Utils.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export class Utils {
|
|
2
|
+
static isNullOrUndefined(variable) {
|
|
3
|
+
return variable === null || variable === undefined;
|
|
4
|
+
}
|
|
5
|
+
static isTrue(input) {
|
|
6
|
+
return (input === true || input === 'true' || input === 1 || input === '1');
|
|
7
|
+
}
|
|
8
|
+
static isDate(value) {
|
|
9
|
+
return value !== null && value instanceof Date && !Number.isNaN(value.getTime());
|
|
10
|
+
}
|
|
11
|
+
static parseRawDate(input) {
|
|
12
|
+
if (input !== null && input !== undefined) {
|
|
13
|
+
return new Date(input);
|
|
14
|
+
}
|
|
15
|
+
throw new Error('Unable to parse date, null/undefined');
|
|
16
|
+
}
|
|
17
|
+
static parseEnum(input, Enum) {
|
|
18
|
+
if (this.isNullOrUndefined(input)) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
// eslint-disable-next-line guard-for-in
|
|
22
|
+
for (const property in Enum) {
|
|
23
|
+
// noinspection JSUnfilteredForInLoop
|
|
24
|
+
const enumMember = Enum[property];
|
|
25
|
+
if (typeof enumMember === 'string' || typeof enumMember === 'number') {
|
|
26
|
+
if (enumMember.toString().toUpperCase() === input.toString().toUpperCase()) {
|
|
27
|
+
// const key = enumMember as string as keyof typeof Enum;
|
|
28
|
+
const res = Enum[property];
|
|
29
|
+
if (res === undefined) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return res;
|
|
33
|
+
}
|
|
34
|
+
// eslint-disable-next-line no-dupe-else-if
|
|
35
|
+
}
|
|
36
|
+
else if (typeof enumMember === 'string') {
|
|
37
|
+
console.error('Unable to parse enum type: ' + typeof enumMember + ' for enum ', Enum);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
static parseInt(input) {
|
|
43
|
+
return parseInt(input.toString(), 10);
|
|
44
|
+
}
|
|
45
|
+
static base64encode(input) {
|
|
46
|
+
if (input === null || input === undefined || input === '') {
|
|
47
|
+
return '';
|
|
48
|
+
}
|
|
49
|
+
// Use btoa as we want this package to work both in Node and Browser
|
|
50
|
+
return btoa(input);
|
|
51
|
+
// return Buffer.from(input.toString()).toString('base64');
|
|
52
|
+
}
|
|
53
|
+
static base64decode(encodedString) {
|
|
54
|
+
if (encodedString === null || encodedString === undefined || encodedString === '') {
|
|
55
|
+
return '';
|
|
56
|
+
}
|
|
57
|
+
// Use atob as we want this package to work both in Node and Browser
|
|
58
|
+
return atob(encodedString);
|
|
59
|
+
// return Buffer.from(encodedString, 'base64').toString();
|
|
60
|
+
}
|
|
61
|
+
static isIterable(variable) {
|
|
62
|
+
if (Utils.isNullOrUndefined(variable) || typeof variable === 'string') {
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return Symbol.iterator in Object(variable);
|
|
66
|
+
// return typeof obj[Symbol.iterator] === 'function';
|
|
67
|
+
}
|
|
68
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Http
|
|
3
|
+
*/
|
|
4
|
+
export { Headers } from './Http/Data/Headers.js';
|
|
5
|
+
export { Parameters } from './Http/Data/Parameters.js';
|
|
6
|
+
export { QueryString } from './Http/Data/QueryString.js';
|
|
7
|
+
export { HttpClient } from './Http/HttpClient.js';
|
|
8
|
+
export { HttpClientRequest } from './Http/HttpClientRequest.js';
|
|
9
|
+
export { HttpClientResponse } from './Http/HttpClientResponse.js';
|
|
10
|
+
export { ITransport } from './Http/Transport/ITransport.js';
|
|
11
|
+
export { DirectTransport } from './Http/Transport/DirectTransport.js';
|
|
12
|
+
export type { DirectTransportRoute } from './Http/Transport/DirectTransport.js';
|
|
13
|
+
export { OAuthClient } from './Http/Transport/OAuthClient.js';
|
|
14
|
+
export { OAuthClientOptions } from './Http/OAuthClientOptions.js';
|
|
15
|
+
export { OAuthClientToken } from './Http/OAuthClientToken.js';
|
|
16
|
+
export { ClientError } from './Http/ClientError.js';
|
|
17
|
+
export { ApiError } from './Model/Error/ApiError.js';
|
|
18
|
+
export type { ParseErrorHandler } from './Http/Transport/ITransport.js';
|
|
19
|
+
export { HttpStatus } from './Http/HttpStatus.js';
|
|
20
|
+
export { ContentTypeHelper } from './Http/ContentTypeHelper.js';
|
|
21
|
+
/**
|
|
22
|
+
* Helpers
|
|
23
|
+
*/
|
|
24
|
+
export { LoadAllHelper } from './Helper/LoadAllHelper.js';
|
|
25
|
+
/**
|
|
26
|
+
* Models
|
|
27
|
+
*/
|
|
28
|
+
export { UserAccessToken } from './Model/AccessToken/UserAccessToken.js';
|
|
29
|
+
export { UserAccessTokenStatus } from './Model/AccessToken/UserAccessTokenStatus.js';
|
|
30
|
+
export { Adapter } from './Model/Adapter/Adapter.js';
|
|
31
|
+
export { AdapterConfiguration } from './Model/Adapter/AdapterConfiguration.js';
|
|
32
|
+
export { AdapterConnection } from './Model/Adapter/AdapterConnection.js';
|
|
33
|
+
export { AdapterCategory } from './Model/Adapter/AdapterCategory.js';
|
|
34
|
+
export { AdapterConnectionStatus } from './Model/Adapter/AdapterConnectionStatus.js';
|
|
35
|
+
export { AdapterConnectionConfigurationValue } from './Model/Adapter/AdapterConnectionConfigurationValue.js';
|
|
36
|
+
export { AdapterConnectionEvent } from './Model/Adapter/AdapterConnectionEvent.js';
|
|
37
|
+
export type { ConnectionTestState, TestConnectionCheck, TestConnectionResult, } from './Model/Adapter/TestConnectionResult.js';
|
|
38
|
+
export { BlockedIp, FlaggedIp, IpRule } from './Service/FirewallEndpoint.js';
|
|
39
|
+
export { Collection } from './Model/Collections/Collection.js';
|
|
40
|
+
export { CollectionRecord } from './Model/Collections/CollectionRecord.js';
|
|
41
|
+
export { Configuration } from './Model/Configuration/Configuration.js';
|
|
42
|
+
export { EventType } from './Model/Event/EventType.js';
|
|
43
|
+
export { HealthAlert } from './Model/HealthAlert/HealthAlert.js';
|
|
44
|
+
export { HealthAlertSeverity } from './Model/HealthAlert/HealthAlertSeverity.js';
|
|
45
|
+
export { HealthAlertStatus } from './Model/HealthAlert/HealthAlertStatus.js';
|
|
46
|
+
export { HealthTestType } from './Model/HealthAlert/HealthTestType.js';
|
|
47
|
+
export { Log } from './Model/Log/Log.js';
|
|
48
|
+
export { LogLevel } from './Model/Log/LogLevel.js';
|
|
49
|
+
export { LogQuery } from './Model/Log/LogQuery.js';
|
|
50
|
+
export { LogStatus } from './Model/Log/LogStatus.js';
|
|
51
|
+
export { LogStream } from './Model/Log/LogStream.js';
|
|
52
|
+
export { LogStreamId } from './Model/Log/LogStreamId.js';
|
|
53
|
+
export { LogStreamInformation } from './Model/Log/LogStreamInformation.js';
|
|
54
|
+
export { FilterNode, AndFilterNode, OrFilterNode, NotFilterNode, CompareFilterNode, FilterValue, FilterPrimitive } from './Model/Filter/FilterNode.js';
|
|
55
|
+
export { FilterOperator } from './Model/Filter/FilterOperator.js';
|
|
56
|
+
export { CursorPagination } from './Model/Pagination/CursorPagination.js';
|
|
57
|
+
/** Messaging * */
|
|
58
|
+
export { Channel } from './Model/Messaging/Channel/Channel.js';
|
|
59
|
+
export { ChannelData } from './Model/Messaging/Channel/ChannelData.js';
|
|
60
|
+
export { ChannelType } from './Model/Messaging/Channel/ChannelType.js';
|
|
61
|
+
export { EmailChannelData } from './Model/Messaging/Channel/EmailChannelData.js';
|
|
62
|
+
export { PushChannelData } from './Model/Messaging/Channel/PushChannelData.js';
|
|
63
|
+
export { SlackChannelData } from './Model/Messaging/Channel/SlackChannelData.js';
|
|
64
|
+
export { SmsChannelData } from './Model/Messaging/Channel/SmsChannelData.js';
|
|
65
|
+
export { WebhookChannelData } from './Model/Messaging/Channel/WebhookChannelData.js';
|
|
66
|
+
export { Subscriber } from './Model/Messaging/Subscriber.js';
|
|
67
|
+
export { ChannelHistory } from './Model/Messaging/ChannelHistory.js';
|
|
68
|
+
/** Project * */
|
|
69
|
+
export { PlatformLanguage } from './Model/Project/PlatformLanguage.js';
|
|
70
|
+
export { Project } from './Model/Project/Project.js';
|
|
71
|
+
export { CodeDeploy } from './Model/Project/CodeDeploy.js';
|
|
72
|
+
export { ProjectDeployCommit } from './Model/Project/ProjectDeployCommit.js';
|
|
73
|
+
export { CodeDeployStatus } from './Model/Project/CodeDeployStatus.js';
|
|
74
|
+
export { ProjectEnvironment } from './Model/Project/ProjectEnvironment.js';
|
|
75
|
+
export { ProjectEnvironmentType } from './Model/Project/ProjectEnvironmentType.js';
|
|
76
|
+
/** Result * */
|
|
77
|
+
export { CollectionResult } from './Model/Result/CollectionResult.js';
|
|
78
|
+
export { ObjectResult } from './Model/Result/ObjectResult.js';
|
|
79
|
+
export { ResultError } from './Model/Result/ResultError.js';
|
|
80
|
+
export { StorageInformation } from './Model/Storage/StorageInformation.js';
|
|
81
|
+
export { StorageType } from './Model/Storage/StorageType.js';
|
|
82
|
+
export { StorageItem } from './Model/Storage/StorageItem.js';
|
|
83
|
+
export { StorageItemInformation } from './Model/Storage/StorageItemInformation.js';
|
|
84
|
+
/** Queue * */
|
|
85
|
+
export { SearchResult } from './Model/Search/SearchResult.js';
|
|
86
|
+
/** Trigger * */
|
|
87
|
+
export { Trigger } from './Model/Trigger/Trigger.js';
|
|
88
|
+
/** Worker* */
|
|
89
|
+
export { Platform } from './Model/Worker/Platform.js';
|
|
90
|
+
export { PlatformImage } from './Model/Worker/PlatformImage.js';
|
|
91
|
+
export { InfrastructureConfiguration } from './Model/Worker/InfrastructureConfiguration.js';
|
|
92
|
+
/** Deployment * */
|
|
93
|
+
export { CodeSource } from './Model/Deployment/CodeSource.js';
|
|
94
|
+
export { CodeSourceAccount } from './Model/Deployment/CodeSourceAccount.js';
|
|
95
|
+
export { SourcesAccountRepository } from './Model/Deployment/SourcesAccountRepository.js';
|
|
96
|
+
export { SourcesAccountRepositoryBranch } from './Model/Deployment/SourcesAccountRepositoryBranch.js';
|
|
97
|
+
export { CodeSourceBuildStrategy } from './Model/Deployment/CodeSourceBuildStrategy.js';
|
|
98
|
+
export { CodeSourceRunStrategy } from './Model/Deployment/CodeSourceRunStrategy.js';
|
|
99
|
+
/** Workspace * */
|
|
100
|
+
export { Workspace } from './Model/Workspace/Workspace.js';
|
|
101
|
+
export { WorkspaceMember } from './Model/Workspace/WorkspaceMember.js';
|
|
102
|
+
export { WorkspaceMemberInvite } from './Model/Workspace/WorkspaceMemberInvite.js';
|
|
103
|
+
export { WorkspaceMemberInvite2 } from './Model/Workspace/WorkspaceMemberInvite2.js';
|
|
104
|
+
export { WorkspaceMemberInviteState } from './Model/Workspace/WorkspaceMemberInviteState.js';
|
|
105
|
+
export { WorkspaceMemberRole } from './Model/Workspace/WorkspaceMemberRole.js';
|
|
106
|
+
/** * */
|
|
107
|
+
export { Config } from './Model/Config.js';
|
|
108
|
+
export { DataValue, DataValueValue } from './Model/DataValue.js';
|
|
109
|
+
export { EntityId } from './Model/EntityId.js';
|
|
110
|
+
export { DataValueCollection } from './Model/DataValueCollection.js';
|
|
111
|
+
export { EntityType } from './Model/EntityType.js';
|
|
112
|
+
export { InboxMessage } from './Model/Inbox/InboxMessage.js';
|
|
113
|
+
/** Infrastructure Status **/
|
|
114
|
+
export { QueueStatus } from './Model/InfrastructureStatus/QueueStatus.js';
|
|
115
|
+
export { RunnersStatus } from './Model/InfrastructureStatus/RunnersStatus.js';
|
|
116
|
+
export { StorageStatus } from './Model/InfrastructureStatus/StorageStatus.js';
|
|
117
|
+
export { State } from './Model/State.js';
|
|
118
|
+
export { StateAware } from './Model/StateAware.js';
|
|
119
|
+
/** Flow * */
|
|
120
|
+
export { Flow } from './Model/Flow/Flow.js';
|
|
121
|
+
export { FlowRun } from './Model/Flow/FlowRun.js';
|
|
122
|
+
export { FlowRunHistory } from './Model/Flow/FlowRunHistory.js';
|
|
123
|
+
export { FlowRunHistoryStatus } from './Model/Flow/FlowRunHistoryStatus.js';
|
|
124
|
+
export { FlowRunLifecycle } from './Model/Flow/FlowRunLifecycle.js';
|
|
125
|
+
export { FlowRunResponse } from './Model/Flow/FlowRunResponse.js';
|
|
126
|
+
export { FlowRunStatus } from './Model/Flow/FlowRunStatus.js';
|
|
127
|
+
export { FlowRunSummary } from './Model/Flow/FlowRunSummary.js';
|
|
128
|
+
export { FlowRunStats } from './Model/Flow/FlowRunStats.js';
|
|
129
|
+
export { FlowSummary } from './Model/Flow/FlowSummary.js';
|
|
130
|
+
export { FlowTemplate } from './Model/Flow/FlowTemplate.js';
|
|
131
|
+
export { User } from './Model/User/User.js';
|
|
132
|
+
export { UserAuthProvider } from './Model/User/UserAuthProvider.js';
|
|
133
|
+
export { UserAction } from './Model/User/UserAction.js';
|
|
134
|
+
export type { UserActionFilter } from './Model/User/UserActionFilter.js';
|
|
135
|
+
export { UserSummary } from './Model/User/UserSummary.js';
|
|
136
|
+
export type { UserSummaryType } from './Model/User/UserSummary.js';
|
|
137
|
+
export { RunnerImage } from './Model/Runner/RunnerImage.js';
|
|
138
|
+
export { CommandExecutionHistory } from './Model/Command/CommandExecutionHistory.js';
|
|
139
|
+
export { CommandExecutionStatus } from './Model/Command/CommandExecutionStatus.js';
|
|
140
|
+
export { CommandExecutionFilter } from './Model/Command/CommandExecutionFilter.js';
|
|
141
|
+
export { Endpoint } from './Service/Endpoint.js';
|
|
142
|
+
export { AdapterEndpoint } from './Service/AdapterEndpoint.js';
|
|
143
|
+
export { AdapterConnectionEndpoint } from './Service/AdapterConnectionEndpoint.js';
|
|
144
|
+
export { ChannelEndpoint } from './Service/ChannelEndpoint.js';
|
|
145
|
+
export { ProjectEndpoint } from './Service/ProjectEndpoint.js';
|
|
146
|
+
export { ConfigEndpoint } from './Service/ConfigEndpoint.js';
|
|
147
|
+
export { PlatformLanguageEndpoint } from './Service/PlatformLanguageEndpoint.js';
|
|
148
|
+
export { LogEndpoint } from './Service/LogEndpoint.js';
|
|
149
|
+
export { WorkspaceMemberEndpoint } from './Service/WorkspaceMemberEndpoint.js';
|
|
150
|
+
export { InboxEndpoint } from './Service/InboxEndpoint.js';
|
|
151
|
+
export { PlatformEndpoint } from './Service/PlatformEndpoint.js';
|
|
152
|
+
export { CodeDeployEndpoint } from './Service/CodeDeployEndpoint.js';
|
|
153
|
+
export { ProjectEnvironmentEndpoint } from './Service/ProjectEnvironmentEndpoint.js';
|
|
154
|
+
export { SearchEndpoint } from './Service/SearchEndpoint.js';
|
|
155
|
+
export { SourcesAccountEndpoint } from './Service/SourcesAccountEndpoint.js';
|
|
156
|
+
export { StorageEndpoint } from './Service/StorageEndpoint.js';
|
|
157
|
+
export { SubscriberEndpoint } from './Service/SubscriberEndpoint.js';
|
|
158
|
+
export { FlowEndpoint } from './Service/FlowEndpoint.js';
|
|
159
|
+
export { FlowRunEndpoint } from './Service/FlowRunEndpoint.js';
|
|
160
|
+
export { FlowRunRequestEndpoint } from './Service/FlowRunRequestEndpoint.js';
|
|
161
|
+
export { FlowRunStatsEndpoint } from './Service/FlowRunStatsEndpoint.js';
|
|
162
|
+
export { WorkspaceEndpoint } from './Service/WorkspaceEndpoint.js';
|
|
163
|
+
export { TriggerEndpoint } from './Service/TriggerEndpoint.js';
|
|
164
|
+
export { UserEndpoint } from './Service/UserEndpoint.js';
|
|
165
|
+
export { RunnerEndpoint } from './Service/RunnerEndpoint.js';
|
|
166
|
+
export { HealthAlertEndpoint } from './Service/HealthAlertEndpoint.js';
|
|
167
|
+
export { CollectionsEndpoint } from './Service/CollectionsEndpoint.js';
|
|
168
|
+
export { Client } from './Client.js';
|
|
169
|
+
export { Utils } from './Utils.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export { QueryString } from './Http/Data/QueryString.js';
|
|
2
|
+
export { HttpClient } from './Http/HttpClient.js';
|
|
3
|
+
export { HttpClientRequest } from './Http/HttpClientRequest.js';
|
|
4
|
+
export { HttpClientResponse } from './Http/HttpClientResponse.js';
|
|
5
|
+
export { DirectTransport } from './Http/Transport/DirectTransport.js';
|
|
6
|
+
export { OAuthClient } from './Http/Transport/OAuthClient.js';
|
|
7
|
+
export { OAuthClientOptions } from './Http/OAuthClientOptions.js';
|
|
8
|
+
export { OAuthClientToken } from './Http/OAuthClientToken.js';
|
|
9
|
+
export { ClientError } from './Http/ClientError.js';
|
|
10
|
+
export { ApiError } from './Model/Error/ApiError.js';
|
|
11
|
+
export { HttpStatus } from './Http/HttpStatus.js';
|
|
12
|
+
export { ContentTypeHelper } from './Http/ContentTypeHelper.js';
|
|
13
|
+
/**
|
|
14
|
+
* Helpers
|
|
15
|
+
*/
|
|
16
|
+
export { LoadAllHelper } from './Helper/LoadAllHelper.js';
|
|
17
|
+
/**
|
|
18
|
+
* Models
|
|
19
|
+
*/
|
|
20
|
+
export { UserAccessToken } from './Model/AccessToken/UserAccessToken.js';
|
|
21
|
+
export { UserAccessTokenStatus } from './Model/AccessToken/UserAccessTokenStatus.js';
|
|
22
|
+
export { Adapter } from './Model/Adapter/Adapter.js';
|
|
23
|
+
export { AdapterConfiguration } from './Model/Adapter/AdapterConfiguration.js';
|
|
24
|
+
export { AdapterConnection } from './Model/Adapter/AdapterConnection.js';
|
|
25
|
+
export { AdapterCategory } from './Model/Adapter/AdapterCategory.js';
|
|
26
|
+
export { AdapterConnectionStatus } from './Model/Adapter/AdapterConnectionStatus.js';
|
|
27
|
+
export { AdapterConnectionConfigurationValue } from './Model/Adapter/AdapterConnectionConfigurationValue.js';
|
|
28
|
+
export { AdapterConnectionEvent } from './Model/Adapter/AdapterConnectionEvent.js';
|
|
29
|
+
export { Collection } from './Model/Collections/Collection.js';
|
|
30
|
+
export { CollectionRecord } from './Model/Collections/CollectionRecord.js';
|
|
31
|
+
export { Configuration } from './Model/Configuration/Configuration.js';
|
|
32
|
+
export { EventType } from './Model/Event/EventType.js';
|
|
33
|
+
export { HealthAlert } from './Model/HealthAlert/HealthAlert.js';
|
|
34
|
+
export { HealthAlertSeverity } from './Model/HealthAlert/HealthAlertSeverity.js';
|
|
35
|
+
export { HealthAlertStatus } from './Model/HealthAlert/HealthAlertStatus.js';
|
|
36
|
+
export { HealthTestType } from './Model/HealthAlert/HealthTestType.js';
|
|
37
|
+
export { Log } from './Model/Log/Log.js';
|
|
38
|
+
export { LogLevel } from './Model/Log/LogLevel.js';
|
|
39
|
+
export { LogQuery } from './Model/Log/LogQuery.js';
|
|
40
|
+
export { LogStatus } from './Model/Log/LogStatus.js';
|
|
41
|
+
export { LogStream } from './Model/Log/LogStream.js';
|
|
42
|
+
export { LogStreamId } from './Model/Log/LogStreamId.js';
|
|
43
|
+
export { LogStreamInformation } from './Model/Log/LogStreamInformation.js';
|
|
44
|
+
export { CursorPagination } from './Model/Pagination/CursorPagination.js';
|
|
45
|
+
/** Messaging * */
|
|
46
|
+
export { Channel } from './Model/Messaging/Channel/Channel.js';
|
|
47
|
+
export { ChannelData } from './Model/Messaging/Channel/ChannelData.js';
|
|
48
|
+
export { ChannelType } from './Model/Messaging/Channel/ChannelType.js';
|
|
49
|
+
export { EmailChannelData } from './Model/Messaging/Channel/EmailChannelData.js';
|
|
50
|
+
export { PushChannelData } from './Model/Messaging/Channel/PushChannelData.js';
|
|
51
|
+
export { SlackChannelData } from './Model/Messaging/Channel/SlackChannelData.js';
|
|
52
|
+
export { SmsChannelData } from './Model/Messaging/Channel/SmsChannelData.js';
|
|
53
|
+
export { WebhookChannelData } from './Model/Messaging/Channel/WebhookChannelData.js';
|
|
54
|
+
export { Subscriber } from './Model/Messaging/Subscriber.js';
|
|
55
|
+
export { ChannelHistory } from './Model/Messaging/ChannelHistory.js';
|
|
56
|
+
/** Project * */
|
|
57
|
+
export { PlatformLanguage } from './Model/Project/PlatformLanguage.js';
|
|
58
|
+
export { Project } from './Model/Project/Project.js';
|
|
59
|
+
export { CodeDeploy } from './Model/Project/CodeDeploy.js';
|
|
60
|
+
export { ProjectDeployCommit } from './Model/Project/ProjectDeployCommit.js';
|
|
61
|
+
export { CodeDeployStatus } from './Model/Project/CodeDeployStatus.js';
|
|
62
|
+
export { ProjectEnvironment } from './Model/Project/ProjectEnvironment.js';
|
|
63
|
+
export { ProjectEnvironmentType } from './Model/Project/ProjectEnvironmentType.js';
|
|
64
|
+
/** Result * */
|
|
65
|
+
export { CollectionResult } from './Model/Result/CollectionResult.js';
|
|
66
|
+
export { ObjectResult } from './Model/Result/ObjectResult.js';
|
|
67
|
+
export { ResultError } from './Model/Result/ResultError.js';
|
|
68
|
+
export { StorageInformation } from './Model/Storage/StorageInformation.js';
|
|
69
|
+
export { StorageType } from './Model/Storage/StorageType.js';
|
|
70
|
+
export { StorageItem } from './Model/Storage/StorageItem.js';
|
|
71
|
+
export { StorageItemInformation } from './Model/Storage/StorageItemInformation.js';
|
|
72
|
+
/** Queue * */
|
|
73
|
+
export { SearchResult } from './Model/Search/SearchResult.js';
|
|
74
|
+
/** Trigger * */
|
|
75
|
+
export { Trigger } from './Model/Trigger/Trigger.js';
|
|
76
|
+
/** Worker* */
|
|
77
|
+
export { Platform } from './Model/Worker/Platform.js';
|
|
78
|
+
export { PlatformImage } from './Model/Worker/PlatformImage.js';
|
|
79
|
+
export { InfrastructureConfiguration } from './Model/Worker/InfrastructureConfiguration.js';
|
|
80
|
+
/** Deployment * */
|
|
81
|
+
export { CodeSource } from './Model/Deployment/CodeSource.js';
|
|
82
|
+
export { CodeSourceAccount } from './Model/Deployment/CodeSourceAccount.js';
|
|
83
|
+
export { SourcesAccountRepository } from './Model/Deployment/SourcesAccountRepository.js';
|
|
84
|
+
export { SourcesAccountRepositoryBranch } from './Model/Deployment/SourcesAccountRepositoryBranch.js';
|
|
85
|
+
export { CodeSourceBuildStrategy } from './Model/Deployment/CodeSourceBuildStrategy.js';
|
|
86
|
+
export { CodeSourceRunStrategy } from './Model/Deployment/CodeSourceRunStrategy.js';
|
|
87
|
+
/** Workspace * */
|
|
88
|
+
export { Workspace } from './Model/Workspace/Workspace.js';
|
|
89
|
+
export { WorkspaceMember } from './Model/Workspace/WorkspaceMember.js';
|
|
90
|
+
export { WorkspaceMemberInvite } from './Model/Workspace/WorkspaceMemberInvite.js';
|
|
91
|
+
export { WorkspaceMemberInvite2 } from './Model/Workspace/WorkspaceMemberInvite2.js';
|
|
92
|
+
export { WorkspaceMemberInviteState } from './Model/Workspace/WorkspaceMemberInviteState.js';
|
|
93
|
+
export { WorkspaceMemberRole } from './Model/Workspace/WorkspaceMemberRole.js';
|
|
94
|
+
/** * */
|
|
95
|
+
export { Config } from './Model/Config.js';
|
|
96
|
+
export { DataValue } from './Model/DataValue.js';
|
|
97
|
+
export { EntityId } from './Model/EntityId.js';
|
|
98
|
+
export { DataValueCollection } from './Model/DataValueCollection.js';
|
|
99
|
+
export { EntityType } from './Model/EntityType.js';
|
|
100
|
+
export { InboxMessage } from './Model/Inbox/InboxMessage.js';
|
|
101
|
+
/** Infrastructure Status **/
|
|
102
|
+
export { QueueStatus } from './Model/InfrastructureStatus/QueueStatus.js';
|
|
103
|
+
export { RunnersStatus } from './Model/InfrastructureStatus/RunnersStatus.js';
|
|
104
|
+
export { StorageStatus } from './Model/InfrastructureStatus/StorageStatus.js';
|
|
105
|
+
export { State } from './Model/State.js';
|
|
106
|
+
/** Flow * */
|
|
107
|
+
export { Flow } from './Model/Flow/Flow.js';
|
|
108
|
+
export { FlowRun } from './Model/Flow/FlowRun.js';
|
|
109
|
+
export { FlowRunHistory } from './Model/Flow/FlowRunHistory.js';
|
|
110
|
+
export { FlowRunHistoryStatus } from './Model/Flow/FlowRunHistoryStatus.js';
|
|
111
|
+
export { FlowRunLifecycle } from './Model/Flow/FlowRunLifecycle.js';
|
|
112
|
+
export { FlowRunResponse } from './Model/Flow/FlowRunResponse.js';
|
|
113
|
+
export { FlowRunStatus } from './Model/Flow/FlowRunStatus.js';
|
|
114
|
+
export { FlowRunSummary } from './Model/Flow/FlowRunSummary.js';
|
|
115
|
+
export { FlowRunStats } from './Model/Flow/FlowRunStats.js';
|
|
116
|
+
export { FlowSummary } from './Model/Flow/FlowSummary.js';
|
|
117
|
+
export { FlowTemplate } from './Model/Flow/FlowTemplate.js';
|
|
118
|
+
export { User } from './Model/User/User.js';
|
|
119
|
+
export { UserAuthProvider } from './Model/User/UserAuthProvider.js';
|
|
120
|
+
export { UserAction } from './Model/User/UserAction.js';
|
|
121
|
+
export { UserSummary } from './Model/User/UserSummary.js';
|
|
122
|
+
export { RunnerImage } from './Model/Runner/RunnerImage.js';
|
|
123
|
+
export { CommandExecutionHistory } from './Model/Command/CommandExecutionHistory.js';
|
|
124
|
+
export { CommandExecutionStatus } from './Model/Command/CommandExecutionStatus.js';
|
|
125
|
+
export { Endpoint } from './Service/Endpoint.js';
|
|
126
|
+
/* Endpoints */
|
|
127
|
+
export { AdapterEndpoint } from './Service/AdapterEndpoint.js';
|
|
128
|
+
export { AdapterConnectionEndpoint } from './Service/AdapterConnectionEndpoint.js';
|
|
129
|
+
export { ChannelEndpoint } from './Service/ChannelEndpoint.js';
|
|
130
|
+
export { ProjectEndpoint } from './Service/ProjectEndpoint.js';
|
|
131
|
+
export { ConfigEndpoint } from './Service/ConfigEndpoint.js';
|
|
132
|
+
export { PlatformLanguageEndpoint } from './Service/PlatformLanguageEndpoint.js';
|
|
133
|
+
export { LogEndpoint } from './Service/LogEndpoint.js';
|
|
134
|
+
export { WorkspaceMemberEndpoint } from './Service/WorkspaceMemberEndpoint.js';
|
|
135
|
+
export { InboxEndpoint } from './Service/InboxEndpoint.js';
|
|
136
|
+
export { PlatformEndpoint } from './Service/PlatformEndpoint.js';
|
|
137
|
+
export { CodeDeployEndpoint } from './Service/CodeDeployEndpoint.js';
|
|
138
|
+
export { ProjectEnvironmentEndpoint } from './Service/ProjectEnvironmentEndpoint.js';
|
|
139
|
+
export { SearchEndpoint } from './Service/SearchEndpoint.js';
|
|
140
|
+
export { SourcesAccountEndpoint } from './Service/SourcesAccountEndpoint.js';
|
|
141
|
+
export { StorageEndpoint } from './Service/StorageEndpoint.js';
|
|
142
|
+
export { SubscriberEndpoint } from './Service/SubscriberEndpoint.js';
|
|
143
|
+
export { FlowEndpoint } from './Service/FlowEndpoint.js';
|
|
144
|
+
export { FlowRunEndpoint } from './Service/FlowRunEndpoint.js';
|
|
145
|
+
export { FlowRunRequestEndpoint } from './Service/FlowRunRequestEndpoint.js';
|
|
146
|
+
export { FlowRunStatsEndpoint } from './Service/FlowRunStatsEndpoint.js';
|
|
147
|
+
export { WorkspaceEndpoint } from './Service/WorkspaceEndpoint.js';
|
|
148
|
+
export { TriggerEndpoint } from './Service/TriggerEndpoint.js';
|
|
149
|
+
export { UserEndpoint } from './Service/UserEndpoint.js';
|
|
150
|
+
export { RunnerEndpoint } from './Service/RunnerEndpoint.js';
|
|
151
|
+
export { HealthAlertEndpoint } from './Service/HealthAlertEndpoint.js';
|
|
152
|
+
export { CollectionsEndpoint } from './Service/CollectionsEndpoint.js';
|
|
153
|
+
export { Client } from './Client.js';
|
|
154
|
+
export { Utils } from './Utils.js';
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/main.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION = "1.77.0";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = "1.77.0";
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@attlaz/client",
|
|
3
|
+
"version": "1.77.1",
|
|
4
|
+
"description": "Javascript Client to access Attlaz API",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": {
|
|
10
|
+
"default": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./*": {
|
|
17
|
+
"default": "./dist/*",
|
|
18
|
+
"types": "./dist/*"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://bitbucket.org/attlaz/javascript-client.git"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://attlaz.com",
|
|
26
|
+
"keywords": [
|
|
27
|
+
"attlaz",
|
|
28
|
+
"client",
|
|
29
|
+
"http",
|
|
30
|
+
"api"
|
|
31
|
+
],
|
|
32
|
+
"files": [
|
|
33
|
+
"dist/*"
|
|
34
|
+
],
|
|
35
|
+
"sideEffects": false,
|
|
36
|
+
"author": "Stijn Duynslaeger <stijn@attlaz.com> (stijn@attlaz.com)",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"scripts": {
|
|
39
|
+
"prebuild": "npm run setversion",
|
|
40
|
+
"prepare": "npm run clean && tsc --project tsconfig.production.json && npm run setversion",
|
|
41
|
+
"build": "npm run clean && tsc",
|
|
42
|
+
"setversion": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
|
|
43
|
+
"clean": "rimraf dist",
|
|
44
|
+
"scan": "docker run -v .:/path zricethezav/gitleaks:latest detect --source=\"/path\" ",
|
|
45
|
+
"test": "jest"
|
|
46
|
+
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"cache": "~/.npm",
|
|
50
|
+
"registry": "https://registry.npmjs.org"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/jest": "^30.0.0",
|
|
54
|
+
"@types/node": "^26.0.1",
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
56
|
+
"@typescript-eslint/parser": "^8.59.3",
|
|
57
|
+
"eslint": "^9.39.4",
|
|
58
|
+
"eslint-config-attlaz-base": "^1.8.0",
|
|
59
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
60
|
+
"eslint-plugin-import": "^2.32.0",
|
|
61
|
+
"eslint-plugin-jsdoc": "^62.9.0",
|
|
62
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
63
|
+
"eslint-plugin-promise": "^7.3.0",
|
|
64
|
+
"jest": "^30.4.2",
|
|
65
|
+
"rimraf": "^6.1.3",
|
|
66
|
+
"ts-jest": "^29.4.11",
|
|
67
|
+
"typescript": "^6.0.3"
|
|
68
|
+
},
|
|
69
|
+
"directories": {
|
|
70
|
+
"test": "test"
|
|
71
|
+
}
|
|
72
|
+
}
|