@harnessio/react-integration-manager-client 0.6.2 → 0.6.3

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.
@@ -1,14 +1,39 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface ListIntegrationConfigsOrgQueryPathParams {
6
7
  accountIdentifier: string;
7
8
  orgIdentifier: string;
8
9
  }
10
+ export interface ListIntegrationConfigsOrgQueryQueryParams {
11
+ integration_type?: EnumIntegrationType;
12
+ /**
13
+ * Optional filter by entity kinds present in the integration's kinds array (repeatable).
14
+ */
15
+ kind?: string[];
16
+ /**
17
+ * Maximum number of items to return. Defaults to 50 when omitted.
18
+ */
19
+ limit?: number;
20
+ /**
21
+ * Number of items to skip from the start of the result set. Defaults to 0.
22
+ */
23
+ offset?: number;
24
+ /**
25
+ * Sort field: 'created', 'updated', or 'name'. Omitted means unsorted.
26
+ */
27
+ sort?: 'created' | 'name' | 'updated';
28
+ /**
29
+ * Sort order: 'asc' or 'desc'. Defaults to 'desc' when sort is provided.
30
+ */
31
+ order?: 'asc' | 'desc';
32
+ }
9
33
  export type ListIntegrationConfigsOrgOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
10
34
  export type ListIntegrationConfigsOrgErrorResponse = unknown;
11
- export interface ListIntegrationConfigsOrgProps extends ListIntegrationConfigsOrgQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
35
+ export interface ListIntegrationConfigsOrgProps extends ListIntegrationConfigsOrgQueryPathParams, Omit<FetcherOptions<ListIntegrationConfigsOrgQueryQueryParams, unknown>, 'url'> {
36
+ queryParams: ListIntegrationConfigsOrgQueryQueryParams;
12
37
  }
13
38
  export declare function listIntegrationConfigsOrg(props: ListIntegrationConfigsOrgProps): Promise<ListIntegrationConfigsOrgOkResponse>;
14
39
  /**
@@ -10,5 +10,5 @@ export function listIntegrationConfigsOrg(props) {
10
10
  * List integration configurations at organization level
11
11
  */
