@harnessio/react-idp-service-client 0.50.0 → 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.
@@ -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,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,6 +15,8 @@ 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';
@@ -47,6 +49,10 @@ export type { GetChecksErrorResponse, GetChecksOkResponse, GetChecksProps, GetCh
47
49
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
48
50
  export type { GetConnectorInfoErrorResponse, GetConnectorInfoOkResponse, GetConnectorInfoProps, } from './hooks/useGetConnectorInfoQuery';
49
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';
50
56
  export type { GetDataPointsForDataSourceErrorResponse, GetDataPointsForDataSourceOkResponse, GetDataPointsForDataSourceProps, GetDataPointsForDataSourceQueryPathParams, } from './hooks/useGetDataPointsForDataSourceQuery';
51
57
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
52
58
  export type { GetDataSourcesDataPointsMapErrorResponse, GetDataSourcesDataPointsMapOkResponse, GetDataSourcesDataPointsMapProps, } from './hooks/useGetDataSourcesDataPointsMapQuery';
@@ -147,6 +153,8 @@ export type { CheckStatsResponseResponse } from './responses/CheckStatsResponseR
147
153
  export type { ConfigurationEntitiesResponseResponse } from './responses/ConfigurationEntitiesResponseResponse';
148
154
  export type { ConnectorInfoResponseResponse } from './responses/ConnectorInfoResponseResponse';
149
155
  export type { CustomPluginInfoResponseResponse } from './responses/CustomPluginInfoResponseResponse';
156
+ export type { CustomPluginLogsResponseResponse } from './responses/CustomPluginLogsResponseResponse';
157
+ export type { CustomPluginStatusResponseResponse } from './responses/CustomPluginStatusResponseResponse';
150
158
  export type { DataSourceDataPointsMapResponseResponse } from './responses/DataSourceDataPointsMapResponseResponse';
151
159
  export type { DataSourcesResponseResponse } from './responses/DataSourcesResponseResponse';
152
160
  export type { DatapointResponseResponse } from './responses/DatapointResponseResponse';
@@ -212,6 +220,8 @@ export type { ConnectorInfoResponse } from './schemas/ConnectorInfoResponse';
212
220
  export type { CustomPluginDetailedInfo } from './schemas/CustomPluginDetailedInfo';
213
221
  export type { CustomPluginInfoRequest } from './schemas/CustomPluginInfoRequest';
214
222
  export type { CustomPluginInfoResponse } from './schemas/CustomPluginInfoResponse';
223
+ export type { CustomPluginLogsResponse } from './schemas/CustomPluginLogsResponse';
224
+ export type { CustomPluginStatusResponse } from './schemas/CustomPluginStatusResponse';
215
225
  export type { DataPoint } from './schemas/DataPoint';
216
226
  export type { DataPointsResponse } from './schemas/DataPointsResponse';
217
227
  export type { DataSource } from './schemas/DataSource';
@@ -6,6 +6,7 @@ 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';
11
12
  export { deleteLayout, useDeleteLayoutMutation } from './hooks/useDeleteLayoutMutation';
@@ -22,6 +23,8 @@ export { getCheck, useGetCheckQuery } from './hooks/useGetCheckQuery';
22
23
  export { getCheckStats, useGetCheckStatsQuery } from './hooks/useGetCheckStatsQuery';
23
24
  export { getChecks, useGetChecksQuery } from './hooks/useGetChecksQuery';
24
25
  export { getConnectorInfo, useGetConnectorInfoQuery } from './hooks/useGetConnectorInfoQuery';
26
+ export { getCustomPluginStatusLogs, useGetCustomPluginStatusLogsQuery, } from './hooks/useGetCustomPluginStatusLogsQuery';
27
+ export { getCustomPluginStatusPluginId, useGetCustomPluginStatusPluginIdQuery, } from './hooks/useGetCustomPluginStatusPluginIdQuery';
25
28
  export { getDataPointsForDataSource, useGetDataPointsForDataSourceQuery, } from './hooks/useGetDataPointsForDataSourceQuery';
26
29
  export { getDataSourcesDataPointsMap, useGetDataSourcesDataPointsMapQuery, } from './hooks/useGetDataSourcesDataPointsMapQuery';
27
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.50.0",
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",