@harnessio/react-idp-service-client 0.49.10 → 0.50.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.
Files changed (19) hide show
  1. package/dist/idp-service/src/services/hooks/useCustomPluginsTriggerMutation.d.ts +18 -0
  2. package/dist/idp-service/src/services/hooks/useCustomPluginsTriggerMutation.js +14 -0
  3. package/dist/idp-service/src/services/hooks/useDeleteLayoutMutation.d.ts +15 -0
  4. package/dist/idp-service/src/services/hooks/useDeleteLayoutMutation.js +14 -0
  5. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusLogsQuery.d.ts +24 -0
  6. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusLogsQuery.js +14 -0
  7. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusPluginIdQuery.d.ts +19 -0
  8. package/dist/idp-service/src/services/hooks/useGetCustomPluginStatusPluginIdQuery.js +14 -0
  9. package/dist/idp-service/src/services/index.d.ts +12 -0
  10. package/dist/idp-service/src/services/index.js +4 -0
  11. package/dist/idp-service/src/services/responses/CustomPluginLogsResponseResponse.d.ts +2 -0
  12. package/dist/idp-service/src/services/responses/CustomPluginLogsResponseResponse.js +1 -0
  13. package/dist/idp-service/src/services/responses/CustomPluginStatusResponseResponse.d.ts +2 -0
  14. package/dist/idp-service/src/services/responses/CustomPluginStatusResponseResponse.js +1 -0
  15. package/dist/idp-service/src/services/schemas/CustomPluginLogsResponse.d.ts +3 -0
  16. package/dist/idp-service/src/services/schemas/CustomPluginLogsResponse.js +4 -0
  17. package/dist/idp-service/src/services/schemas/CustomPluginStatusResponse.d.ts +12 -0
  18. package/dist/idp-service/src/services/schemas/CustomPluginStatusResponse.js +4 -0
  19. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface CustomPluginsTriggerMutationPathParams {
5
+ 'plugin-id': string;
6
+ }
7
+ export interface CustomPluginsTriggerMutationHeaderParams {
8
+ 'Harness-Account'?: string;
9
+ }
10
+ export type CustomPluginsTriggerOkResponse = ResponseWithPagination<unknown>;
11
+ export type CustomPluginsTriggerErrorResponse = unknown;
12
+ export interface CustomPluginsTriggerProps extends CustomPluginsTriggerMutationPathParams, Omit<FetcherOptions<unknown, unknown, CustomPluginsTriggerMutationHeaderParams>, 'url'> {
13
+ }
14
+ export declare function customPluginsTrigger(props: CustomPluginsTriggerProps): Promise<CustomPluginsTriggerOkResponse>;
15
+ /**
16
+ * Trigger custom plugins build pipeline webhook
17
+ */
18
+ export declare function useCustomPluginsTriggerMutation(options?: Omit<UseMutationOptions<CustomPluginsTriggerOkResponse, CustomPluginsTriggerErrorResponse, CustomPluginsTriggerProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CustomPluginsTriggerOkResponse, unknown, CustomPluginsTriggerProps, 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 customPluginsTrigger(props) {
7
+ return fetcher(Object.assign({ url: `/v1/custom-plugins/${props['plugin-id']}/trigger`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Trigger custom plugins build pipeline webhook
11
+ */
12
+ export function useCustomPluginsTriggerMutation(options) {
13
+ return useMutation((mutateProps) => customPluginsTrigger(mutateProps), options);
14
+ }
@@ -0,0 +1,15 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ResponseWithPagination } from '../helpers';
3
+ import { FetcherOptions } from '../../../../fetcher/index.js';
4
+ export interface DeleteLayoutMutationHeaderParams {
5
+ 'Harness-Account'?: string;
6
+ }
7
+ export type DeleteLayoutOkResponse = ResponseWithPagination<unknown>;
8
+ export type DeleteLayoutErrorResponse = unknown;
9
+ export interface DeleteLayoutProps extends Omit<FetcherOptions<unknown, unknown, DeleteLayoutMutationHeaderParams>, 'url'> {
10
+ }
11
+ export declare function deleteLayout(props: DeleteLayoutProps): Promise<DeleteLayoutOkResponse>;
12
+ /**
13
+ * Delete layout
14
+ */
15
+ export declare function useDeleteLayoutMutation(options?: Omit<UseMutationOptions<DeleteLayoutOkResponse, DeleteLayoutErrorResponse, DeleteLayoutProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteLayoutOkResponse, unknown, DeleteLayoutProps, 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 deleteLayout(props) {
7
+ return fetcher(Object.assign({ url: `/v1/layout`, method: 'DELETE' }, props));
8
+ }
9
+ /**
10
+ * Delete layout
11
+ */
12
+ export function useDeleteLayoutMutation(options) {
13
+ return useMutation((mutateProps) => deleteLayout(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginLogsResponseResponse } from '../responses/CustomPluginLogsResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetCustomPluginStatusLogsQueryQueryParams {
6
+ account_id?: string;
7
+ org_id?: string;
8
+ project_id?: string;
9
+ pipeline_id?: string;
10
+ }
11
+ export interface GetCustomPluginStatusLogsQueryHeaderParams {
12
+ 'Harness-Account'?: string;
13
+ 'Log-Key'?: string;
14
+ }
15
+ export type GetCustomPluginStatusLogsOkResponse = ResponseWithPagination<CustomPluginLogsResponseResponse>;
16
+ export type GetCustomPluginStatusLogsErrorResponse = unknown;
17
+ export interface GetCustomPluginStatusLogsProps extends Omit<FetcherOptions<GetCustomPluginStatusLogsQueryQueryParams, unknown, GetCustomPluginStatusLogsQueryHeaderParams>, 'url'> {
18
+ queryParams: GetCustomPluginStatusLogsQueryQueryParams;
19
+ }
20
+ export declare function getCustomPluginStatusLogs(props: GetCustomPluginStatusLogsProps): Promise<GetCustomPluginStatusLogsOkResponse>;
21
+ /**
22
+ * Get Custom Plugin Status Logs
23
+ */
24
+ export declare function useGetCustomPluginStatusLogsQuery(props: GetCustomPluginStatusLogsProps, options?: Omit<UseQueryOptions<GetCustomPluginStatusLogsOkResponse, GetCustomPluginStatusLogsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCustomPluginStatusLogsOkResponse, 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/index.js';
6
+ export function getCustomPluginStatusLogs(props) {
7
+ return fetcher(Object.assign({ url: `/v1/custom-plugins/logs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Custom Plugin Status Logs
11
+ */
12
+ export function useGetCustomPluginStatusLogsQuery(props, options) {
13
+ return useQuery(['get-custom-plugin-status-logs', props.queryParams], ({ signal }) => getCustomPluginStatusLogs(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,19 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { CustomPluginStatusResponseResponse } from '../responses/CustomPluginStatusResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetCustomPluginStatusPluginIdQueryPathParams {
6
+ 'plugin-id': string;
7
+ }
8
+ export interface GetCustomPluginStatusPluginIdQueryHeaderParams {
9
+ 'Harness-Account'?: string;
10
+ }
11
+ export type GetCustomPluginStatusPluginIdOkResponse = ResponseWithPagination<CustomPluginStatusResponseResponse>;
12
+ export type GetCustomPluginStatusPluginIdErrorResponse = unknown;
13
+ export interface GetCustomPluginStatusPluginIdProps extends GetCustomPluginStatusPluginIdQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetCustomPluginStatusPluginIdQueryHeaderParams>, 'url'> {
14
+ }
15
+ export declare function getCustomPluginStatusPluginId(props: GetCustomPluginStatusPluginIdProps): Promise<GetCustomPluginStatusPluginIdOkResponse>;
16
+ /**
17
+ * Get Custom Plugin Status
18
+ */
19
+ export declare function useGetCustomPluginStatusPluginIdQuery(props: GetCustomPluginStatusPluginIdProps, options?: Omit<UseQueryOptions<GetCustomPluginStatusPluginIdOkResponse, GetCustomPluginStatusPluginIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCustomPluginStatusPluginIdOkResponse, 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/index.js';
6
+ export function getCustomPluginStatusPluginId(props) {
7
+ return fetcher(Object.assign({ url: `/v1/custom-plugins/${props['plugin-id']}/status`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Custom Plugin Status
11
+ */
12
+ export function useGetCustomPluginStatusPluginIdQuery(props, options) {
13
+ return useQuery(['get-custom-plugin-status-plugin-id', props['plugin-id']], ({ signal }) => getCustomPluginStatusPluginId(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -15,10 +15,14 @@ export type { CreateLayoutErrorResponse, CreateLayoutOkResponse, CreateLayoutPro
15
15
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
16
16
  export type { CreateScorecardErrorResponse, CreateScorecardOkResponse, CreateScorecardProps, CreateScorecardRequestBody, } from './hooks/useCreateScorecardMutation';
17
17
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
18
+ export type { CustomPluginsTriggerErrorResponse, CustomPluginsTriggerMutationPathParams, CustomPluginsTriggerOkResponse, CustomPluginsTriggerProps, } from './hooks/useCustomPluginsTriggerMutation';
19
+ export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
18
20
  export type { DeleteCheckErrorResponse, DeleteCheckMutationPathParams, DeleteCheckMutationQueryParams, DeleteCheckOkResponse, DeleteCheckProps, } from './hooks/useDeleteCheckMutation';
19
21
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
20
22
  export type { DeleteCustomPluginInfoErrorResponse, DeleteCustomPluginInfoMutationPathParams, DeleteCustomPluginInfoMutationQueryParams, DeleteCustomPluginInfoOkResponse, DeleteCustomPluginInfoProps, } from './hooks/useDeleteCustomPluginInfoMutation';
21
23
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
24
+ export type { DeleteLayoutErrorResponse, DeleteLayoutOkResponse, DeleteLayoutProps, } from './hooks/useDeleteLayoutMutation';
25
+ export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
22
26
  export type { DeleteScorecardErrorResponse, DeleteScorecardMutationPathParams, DeleteScorecardOkResponse, DeleteScorecardProps, } from './hooks/useDeleteScorecardMutation';
23
27
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
24
28
  export type { GenerateYamlDefErrorResponse, GenerateYamlDefOkResponse, GenerateYamlDefProps, GenerateYamlDefRequestBody, } from './hooks/useGenerateYamlDefMutation';
@@ -45,6 +49,10 @@ export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetCh
45
49
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
46
50
  export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
47
51
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
52
+ export type { GetCustomPluginStatusLogsErrorResponse, GetCustomPluginStatusLogsOkResponse, GetCustomPluginStatusLogsProps, GetCustomPluginStatusLogsQueryQueryParams, } from './hooks/useGetCustomPluginStatusLogsQuery';
53
+ export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
54
+ export type { GetCustomPluginStatusPluginIdErrorResponse, GetCustomPluginStatusPluginIdOkResponse, GetCustomPluginStatusPluginIdProps, GetCustomPluginStatusPluginIdQueryPathParams, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
55
+ export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
48
56
  export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceProps, GetDataPointsForDataSourceQueryPathParams, } from './hooks/useGetDataPointsForDataSourceQuery';
49
57
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
50
58
  export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
@@ -145,6 +153,8 @@ export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseR
145
153
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
146
154
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
147
155
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
156
+ export type { CustomPluginLogsResponseResponse } from './responses/CustomPluginLogsResponseResponse';
157
+ export type { CustomPluginStatusResponseResponse } from './responses/CustomPluginStatusResponseResponse';
148
158
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
149
159
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
150
160
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
@@ -210,6 +220,8 @@ export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
210
220
  export type { CustomPluginDetailedInfo } from './schemas/CustomPluginDetailedInfo';
211
221
  export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest';
212
222
  export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
223
+ export type { CustomPluginLogsResponse } from './schemas/CustomPluginLogsResponse';
224
+ export type { CustomPluginStatusResponse } from './schemas/CustomPluginStatusResponse';
213
225
  export type { DataPoint } from './schemas/DataPoint';
214
226
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
215
227
  export type { DataSource } from './schemas/DataSource';
@@ -6,8 +6,10 @@ export { createCheck, useCreateCheckMutation } from './hooks/useCreateCheckMutat
6
6
  export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
7
7
  export { createLayout, useCreateLayoutMutation } from './hooks/useCreateLayoutMutation';
8
8
  export { createScorecard, useCreateScorecardMutation } from './hooks/useCreateScorecardMutation';
9
+ export { customPluginsTrigger, useCustomPluginsTriggerMutation, } from './hooks/useCustomPluginsTriggerMutation';
9
10
  export { deleteCheck, useDeleteCheckMutation } from './hooks/useDeleteCheckMutation';
10
11
  export { deleteCustomPluginInfo, useDeleteCustomPluginInfoMutation, } from './hooks/useDeleteCustomPluginInfoMutation';
12
+ export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
11
13
  export { deleteScorecard, useDeleteScorecardMutation } from './hooks/useDeleteScorecardMutation';
12
14
  export { generateYamlDef, useGenerateYamlDefMutation } from './hooks/useGenerateYamlDefMutation';
13
15
  export { getAllDatasourcesForAccount, useGetAllDatasourcesForAccountQuery, } from './hooks/useGetAllDatasourcesForAccountQuery';
@@ -21,6 +23,8 @@ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
21
23
  export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
22
24
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
23
25
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
26
+ export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
27
+ export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
24
28
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
25
29
  export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
26
30
  export { getEntityFacets, useGetEntityFacetsQuery } from './hooks/useGetEntityFacetsQuery';
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginLogsResponse } from '../schemas/CustomPluginLogsResponse';
2
+ export type CustomPluginLogsResponseResponse = CustomPluginLogsResponse;
@@ -0,0 +1,2 @@
1
+ import type { CustomPluginStatusResponse } from '../schemas/CustomPluginStatusResponse';
2
+ export type CustomPluginStatusResponseResponse = CustomPluginStatusResponse;
@@ -0,0 +1,3 @@
1
+ export interface CustomPluginLogsResponse {
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,12 @@
1
+ export interface CustomPluginStatusResponse {
2
+ plugin_status?: {
3
+ account_id?: string;
4
+ error?: string;
5
+ key?: string;
6
+ org_id?: string;
7
+ pipeline_id?: string;
8
+ project_id?: string;
9
+ required?: {};
10
+ status?: 'Failed' | 'Running' | 'Success';
11
+ };
12
+ }
@@ -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.49.10",
3
+ "version": "0.50.1",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",