@alauda-fe/common 1.0.4 → 1.1.1
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/a-metric-chart/a-metric-chart.component.d.ts +3 -0
- package/api/acp-common-api.service.d.ts +26 -0
- package/api/project-api.service.d.ts +5 -0
- package/api/public-api.d.ts +1 -0
- package/assets/icons/prod-icons.js +1 -1
- package/core/constants/patterns.d.ts +5 -0
- package/core/constants/status-icons.d.ts +1 -0
- package/core/directives/aui-code-editor.directive.d.ts +13 -0
- package/core/directives/public-api.d.ts +1 -0
- package/core/pipes/k8s-util.pipe.module.d.ts +1 -1
- package/effect-directive/module.d.ts +1 -1
- package/esm2022/api/acp-common-api.service.mjs +34 -0
- package/esm2022/api/project-api.service.mjs +17 -4
- package/esm2022/api/public-api.mjs +2 -1
- package/esm2022/core/constants/patterns.mjs +6 -1
- package/esm2022/core/constants/status-icons.mjs +2 -1
- package/esm2022/core/directives/aui-code-editor.directive.mjs +30 -0
- package/esm2022/core/directives/public-api.mjs +2 -1
- package/esm2022/core/pipes/k8s-util.pipe.module.mjs +4 -5
- package/esm2022/effect-directive/module.mjs +4 -5
- package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +9 -10
- package/esm2022/form/validators/utils.mjs +47 -2
- package/esm2022/graphql/graphql.module.mjs +62 -0
- package/esm2022/graphql/graphql.service.mjs +45 -0
- package/esm2022/graphql/public-api.mjs +4 -0
- package/esm2022/graphql/queries.mjs +29 -0
- package/esm2022/graphql/types.mjs +6 -0
- package/esm2022/help-document/directive.mjs +3 -2
- package/esm2022/help-document/module.mjs +6 -4
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +3 -2
- package/esm2022/multi-search/action-input/component.mjs +5 -5
- package/esm2022/multi-search/multi-search-tags/component.mjs +4 -4
- package/esm2022/overview-banner/overview-banner.component.mjs +5 -5
- package/esm2022/overview-banner/overview-banner.module.mjs +7 -7
- package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +4 -5
- package/esm2022/translate/en.json +43 -1
- package/esm2022/translate/zh.json +41 -1
- package/esm2022/widget/widget.module.mjs +19 -12
- package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +101 -64
- package/form/validators/strong-password/strong-password-validator.directive.d.ts +3 -3
- package/form/validators/utils.d.ts +3 -0
- package/graphql/graphql.module.d.ts +12 -0
- package/graphql/graphql.service.d.ts +14 -0
- package/graphql/public-api.d.ts +3 -0
- package/graphql/queries.d.ts +5 -0
- package/graphql/types.d.ts +46 -0
- package/help-document/directive.d.ts +1 -1
- package/help-document/module.d.ts +7 -7
- package/overview-banner/overview-banner.component.d.ts +1 -1
- package/overview-banner/overview-banner.module.d.ts +4 -3
- package/package.json +1 -1
- package/page-scaffold/navigation/breadcrumb/module.d.ts +1 -1
- package/translate/translate.module.d.ts +82 -0
- package/widget/widget.module.d.ts +3 -4
- package/xterm/xterm-terminal/xterm-terminal.component.d.ts +14 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { KubernetesResource, KubernetesResourceList, StringMap } from '../core/public-api';
|
|
3
|
+
import { K8sApiResourceService } from './k8s-api-resource.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* 对应后端组件 archon 的`通用`高级 API 实现
|
|
7
|
+
* 对应 API Gateway 前缀为 /acp/v1
|
|
8
|
+
*
|
|
9
|
+
* /acp/v1 包含多个 api 路径: /kubernetes, /alb, /oam, /metallb;
|
|
10
|
+
* 其中一部分是平台是通用的,在 libs/common 下实现。
|
|
11
|
+
*/
|
|
12
|
+
export declare class AcpCommonApiService {
|
|
13
|
+
private readonly httpClient;
|
|
14
|
+
private readonly k8sApiResource;
|
|
15
|
+
constructor(httpClient: HttpClient, k8sApiResource: K8sApiResourceService);
|
|
16
|
+
getResourcesByProject<T extends KubernetesResource>(project: string, resourceParams: {
|
|
17
|
+
cluster?: string;
|
|
18
|
+
namespace?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
type?: string;
|
|
21
|
+
apiGroup?: string;
|
|
22
|
+
apiVersion?: string;
|
|
23
|
+
}, queryParams?: StringMap): import("rxjs").Observable<KubernetesResourceList<T>>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcpCommonApiService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AcpCommonApiService>;
|
|
26
|
+
}
|
|
@@ -10,7 +10,12 @@ export declare class ProjectApiService {
|
|
|
10
10
|
project: string;
|
|
11
11
|
cluster: string;
|
|
12
12
|
}): Observable<KubernetesResourceList<Namespace>>;
|
|
13
|
+
get(name: string): Observable<Project>;
|
|
13
14
|
getClusterNamespaces(project: string, cluster: string): Observable<Namespace[]>;
|
|
15
|
+
getProjectNamespaces(projectName: string): Observable<Array<{
|
|
16
|
+
cluster: string;
|
|
17
|
+
namespace: string;
|
|
18
|
+
}>>;
|
|
14
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectApiService, never>;
|
|
15
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<ProjectApiService>;
|
|
16
21
|
}
|
package/api/public-api.d.ts
CHANGED