attlaz-client 1.9.50 → 1.9.52
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.
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CodeSourceAccount = void 0;
|
|
4
4
|
class CodeSourceAccount {
|
|
5
|
+
// public access_token: string;
|
|
6
|
+
// public refresh_token: string;
|
|
7
|
+
// public scopes: string;
|
|
5
8
|
static parse(rawSourcesAccount) {
|
|
6
9
|
let sourcesAccount = new CodeSourceAccount();
|
|
7
10
|
sourcesAccount.id = rawSourcesAccount.id;
|
|
8
11
|
sourcesAccount.key = rawSourcesAccount.key;
|
|
9
12
|
sourcesAccount.name = rawSourcesAccount.name;
|
|
10
13
|
sourcesAccount.userId = rawSourcesAccount.user;
|
|
11
|
-
sourcesAccount.workspaceId = rawSourcesAccount.workspace;
|
|
14
|
+
// sourcesAccount.workspaceId = rawSourcesAccount.workspace;
|
|
12
15
|
sourcesAccount.type = rawSourcesAccount.type;
|
|
13
|
-
sourcesAccount.access_token = rawSourcesAccount.access_token;
|
|
14
|
-
sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
|
|
15
|
-
sourcesAccount.scopes = rawSourcesAccount.scopes;
|
|
16
|
+
// sourcesAccount.access_token = rawSourcesAccount.access_token;
|
|
17
|
+
// sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
|
|
18
|
+
// sourcesAccount.scopes = rawSourcesAccount.scopes;
|
|
16
19
|
return sourcesAccount;
|
|
17
20
|
}
|
|
18
21
|
}
|
package/dist/Service/Endpoint.js
CHANGED
|
@@ -47,6 +47,9 @@ class Endpoint {
|
|
|
47
47
|
data instanceof LogStreamId_1.LogStreamId) {
|
|
48
48
|
return this.formatParameters(data.jsonSerialize());
|
|
49
49
|
}
|
|
50
|
+
if (data instanceof QueryString_1.QueryString) {
|
|
51
|
+
return data.build();
|
|
52
|
+
}
|
|
50
53
|
const result = {};
|
|
51
54
|
for (const [key, value] of Object.entries(data)) {
|
|
52
55
|
const formattedKey = this.formatKey(key);
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WorkerEndpoint = void 0;
|
|
4
4
|
const Endpoint_1 = require("./Endpoint");
|
|
5
|
-
const Utils_1 = require("../Utils");
|
|
6
5
|
const Worker_1 = require("../Model/Worker/Worker");
|
|
7
6
|
class WorkerEndpoint extends Endpoint_1.Endpoint {
|
|
8
7
|
async getByProjectEnvironment(projectEnvironmentId) {
|
|
@@ -22,14 +21,14 @@ class WorkerEndpoint extends Endpoint_1.Endpoint {
|
|
|
22
21
|
try {
|
|
23
22
|
let url = '/projectenvironments/' + projectEnvironmentId + '/workers';
|
|
24
23
|
const parser = (input) => {
|
|
25
|
-
return
|
|
24
|
+
return { updated: input.updated };
|
|
26
25
|
};
|
|
27
26
|
const result = await this.requestObject(url, null, parser, 'POST');
|
|
28
27
|
const isUpdated = result.getData();
|
|
29
28
|
if (isUpdated === null) {
|
|
30
29
|
throw new Error('Worker probably not updated');
|
|
31
30
|
}
|
|
32
|
-
return isUpdated;
|
|
31
|
+
return isUpdated.updated;
|
|
33
32
|
}
|
|
34
33
|
catch (error) {
|
|
35
34
|
if (this.httpClient.isDebugEnabled()) {
|