@harnessio/react-idp-service-client 0.9.0 → 0.11.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.
Files changed (54) hide show
  1. package/dist/fetcher.js +3 -2
  2. package/dist/services/helpers.d.ts +1 -0
  3. package/dist/services/hooks/useGetPluginsInfoPluginIdQuery.d.ts +19 -0
  4. package/dist/services/hooks/useGetPluginsInfoPluginIdQuery.js +14 -0
  5. package/dist/services/hooks/useGetPluginsQuery.d.ts +16 -0
  6. package/dist/services/hooks/useGetPluginsQuery.js +14 -0
  7. package/dist/services/hooks/useTogglePluginForAccountMutation.d.ts +23 -0
  8. package/dist/services/hooks/useTogglePluginForAccountMutation.js +14 -0
  9. package/dist/services/index.d.ts +15 -17
  10. package/dist/services/index.js +3 -0
  11. package/dist/services/responses/AppConfigResponseResponse.d.ts +2 -0
  12. package/dist/services/responses/PluginDetailedInfoResponseResponse.d.ts +2 -0
  13. package/dist/services/responses/PluginInfoResponseListResponse.d.ts +2 -0
  14. package/dist/services/schemas/AppConfig.d.ts +17 -0
  15. package/dist/services/schemas/AppConfigResponse.d.ts +4 -0
  16. package/dist/services/schemas/PluginDetailedInfo.d.ts +11 -0
  17. package/dist/services/schemas/PluginDetailedInfoResponse.d.ts +4 -0
  18. package/dist/services/schemas/PluginInfo.d.ts +7 -0
  19. package/dist/services/schemas/PluginInfoResponse.d.ts +4 -0
  20. package/package.json +2 -2
  21. package/dist/services/requestBodies/EnvironmentSecretRequestListRequestBody.d.ts +0 -2
  22. package/dist/services/requestBodies/EnvironmentSecretRequestRequestBody.d.ts +0 -2
  23. package/dist/services/requestBodies/LayoutRequestRequestBody.d.ts +0 -2
  24. package/dist/services/requestBodies/ManualImportEntityRequestRequestBody.d.ts +0 -2
  25. package/dist/services/requestBodies/StatusInfoRequestRequestBody.d.ts +0 -2
  26. package/dist/services/responses/EnvironmentSecretResponseListResponse.d.ts +0 -2
  27. package/dist/services/responses/EnvironmentSecretResponseResponse.d.ts +0 -2
  28. package/dist/services/responses/NamespaceResponseResponse.d.ts +0 -2
  29. package/dist/services/responses/NamespaceResponseResponse.js +0 -1
  30. package/dist/services/responses/OnboardingAccessCheckResponseResponse.d.ts +0 -2
  31. package/dist/services/responses/OnboardingAccessCheckResponseResponse.js +0 -1
  32. package/dist/services/schemas/EnvironmentSecret.d.ts +0 -14
  33. package/dist/services/schemas/EnvironmentSecretRequest.d.ts +0 -4
  34. package/dist/services/schemas/EnvironmentSecretRequest.js +0 -1
  35. package/dist/services/schemas/EnvironmentSecretResponse.d.ts +0 -4
  36. package/dist/services/schemas/EnvironmentSecretResponse.js +0 -1
  37. package/dist/services/schemas/ManualImportEntityRequest.d.ts +0 -10
  38. package/dist/services/schemas/NamepsaceResponse.d.ts +0 -5
  39. package/dist/services/schemas/NamepsaceResponse.js +0 -1
  40. package/dist/services/schemas/NamespaceInfo.d.ts +0 -7
  41. package/dist/services/schemas/NamespaceInfo.js +0 -4
  42. package/dist/services/schemas/OnboardingAccessCheckResponse.d.ts +0 -6
  43. package/dist/services/schemas/OnboardingAccessCheckResponse.js +0 -4
  44. package/dist/services/schemas/StatusInfoRequest.d.ts +0 -4
  45. package/dist/services/schemas/StatusInfoRequest.js +0 -1
  46. /package/dist/services/{requestBodies/EnvironmentSecretRequestListRequestBody.js → responses/AppConfigResponseResponse.js} +0 -0
  47. /package/dist/services/{requestBodies/EnvironmentSecretRequestRequestBody.js → responses/PluginDetailedInfoResponseResponse.js} +0 -0
  48. /package/dist/services/{requestBodies/LayoutRequestRequestBody.js → responses/PluginInfoResponseListResponse.js} +0 -0
  49. /package/dist/services/schemas/{EnvironmentSecret.js → AppConfig.js} +0 -0
  50. /package/dist/services/{requestBodies/ManualImportEntityRequestRequestBody.js → schemas/AppConfigResponse.js} +0 -0
  51. /package/dist/services/{requestBodies/StatusInfoRequestRequestBody.js → schemas/PluginDetailedInfo.js} +0 -0
  52. /package/dist/services/{responses/EnvironmentSecretResponseListResponse.js → schemas/PluginDetailedInfoResponse.js} +0 -0
  53. /package/dist/services/schemas/{ManualImportEntityRequest.js → PluginInfo.js} +0 -0
  54. /package/dist/services/{responses/EnvironmentSecretResponseResponse.js → schemas/PluginInfoResponse.js} +0 -0
