attlaz-client 1.9.31 → 1.9.33
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/dist/Model/{SourcesAccountRepository.d.ts → Deployment/SourcesAccountRepository.d.ts} +0 -0
- package/dist/Model/{SourcesAccountRepository.js → Deployment/SourcesAccountRepository.js} +0 -0
- package/dist/Model/Deployment/SourcesAccountRepositoryBranch.d.ts +4 -0
- package/dist/Model/Deployment/SourcesAccountRepositoryBranch.js +11 -0
- package/dist/Service/FlowRunStatsEndpoint.js +1 -1
- package/dist/Service/SourcesAccountEndpoint.d.ts +3 -2
- package/dist/Service/SourcesAccountEndpoint.js +3 -5
- package/dist/index.d.ts +9 -7
- package/dist/index.js +17 -16
- package/package.json +4 -4
package/dist/Model/{SourcesAccountRepository.d.ts → Deployment/SourcesAccountRepository.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourcesAccountRepositoryBranch = void 0;
|
|
4
|
+
class SourcesAccountRepositoryBranch {
|
|
5
|
+
static parse(raw) {
|
|
6
|
+
let sourcesAccountRepositoryBranch = new SourcesAccountRepositoryBranch();
|
|
7
|
+
sourcesAccountRepositoryBranch.key = raw.key;
|
|
8
|
+
return sourcesAccountRepositoryBranch;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SourcesAccountRepositoryBranch = SourcesAccountRepositoryBranch;
|
|
@@ -13,7 +13,7 @@ class FlowRunStatsEndpoint extends Endpoint_1.Endpoint {
|
|
|
13
13
|
const result = await this.requestObject(url, flowRunStats, parser, 'POST');
|
|
14
14
|
const createdFlowRunStat = result.getData();
|
|
15
15
|
if (createdFlowRunStat === null) {
|
|
16
|
-
throw new Error('
|
|
16
|
+
throw new Error('Unable to create stats: wrong response from API');
|
|
17
17
|
}
|
|
18
18
|
return createdFlowRunStat;
|
|
19
19
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Endpoint } from './Endpoint';
|
|
2
|
-
import { SourcesAccountRepository } from '../Model/SourcesAccountRepository';
|
|
3
2
|
import { CodeSourceAccount } from '../Model/Deployment/CodeSourceAccount';
|
|
4
3
|
import { CodeSource } from '../Model/Deployment/CodeSource';
|
|
5
4
|
import { CollectionResult } from '../Model/Result/CollectionResult';
|
|
5
|
+
import { SourcesAccountRepository } from '../Model/Deployment/SourcesAccountRepository';
|
|
6
|
+
import { SourcesAccountRepositoryBranch } from '../Model/Deployment/SourcesAccountRepositoryBranch';
|
|
6
7
|
export declare class SourcesAccountEndpoint extends Endpoint {
|
|
7
8
|
getAllCodeSourceAccounts(): Promise<CollectionResult<CodeSourceAccount>>;
|
|
8
9
|
getCodeSourceAccountById(id: string): Promise<CodeSourceAccount | null>;
|
|
9
10
|
getCodeSourceById(codeSourceId: string): Promise<CodeSource | null>;
|
|
10
11
|
getRepositories(codeSourceAccountId: string): Promise<CollectionResult<SourcesAccountRepository>>;
|
|
11
|
-
getRepositoryBranches(codeSourceAccountId: string, repositoryKey: string): Promise<CollectionResult<
|
|
12
|
+
getRepositoryBranches(codeSourceAccountId: string, repositoryKey: string): Promise<CollectionResult<SourcesAccountRepositoryBranch>>;
|
|
12
13
|
}
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SourcesAccountEndpoint = void 0;
|
|
4
4
|
const Endpoint_1 = require("./Endpoint");
|
|
5
|
-
const SourcesAccountRepository_1 = require("../Model/SourcesAccountRepository");
|
|
6
5
|
const Utils_1 = require("../Utils");
|
|
7
6
|
const CodeSourceAccount_1 = require("../Model/Deployment/CodeSourceAccount");
|
|
8
7
|
const CodeSource_1 = require("../Model/Deployment/CodeSource");
|
|
9
8
|
const HttpClient_1 = require("../Http/HttpClient");
|
|
9
|
+
const SourcesAccountRepository_1 = require("../Model/Deployment/SourcesAccountRepository");
|
|
10
|
+
const SourcesAccountRepositoryBranch_1 = require("../Model/Deployment/SourcesAccountRepositoryBranch");
|
|
10
11
|
class SourcesAccountEndpoint extends Endpoint_1.Endpoint {
|
|
11
12
|
async getAllCodeSourceAccounts() {
|
|
12
13
|
const result = await this.requestCollection('codesourceaccounts', null, CodeSourceAccount_1.CodeSourceAccount.parse);
|
|
@@ -53,10 +54,7 @@ class SourcesAccountEndpoint extends Endpoint_1.Endpoint {
|
|
|
53
54
|
}
|
|
54
55
|
async getRepositoryBranches(codeSourceAccountId, repositoryKey) {
|
|
55
56
|
repositoryKey = Utils_1.Utils.base64encode(repositoryKey);
|
|
56
|
-
const
|
|
57
|
-
return raw;
|
|
58
|
-
};
|
|
59
|
-
const rawBranches = await this.requestCollection('sourcesaccounts/' + codeSourceAccountId + '/repositories/' + repositoryKey + '/branches', null, parser);
|
|
57
|
+
const rawBranches = await this.requestCollection('codesourceaccounts/' + codeSourceAccountId + '/repositories/' + repositoryKey + '/branches', null, SourcesAccountRepositoryBranch_1.SourcesAccountRepositoryBranch.parse);
|
|
60
58
|
return rawBranches;
|
|
61
59
|
}
|
|
62
60
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @description
|
|
4
|
-
* Entry point for all classes
|
|
2
|
+
* Http
|
|
5
3
|
*/
|
|
6
4
|
export { HttpClient } from './Http/HttpClient';
|
|
7
5
|
export { HttpClientRequest } from './Http/HttpClientRequest';
|
|
@@ -9,6 +7,12 @@ export { HttpClientResponse } from './Http/HttpClientResponse';
|
|
|
9
7
|
export { OAuthClient } from './Http/OAuthClient';
|
|
10
8
|
export { OAuthClientOptions } from './Http/OAuthClientOptions';
|
|
11
9
|
export { OAuthClientToken } from './Http/OAuthClientToken';
|
|
10
|
+
/**
|
|
11
|
+
* Models
|
|
12
|
+
*/
|
|
13
|
+
export { Adapter } from './Model/Adapter/Adapter';
|
|
14
|
+
export { AdapterConfiguration } from './Model/Adapter/AdapterConfiguration';
|
|
15
|
+
export { AdapterConnection } from './Model/Adapter/AdapterConnection';
|
|
12
16
|
export { ClientError } from './Model/Error/ClientError';
|
|
13
17
|
export { EventType } from './Model/Event/EventType';
|
|
14
18
|
export { HealthAlert } from './Model/HealthAlert/HealthAlert';
|
|
@@ -71,6 +75,8 @@ export { WorkerState } from './Model/Worker/WorkerState';
|
|
|
71
75
|
/** Deployment **/
|
|
72
76
|
export { CodeSource } from './Model/Deployment/CodeSource';
|
|
73
77
|
export { CodeSourceAccount } from './Model/Deployment/CodeSourceAccount';
|
|
78
|
+
export { SourcesAccountRepository } from './Model/Deployment/SourcesAccountRepository';
|
|
79
|
+
export { SourcesAccountRepositoryBranch } from './Model/Deployment/SourcesAccountRepositoryBranch';
|
|
74
80
|
/** Workspace **/
|
|
75
81
|
export { Workspace } from './Model/Workspace/Workspace';
|
|
76
82
|
export { WorkspaceMember } from './Model/Workspace/WorkspaceMember';
|
|
@@ -79,13 +85,9 @@ export { WorkspaceMemberInvite2 } from './Model/Workspace/WorkspaceMemberInvite2
|
|
|
79
85
|
export { WorkspaceMemberInviteState } from './Model/Workspace/WorkspaceMemberInviteState';
|
|
80
86
|
export { WorkspaceMemberRole } from './Model/Workspace/WorkspaceMemberRole';
|
|
81
87
|
/** **/
|
|
82
|
-
export { Adapter } from './Model/Adapter/Adapter';
|
|
83
|
-
export { AdapterConfiguration } from './Model/Adapter/AdapterConfiguration';
|
|
84
|
-
export { AdapterConnection } from './Model/Adapter/AdapterConnection';
|
|
85
88
|
export { Config } from './Model/Config';
|
|
86
89
|
export { DataValue, DataValueValue } from './Model/DataValue';
|
|
87
90
|
export { Notification } from './Model/Notification';
|
|
88
|
-
export { SourcesAccountRepository } from './Model/SourcesAccountRepository';
|
|
89
91
|
export { State } from './Model/State';
|
|
90
92
|
/** Flow **/
|
|
91
93
|
export { Flow } from './Model/Flow/Flow';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.Utils = exports.Client = exports.HealthAlertEndpoint = exports.WorkerEndpoint = exports.WorkerConfigEndpoint = exports.UserEndpoint = exports.TriggerEndpoint = exports.WorkspaceEndpoint = exports.FlowRunStatsEndpoint = exports.FlowRunRequestEndpoint = exports.FlowRunEndpoint = exports.FlowEndpoint = void 0;
|
|
3
|
+
exports.ScheduleTriggerData = exports.ScheduleTrigger = exports.ApiTriggerData = exports.ApiTrigger = exports.StorageItemInformation = exports.StorageItem = exports.StorageType = exports.StorageInformation = exports.ResultError = exports.ObjectResult = exports.DataResult = exports.CollectionResult = exports.QueueStatus = exports.ProjectEnvironment = exports.ProjectDeployStatus = exports.ProjectDeployCommit = exports.ProjectDeploy = exports.Project = exports.PlatformLanguage = exports.ChannelHistory = exports.Subscriber = exports.WebhookChannelData = exports.SmsChannelData = exports.SlackChannelData = exports.PushChannelData = exports.EmailChannelData = exports.ChannelType = exports.ChannelData = exports.Channel = exports.LogStreamInformation = exports.LogStreamId = exports.LogStream = exports.LogStatus = exports.LogQuery = exports.LogLevel = exports.Log = exports.HealthTestType = exports.HealthAlertStatus = exports.HealthAlert = exports.EventType = exports.ClientError = exports.AdapterConnection = exports.AdapterConfiguration = exports.Adapter = exports.OAuthClientToken = exports.OAuthClientOptions = exports.OAuthClient = exports.HttpClientResponse = exports.HttpClientRequest = exports.HttpClient = void 0;
|
|
4
|
+
exports.StorageEndpoint = exports.SourcesAccountEndpoint = exports.QueueEndpoint = exports.ProjectEnvironmentEndpoint = exports.ProjectDeployEndpoint = exports.PlatformEndpoint = exports.NotificationsEndpoint = exports.WorkspaceMemberEndpoint = exports.LogEndpoint = exports.PlatformLanguageEndpoint = exports.ConfigEndpoint = exports.ProjectEndpoint = exports.ChannelEndpoint = exports.AdapterEndpoint = exports.Endpoint = exports.User = exports.FlowSummary = exports.FlowRunStats = exports.FlowRunSummary = exports.FlowRunStatus = exports.FlowRunResponse = exports.FlowRunHistory = exports.FlowRun = exports.Flow = exports.State = exports.Notification = exports.DataValue = exports.Config = exports.WorkspaceMemberRole = exports.WorkspaceMemberInviteState = exports.WorkspaceMemberInvite2 = exports.WorkspaceMemberInvite = exports.WorkspaceMember = exports.Workspace = exports.SourcesAccountRepositoryBranch = exports.SourcesAccountRepository = exports.CodeSourceAccount = exports.CodeSource = exports.WorkerState = exports.WorkerInstanceState = exports.WorkerInstance = exports.WorkerConfig = exports.Worker = exports.PlatformImage = exports.Platform = exports.WebhookTriggerData = exports.WebhookTrigger = exports.TriggerType = exports.TriggerData = exports.Trigger = void 0;
|
|
5
|
+
exports.Utils = exports.Client = exports.HealthAlertEndpoint = exports.WorkerEndpoint = exports.WorkerConfigEndpoint = exports.UserEndpoint = exports.TriggerEndpoint = exports.WorkspaceEndpoint = exports.FlowRunStatsEndpoint = exports.FlowRunRequestEndpoint = exports.FlowRunEndpoint = exports.FlowEndpoint = exports.SubscriberEndpoint = void 0;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @description
|
|
9
|
-
* Entry point for all classes
|
|
7
|
+
* Http
|
|
10
8
|
*/
|
|
11
|
-
/* HTTP */
|
|
12
9
|
var HttpClient_1 = require("./Http/HttpClient");
|
|
13
10
|
Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return HttpClient_1.HttpClient; } });
|
|
14
11
|
var HttpClientRequest_1 = require("./Http/HttpClientRequest");
|
|
@@ -21,7 +18,15 @@ var OAuthClientOptions_1 = require("./Http/OAuthClientOptions");
|
|
|
21
18
|
Object.defineProperty(exports, "OAuthClientOptions", { enumerable: true, get: function () { return OAuthClientOptions_1.OAuthClientOptions; } });
|
|
22
19
|
var OAuthClientToken_1 = require("./Http/OAuthClientToken");
|
|
23
20
|
Object.defineProperty(exports, "OAuthClientToken", { enumerable: true, get: function () { return OAuthClientToken_1.OAuthClientToken; } });
|
|
24
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Models
|
|
23
|
+
*/
|
|
24
|
+
var Adapter_1 = require("./Model/Adapter/Adapter");
|
|
25
|
+
Object.defineProperty(exports, "Adapter", { enumerable: true, get: function () { return Adapter_1.Adapter; } });
|
|
26
|
+
var AdapterConfiguration_1 = require("./Model/Adapter/AdapterConfiguration");
|
|
27
|
+
Object.defineProperty(exports, "AdapterConfiguration", { enumerable: true, get: function () { return AdapterConfiguration_1.AdapterConfiguration; } });
|
|
28
|
+
var AdapterConnection_1 = require("./Model/Adapter/AdapterConnection");
|
|
29
|
+
Object.defineProperty(exports, "AdapterConnection", { enumerable: true, get: function () { return AdapterConnection_1.AdapterConnection; } });
|
|
25
30
|
var ClientError_1 = require("./Model/Error/ClientError");
|
|
26
31
|
Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return ClientError_1.ClientError; } });
|
|
27
32
|
var EventType_1 = require("./Model/Event/EventType");
|
|
@@ -139,6 +144,10 @@ var CodeSource_1 = require("./Model/Deployment/CodeSource");
|
|
|
139
144
|
Object.defineProperty(exports, "CodeSource", { enumerable: true, get: function () { return CodeSource_1.CodeSource; } });
|
|
140
145
|
var CodeSourceAccount_1 = require("./Model/Deployment/CodeSourceAccount");
|
|
141
146
|
Object.defineProperty(exports, "CodeSourceAccount", { enumerable: true, get: function () { return CodeSourceAccount_1.CodeSourceAccount; } });
|
|
147
|
+
var SourcesAccountRepository_1 = require("./Model/Deployment/SourcesAccountRepository");
|
|
148
|
+
Object.defineProperty(exports, "SourcesAccountRepository", { enumerable: true, get: function () { return SourcesAccountRepository_1.SourcesAccountRepository; } });
|
|
149
|
+
var SourcesAccountRepositoryBranch_1 = require("./Model/Deployment/SourcesAccountRepositoryBranch");
|
|
150
|
+
Object.defineProperty(exports, "SourcesAccountRepositoryBranch", { enumerable: true, get: function () { return SourcesAccountRepositoryBranch_1.SourcesAccountRepositoryBranch; } });
|
|
142
151
|
/** Workspace **/
|
|
143
152
|
var Workspace_1 = require("./Model/Workspace/Workspace");
|
|
144
153
|
Object.defineProperty(exports, "Workspace", { enumerable: true, get: function () { return Workspace_1.Workspace; } });
|
|
@@ -153,20 +162,12 @@ Object.defineProperty(exports, "WorkspaceMemberInviteState", { enumerable: true,
|
|
|
153
162
|
var WorkspaceMemberRole_1 = require("./Model/Workspace/WorkspaceMemberRole");
|
|
154
163
|
Object.defineProperty(exports, "WorkspaceMemberRole", { enumerable: true, get: function () { return WorkspaceMemberRole_1.WorkspaceMemberRole; } });
|
|
155
164
|
/** **/
|
|
156
|
-
var Adapter_1 = require("./Model/Adapter/Adapter");
|
|
157
|
-
Object.defineProperty(exports, "Adapter", { enumerable: true, get: function () { return Adapter_1.Adapter; } });
|
|
158
|
-
var AdapterConfiguration_1 = require("./Model/Adapter/AdapterConfiguration");
|
|
159
|
-
Object.defineProperty(exports, "AdapterConfiguration", { enumerable: true, get: function () { return AdapterConfiguration_1.AdapterConfiguration; } });
|
|
160
|
-
var AdapterConnection_1 = require("./Model/Adapter/AdapterConnection");
|
|
161
|
-
Object.defineProperty(exports, "AdapterConnection", { enumerable: true, get: function () { return AdapterConnection_1.AdapterConnection; } });
|
|
162
165
|
var Config_1 = require("./Model/Config");
|
|
163
166
|
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return Config_1.Config; } });
|
|
164
167
|
var DataValue_1 = require("./Model/DataValue");
|
|
165
168
|
Object.defineProperty(exports, "DataValue", { enumerable: true, get: function () { return DataValue_1.DataValue; } });
|
|
166
169
|
var Notification_1 = require("./Model/Notification");
|
|
167
170
|
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return Notification_1.Notification; } });
|
|
168
|
-
var SourcesAccountRepository_1 = require("./Model/SourcesAccountRepository");
|
|
169
|
-
Object.defineProperty(exports, "SourcesAccountRepository", { enumerable: true, get: function () { return SourcesAccountRepository_1.SourcesAccountRepository; } });
|
|
170
171
|
var State_1 = require("./Model/State");
|
|
171
172
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return State_1.State; } });
|
|
172
173
|
/** Flow **/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "attlaz-client",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.33",
|
|
4
4
|
"description": "Javascript Client to access Attlaz API",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"prepare": "npm run clean && tsc --project tsconfig.production.json",
|
|
20
20
|
"build": "npm run clean && tsc",
|
|
21
21
|
"clean": "rimraf dist",
|
|
22
|
-
"test": "
|
|
22
|
+
"test": "jest"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"cache": "~/.npm",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/jest": "^29.2.5",
|
|
34
34
|
"@types/node": "^18.7.2",
|
|
35
|
-
"jest": "^
|
|
35
|
+
"jest": "^29.3.1",
|
|
36
36
|
"rimraf": "^4.0.4",
|
|
37
37
|
"rollup-plugin-commonjs": "^10.1.0",
|
|
38
38
|
"rollup-plugin-node-resolve": "^5.2.0",
|
|
39
39
|
"rollup-plugin-typescript": "^1.0.1",
|
|
40
|
-
"ts-jest": "^
|
|
40
|
+
"ts-jest": "^29.0.5",
|
|
41
41
|
"typescript": "^4.7.4",
|
|
42
42
|
"dotenv": "^16.0.1"
|
|
43
43
|
},
|