attlaz-client 1.18.7 → 1.18.8
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.
|
@@ -3,6 +3,6 @@ import { Platform } from '../Model/Worker/Platform.js';
|
|
|
3
3
|
import { PlatformImage } from '../Model/Worker/PlatformImage.js';
|
|
4
4
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
5
5
|
export declare class PlatformEndpoint extends Endpoint {
|
|
6
|
-
getAll(workspaceId: string): Promise<CollectionResult<Platform>>;
|
|
7
|
-
getPlatformImages(workspaceId: string, platformId: string): Promise<CollectionResult<PlatformImage>>;
|
|
6
|
+
getAll(workspaceId: string | null): Promise<CollectionResult<Platform>>;
|
|
7
|
+
getPlatformImages(workspaceId: string | null, platformId: string): Promise<CollectionResult<PlatformImage>>;
|
|
8
8
|
}
|
|
@@ -3,12 +3,12 @@ import { Platform } from '../Model/Worker/Platform.js';
|
|
|
3
3
|
import { PlatformImage } from '../Model/Worker/PlatformImage.js';
|
|
4
4
|
export class PlatformEndpoint extends Endpoint {
|
|
5
5
|
async getAll(workspaceId) {
|
|
6
|
-
const cmd = '/workspaces/' + workspaceId + '/platforms';
|
|
6
|
+
const cmd = '/workspaces/' + (workspaceId === null ? 'all' : workspaceId) + '/platforms';
|
|
7
7
|
const result = await this.requestCollection(cmd, Platform.parse);
|
|
8
8
|
return result;
|
|
9
9
|
}
|
|
10
10
|
async getPlatformImages(workspaceId, platformId) {
|
|
11
|
-
const cmd = '/workspaces/' + workspaceId + '/platforms/' + platformId + '/images';
|
|
11
|
+
const cmd = '/workspaces/' + (workspaceId === null ? 'all' : workspaceId) + '/platforms/' + platformId + '/images';
|
|
12
12
|
const result = await this.requestCollection(cmd, PlatformImage.parse);
|
|
13
13
|
return result;
|
|
14
14
|
}
|