package/dist/fetcher.js CHANGED
@@ -39,7 +39,7 @@ export function fetcher(options) {
39
39
  response = (_b = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.responseInterceptor) === null || _b === void 0 ? void 0 : _b.call(fetcherCallbacks, response.clone());
40
40
  }
41
41
  const contentType = response.headers.get('Content-Type');
42
- let total, pageSize, pageNumber, pagination;
42
+ let total, pageSize, pageNumber, pageCount, pagination;
43
43
  try {
44
44
  total = response.headers.get('x-total-elements');
45
45
  pageSize = response.headers.get('x-page-size');
@@ -48,6 +48,7 @@ export function fetcher(options) {
48
48
  if (pagination) {
49
49
  total = Number(total);
50
50
  pageSize = Number(pageSize);
51
+ pageCount = Math.ceil(total / pageSize);
51
52
  pageNumber = Number(pageNumber);
52
53
  }
53
54
  }
@@ -57,7 +58,7 @@ export function fetcher(options) {
57
58
  const asJson = contentType && JSON_CONTENT_TYPES.some((h) => contentType.startsWith(h));
58
59
  const data = yield (asJson ? response.json() : response.text());
59
60
  if (response.ok) {
60
- return (Object.assign({ content: data }, (pagination ? { pagination: { total, pageSize, pageNumber } } : {})));
61
+ return (Object.assign({ content: data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {})));
61
62
  }
62
63
  throw data;
63
64
  });
@@ -6,6 +6,7 @@ export interface ResponseWithPagination<T> {
6
6
  pagination?: {
7
7
  total?: number;
8
8
  pageSize?: number;
9
+ pageCount?: number;
9
10
  pageNumber?: number;
10
11
  };
11
12
  }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PluginDetailedInfoResponseResponse } from '../responses/PluginDetailedInfoResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from './../../fetcher';