12
12
  export function useListIntegrationConfigsOrgQuery(props, options) {
13
- return useQuery(['listIntegrationConfigsOrg', props.accountIdentifier, props.orgIdentifier], ({ signal }) => listIntegrationConfigsOrg(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['listIntegrationConfigsOrg', props.accountIdentifier, props.orgIdentifier, props.queryParams], ({ signal }) => listIntegrationConfigsOrg(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -1,5 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface ListIntegrationConfigsProjectQueryPathParams {
@@ -7,9 +8,33 @@ export interface ListIntegrationConfigsProjectQueryPathParams {
7
8
  orgIdentifier: string;
8
9
  projectIdentifier: string;
9
10
  }
11
+ export interface ListIntegrationConfigsProjectQueryQueryParams {
12
+ integration_type?: EnumIntegrationType;
13
+ /**
14
+ * Optional filter by entity kinds present in the integration's kinds array (repeatable).
15
+ */
16
+ kind?: string[];
17
+ /**
18
+ * Maximum number of items to return. Defaults to 50 when omitted.
19
+ */
20
+ limit?: number;
21
+ /**
22
+ * Number of items to skip from the start of the result set. Defaults to 0.
23
+ */
24
+ offset?: number;
25
+ /**
26
+ * Sort field: 'created', 'updated', or 'name'. Omitted means unsorted.
27
+ */
28
+ sort?: 'created' | 'name' | 'updated';
29
+ /**
30
+ * Sort order: 'asc' or 'desc'. Defaults to 'desc' when sort is provided.
31
+ */
32
+ order?: 'asc' | 'desc';
33
+ }
10
34
  export type ListIntegrationConfigsProjectOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
11
35
  export type ListIntegrationConfigsProjectErrorResponse = unknown;
12
- export interface ListIntegrationConfigsProjectProps extends ListIntegrationConfigsProjectQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
36
+ export interface ListIntegrationConfigsProjectProps extends ListIntegrationConfigsProjectQueryPathParams, Omit<FetcherOptions<ListIntegrationConfigsProjectQueryQueryParams, unknown>, 'url'> {
37
+ queryParams: ListIntegrationConfigsProjectQueryQueryParams;
13
38
  }
14
39
  export declare function listIntegrationConfigsProject(props: ListIntegrationConfigsProjectProps): Promise<ListIntegrationConfigsProjectOkResponse>;
15
40
  /**
@@ -15,5 +15,6 @@ export function useListIntegrationConfigsProjectQuery(props, options) {
15
15
  props.accountIdentifier,
16
16
  props.orgIdentifier,
17
17
  props.projectIdentifier,
18
+ props.queryParams,
18
19
  ], ({ signal }) => listIntegrationConfigsProject(Object.assign(Object.assign({}, props), { signal })), options);
19
20
  }
@@ -1,13 +1,38 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { TypesIntegrationConfig } from '../schemas/TypesIntegrationConfig';
3
+ import type { EnumIntegrationType } from '../schemas/EnumIntegrationType';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface ListIntegrationConfigsQueryPathParams {
6
7
  accountIdentifier: string;
7
8
  }
9
+ export interface ListIntegrationConfigsQueryQueryParams {
10
+ integration_type?: EnumIntegrationType;
11
+ /**
12
+ * Optional filter by entity kinds present in the integration's kinds array (repeatable).
13
+ */
14
+ kind?: string[];
15
+ /**
16
+ * Maximum number of items to return. Defaults to 50 when omitted.
17
+ */
18
+ limit?: number;
19
+ /**
20
+ * Number of items to skip from the start of the result set. Defaults to 0.
21
+ */
22
+ offset?: number;
23
+ /**
24
+ * Sort field: 'created', 'updated', or 'name'. Omitted means unsorted.
25
+ */
26
+ sort?: 'created' | 'name' | 'updated';
27
+ /**
28
+ * Sort order: 'asc' or 'desc'. Defaults to 'desc' when sort is provided.
29
+ */
30
+ order?: 'asc' | 'desc';
31
+ }
8
32
  export type ListIntegrationConfigsOkResponse = ResponseWithPagination<TypesIntegrationConfig[]>;
9
33
  export type ListIntegrationConfigsErrorResponse = unknown;
10
- export interface ListIntegrationConfigsProps extends ListIntegrationConfigsQueryPathParams, Omit<FetcherOptions<unknown, unknown>, 'url'> {
34
+ export interface ListIntegrationConfigsProps extends ListIntegrationConfigsQueryPathParams, Omit<FetcherOptions<ListIntegrationConfigsQueryQueryParams, unknown>, 'url'> {
35
+ queryParams: ListIntegrationConfigsQueryQueryParams;
11
36
  }
12
37
  export declare function listIntegrationConfigs(props: ListIntegrationConfigsProps): Promise<ListIntegrationConfigsOkResponse>;
13
38
  /**
@@ -10,5 +10,5 @@ export function listIntegrationConfigs(props) {
10
10
  * List integration configurations
11
11
  */
12
12
  export function useListIntegrationConfigsQuery(props, options) {
13
- return useQuery(['listIntegrationConfigs', props.accountIdentifier], ({ signal }) => listIntegrationConfigs(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['listIntegrationConfigs', props.accountIdentifier, props.queryParams], ({ signal }) => listIntegrationConfigs(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -97,11 +97,11 @@ export type { ListDefaultMappingFieldsErrorResponse, ListDefaultMappingFieldsOkR
97
97
  export { listDefaultMappingFields, useListDefaultMappingFieldsQuery, } from './hooks/useListDefaultMappingFieldsQuery';
98
98
  export type { ListDefaultSchemasErrorResponse, ListDefaultSchemasOkResponse, ListDefaultSchemasProps, ListDefaultSchemasQueryPathParams, ListDefaultSchemasQueryQueryParams, } from './hooks/useListDefaultSchemasQuery';
99
99
  export { listDefaultSchemas, useListDefaultSchemasQuery } from './hooks/useListDefaultSchemasQuery';
100
- export type { ListIntegrationConfigsOrgErrorResponse, ListIntegrationConfigsOrgOkResponse, ListIntegrationConfigsOrgProps, ListIntegrationConfigsOrgQueryPathParams, } from './hooks/useListIntegrationConfigsOrgQuery';
100
+ export type { ListIntegrationConfigsOrgErrorResponse, ListIntegrationConfigsOrgOkResponse, ListIntegrationConfigsOrgProps, ListIntegrationConfigsOrgQueryPathParams, ListIntegrationConfigsOrgQueryQueryParams, } from './hooks/useListIntegrationConfigsOrgQuery';
101
101
  export { listIntegrationConfigsOrg, useListIntegrationConfigsOrgQuery, } from './hooks/useListIntegrationConfigsOrgQuery';
102
- export type { ListIntegrationConfigsProjectErrorResponse, ListIntegrationConfigsProjectOkResponse, ListIntegrationConfigsProjectProps, ListIntegrationConfigsProjectQueryPathParams, } from './hooks/useListIntegrationConfigsProjectQuery';
102
+ export type { ListIntegrationConfigsProjectErrorResponse, ListIntegrationConfigsProjectOkResponse, ListIntegrationConfigsProjectProps, ListIntegrationConfigsProjectQueryPathParams, ListIntegrationConfigsProjectQueryQueryParams, } from './hooks/useListIntegrationConfigsProjectQuery';
103
103
  export { listIntegrationConfigsProject, useListIntegrationConfigsProjectQuery, } from './hooks/useListIntegrationConfigsProjectQuery';
104
- export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkResponse, ListIntegrationConfigsProps, ListIntegrationConfigsQueryPathParams, } from './hooks/useListIntegrationConfigsQuery';
104
+ export type { ListIntegrationConfigsErrorResponse, ListIntegrationConfigsOkResponse, ListIntegrationConfigsProps, ListIntegrationConfigsQueryPathParams, ListIntegrationConfigsQueryQueryParams, } from './hooks/useListIntegrationConfigsQuery';
105
105
  export { listIntegrationConfigs, useListIntegrationConfigsQuery, } from './hooks/useListIntegrationConfigsQuery';
106
106
  export type { ListIntegrationEventsOrgErrorResponse, ListIntegrationEventsOrgOkResponse, ListIntegrationEventsOrgProps, ListIntegrationEventsOrgQueryPathParams, ListIntegrationEventsOrgQueryQueryParams, } from './hooks/useListIntegrationEventsOrgQuery';
107
107
  export { listIntegrationEventsOrg, useListIntegrationEventsOrgQuery, } from './hooks/useListIntegrationEventsOrgQuery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-integration-manager-client",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Harness React integration manager client - Integration Manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",