@harnessio/react-idp-service-client 0.46.0 → 0.48.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.
- package/dist/idp-service/src/services/index.d.ts +0 -3
- package/dist/idp-service/src/services/index.js +0 -1
- package/dist/idp-service/src/services/schemas/PluginDetails.d.ts +2 -2
- package/dist/idp-service/src/services/schemas/PluginInfo.d.ts +1 -1
- package/package.json +1 -1
- package/dist/idp-service/src/services/hooks/useUploadCustomPluginFileMutation.d.ts +0 -22
- package/dist/idp-service/src/services/hooks/useUploadCustomPluginFileMutation.js +0 -14
- package/dist/idp-service/src/services/requestBodies/FileUploadRequestRequestBody.d.ts +0 -1
- package/dist/idp-service/src/services/requestBodies/FileUploadRequestRequestBody.js +0 -1
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|