attlaz-client 1.46.2 → 1.47.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/Core/MetaDataWithIconAware.js +5 -2
- package/dist/Model/Deployment/CodeSourceAccount.d.ts +3 -2
- package/dist/Model/Deployment/CodeSourceAccount.js +3 -1
- package/dist/Model/ProviderToken.d.ts +11 -0
- package/dist/Model/ProviderToken.js +24 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -15,8 +15,11 @@ export class MetaDataWithIconAware {
|
|
|
15
15
|
if (icon === null) {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
if (typeof icon === 'object'
|
|
19
|
-
|
|
18
|
+
if (typeof icon === 'object') {
|
|
19
|
+
if ('type' in icon && 'data' in icon) {
|
|
20
|
+
return icon.data;
|
|
21
|
+
}
|
|
22
|
+
console.log('Icon', { icon });
|
|
20
23
|
}
|
|
21
24
|
return icon;
|
|
22
25
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { State } from '../State.js';
|
|
2
|
-
import { StateAware } from '../StateAware.js';
|
|
3
1
|
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
4
2
|
import { ApiRecord } from '../ApiRecord.js';
|
|
3
|
+
import { State } from '../State.js';
|
|
4
|
+
import { StateAware } from '../StateAware.js';
|
|
5
5
|
export declare class CodeSourceAccount extends MetaDataAware implements StateAware {
|
|
6
6
|
id: string;
|
|
7
7
|
userId: string;
|
|
8
8
|
workspaceId: string;
|
|
9
9
|
type: string;
|
|
10
|
+
providerToken: string | null;
|
|
10
11
|
state: State;
|
|
11
12
|
static parse(rawSourcesAccount: ApiRecord): CodeSourceAccount;
|
|
12
13
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { State } from '../State.js';
|
|
2
1
|
import { MetaDataAware } from '../../Core/MetaDataAware.js';
|
|
2
|
+
import { State } from '../State.js';
|
|
3
3
|
export class CodeSourceAccount extends MetaDataAware {
|
|
4
4
|
id;
|
|
5
5
|
userId;
|
|
6
6
|
workspaceId;
|
|
7
7
|
type;
|
|
8
|
+
providerToken;
|
|
8
9
|
// public access_token: string;
|
|
9
10
|
// public refresh_token: string;
|
|
10
11
|
// public scopes: string;
|
|
@@ -14,6 +15,7 @@ export class CodeSourceAccount extends MetaDataAware {
|
|
|
14
15
|
sourcesAccount.userId = rawSourcesAccount.user;
|
|
15
16
|
sourcesAccount.workspaceId = rawSourcesAccount.workspace;
|
|
16
17
|
sourcesAccount.type = rawSourcesAccount.type;
|
|
18
|
+
sourcesAccount.providerToken = rawSourcesAccount.provider_token;
|
|
17
19
|
// sourcesAccount.access_token = rawSourcesAccount.access_token;
|
|
18
20
|
// sourcesAccount.refresh_token = rawSourcesAccount.refresh_token;
|
|
19
21
|
// sourcesAccount.scopes = rawSourcesAccount.scopes;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export class ProviderToken {
|
|
2
|
+
id;
|
|
3
|
+
state;
|
|
4
|
+
details;
|
|
5
|
+
static parse(rawAdapter) {
|
|
6
|
+
// const adapter: Adapter = MetaDataWithIconAware.parseMetaData(new Adapter(), rawAdapter);
|
|
7
|
+
//
|
|
8
|
+
// // adapter.id = rawAdapter.id as string;
|
|
9
|
+
// // adapter.name = rawAdapter.name as string;
|
|
10
|
+
// // adapter.description = rawAdapter.description as string;
|
|
11
|
+
// adapter.vendor = rawAdapter.vendor as string;
|
|
12
|
+
//
|
|
13
|
+
// adapter.longDescription = rawAdapter.long_description as string | null;
|
|
14
|
+
// adapter.capabilities = rawAdapter.capabilities as unknown as string[];
|
|
15
|
+
//
|
|
16
|
+
// // adapter.icon = rawAdapter.icon as string;
|
|
17
|
+
// adapter.logo = MetaDataWithIconAware.parseIcon(rawAdapter.logo);
|
|
18
|
+
// adapter.type = rawAdapter.type as string;
|
|
19
|
+
// adapter.categoryIds = rawAdapter.categories as unknown as string[];
|
|
20
|
+
// adapter.docs = rawAdapter.docs as string | null;
|
|
21
|
+
// adapter.website = rawAdapter.website as string | null;
|
|
22
|
+
return rawAdapter;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.47.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.47.0";
|