@harnessio/react-idp-service-client 0.45.2 → 0.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.
Files changed (38) hide show
  1. package/dist/idp-service/src/services/hooks/useGetPluginsInfoPluginIdQuery.d.ts +5 -1
  2. package/dist/idp-service/src/services/hooks/useGetPluginsInfoPluginIdQuery.js +1 -1
  3. package/dist/idp-service/src/services/hooks/useSaveCustomPluginsInfoMutation.d.ts +19 -0
  4. package/dist/idp-service/src/services/hooks/useSaveCustomPluginsInfoMutation.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useUpdateCustomPluginsInfoMutation.d.ts +22 -0
  6. package/dist/idp-service/src/services/hooks/useUpdateCustomPluginsInfoMutation.js +14 -0
  7. package/dist/idp-service/src/services/index.d.ts +14 -1
  8. package/dist/idp-service/src/services/index.js +2 -0
  9. package/dist/idp-service/src/services/requestBodies/CustomPluginCreateRequestRequestBody.d.ts +3 -0
  10. package/dist/idp-service/src/services/requestBodies/CustomPluginCreateRequestRequestBody.js +4 -0
  11. package/dist/idp-service/src/services/requestBodies/CustomPluginInfoRequestRequestBody.d.ts +2 -0
  12. package/dist/idp-service/src/services/requestBodies/CustomPluginInfoRequestRequestBody.js +1 -0
  13. package/dist/idp-service/src/services/responses/CustomPluginInfoResponseResponse.d.ts +2 -0
  14. package/dist/idp-service/src/services/responses/CustomPluginInfoResponseResponse.js +1 -0
  15. package/dist/idp-service/src/services/schemas/Artifact.d.ts +7 -0
  16. package/dist/idp-service/src/services/schemas/Artifact.js +4 -0
  17. package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +4 -0
  18. package/dist/idp-service/src/services/schemas/CheckStats.d.ts +1 -0
  19. package/dist/idp-service/src/services/schemas/CheckStatsResponse.d.ts +4 -0
  20. package/dist/idp-service/src/services/schemas/CustomPluginDetailedInfo.d.ts +5 -0
  21. package/dist/idp-service/src/services/schemas/CustomPluginDetailedInfo.js +1 -0
  22. package/dist/idp-service/src/services/schemas/CustomPluginInfoRequest.d.ts +4 -0
  23. package/dist/idp-service/src/services/schemas/CustomPluginInfoRequest.js +1 -0
  24. package/dist/idp-service/src/services/schemas/CustomPluginInfoResponse.d.ts +4 -0
  25. package/dist/idp-service/src/services/schemas/CustomPluginInfoResponse.js +1 -0
  26. package/dist/idp-service/src/services/schemas/DataPoint.d.ts +0 -2
  27. package/dist/idp-service/src/services/schemas/PluginDetails.d.ts +2 -2
  28. package/dist/idp-service/src/services/schemas/PluginInfo.d.ts +12 -10
  29. package/dist/idp-service/src/services/schemas/Rule.d.ts +0 -1
  30. package/dist/idp-service/src/services/schemas/ScorecardDetails.d.ts +5 -0
  31. package/dist/idp-service/src/services/schemas/ScorecardRecalibrateInfo.d.ts +8 -0
  32. package/dist/idp-service/src/services/schemas/ScorecardRecalibrateInfo.js +1 -0
  33. package/dist/idp-service/src/services/schemas/ScorecardStats.d.ts +1 -0
  34. package/dist/idp-service/src/services/schemas/ScorecardStatsResponse.d.ts +4 -0
  35. package/dist/idp-service/src/services/schemas/ScorecardSummaryInfo.d.ts +2 -0
  36. package/dist/idp-service/src/services/schemas/User.d.ts +8 -0
  37. package/dist/idp-service/src/services/schemas/User.js +4 -0
  38. package/package.json +1 -1
@@ -5,12 +5,16 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetPluginsInfoPluginIdQueryPathParams {
6
6
  'plugin-id': string;
7
7
  }
8
+ export interface GetPluginsInfoPluginIdQueryQueryParams {
9
+ meta?: boolean;
10
+ }
8
11
  export interface GetPluginsInfoPluginIdQueryHeaderParams {
9
12
  'Harness-Account'?: string;
10
13
  }
11
14
  export type GetPluginsInfoPluginIdOkResponse = ResponseWithPagination<PluginDetailedInfoResponseResponse>;
12
15
  export type GetPluginsInfoPluginIdErrorResponse = unknown;
