attlaz-client 1.13.9 → 1.13.11

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.
@@ -1,8 +1,12 @@
1
- export declare class CodeSourceAccount {
1
+ import { State } from '../State.js';
2
+ import { StateAware } from '../StateAware.js';
3
+ export declare class CodeSourceAccount implements StateAware {
2
4
  id: string;
3
5
  key: string;
4
6
  name: string;
5
7
  userId: string;
8
+ workspaceId: string;
6
9
  type: string;
10
+ state: State;
7
11
  static parse(rawSourcesAccount: any): CodeSourceAccount;
8
12
  }
@@ -1,24 +1,27 @@
1
+ import { State } from '../State.js';
1
2
  export class CodeSourceAccount {
2
3
  id;
3
4
  key;
4
5
  name;
5
6
  userId;
6
- // public workspaceId: string;
7
+ workspaceId;
7
8
  type;
8
9
  // public access_token: string;
9
10
  // public refresh_token: string;
10
11
  // public scopes: string;
12
+ state;
11
13
  static parse(rawSourcesAccount) {
12
14
  const sourcesAccount = new CodeSourceAccount();
13
15
  sourcesAccount.id = rawSourcesAccount.id;
14
16
  sourcesAccount.key = rawSourcesAccount.key;
15
17
  sourcesAccount.name = rawSourcesAccount.name;
16
18
  sourcesAccount.userId = rawSourcesAccount.user;
17
- // sourcesAccount.workspaceId = rawSourcesAccount.workspace;
19
+ sourcesAccount.workspaceId = rawSourcesAccount.workspace;
18
20
  sourcesAccount.type = rawSourcesAccount.type;
19
21
  // sourcesAccount.access_token = rawSourcesAccount.access_token;
20
22
  // sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
21
23
  // sourcesAccount.scopes = rawSourcesAccount.scopes;
24
+ sourcesAccount.state = State.fromString(rawSourcesAccount.state);
22
25
  return sourcesAccount;
23
26
  }
24
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.13.9",
3
+ "version": "1.13.11",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",