@harnessio/react-idp-service-client 0.49.3 → 0.49.4

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 (26) hide show
  1. package/dist/idp-service/src/services/hooks/useCreateIntegrationMutation.d.ts +1 -1
  2. package/dist/idp-service/src/services/hooks/useGetIntegrationQuery.d.ts +1 -1
  3. package/dist/idp-service/src/services/hooks/useGetIntegrationsQuery.d.ts +1 -1
  4. package/dist/idp-service/src/services/hooks/useUpdateIntegrationMutation.d.ts +1 -1
  5. package/dist/idp-service/src/services/index.d.ts +3 -6
  6. package/dist/idp-service/src/services/requestBodies/IntegrationRequestRequestBody.d.ts +2 -2
  7. package/dist/idp-service/src/services/responses/IntegrationResponseListResponse.d.ts +2 -2
  8. package/dist/idp-service/src/services/responses/IntegrationResponseResponse.d.ts +2 -2
  9. package/dist/idp-service/src/services/schemas/AbstractIntegrationRequest.d.ts +7 -0
  10. package/dist/idp-service/src/services/schemas/AbstractIntegrationResponse.d.ts +4 -0
  11. package/dist/idp-service/src/services/schemas/BaseIntegrationRequest.d.ts +1 -3
  12. package/dist/idp-service/src/services/schemas/BaseIntegrationRequest.js +3 -0
  13. package/dist/idp-service/src/services/schemas/BaseIntegrationResponse.d.ts +6 -0
  14. package/package.json +1 -1
  15. package/dist/idp-service/src/services/schemas/GitIntegrationRequest.d.ts +0 -8
  16. package/dist/idp-service/src/services/schemas/GitIntegrationResponse.d.ts +0 -13
  17. package/dist/idp-service/src/services/schemas/IntegrationResponse.d.ts +0 -5
  18. package/dist/idp-service/src/services/schemas/IntegrationResponse.js +0 -1
  19. package/dist/idp-service/src/services/schemas/ReadValidationDetails.d.ts +0 -3
  20. package/dist/idp-service/src/services/schemas/ValidationResponse.d.ts +0 -9
  21. package/dist/idp-service/src/services/schemas/ValidationResponse.js +0 -4
  22. package/dist/idp-service/src/services/schemas/WriteValidationDetails.d.ts +0 -5
  23. package/dist/idp-service/src/services/schemas/WriteValidationDetails.js +0 -4
  24. /package/dist/idp-service/src/services/schemas/{GitIntegrationRequest.js → AbstractIntegrationRequest.js} +0 -0
  25. /package/dist/idp-service/src/services/schemas/{GitIntegrationResponse.js → AbstractIntegrationResponse.js} +0 -0
  26. /package/dist/idp-service/src/services/schemas/{ReadValidationDetails.js → BaseIntegrationResponse.js} +0 -0
@@ -4,7 +4,7 @@ import type { IntegrationRequestRequestBody } from '../requestBodies/Integration
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface CreateIntegrationMutationPathParams {
7
- integration: 'git';
7
+ integration: 'GIT';
8
8
  }
