attlaz-client 1.27.1 → 1.27.3
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/Client.d.ts +1 -1
- package/dist/Client.js +3 -3
- package/dist/Service/InfrastructureConfigurationEndpoint.d.ts +1 -1
- package/dist/Service/PlatformEndpoint.d.ts +4 -3
- package/dist/Service/PlatformEndpoint.js +10 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/Client.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare class Client {
|
|
|
75
75
|
getSourcesAccountEndpoint(): SourcesAccountEndpoint;
|
|
76
76
|
getLanguageEndpoint(): PlatformLanguageEndpoint;
|
|
77
77
|
getStorageEndpoint(): StorageEndpoint;
|
|
78
|
-
|
|
78
|
+
getInfrastructureConfigurationEndpoint(): InfrastructureConfigurationEndpoint;
|
|
79
79
|
getQueueEndpoint(): QueueEndpoint;
|
|
80
80
|
getHealthAlertEndpoint(): HealthAlertEndpoint;
|
|
81
81
|
getCodeSourceStrategiesEndpoint(): CodeSourceStrategiesEndpoint;
|
package/dist/Client.js
CHANGED
|
@@ -65,7 +65,7 @@ export class Client {
|
|
|
65
65
|
TriggerEndpoint,
|
|
66
66
|
UserActionEndpoint,
|
|
67
67
|
UserEndpoint,
|
|
68
|
-
|
|
68
|
+
InfrastructureConfigurationEndpoint,
|
|
69
69
|
WorkerEndpoint,
|
|
70
70
|
WorkspaceEndpoint,
|
|
71
71
|
WorkspaceMemberEndpoint,
|
|
@@ -195,8 +195,8 @@ export class Client {
|
|
|
195
195
|
getStorageEndpoint() {
|
|
196
196
|
return this.getEndpoint('storage', this.Store.StorageEndpoint);
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
return this.getEndpoint('worker-config', this.Store.
|
|
198
|
+
getInfrastructureConfigurationEndpoint() {
|
|
199
|
+
return this.getEndpoint('worker-config', this.Store.InfrastructureConfigurationEndpoint);
|
|
200
200
|
}
|
|
201
201
|
getQueueEndpoint() {
|
|
202
202
|
return this.getEndpoint('queue', this.Store.QueueEndpoint);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WorkerConfig } from '../Model/Worker/WorkerConfig.js';
|
|
2
2
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
3
|
-
import { Endpoint } from './Endpoint.js';
|
|
4
3
|
import { DataValueValue } from '../Model/DataValue.js';
|
|
4
|
+
import { Endpoint } from './Endpoint.js';
|
|
5
5
|
export declare class InfrastructureConfigurationEndpoint extends Endpoint {
|
|
6
6
|
getByProjectEnvironment(projectEnvironmentId: string): Promise<CollectionResult<WorkerConfig>>;
|
|
7
7
|
getByKey(projectEnvironmentId: string, key: string): Promise<WorkerConfig | null>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Endpoint } from './Endpoint.js';
|
|
2
1
|
import { Platform } from '../Model/Worker/Platform.js';
|
|
3
2
|
import { PlatformImage } from '../Model/Worker/PlatformImage.js';
|
|
4
3
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
4
|
+
import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
|
|
5
|
+
import { Endpoint } from './Endpoint.js';
|
|
5
6
|
export declare class PlatformEndpoint extends Endpoint {
|
|
6
|
-
getAll(workspaceId: string | null): Promise<CollectionResult<Platform>>;
|
|
7
|
-
getPlatformImages(workspaceId: string | null, platformId: string): Promise<CollectionResult<PlatformImage>>;
|
|
7
|
+
getAll(workspaceId: string | null, pagination: CursorPagination): Promise<CollectionResult<Platform>>;
|
|
8
|
+
getPlatformImages(workspaceId: string | null, platformId: string, pagination: CursorPagination): Promise<CollectionResult<PlatformImage>>;
|
|
8
9
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { Endpoint } from './Endpoint.js';
|
|
2
1
|
import { Platform } from '../Model/Worker/Platform.js';
|
|
3
2
|
import { PlatformImage } from '../Model/Worker/PlatformImage.js';
|
|
3
|
+
import { QueryString } from '../Http/Data/QueryString.js';
|
|
4
|
+
import { Endpoint } from './Endpoint.js';
|
|
4
5
|
export class PlatformEndpoint extends Endpoint {
|
|
5
|
-
async getAll(workspaceId) {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
async getAll(workspaceId, pagination) {
|
|
7
|
+
const qs = new QueryString('/workspaces/' + (workspaceId === null ? 'all' : workspaceId) + '/platforms');
|
|
8
|
+
qs.addPagination(pagination);
|
|
9
|
+
const result = await this.requestCollection(qs, Platform.parse);
|
|
8
10
|
return result;
|
|
9
11
|
}
|
|
10
|
-
async getPlatformImages(workspaceId, platformId) {
|
|
11
|
-
const
|
|
12
|
-
|
|
12
|
+
async getPlatformImages(workspaceId, platformId, pagination) {
|
|
13
|
+
const qs = new QueryString('/workspaces/' + (workspaceId === null ? 'all' : workspaceId) + '/platforms/' + platformId + '/images');
|
|
14
|
+
qs.addPagination(pagination);
|
|
15
|
+
const result = await this.requestCollection(qs, PlatformImage.parse);
|
|
13
16
|
return result;
|
|
14
17
|
}
|
|
15
18
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.27.
|
|
1
|
+
export declare const VERSION = "1.27.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.27.
|
|
1
|
+
export const VERSION = "1.27.2";
|