attlaz-client 1.34.4 → 1.35.0
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/Http/OAuthClient.js
CHANGED
|
@@ -26,11 +26,13 @@ export class OAuthClient {
|
|
|
26
26
|
this.oathClientToken = this.tokenToOauthClientToken(rawAuthToken);
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
if (this.options.clientId !== null && this.options.clientSecret !== null) {
|
|
30
|
+
// Client credentials flow
|
|
31
|
+
const getClientCredentials = clientCredentials(this.getAxiosInstance(), this.getApiEndpointUrl(this.options.accessTokenUri), this.options.clientId === null ? undefined : this.options.clientId, this.options.clientSecret === null ? undefined : this.options.clientSecret);
|
|
32
|
+
const rawAuthToken = await getClientCredentials(this.options.scopes.join(' '));
|
|
33
|
+
// console.log('Raw token', rawAuthToken);
|
|
34
|
+
this.oathClientToken = this.tokenToOauthClientToken(rawAuthToken);
|
|
35
|
+
}
|
|
34
36
|
// const getRefreshToken = refreshToken(
|
|
35
37
|
// this.getAxiosInstance(),
|
|
36
38
|
// this.getApiEndpointUrl(this.options.accessTokenUri),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ApiRecord } from '../ApiRecord.js';
|
|
1
2
|
import { CodeDeployStatus } from './CodeDeployStatus.js';
|
|
2
3
|
import { ProjectDeployCommit } from './ProjectDeployCommit.js';
|
|
3
|
-
import { ApiRecord } from '../ApiRecord.js';
|
|
4
4
|
export declare class CodeDeploy {
|
|
5
5
|
id: string;
|
|
6
6
|
codeSourceId: string;
|
|
@@ -11,7 +11,11 @@ export declare class CodeDeploy {
|
|
|
11
11
|
started: Date | null;
|
|
12
12
|
finished: Date | null;
|
|
13
13
|
status: CodeDeployStatus;
|
|
14
|
-
|
|
14
|
+
archiveChecksum: string | null;
|
|
15
|
+
archiveType: string | null;
|
|
16
|
+
archiveSize: number | null;
|
|
17
|
+
checksum: string | null;
|
|
18
|
+
size: number | null;
|
|
15
19
|
commits: ProjectDeployCommit[];
|
|
16
20
|
path: string | null;
|
|
17
21
|
commitHash: string | null;
|
|
@@ -11,7 +11,11 @@ export class CodeDeploy {
|
|
|
11
11
|
started = null;
|
|
12
12
|
finished = null;
|
|
13
13
|
status = CodeDeployStatus.Unknown;
|
|
14
|
-
|
|
14
|
+
archiveChecksum = null;
|
|
15
|
+
archiveType = null;
|
|
16
|
+
archiveSize = null;
|
|
17
|
+
checksum = null;
|
|
18
|
+
size = null;
|
|
15
19
|
commits = [];
|
|
16
20
|
path = null;
|
|
17
21
|
commitHash = null;
|
|
@@ -27,7 +31,11 @@ export class CodeDeploy {
|
|
|
27
31
|
projectDeploy.started = rawCodeDeploy.started === null ? null : Utils.parseRawDate(rawCodeDeploy.started);
|
|
28
32
|
projectDeploy.finished = rawCodeDeploy.finished === null ? null : Utils.parseRawDate(rawCodeDeploy.finished);
|
|
29
33
|
projectDeploy.status = CodeDeployStatus.fromString(rawCodeDeploy.status);
|
|
30
|
-
projectDeploy.
|
|
34
|
+
projectDeploy.archiveChecksum = rawCodeDeploy.archive_checksum;
|
|
35
|
+
projectDeploy.archiveType = rawCodeDeploy.archive_type;
|
|
36
|
+
projectDeploy.archiveSize = rawCodeDeploy.archive_size === null ? null : Utils.parseInt(rawCodeDeploy.archive_size);
|
|
37
|
+
projectDeploy.checksum = rawCodeDeploy.checksum;
|
|
38
|
+
projectDeploy.size = rawCodeDeploy.size === null ? null : Utils.parseInt(rawCodeDeploy.size);
|
|
31
39
|
projectDeploy.path = rawCodeDeploy.path;
|
|
32
40
|
projectDeploy.commitHash = rawCodeDeploy.commit_hash;
|
|
33
41
|
const rawProjectDeployCommits = rawCodeDeploy.commits;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.34.
|
|
1
|
+
export declare const VERSION = "1.34.5";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.34.
|
|
1
|
+
export const VERSION = "1.34.5";
|