13
- export interface GetPluginsInfoPluginIdProps extends GetPluginsInfoPluginIdQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetPluginsInfoPluginIdQueryHeaderParams>, 'url'> {
16
+ export interface GetPluginsInfoPluginIdProps extends GetPluginsInfoPluginIdQueryPathParams, Omit<FetcherOptions<GetPluginsInfoPluginIdQueryQueryParams, unknown, GetPluginsInfoPluginIdQueryHeaderParams>, 'url'> {
17
+ queryParams: GetPluginsInfoPluginIdQueryQueryParams;
14
18
  }
15
19
  export declare function getPluginsInfoPluginId(props: GetPluginsInfoPluginIdProps): Promise<GetPluginsInfoPluginIdOkResponse>;
16
20
  /**
@@ -10,5 +10,5 @@ export function getPluginsInfoPluginId(props) {
10
10
  * Get plugin details for given pluginId
11
11
  */
12
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);
13
+ return useQuery(['get-plugins-info-plugin-id', props['plugin-id'], props.queryParams], ({ signal }) => getPluginsInfoPluginId(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -0,0 +1,19 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginInfoResponseResponse } from '../responses/CustomPluginInfoResponseResponse';
3
+ import type { CustomPluginCreateRequestRequestBody } from '../requestBodies/CustomPluginCreateRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface SaveCustomPluginsInfoMutationHeaderParams {
7
+ 'Harness-Account'?: string;
8
+ }
9
+ export type SaveCustomPluginsInfoRequestBody = CustomPluginCreateRequestRequestBody;
10
+ export type SaveCustomPluginsInfoOkResponse = ResponseWithPagination<CustomPluginInfoResponseResponse>;
11
+ export type SaveCustomPluginsInfoErrorResponse = unknown;
12
+ export interface SaveCustomPluginsInfoProps extends Omit<FetcherOptions<unknown, SaveCustomPluginsInfoRequestBody, SaveCustomPluginsInfoMutationHeaderParams>, 'url'> {
13
+ body: SaveCustomPluginsInfoRequestBody;
14
+ }
15
+ export declare function saveCustomPluginsInfo(props: SaveCustomPluginsInfoProps): Promise<SaveCustomPluginsInfoOkResponse>;
16
+ /**
17
+ * Save custom plugin info
18
+ */
19
+ export declare function useSaveCustomPluginsInfoMutation(options?: Omit<UseMutationOptions<SaveCustomPluginsInfoOkResponse, SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveCustomPluginsInfoOkResponse, unknown, SaveCustomPluginsInfoProps, 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/index.js';
6
+ export function saveCustomPluginsInfo(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugins-info`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Save custom plugin info
11
+ */
12
+ export function useSaveCustomPluginsInfoMutation(options) {
13
+ return useMutation((mutateProps) => saveCustomPluginsInfo(mutateProps), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginInfoResponseResponse } from '../responses/CustomPluginInfoResponseResponse';
3
+ import type { CustomPluginInfoRequestRequestBody } from '../requestBodies/CustomPluginInfoRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateCustomPluginsInfoMutationPathParams {
7
+ 'plugin-id': string;
8
+ }
9
+ export interface UpdateCustomPluginsInfoMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UpdateCustomPluginsInfoRequestBody = CustomPluginInfoRequestRequestBody;
13
+ export type UpdateCustomPluginsInfoOkResponse = ResponseWithPagination<CustomPluginInfoResponseResponse>;
14
+ export type UpdateCustomPluginsInfoErrorResponse = unknown;
15
+ export interface UpdateCustomPluginsInfoProps extends UpdateCustomPluginsInfoMutationPathParams, Omit<FetcherOptions<unknown, UpdateCustomPluginsInfoRequestBody, UpdateCustomPluginsInfoMutationHeaderParams>, 'url'> {
16
+ body: UpdateCustomPluginsInfoRequestBody;
17
+ }
18
+ export declare function updateCustomPluginsInfo(props: UpdateCustomPluginsInfoProps): Promise<UpdateCustomPluginsInfoOkResponse>;
19
+ /**
20
+ * Update custom plugin info
21
+ */
22
+ export declare function useUpdateCustomPluginsInfoMutation(options?: Omit<UseMutationOptions<UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateCustomPluginsInfoOkResponse, unknown, UpdateCustomPluginsInfoProps, 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/index.js';
6
+ export function updateCustomPluginsInfo(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugins-info/${props['plugin-id']}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update custom plugin info
11
+ */
12
+ export function useUpdateCustomPluginsInfoMutation(options) {
13
+ return useMutation((mutateProps) => updateCustomPluginsInfo(mutateProps), options);
14
+ }
@@ -47,7 +47,7 @@ export type { GetLayoutErrorResponse, GetLayoutOkResponse, GetLayoutProps, GetLa
47
47
  export { getLayout, useGetLayoutQuery } from './hooks/useGetLayoutQuery';
48
48
  export type { GetMergedPluginsConfigErrorResponse, GetMergedPluginsConfigOkResponse, GetMergedPluginsConfigProps, } from './hooks/useGetMergedPluginsConfigQuery';
49
49
  export { getMergedPluginsConfig, useGetMergedPluginsConfigQuery, } from './hooks/useGetMergedPluginsConfigQuery';
50
- export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkResponse, GetPluginsInfoPluginIdProps, GetPluginsInfoPluginIdQueryPathParams, } from './hooks/useGetPluginsInfoPluginIdQuery';
50
+ export type { GetPluginsInfoPluginIdErrorResponse, GetPluginsInfoPluginIdOkResponse, GetPluginsInfoPluginIdProps, GetPluginsInfoPluginIdQueryPathParams, GetPluginsInfoPluginIdQueryQueryParams, } from './hooks/useGetPluginsInfoPluginIdQuery';
51
51
  export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks/useGetPluginsInfoPluginIdQuery';
52
52
  export type { GetPluginsErrorResponse, GetPluginsOkResponse, GetPluginsProps, } from './hooks/useGetPluginsQuery';
53
53
  export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
@@ -75,6 +75,8 @@ export type { SaveAuthInfoAuthIdErrorResponse, SaveAuthInfoAuthIdMutationPathPar
75
75
  export { saveAuthInfoAuthId, useSaveAuthInfoAuthIdMutation, } from './hooks/useSaveAuthInfoAuthIdMutation';
76
76
  export type { SaveConnectorInfoErrorResponse, SaveConnectorInfoOkResponse, SaveConnectorInfoProps, SaveConnectorInfoRequestBody, } from './hooks/useSaveConnectorInfoMutation';
77
77
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
78
+ export type { SaveCustomPluginsInfoErrorResponse, SaveCustomPluginsInfoOkResponse, SaveCustomPluginsInfoProps, SaveCustomPluginsInfoRequestBody, } from './hooks/useSaveCustomPluginsInfoMutation';
79
+ export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
78
80
  export type { SaveOrUpdatePluginAppConfigErrorResponse, SaveOrUpdatePluginAppConfigOkResponse, SaveOrUpdatePluginAppConfigProps, SaveOrUpdatePluginAppConfigRequestBody, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
79
81
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
80
82
  export type { ScorecardRecalibrateErrorResponse, ScorecardRecalibrateOkResponse, ScorecardRecalibrateProps, ScorecardRecalibrateRequestBody, } from './hooks/useScorecardRecalibrateMutation';
@@ -87,6 +89,8 @@ export type { UpdateCheckErrorResponse, UpdateCheckMutationPathParams, UpdateChe
87
89
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
88
90
  export type { UpdateConfigurationEntitiesErrorResponse, UpdateConfigurationEntitiesOkResponse, UpdateConfigurationEntitiesProps, UpdateConfigurationEntitiesRequestBody, } from './hooks/useUpdateConfigurationEntitiesMutation';
89
91
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
92
+ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutationPathParams, UpdateCustomPluginsInfoOkResponse, UpdateCustomPluginsInfoProps, UpdateCustomPluginsInfoRequestBody, } from './hooks/useUpdateCustomPluginsInfoMutation';
93
+ export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
90
94
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
91
95
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
92
96
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
@@ -94,6 +98,8 @@ export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodie
94
98
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
95
99
  export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/ConfigurationEntitiesRequestRequestBody';
96
100
  export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
101
+ export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
102
+ export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
97
103
  export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
98
104
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
99
105
  export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPluginRequestRequestBody';
@@ -109,6 +115,7 @@ export type { CheckResponseListResponse } from './responses/CheckResponseListRes
109
115
  export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseResponse';
110
116
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
111
117
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
118
+ export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
112
119
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
113
120
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
114
121
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
@@ -133,6 +140,7 @@ export type { AllowListResponse } from './schemas/AllowListResponse';
133
140
  export type { AppConfig } from './schemas/AppConfig';
134
141
  export type { AppConfigRequest } from './schemas/AppConfigRequest';
135
142
  export type { AppConfigResponse } from './schemas/AppConfigResponse';
143
+ export type { Artifact } from './schemas/Artifact';
136
144
  export type { AuthInfo } from './schemas/AuthInfo';
137
145
  export type { AuthInfoResponse } from './schemas/AuthInfoResponse';
138
146
  export type { BackstageEnvSecretVariable } from './schemas/BackstageEnvSecretVariable';
@@ -157,6 +165,9 @@ export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
157
165
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
158
166
  export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
159
167
  export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
168
+ export type { CustomPluginDetailedInfo } from './schemas/CustomPluginDetailedInfo';
169
+ export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest';
170
+ export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
160
171
  export type { DataPoint } from './schemas/DataPoint';
161
172
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
162
173
  export type { DataSource } from './schemas/DataSource';
@@ -199,6 +210,7 @@ export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest'
199
210
  export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
200
211
  export type { ScorecardFilter } from './schemas/ScorecardFilter';
201
212
  export type { ScorecardRecalibrateIdentifiers } from './schemas/ScorecardRecalibrateIdentifiers';
213
+ export type { ScorecardRecalibrateInfo } from './schemas/ScorecardRecalibrateInfo';
202
214
  export type { ScorecardRecalibrateRequest } from './schemas/ScorecardRecalibrateRequest';
203
215
  export type { ScorecardRecalibrateResponse } from './schemas/ScorecardRecalibrateResponse';
204
216
  export type { ScorecardResponse } from './schemas/ScorecardResponse';
@@ -208,3 +220,4 @@ export type { ScorecardSummaryInfo } from './schemas/ScorecardSummaryInfo';
208
220
  export type { StatusInfo } from './schemas/StatusInfo';
209
221
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
210
222
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
223
+ export type { User } from './schemas/User';
@@ -36,10 +36,12 @@ export { postPluginRequest, usePostPluginRequestMutation, } from './hooks/usePos
36
36
  export { saveAllowList, useSaveAllowListMutation } from './hooks/useSaveAllowListMutation';
37
37
  export { saveAuthInfoAuthId, useSaveAuthInfoAuthIdMutation, } from './hooks/useSaveAuthInfoAuthIdMutation';
38
38
  export { saveConnectorInfo, useSaveConnectorInfoMutation, } from './hooks/useSaveConnectorInfoMutation';
39
+ export { saveCustomPluginsInfo, useSaveCustomPluginsInfoMutation, } from './hooks/useSaveCustomPluginsInfoMutation';
39
40
  export { saveOrUpdatePluginAppConfig, useSaveOrUpdatePluginAppConfigMutation, } from './hooks/useSaveOrUpdatePluginAppConfigMutation';
40
41
  export { scorecardRecalibrate, useScorecardRecalibrateMutation, } from './hooks/useScorecardRecalibrateMutation';
41
42
  export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
42
43
  export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
43
44
  export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutation';
44
45
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
46
+ export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
45
47
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
@@ -0,0 +1,3 @@
1
+ export interface CustomPluginCreateRequestRequestBody {
2
+ [key: string]: any;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginInfoRequest } from '../schemas/CustomPluginInfoRequest';
2
+ export type CustomPluginInfoRequestRequestBody = CustomPluginInfoRequest;
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginInfoResponse } from '../schemas/CustomPluginInfoResponse';
2
+ export type CustomPluginInfoResponseResponse = CustomPluginInfoResponse;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Artifact details for custom plugin
3
+ */
4
+ export interface Artifact {
5
+ type: 'NPM' | 'ZIP';
6
+ url: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -4,6 +4,10 @@ export interface CheckDetails extends Check {
4
4
  default_behaviour: 'FAIL' | 'PASS';
5
5
  fail_message?: string;
6
6
  harness_managed?: boolean;
7
+ /**
8
+ * @format double
9
+ */
10
+ percentage?: number;
7
11
  rule_strategy: 'ALL_OF' | 'ANY_OF';
8
12
  rules: Rule[];
9
13
  }
@@ -4,6 +4,7 @@
4
4
  export interface CheckStats {
5
5
  kind: string;
6
6
  name: string;
7
+ namespace: string;
7
8
  owner: string;
8
9
  status: string;
9
10
  system: string;
@@ -5,4 +5,8 @@ import type { CheckStats } from '../schemas/CheckStats';
5
5
  export interface CheckStatsResponse {
6
6
  name: string;
7
7
  stats: CheckStats[];
8
+ /**
9
+ * @format int64
10
+ */
11
+ timestamp?: number;
8
12
  }
@@ -0,0 +1,5 @@
1
+ import type { Artifact } from '../schemas/Artifact';
2
+ import type { PluginDetailedInfo } from '../schemas/PluginDetailedInfo';
3
+ export interface CustomPluginDetailedInfo extends PluginDetailedInfo {
4
+ artifact?: Artifact;
5
+ }
@@ -0,0 +1,4 @@
1
+ import type { CustomPluginDetailedInfo } from '../schemas/CustomPluginDetailedInfo';
2
+ export interface CustomPluginInfoRequest {
3
+ info?: CustomPluginDetailedInfo;
4
+ }
@@ -0,0 +1,4 @@
1
+ import type { CustomPluginDetailedInfo } from '../schemas/CustomPluginDetailedInfo';
2
+ export interface CustomPluginInfoResponse {
3
+ info?: CustomPluginDetailedInfo;
4
+ }
@@ -3,12 +3,10 @@ import type { InputDetails } from '../schemas/InputDetails';
3
3
  * Conatins detail for single data point
4
4
  */
5
5
  export interface DataPoint {
6
- conditional_input_description: string;
7
6
  data_point_identifier: string;
8
7
  description: string;
9
8
  detailed_description: string;
10
9
  input_details?: InputDetails[];
11
- is_conditional: boolean;
12
10
  name: string;
13
11
  type: string;
14
12
  }
@@ -1,7 +1,7 @@
1
1
  import type { Exports } from '../schemas/Exports';
2
2
  import type { PluginInfo } from '../schemas/PluginInfo';
3
3
  export interface PluginDetails {
4
- config: string;
5
- exports: Exports;
4
+ config?: string;
5
+ exports?: Exports;
6
6
  plugin_details: PluginInfo;
7
7
  }
@@ -1,13 +1,15 @@
1
1
  export interface PluginInfo {
2
- category: string;
3
- core: boolean;
4
- created_by: string;
5
- description: string;
2
+ category?: string;
3
+ core?: boolean;
4
+ created_by?: string;
5
+ description?: string;
6
6
  documentation?: string;
7
- enabled: boolean;
8
- icon_url: string;
9
- id: string;
10
- image_url: string;
11
- name: string;
12
- source: string;
7
+ enabled?: boolean;
8
+ icon_url?: string;
9
+ id?: string;
10
+ image_url?: string;
11
+ images?: string[];
12
+ name?: string;
13
+ plugin_type?: 'CUSTOM' | 'DEFAULT';
14
+ source?: string;
13
15
  }
@@ -1,6 +1,5 @@
1
1
  import type { InputValue } from '../schemas/InputValue';
2
2
  export interface Rule {
3
- conditional_input_value?: string;
4
3
  data_point_identifier: string;
5
4
  data_source_identifier: string;
6
5
  identifier?: string;
@@ -1,10 +1,15 @@
1
1
  import type { ScorecardFilter } from '../schemas/ScorecardFilter';
2
2
  export interface ScorecardDetails {
3
3
  checks_missing?: string[];
4
+ components?: number;
4
5
  description?: string;
5
6
  filter: ScorecardFilter;
6
7
  identifier: string;
7
8
  name: string;
9
+ /**
10
+ * @format double
11
+ */
12
+ percentage?: number;
8
13
  published: boolean;
9
14
  /**
10
15
  * @default "EQUAL_WEIGHTS"
@@ -0,0 +1,8 @@
1
+ import type { User } from '../schemas/User';
2
+ export interface ScorecardRecalibrateInfo {
3
+ /**
4
+ * @format int64
5
+ */
6
+ start_time?: number;
7
+ started_by?: User;
8
+ }
@@ -4,6 +4,7 @@
4
4
  export interface ScorecardStats {
5
5
  kind: string;
6
6
  name: string;
7
+ namespace: string;
7
8
  owner: string;
8
9
  score: number;
9
10
  system: string;
@@ -5,4 +5,8 @@ import type { ScorecardStats } from '../schemas/ScorecardStats';
5
5
  export interface ScorecardStatsResponse {
6
6
  name: string;
7
7
  stats: ScorecardStats[];
8
+ /**
9
+ * @format int64
10
+ */
11
+ timestamp?: number;
8
12
  }
@@ -1,10 +1,12 @@
1
1
  import type { CheckStatus } from '../schemas/CheckStatus';
2
+ import type { ScorecardRecalibrateInfo } from '../schemas/ScorecardRecalibrateInfo';
2
3
  /**
3
4
  * Scorecard score calculation summary info
4
5
  */
5
6
  export interface ScorecardSummaryInfo {
6
7
  checks_statuses: CheckStatus[];
7
8
  description: string;
9
+ recalibrate_info?: ScorecardRecalibrateInfo;
8
10
  score: number;
9
11
  scorecard_identifier: string;
10
12
  scorecard_name: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ */
4
+ export interface User {
5
+ email?: string;
6
+ name?: string;
7
+ uuid?: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.45.2",
3
+ "version": "0.47.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",