@harnessio/react-sto-core-client 0.3.19 → 0.3.21

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,6 +1,7 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { FrontendSecurityReviewResponseBody } from '../schemas/FrontendSecurityReviewResponseBody';
3
3
  import type { NotFound } from '../schemas/NotFound';
4
+ import type { GlobalExemptionsRequestBody } from '../schemas/GlobalExemptionsRequestBody';
4
5
  import type { ResponseWithPagination } from '../helpers';
5
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
7
  export interface FrontendGlobalExemptionsQueryQueryParams {
@@ -51,13 +52,7 @@ export interface FrontendGlobalExemptionsQueryHeaderParams {
51
52
  */
52
53
  'X-Api-Key'?: string;
53
54
  }
54
- export type FrontendGlobalExemptionsRequestBody = {
55
- /**
56
- * List of organization:project pairs
57
- * @example ["org1:project1","org2:project2"]
58
- */
59
- orgProjectFilter?: string[];
60
- };
55
+ export type FrontendGlobalExemptionsRequestBody = GlobalExemptionsRequestBody;
61
56
  export type FrontendGlobalExemptionsOkResponse = ResponseWithPagination<FrontendSecurityReviewResponseBody>;
62
57
  export type FrontendGlobalExemptionsErrorResponse = NotFound;
63
58
  export interface FrontendGlobalExemptionsProps extends Omit<FetcherOptions<FrontendGlobalExemptionsQueryQueryParams, FrontendGlobalExemptionsRequestBody, FrontendGlobalExemptionsQueryHeaderParams>, 'url'> {
@@ -4,6 +4,11 @@ import type { NotFound } from '../schemas/NotFound';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ProductsListProductsQueryQueryParams {
7
+ /**
8
+ * Harness Account ID
9
+ * @example "abcdef1234567890ghijkl"
10
+ */
11
+ accountId?: string;
7
12
  /**
8
13
  * Page number to fetch (starting from 0)
9
14
  * @format int64
@@ -102,6 +102,7 @@ export type { FrontendPipelineSecurityStepsResponseBody } from './schemas/Fronte
102
102
  export type { FrontendSecurityReviewResponseBody } from './schemas/FrontendSecurityReviewResponseBody';
103
103
  export type { FrontendTestTargetsResponseBody } from './schemas/FrontendTestTargetsResponseBody';
104
104
  export type { GitMetadata } from './schemas/GitMetadata';
105
+ export type { GlobalExemptionsRequestBody } from './schemas/GlobalExemptionsRequestBody';
105
106
  export type { HistoricalCounts } from './schemas/HistoricalCounts';
106
107
  export type { HistoricalIssueCounts } from './schemas/HistoricalIssueCounts';
107
108
  export type { IdResult } from './schemas/IdResult';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example {"orgProjectFilter":["org1:project1","org1:project2"]}
3
+ */
4
+ export interface GlobalExemptionsRequestBody {
5
+ /**
6
+ * List of organization:project pairs
7
+ * @example ["org1:project1","org1:project2"]
8
+ */
9
+ orgProjectFilter?: string[];
10
+ }
@@ -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-sto-core-client",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "Harness STO service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",