attlaz-client 1.10.13 → 1.10.15

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,7 @@ import { StateAware } from '../StateAware.js';
3
3
  export declare class Workspace implements StateAware {
4
4
  id: string;
5
5
  name: string;
6
+ key: string;
6
7
  state: State;
7
8
  static parse(raw: any): Workspace;
8
9
  }
@@ -2,11 +2,13 @@ import { State } from '../State.js';
2
2
  export class Workspace {
3
3
  id;
4
4
  name;
5
+ key;
5
6
  state;
6
7
  static parse(raw) {
7
8
  const workspace = new Workspace();
8
9
  workspace.id = raw.id;
9
10
  workspace.name = raw.name;
11
+ workspace.key = raw.key;
10
12
  workspace.state = State.fromString(raw.state);
11
13
  return workspace;
12
14
  }
@@ -15,7 +15,7 @@ export class WorkspaceEndpoint extends Endpoint {
15
15
  }
16
16
  async save(workspace) {
17
17
  try {
18
- const url = '/workspace';
18
+ const url = '/workspaces';
19
19
  const result = await this.requestObject(url, workspace, Workspace.parse, 'POST');
20
20
  const updatedWorkspace = result.getData();
21
21
  if (updatedWorkspace === null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.10.13",
3
+ "version": "1.10.15",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",