9
9
  export interface CreateIntegrationMutationQueryParams {
10
10
  dry_run?: boolean;
@@ -3,7 +3,7 @@ import type { IntegrationResponseResponse } from '../responses/IntegrationRespon
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetIntegrationQueryPathParams {
6
- integration: 'git';
6
+ integration: 'GIT';
7
7
  'integration-id': string;
8
8
  }
9
9
  export interface GetIntegrationQueryHeaderParams {
@@ -3,7 +3,7 @@ import type { IntegrationResponseListResponse } from '../responses/IntegrationRe
3
3
  import type { ResponseWithPagination } from '../helpers';
4
4
  import { FetcherOptions } from '../../../../fetcher/index.js';
5
5
  export interface GetIntegrationsQueryPathParams {
6
- integration: 'git';
6
+ integration: 'GIT';
7
7
  }
8
8
  export interface GetIntegrationsQueryQueryParams {
9
9
  page?: number;
@@ -4,7 +4,7 @@ import type { IntegrationRequestRequestBody } from '../requestBodies/Integration
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface UpdateIntegrationMutationPathParams {
7
- integration: 'git';
7
+ integration: 'GIT';
8
8
  'integration-id': string;
9
9
  }
10
10
  export interface UpdateIntegrationMutationQueryParams {
@@ -148,6 +148,8 @@ export type { ScorecardResponseListResponse } from './responses/ScorecardRespons
148
148
  export type { ScorecardStatsResponseResponse } from './responses/ScorecardStatsResponseResponse';
149
149
  export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
150
150
  export type { StatusInfoResponseV2Response } from './responses/StatusInfoResponseV2Response';
151
+ export type { AbstractIntegrationRequest } from './schemas/AbstractIntegrationRequest';
152
+ export type { AbstractIntegrationResponse } from './schemas/AbstractIntegrationResponse';
151
153
  export type { AllowListRequest } from './schemas/AllowListRequest';
152
154
  export type { AllowListResponse } from './schemas/AllowListResponse';
153
155
  export type { AppConfig } from './schemas/AppConfig';
@@ -164,6 +166,7 @@ export type { BackstagePermissions } from './schemas/BackstagePermissions';
164
166
  export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
165
167
  export type { BackstagePermissionsResponse } from './schemas/BackstagePermissionsResponse';
166
168
  export type { BaseIntegrationRequest } from './schemas/BaseIntegrationRequest';
169
+ export type { BaseIntegrationResponse } from './schemas/BaseIntegrationResponse';
167
170
  export type { CatalogConnectorInfo } from './schemas/CatalogConnectorInfo';
168
171
  export type { Check } from './schemas/Check';
169
172
  export type { CheckDetails } from './schemas/CheckDetails';
@@ -195,8 +198,6 @@ export type { Exports } from './schemas/Exports';
195
198
  export type { Facets } from './schemas/Facets';
196
199
  export type { GenerateYamlRequest } from './schemas/GenerateYamlRequest';
197
200
  export type { GenerateYamlResponse } from './schemas/GenerateYamlResponse';
198
- export type { GitIntegrationRequest } from './schemas/GitIntegrationRequest';
199
- export type { GitIntegrationResponse } from './schemas/GitIntegrationResponse';
200
201
  export type { HarnessBackstageEntities } from './schemas/HarnessBackstageEntities';
201
202
  export type { HarnessEntitiesCountResponse } from './schemas/HarnessEntitiesCountResponse';
202
203
  export type { HarnessEntitiesResponse } from './schemas/HarnessEntitiesResponse';
@@ -205,7 +206,6 @@ export type { ImportEntitiesBase } from './schemas/ImportEntitiesBase';
205
206
  export type { ImportEntitiesResponse } from './schemas/ImportEntitiesResponse';
206
207
  export type { InputDetails } from './schemas/InputDetails';
207
208
  export type { InputValue } from './schemas/InputValue';
208
- export type { IntegrationResponse } from './schemas/IntegrationResponse';
209
209
  export type { LayoutIngestRequest } from './schemas/LayoutIngestRequest';
210
210
  export type { LayoutRequest } from './schemas/LayoutRequest';
211
211
  export type { LayoutResponse } from './schemas/LayoutResponse';
@@ -217,7 +217,6 @@ export type { PluginDetails } from './schemas/PluginDetails';
217
217
  export type { PluginInfo } from './schemas/PluginInfo';
218
218
  export type { PluginInfoResponse } from './schemas/PluginInfoResponse';
219
219
  export type { ProxyHostDetail } from './schemas/ProxyHostDetail';
220
- export type { ReadValidationDetails } from './schemas/ReadValidationDetails';
221
220
  export type { RequestPlugin } from './schemas/RequestPlugin';
222
221
  export type { Rule } from './schemas/Rule';
223
222
  export type { Scorecard } from './schemas/Scorecard';
@@ -239,5 +238,3 @@ export type { StatusInfo } from './schemas/StatusInfo';
239
238
  export type { StatusInfoResponse } from './schemas/StatusInfoResponse';
240
239
  export type { StatusInfoV2 } from './schemas/StatusInfoV2';
241
240
  export type { User } from './schemas/User';
242
- export type { ValidationResponse } from './schemas/ValidationResponse';
243
- export type { WriteValidationDetails } from './schemas/WriteValidationDetails';
@@ -1,2 +1,2 @@
1
- import type { BaseIntegrationRequest } from '../schemas/BaseIntegrationRequest';
2
- export type IntegrationRequestRequestBody = BaseIntegrationRequest;
1
+ import type { AbstractIntegrationRequest } from '../schemas/AbstractIntegrationRequest';
2
+ export type IntegrationRequestRequestBody = AbstractIntegrationRequest;
@@ -1,2 +1,2 @@
1
- import type { IntegrationResponse } from '../schemas/IntegrationResponse';
2
- export type IntegrationResponseListResponse = IntegrationResponse[];
1
+ import type { AbstractIntegrationResponse } from '../schemas/AbstractIntegrationResponse';
2
+ export type IntegrationResponseListResponse = AbstractIntegrationResponse[];
@@ -1,2 +1,2 @@
1
- import type { IntegrationResponse } from '../schemas/IntegrationResponse';
2
- export type IntegrationResponseResponse = IntegrationResponse;
1
+ import type { AbstractIntegrationResponse } from '../schemas/AbstractIntegrationResponse';
2
+ export type IntegrationResponseResponse = AbstractIntegrationResponse;
@@ -0,0 +1,7 @@
1
+ import type { BaseIntegrationRequest } from '../schemas/BaseIntegrationRequest';
2
+ /**
3
+ * Abstract for integration request
4
+ */
5
+ export interface AbstractIntegrationRequest<T0 extends BaseIntegrationRequest = BaseIntegrationRequest> {
6
+ request: T0;
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { BaseIntegrationResponse } from '../schemas/BaseIntegrationResponse';
2
+ export interface AbstractIntegrationResponse<T0 extends BaseIntegrationResponse = BaseIntegrationResponse> {
3
+ response?: T0;
4
+ }
@@ -1,8 +1,6 @@
1
- import type { GitIntegrationRequest } from '../schemas/GitIntegrationRequest';
2
1
  /**
3
- * Abstract base for integration request
2
+ * Base integration request
4
3
  */
5
4
  export interface BaseIntegrationRequest {
6
- integration_request?: GitIntegrationRequest;
7
5
  type: 'git';
8
6
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Base integration response
3
+ */
4
+ export interface BaseIntegrationResponse {
5
+ type?: 'git';
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.49.3",
3
+ "version": "0.49.4",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,8 +0,0 @@
1
- import type { ReadValidationDetails } from '../schemas/ReadValidationDetails';
2
- import type { WriteValidationDetails } from '../schemas/WriteValidationDetails';
3
- import type { BaseIntegrationRequest } from '../schemas/BaseIntegrationRequest';
4
- export interface GitIntegrationRequest extends BaseIntegrationRequest {
5
- connector_identifier: string;
6
- read_validation_details?: ReadValidationDetails;
7
- write_validation_details?: WriteValidationDetails;
8
- }
@@ -1,13 +0,0 @@
1
- import type { ValidationResponse } from '../schemas/ValidationResponse';
2
- import type { IntegrationResponse } from '../schemas/IntegrationResponse';
3
- export interface GitIntegrationResponse extends IntegrationResponse {
4
- auth_type?: string;
5
- connector_identifier?: string;
6
- connector_type?: string;
7
- display_type?: string;
8
- host?: string;
9
- identifier?: string;
10
- name?: string;
11
- validation?: ValidationResponse;
12
- via_delegate?: boolean;
13
- }
@@ -1,5 +0,0 @@
1
- import type { GitIntegrationResponse } from '../schemas/GitIntegrationResponse';
2
- export interface IntegrationResponse {
3
- integration_response?: GitIntegrationResponse;
4
- integration_type: 'git';
5
- }
@@ -1,3 +0,0 @@
1
- export interface ReadValidationDetails {
2
- file_url?: string;
3
- }
@@ -1,9 +0,0 @@
1
- export interface ValidationResponse {
2
- error?: string;
3
- status?: string;
4
- url?: string;
5
- /**
6
- * @format int64
7
- */
8
- validated?: number;
9
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,5 +0,0 @@
1
- export interface WriteValidationDetails {
2
- branch?: string;
3
- path?: string;
4
- repository?: string;
5
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};