@harnessio/react-idp-service-client 0.10.0 → 0.12.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/services/helpers.d.ts +1 -0
- package/dist/services/hooks/useGetPluginsInfoPluginIdQuery.d.ts +1 -1
- package/dist/services/hooks/useTogglePluginForAccountMutation.d.ts +1 -1
- package/dist/services/hooks/useTogglePluginForAccountMutation.js +1 -1
- package/dist/services/index.d.ts +1 -0
- package/dist/services/schemas/AppConfig.d.ts +3 -3
- package/dist/services/schemas/AppConfigResponse.d.ts +1 -1
- package/dist/services/schemas/CatalogConnectorInfo.d.ts +2 -2
- package/dist/services/schemas/EntitiesForImport.d.ts +1 -1
- package/dist/services/schemas/Exports.d.ts +5 -0
- package/dist/services/schemas/Exports.js +4 -0
- package/dist/services/schemas/HarnessBackstageEntities.d.ts +1 -1
- package/dist/services/schemas/HarnessEntitiesResponse.d.ts +4 -4
- package/dist/services/schemas/ImportHarnessEntitiesRequest.d.ts +2 -2
- package/dist/services/schemas/LayoutRequest.d.ts +2 -2
- package/dist/services/schemas/PluginDetailedInfo.d.ts +4 -5
- package/dist/services/schemas/PluginInfo.d.ts +10 -5
- package/dist/services/schemas/StatusInfo.d.ts +2 -2
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import type { PluginDetailedInfoResponseResponse } from '../responses/PluginDeta
|
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from './../../fetcher';
|
|
5
5
|
export interface GetPluginsInfoPluginIdQueryPathParams {
|
|
6
|
-
'plugin-id':
|
|
6
|
+
'plugin-id': 'github-pull-requests-board' | 'harness-ci-cd' | 'pager-duty' | 'snyk-security';
|
|
7
7
|
}
|
|
8
8
|
export interface GetPluginsInfoPluginIdQueryHeaderParams {
|
|
9
9
|
'Harness-Account'?: string;
|
|
@@ -18,6 +18,6 @@ export interface TogglePluginForAccountProps extends TogglePluginForAccountMutat
|
|
|
18
18
|
}
|
|
19
19
|
export declare function togglePluginForAccount(props: TogglePluginForAccountProps): Promise<TogglePluginForAccountOkResponse>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Toggle Backstage Plugin
|
|
22
22
|
*/
|
|
23
23
|
export declare function useTogglePluginForAccountMutation(options?: Omit<UseMutationOptions<TogglePluginForAccountOkResponse, TogglePluginForAccountErrorResponse, TogglePluginForAccountProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TogglePluginForAccountOkResponse, unknown, TogglePluginForAccountProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function togglePluginForAccount(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/plugin-toggle/${props['plugin-id']}`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Toggle Backstage Plugin
|
|
11
11
|
*/
|
|
12
12
|
export function useTogglePluginForAccountMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => togglePluginForAccount(mutateProps), options);
|
package/dist/services/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export type { BackstagePermissionsResponse } from './schemas/BackstagePermission
|
|
|
41
41
|
export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
|
|
42
42
|
export type { ConnectorDetails } from './schemas/ConnectorDetails';
|
|
43
43
|
export type { EntitiesForImport } from './schemas/EntitiesForImport';
|
|
44
|
+
export type { Exports } from './schemas/Exports';
|
|
44
45
|
export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
|
|
45
46
|
export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
|
|
46
47
|
export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
|
|
@@ -4,14 +4,14 @@ export interface AppConfig {
|
|
|
4
4
|
/**
|
|
5
5
|
* @format int64
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
created?: number;
|
|
8
8
|
enabled?: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* @format int64
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
enabled_disabled_at?: number;
|
|
13
13
|
/**
|
|
14
14
|
* @format int64
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
updated?: number;
|
|
17
17
|
}
|
|
@@ -4,8 +4,8 @@ import type { ConnectorDetails } from '../schemas/ConnectorDetails';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface CatalogConnectorInfo {
|
|
6
6
|
branch: string;
|
|
7
|
-
|
|
7
|
+
infra_connector: ConnectorDetails;
|
|
8
8
|
path: string;
|
|
9
9
|
repo: string;
|
|
10
|
-
|
|
10
|
+
source_connector: ConnectorDetails;
|
|
11
11
|
}
|
|
@@ -3,8 +3,8 @@ import type { HarnessBackstageEntities } from '../schemas/HarnessBackstageEntiti
|
|
|
3
3
|
* Response for harness entities mapping with backstage entities
|
|
4
4
|
*/
|
|
5
5
|
export interface HarnessEntitiesResponse {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
harness_backstage_entities: HarnessBackstageEntities[];
|
|
7
|
+
org_count: number;
|
|
8
|
+
project_count: number;
|
|
9
|
+
service_count: number;
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@ import type { EntitiesForImport } from '../schemas/EntitiesForImport';
|
|
|
4
4
|
* Details of Harness Entities and Catalog Location info
|
|
5
5
|
*/
|
|
6
6
|
export interface ImportHarnessEntitiesRequest {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
all_import?: boolean;
|
|
8
|
+
catalog_connector_info: CatalogConnectorInfo;
|
|
9
9
|
entities: EntitiesForImport[];
|
|
10
10
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import type { Exports } from '../schemas/Exports';
|
|
1
2
|
import type { PluginInfo } from '../schemas/PluginInfo';
|
|
2
3
|
export interface PluginDetailedInfo {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
pluginDetails?: PluginInfo;
|
|
7
|
-
source?: string;
|
|
4
|
+
config: string;
|
|
5
|
+
exports: Exports;
|
|
6
|
+
plugin_details: PluginInfo;
|
|
8
7
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export interface PluginInfo {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
category: 'CI/CD' | 'Monitoring' | 'Security' | 'Source Control Mgmt';
|
|
3
|
+
core: boolean;
|
|
4
|
+
created_by: string;
|
|
5
|
+
description: string;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
icon_url: string;
|
|
8
|
+
id: string;
|
|
9
|
+
image_url: string;
|
|
10
|
+
name: string;
|
|
11
|
+
source: string;
|
|
7
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface StatusInfo {
|
|
2
|
-
|
|
2
|
+
current_status?: 'COMPLETED' | 'FAILED' | 'NOT_FOUND' | 'PENDING' | 'RUNNING';
|
|
3
3
|
reason?: string;
|
|
4
4
|
/**
|
|
5
5
|
* @format int64
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
updated_at?: number;
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-idp-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Harness React idp service client - IDP APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@harnessio/oats-cli": "^2.1.1",
|
|
37
37
|
"@harnessio/oats-plugin-react-query": "^2.1.2",
|
|
38
|
-
"@harnessio/oats-plugin-react-query-harness": "^0.
|
|
38
|
+
"@harnessio/oats-plugin-react-query-harness": "^0.6.0",
|
|
39
39
|
"@types/node": "^18.11.9",
|
|
40
40
|
"@types/react": "^18.0.24",
|
|
41
41
|
"eslint": "^8.15.0",
|