5
+ export interface GetPluginsInfoPluginIdQueryPathParams {
6
+ 'plugin-id': 'harness-ci-cd' | 'pager-duty' | 'snyk-security';
7
+ }
8
+ export interface GetPluginsInfoPluginIdQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetPluginsInfoPluginIdOkResponse = ResponseWithPagination<PluginDetailedInfoResponseResponse>;
12
+ export type GetPluginsInfoPluginIdErrorResponse = unknown;
13
+ export interface GetPluginsInfoPluginIdProps extends GetPluginsInfoPluginIdQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetPluginsInfoPluginIdQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getPluginsInfoPluginId(props: GetPluginsInfoPluginIdProps): Promise<GetPluginsInfoPluginIdOkResponse>;
16
+ /**
17
+ * Get plugin details for given pluginId
18
+ */
19
+ export declare function useGetPluginsInfoPluginIdQuery(props: GetPluginsInfoPluginIdProps, options?: Omit<UseQueryOptions<GetPluginsInfoPluginIdOkResponse, GetPluginsInfoPluginIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPluginsInfoPluginIdOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from './../../fetcher';
6
+ export function getPluginsInfoPluginId(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugins-info/${props['plugin-id']}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get plugin details for given pluginId
11
+ */
12
+ export function useGetPluginsInfoPluginIdQuery(props, options) {
13
+ return useQuery(['get-plugins-info-plugin-id', props['plugin-id']], ({ signal }) => getPluginsInfoPluginId(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PluginInfoResponseListResponse } from '../responses/PluginInfoResponseListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from './../../fetcher';
5
+ export interface GetPluginsQueryHeaderParams {
6
+ 'Harness-Account'?: string;
7
+ }
8
+ export type GetPluginsOkResponse = ResponseWithPagination<PluginInfoResponseListResponse>;
9
+ export type GetPluginsErrorResponse = unknown;
10
+ export interface GetPluginsProps extends Omit<FetcherOptions<unknown, unknown, GetPluginsQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getPlugins(props: GetPluginsProps): Promise<GetPluginsOkResponse>;
13
+ /**
14
+ * Get all plugins available
15
+ */
16
+ export declare function useGetPluginsQuery(props: GetPluginsProps, options?: Omit<UseQueryOptions<GetPluginsOkResponse, GetPluginsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPluginsOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from './../../fetcher';
6
+ export function getPlugins(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugins-info`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get all plugins available
11
+ */
12
+ export function useGetPluginsQuery(props, options) {
13
+ return useQuery(['get-plugins'], ({ signal }) => getPlugins(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AppConfigResponseResponse } from '../responses/AppConfigResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from './../../fetcher';
5
+ export interface TogglePluginForAccountMutationPathParams {
6
+ 'plugin-id': string;
7
+ }
8
+ export interface TogglePluginForAccountMutationQueryParams {
9
+ enabled?: boolean;
10
+ }
11
+ export interface TogglePluginForAccountMutationHeaderParams {
12
+ 'Harness-Account'?: string;
13
+ }
14
+ export type TogglePluginForAccountOkResponse = ResponseWithPagination<AppConfigResponseResponse>;
15
+ export type TogglePluginForAccountErrorResponse = unknown;
16
+ export interface TogglePluginForAccountProps extends TogglePluginForAccountMutationPathParams, Omit<FetcherOptions<TogglePluginForAccountMutationQueryParams, unknown, TogglePluginForAccountMutationHeaderParams>, 'url'> {
17
+ queryParams: TogglePluginForAccountMutationQueryParams;
18
+ }
19
+ export declare function togglePluginForAccount(props: TogglePluginForAccountProps): Promise<TogglePluginForAccountOkResponse>;
20
+ /**
21
+ *
22
+ */
23
+ export declare function useTogglePluginForAccountMutation(options?: Omit<UseMutationOptions<TogglePluginForAccountOkResponse, TogglePluginForAccountErrorResponse, TogglePluginForAccountProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TogglePluginForAccountOkResponse, unknown, TogglePluginForAccountProps, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from './../../fetcher';
6
+ export function togglePluginForAccount(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugin-toggle/${props['plugin-id']}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ *
11
+ */
12
+ export function useTogglePluginForAccountMutation(options) {
13
+ return useMutation((mutateProps) => togglePluginForAccount(mutateProps), options);
14
+ }
@@ -11,47 +11,45 @@ export type { GetHarnessEntitiesErrorResponse, GetHarnessEntitiesOkResponse, Get
11
11
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
12
12
  export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLayoutQueryPathParams, } from './hooks/useGetLayoutQuery';
13
13
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
14
+ export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkResponse, GetPluginsInfoPluginIdProps, GetPluginsInfoPluginIdQueryPathParams, } from './hooks/useGetPluginsInfoPluginIdQuery';
15
+ export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
16
+ export type { GetPluginsErrorResponse, GetPluginsOkResponse, GetPluginsProps, } from './hooks/useGetPluginsQuery';
17
+ export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
14
18
  export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, GetStatusInfoByTypeProps, GetStatusInfoByTypeQueryPathParams, } from './hooks/useGetStatusInfoByTypeQuery';
15
19
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
16
20
  export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
17
21
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
22
+ export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutationPathParams, TogglePluginForAccountMutationQueryParams, TogglePluginForAccountOkResponse, TogglePluginForAccountProps, } from './hooks/useTogglePluginForAccountMutation';
23
+ export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
18
24
  export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
19
25
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
20
26
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
21
- export type { EnvironmentSecretRequestListRequestBody } from './requestBodies/EnvironmentSecretRequestListRequestBody';
22
- export type { EnvironmentSecretRequestRequestBody } from './requestBodies/EnvironmentSecretRequestRequestBody';
23
27
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
24
- export type { LayoutRequestRequestBody } from './requestBodies/LayoutRequestRequestBody';
25
- export type { ManualImportEntityRequestRequestBody } from './requestBodies/ManualImportEntityRequestRequestBody';
26
- export type { StatusInfoRequestRequestBody } from './requestBodies/StatusInfoRequestRequestBody';
28
+ export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
27
29
  export type { BackstagePermissionsResponseResponse } from './responses/BackstagePermissionsResponseResponse';
28
- export type { EnvironmentSecretResponseListResponse } from './responses/EnvironmentSecretResponseListResponse';
29
- export type { EnvironmentSecretResponseResponse } from './responses/EnvironmentSecretResponseResponse';
30
30
  export type { HarnessEntitiesResponseResponse } from './responses/HarnessEntitiesResponseResponse';
31
31
  export type { ImportEntitiesResponseResponse } from './responses/ImportEntitiesResponseResponse';
32
32
  export type { LayoutResponseResponse } from './responses/LayoutResponseResponse';
33
- export type { NamespaceResponseResponse } from './responses/NamespaceResponseResponse';
34
- export type { OnboardingAccessCheckResponseResponse } from './responses/OnboardingAccessCheckResponseResponse';
33
+ export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetailedInfoResponseResponse';
34
+ export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
35
35
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
36
+ export type { AppConfig } from './schemas/AppConfig';
37
+ export type { AppConfigResponse } from './schemas/AppConfigResponse';
36
38
  export type { BackstagePermissions } from './schemas/BackstagePermissions';
37
39
  export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
38
40
  export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
39
41
  export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
40
42
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
41
43
  export type { EntitiesForImport } from './schemas/EntitiesForImport';
42
- export type { EnvironmentSecret } from './schemas/EnvironmentSecret';
43
- export type { EnvironmentSecretRequest } from './schemas/EnvironmentSecretRequest';
44
- export type { EnvironmentSecretResponse } from './schemas/EnvironmentSecretResponse';
45
44
  export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
46
45
  export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
47
46
  export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
48
47
  export type { ImportHarnessEntitiesRequest } from './schemas/ImportHarnessEntitiesRequest';
49
48
  export type { LayoutRequest } from './schemas/LayoutRequest';
50
49
  export type { LayoutResponse } from './schemas/LayoutResponse';
51
- export type { ManualImportEntityRequest } from './schemas/ManualImportEntityRequest';
52
- export type { NamepsaceResponse } from './schemas/NamepsaceResponse';
53
- export type { NamespaceInfo } from './schemas/NamespaceInfo';
54
- export type { OnboardingAccessCheckResponse } from './schemas/OnboardingAccessCheckResponse';
50
+ export type { PluginDetailedInfo } from './schemas/PluginDetailedInfo';
51
+ export type { PluginDetailedInfoResponse } from './schemas/PluginDetailedInfoResponse';
52
+ export type { PluginInfo } from './schemas/PluginInfo';
53
+ export type { PluginInfoResponse } from './schemas/PluginInfoResponse';
55
54
  export type { StatusInfo } from './schemas/StatusInfo';
56
- export type { StatusInfoRequest } from './schemas/StatusInfoRequest';
57
55
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
@@ -4,6 +4,9 @@ export { getAllLayouts, useGetAllLayoutsQuery } from './hooks/useGetAllLayoutsQu
4
4
  export { getBackstagePermissions, useGetBackstagePermissionsQuery, } from './hooks/useGetBackstagePermissionsQuery';
5
5
  export { getHarnessEntities, useGetHarnessEntitiesQuery } from './hooks/useGetHarnessEntitiesQuery';
6
6
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
7
+ export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
8
+ export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
7
9
  export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
8
10
  export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
11
+ export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
9
12
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
@@ -0,0 +1,2 @@
1
+ import type { AppConfigResponse } from '../schemas/AppConfigResponse';
2
+ export type AppConfigResponseResponse = AppConfigResponse;
@@ -0,0 +1,2 @@
1
+ import type { PluginDetailedInfoResponse } from '../schemas/PluginDetailedInfoResponse';
2
+ export type PluginDetailedInfoResponseResponse = PluginDetailedInfoResponse;
@@ -0,0 +1,2 @@
1
+ import type { PluginInfoResponse } from '../schemas/PluginInfoResponse';
2
+ export type PluginInfoResponseListResponse = PluginInfoResponse[];
@@ -0,0 +1,17 @@
1
+ export interface AppConfig {
2
+ configId?: string;
3
+ configs?: string;
4
+ /**
5
+ * @format int64
6
+ */
7
+ createdAt?: number;
8
+ enabled?: boolean;
9
+ /**
10
+ * @format int64
11
+ */
12
+ enabledDisabledAt?: number;
13
+ /**
14
+ * @format int64
15
+ */
16
+ lastModifiedAt?: number;
17
+ }
@@ -0,0 +1,4 @@
1
+ import type { AppConfig } from '../schemas/AppConfig';
2
+ export interface AppConfigResponse {
3
+ appConfig?: AppConfig;
4
+ }
@@ -0,0 +1,11 @@
1
+ import type { PluginInfo } from '../schemas/PluginInfo';
2
+ export interface PluginDetailedInfo {
3
+ category?: 'CI/CD' | 'Monitoring' | 'Security';
4
+ config?: string;
5
+ description?: string;
6
+ layout?: {
7
+ [key: string]: any;
8
+ };
9
+ pluginDetails?: PluginInfo;
10
+ source?: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ import type { PluginDetailedInfo } from '../schemas/PluginDetailedInfo';
2
+ export interface PluginDetailedInfoResponse {
3
+ plugin?: PluginDetailedInfo;
4
+ }
@@ -0,0 +1,7 @@
1
+ export interface PluginInfo {
2
+ createdBy?: string;
3
+ enabled?: boolean;
4
+ iconUrl?: string;
5
+ id?: string;
6
+ name?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { PluginInfo } from '../schemas/PluginInfo';
2
+ export interface PluginInfoResponse {
3
+ plugin?: PluginInfo;
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.9.0",
3
+ "version": "0.11.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.4.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",
@@ -1,2 +0,0 @@
1
- import type { EnvironmentSecretRequest } from '../schemas/EnvironmentSecretRequest';
2
- export type EnvironmentSecretRequestListRequestBody = EnvironmentSecretRequest[];
@@ -1,2 +0,0 @@
1
- import type { EnvironmentSecretRequest } from '../schemas/EnvironmentSecretRequest';
2
- export type EnvironmentSecretRequestRequestBody = EnvironmentSecretRequest;
@@ -1,2 +0,0 @@
1
- import type { LayoutRequest } from '../schemas/LayoutRequest';
2
- export type LayoutRequestRequestBody = LayoutRequest;
@@ -1,2 +0,0 @@
1
- import type { ManualImportEntityRequest } from '../schemas/ManualImportEntityRequest';
2
- export type ManualImportEntityRequestRequestBody = ManualImportEntityRequest;
@@ -1,2 +0,0 @@
1
- import type { StatusInfoRequest } from '../schemas/StatusInfoRequest';
2
- export type StatusInfoRequestRequestBody = StatusInfoRequest;
@@ -1,2 +0,0 @@
1
- import type { EnvironmentSecretResponse } from '../schemas/EnvironmentSecretResponse';
2
- export type EnvironmentSecretResponseListResponse = EnvironmentSecretResponse[];
@@ -1,2 +0,0 @@
1
- import type { EnvironmentSecretResponse } from '../schemas/EnvironmentSecretResponse';
2
- export type EnvironmentSecretResponseResponse = EnvironmentSecretResponse;
@@ -1,2 +0,0 @@
1
- import type { NamepsaceResponse } from '../schemas/NamepsaceResponse';
2
- export type NamespaceResponseResponse = NamepsaceResponse;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import type { OnboardingAccessCheckResponse } from '../schemas/OnboardingAccessCheckResponse';
2
- export type OnboardingAccessCheckResponseResponse = OnboardingAccessCheckResponse;
@@ -1,14 +0,0 @@
1
- export interface EnvironmentSecret {
2
- /**
3
- * @format int64
4
- */
5
- created?: number;
6
- decrypted_value?: string;
7
- env_name?: string;
8
- identifier?: string;
9
- secret_identifier?: string;
10
- /**
11
- * @format int64
12
- */
13
- updated?: number;
14
- }
@@ -1,4 +0,0 @@
1
- import type { EnvironmentSecret } from '../schemas/EnvironmentSecret';
2
- export interface EnvironmentSecretRequest {
3
- secret?: EnvironmentSecret;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- import type { EnvironmentSecret } from '../schemas/EnvironmentSecret';
2
- export interface EnvironmentSecretResponse {
3
- secret?: EnvironmentSecret;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Details of entity to import manually to IDP
3
- */
4
- export interface ManualImportEntityRequest {
5
- entityName: string;
6
- /**
7
- * yaml in form on json
8
- */
9
- yaml: string;
10
- }
@@ -1,5 +0,0 @@
1
- import type { NamespaceInfo } from '../schemas/NamespaceInfo';
2
- /**
3
- * Namespace response body
4
- */
5
- export type NamepsaceResponse = NamespaceInfo;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Namespace response body content
3
- */
4
- export interface NamespaceInfo {
5
- accountIdentifier?: string;
6
- namespace?: string;
7
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Response to check whether user is allowed to perform IDP onboarding or not
3
- */
4
- export interface OnboardingAccessCheckResponse {
5
- access: string;
6
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,4 +0,0 @@
1
- import type { StatusInfo } from '../schemas/StatusInfo';
2
- export interface StatusInfoRequest {
3
- status?: StatusInfo;
4
- }
@@ -1 +0,0 @@
1
- export {};