@harnessio/react-idp-service-client 0.45.1 → 0.46.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 (43) 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/hooks/useUploadCustomPluginFileMutation.d.ts +22 -0
  8. package/dist/idp-service/src/services/hooks/useUploadCustomPluginFileMutation.js +14 -0
  9. package/dist/idp-service/src/services/index.d.ts +17 -1
  10. package/dist/idp-service/src/services/index.js +3 -0
  11. package/dist/idp-service/src/services/requestBodies/CustomPluginCreateRequestRequestBody.d.ts +3 -0
  12. package/dist/idp-service/src/services/requestBodies/CustomPluginCreateRequestRequestBody.js +4 -0
  13. package/dist/idp-service/src/services/requestBodies/CustomPluginInfoRequestRequestBody.d.ts +2 -0
  14. package/dist/idp-service/src/services/requestBodies/CustomPluginInfoRequestRequestBody.js +1 -0
  15. package/dist/idp-service/src/services/requestBodies/FileUploadRequestRequestBody.d.ts +1 -0
  16. package/dist/idp-service/src/services/requestBodies/FileUploadRequestRequestBody.js +1 -0
  17. package/dist/idp-service/src/services/responses/CheckStatsResponseResponse.d.ts +1 -1
  18. package/dist/idp-service/src/services/responses/CustomPluginInfoResponseResponse.d.ts +2 -0
  19. package/dist/idp-service/src/services/responses/CustomPluginInfoResponseResponse.js +1 -0
  20. package/dist/idp-service/src/services/responses/ScorecardStatsResponseResponse.d.ts +1 -1
  21. package/dist/idp-service/src/services/schemas/Artifact.d.ts +7 -0
  22. package/dist/idp-service/src/services/schemas/Artifact.js +4 -0
  23. package/dist/idp-service/src/services/schemas/CheckDetails.d.ts +4 -0
  24. package/dist/idp-service/src/services/schemas/CheckStats.d.ts +1 -0
  25. package/dist/idp-service/src/services/schemas/CheckStatsResponse.d.ts +4 -0
  26. package/dist/idp-service/src/services/schemas/CustomPluginDetailedInfo.d.ts +5 -0
  27. package/dist/idp-service/src/services/schemas/CustomPluginDetailedInfo.js +1 -0
  28. package/dist/idp-service/src/services/schemas/CustomPluginInfoRequest.d.ts +4 -0
  29. package/dist/idp-service/src/services/schemas/CustomPluginInfoRequest.js +1 -0
  30. package/dist/idp-service/src/services/schemas/CustomPluginInfoResponse.d.ts +4 -0
  31. package/dist/idp-service/src/services/schemas/CustomPluginInfoResponse.js +1 -0
  32. package/dist/idp-service/src/services/schemas/DataPoint.d.ts +0 -2
  33. package/dist/idp-service/src/services/schemas/PluginInfo.d.ts +12 -10
  34. package/dist/idp-service/src/services/schemas/Rule.d.ts +0 -1
  35. package/dist/idp-service/src/services/schemas/ScorecardDetails.d.ts +5 -0
  36. package/dist/idp-service/src/services/schemas/ScorecardRecalibrateInfo.d.ts +8 -0
  37. package/dist/idp-service/src/services/schemas/ScorecardRecalibrateInfo.js +1 -0
  38. package/dist/idp-service/src/services/schemas/ScorecardStats.d.ts +1 -0
  39. package/dist/idp-service/src/services/schemas/ScorecardStatsResponse.d.ts +4 -0
  40. package/dist/idp-service/src/services/schemas/ScorecardSummaryInfo.d.ts +2 -0
  41. package/dist/idp-service/src/services/schemas/User.d.ts +8 -0
  42. package/dist/idp-service/src/services/schemas/User.js +4 -0
  43. 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
