@harnessio/react-idp-service-client 0.46.0 → 0.47.0

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.
@@ -93,8 +93,6 @@ export type { UpdateCustomPluginsInfoErrorResponse, UpdateCustomPluginsInfoMutat
93
93
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
94
94
  export type { UpdateScorecardErrorResponse, UpdateScorecardMutationPathParams, UpdateScorecardOkResponse, UpdateScorecardProps, UpdateScorecardRequestBody, } from './hooks/useUpdateScorecardMutation';
95
95
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
96
- export type { UploadCustomPluginFileErrorResponse, UploadCustomPluginFileMutationPathParams, UploadCustomPluginFileOkResponse, UploadCustomPluginFileProps, UploadCustomPluginFileRequestBody, } from './hooks/useUploadCustomPluginFileMutation';
97
- export { uploadCustomPluginFile, useUploadCustomPluginFileMutation, } from './hooks/useUploadCustomPluginFileMutation';
98
96
  export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
99
97
  export type { BackstageEnvVariableBatchRequestRequestBody } from './requestBodies/BackstageEnvVariableBatchRequestRequestBody';
100
98
  export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
@@ -102,7 +100,6 @@ export type { ConfigurationEntitiesRequestRequestBody } from './requestBodies/Co
102
100
  export type { ConnectorInfoRequestRequestBody } from './requestBodies/ConnectorInfoRequestRequestBody';
103
101
  export type { CustomPluginCreateRequestRequestBody } from './requestBodies/CustomPluginCreateRequestRequestBody';
104
102
  export type { CustomPluginInfoRequestRequestBody } from './requestBodies/CustomPluginInfoRequestRequestBody';
105
- export type { FileUploadRequestRequestBody } from './requestBodies/FileUploadRequestRequestBody';
106
103
  export type { GenerateYamlRequestRequestBody } from './requestBodies/GenerateYamlRequestRequestBody';
107
104
  export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
108
105
  export type { RequestPluginRequestRequestBody } from './requestBodies/RequestPluginRequestRequestBody';
@@ -45,4 +45,3 @@ export { updateCheck, useUpdateCheckMutation } from './hooks/useUpdateCheckMutat
45
45
  export { updateConfigurationEntities, useUpdateConfigurationEntitiesMutation, } from './hooks/useUpdateConfigurationEntitiesMutation';
46
46
  export { updateCustomPluginsInfo, useUpdateCustomPluginsInfoMutation, } from './hooks/useUpdateCustomPluginsInfoMutation';
47
47
  export { updateScorecard, useUpdateScorecardMutation } from './hooks/useUpdateScorecardMutation';
48
- export { uploadCustomPluginFile, useUploadCustomPluginFileMutation, } from './hooks/useUploadCustomPluginFileMutation';
@@ -1,7 +1,7 @@
1
1
  import type { Exports } from '../schemas/Exports';
2
2
  import type { PluginInfo } from '../schemas/PluginInfo';
3
3
  export interface PluginDetails {
4
- config: string;
5
- exports: Exports;
4
+ config?: string;
5
+ exports?: Exports;
6
6
  plugin_details: PluginInfo;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-idp-service-client",
3
- "version": "0.46.0",
3
+ "version": "0.47.0",
4
4
  "description": "Harness React idp service client - IDP APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,22 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { CustomPluginInfoResponseResponse } from '../responses/CustomPluginInfoResponseResponse';
3
- import type { FileUploadRequestRequestBody } from '../requestBodies/FileUploadRequestRequestBody';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface UploadCustomPluginFileMutationPathParams {
7
- 'plugin-id': string;
8
- }
9
- export interface UploadCustomPluginFileMutationHeaderParams {
10
- 'Harness-Account'?: string;
11
- }
12
- export type UploadCustomPluginFileRequestBody = FileUploadRequestRequestBody;
13
- export type UploadCustomPluginFileOkResponse = ResponseWithPagination<CustomPluginInfoResponseResponse>;
14
- export type UploadCustomPluginFileErrorResponse = unknown;
15
- export interface UploadCustomPluginFileProps extends UploadCustomPluginFileMutationPathParams, Omit<FetcherOptions<unknown, UploadCustomPluginFileRequestBody, UploadCustomPluginFileMutationHeaderParams>, 'url'> {
16
- body: UploadCustomPluginFileRequestBody;
17
- }
18
- export declare function uploadCustomPluginFile(props: UploadCustomPluginFileProps): Promise<UploadCustomPluginFileOkResponse>;
19
- /**
20
- * Upload Custom Plugin File
21
- */
22
- export declare function useUploadCustomPluginFileMutation(options?: Omit<UseMutationOptions<UploadCustomPluginFileOkResponse, UploadCustomPluginFileErrorResponse, UploadCustomPluginFileProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UploadCustomPluginFileOkResponse, unknown, UploadCustomPluginFileProps, unknown>;
@@ -1,14 +0,0 @@
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 uploadCustomPluginFile(props) {
7
- return fetcher(Object.assign({ url: `/v1/plugins-info/${props['plugin-id']}/upload`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Upload Custom Plugin File
11
- */
12
- export function useUploadCustomPluginFileMutation(options) {
13
- return useMutation((mutateProps) => uploadCustomPluginFile(mutateProps), options);
14
- }
@@ -1 +0,0 @@
1
- export type FileUploadRequestRequestBody = unknown;