+ }
@@ -0,0 +1,22 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginInfoResponseResponse } from '../responses/CustomPluginInfoResponseResponse';
3
+ import type { FileUploadRequestRequestBody } from '../requestBodies/FileUploadRequestRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UploadCustomPluginFileMutationPathParams {
7
+ 'plugin-id': string;
8
+ }
9
+ export interface UploadCustomPluginFileMutationHeaderParams {
10
+ 'Harness-Account'?: string;
11
+ }
12
+ export type UploadCustomPluginFileRequestBody = FileUploadRequestRequestBody;
13
+ export type UploadCustomPluginFileOkResponse = ResponseWithPagination<CustomPluginInfoResponseResponse>;
14
+ export type UploadCustomPluginFileErrorResponse = unknown;
15
+ export interface UploadCustomPluginFileProps extends UploadCustomPluginFileMutationPathParams, Omit<FetcherOptions<unknown, UploadCustomPluginFileRequestBody, UploadCustomPluginFileMutationHeaderParams>, 'url'> {
16
+ body: UploadCustomPluginFileRequestBody;
17
+ }
18
+ export declare function uploadCustomPluginFile(props: UploadCustomPluginFileProps): Promise<UploadCustomPluginFileOkResponse>;
19
+ /**
20
+ * Upload Custom Plugin File
21
+ */
22
+ export declare function useUploadCustomPluginFileMutation(options?: Omit<UseMutationOptions<UploadCustomPluginFileOkResponse, UploadCustomPluginFileErrorResponse, UploadCustomPluginFileProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UploadCustomPluginFileOkResponse, unknown, UploadCustomPluginFileProps, 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 uploadCustomPluginFile(props) {
7
+ return fetcher(Object.assign({ url: `/v1/plugins-info/${props['plugin-id']}/upload`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Upload Custom Plugin File
11
+ */
12
+ export function useUploadCustomPluginFileMutation(options) {
13
+ return useMutation((mutateProps) => uploadCustomPluginFile(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,13 +89,20 @@ 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';
96
+ export type { UploadCustomPluginFileErrorResponse, UploadCustomPluginFileMutationPathParams, UploadCustomPluginFileOkResponse, UploadCustomPluginFileProps, UploadCustomPluginFileRequestBody, } from './hooks/useUploadCustomPluginFileMutation';
97
+ export { uploadCustomPluginFile, useUploadCustomPluginFileMutation, } from './hooks/useUploadCustomPluginFileMutation';
92
98
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
93
99
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
94
100
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
95
101
  export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/ConfigurationEntitiesRequestRequestBody';
96
102
  export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
103
+ export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
104
+ export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
105
+ export type { FileUploadRequestRequestBody } from './requestBodies/FileUploadRequestRequestBody';
97
106
  export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
98
107
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
99
108
  export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPluginRequestRequestBody';
@@ -109,6 +118,7 @@ export type { CheckResponseListResponse } from './responses/CheckResponseListRes
109
118
  export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseResponse';
110
119
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
111
120
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
121
+ export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
112
122
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
113
123
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
114
124
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
@@ -133,6 +143,7 @@ export type { AllowListResponse } from './schemas/AllowListResponse';
133
143
  export type { AppConfig } from './schemas/AppConfig';
134
144
  export type { AppConfigRequest } from './schemas/AppConfigRequest';
135
145
  export type { AppConfigResponse } from './schemas/AppConfigResponse';
146
+ export type { Artifact } from './schemas/Artifact';
136
147
  export type { AuthInfo } from './schemas/AuthInfo';
137
148
  export type { AuthInfoResponse } from './schemas/AuthInfoResponse';
138
149
  export type { BackstageEnvSecretVariable } from './schemas/BackstageEnvSecretVariable';
@@ -157,6 +168,9 @@ export type { ConfigurationEntities } from './schemas/ConfigurationEntities';
157
168
  export type { ConnectorDetails } from './schemas/ConnectorDetails';
158
169
  export type { ConnectorInfoRequest } from './schemas/ConnectorInfoRequest';
159
170
  export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
171
+ export type { CustomPluginDetailedInfo } from './schemas/CustomPluginDetailedInfo';
172
+ export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest';
173
+ export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
160
174
  export type { DataPoint } from './schemas/DataPoint';
161
175
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
162
176
  export type { DataSource } from './schemas/DataSource';
@@ -199,6 +213,7 @@ export type { ScorecardDetailsRequest } from './schemas/ScorecardDetailsRequest'
199
213
  export type { ScorecardDetailsResponse } from './schemas/ScorecardDetailsResponse';
200
214
  export type { ScorecardFilter } from './schemas/ScorecardFilter';
201
215
  export type { ScorecardRecalibrateIdentifiers } from './schemas/ScorecardRecalibrateIdentifiers';
216
+ export type { ScorecardRecalibrateInfo } from './schemas/ScorecardRecalibrateInfo';
202
217
  export type { ScorecardRecalibrateRequest } from './schemas/ScorecardRecalibrateRequest';
203
218
  export type { ScorecardRecalibrateResponse } from './schemas/ScorecardRecalibrateResponse';
204
219
  export type { ScorecardResponse } from './schemas/ScorecardResponse';
@@ -208,3 +223,4 @@ export type { ScorecardSummaryInfo } from './schemas/ScorecardSummaryInfo';
208
223
  export type { StatusInfo } from './schemas/StatusInfo';
209
224
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
210
225
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
226
+ export type { User } from './schemas/User';
@@ -36,10 +36,13 @@ 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';
48
+ export { uploadCustomPluginFile, useUploadCustomPluginFileMutation, } from './hooks/useUploadCustomPluginFileMutation';
@@ -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 @@
1
+ export type FileUploadRequestRequestBody = unknown;
@@ -1,2 +1,2 @@
1
1
  import type { CheckStatsResponse } from '../schemas/CheckStatsResponse';
2
- export type CheckStatsResponseResponse = CheckStatsResponse[];
2
+ export type CheckStatsResponseResponse = CheckStatsResponse;
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginInfoResponse } from '../schemas/CustomPluginInfoResponse';
2
+ export type CustomPluginInfoResponseResponse = CustomPluginInfoResponse;
@@ -1,2 +1,2 @@
1
1
  import type { ScorecardStatsResponse } from '../schemas/ScorecardStatsResponse';
2
- export type ScorecardStatsResponseResponse = ScorecardStatsResponse[];
2
+ export type ScorecardStatsResponseResponse = ScorecardStatsResponse;
@@ -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,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.1",
3
+ "version": "0.46.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",