@harnessio/react-idp-service-client 0.12.0 → 0.13.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/services/hooks/useInsertPluginAppConfigMutation.d.ts +19 -0
- package/dist/services/hooks/useInsertPluginAppConfigMutation.js +14 -0
- package/dist/services/hooks/useTogglePluginForAccountMutation.d.ts +1 -1
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.js +1 -0
- package/dist/services/requestBodies/AppConfigRequestRequestBody.d.ts +2 -0
- package/dist/services/requestBodies/AppConfigRequestRequestBody.js +1 -0
- package/dist/services/schemas/AppConfig.d.ts +3 -3
- package/dist/services/schemas/AppConfigRequest.d.ts +4 -0
- package/dist/services/schemas/AppConfigRequest.js +1 -0
- package/dist/services/schemas/AppConfigResponse.d.ts +1 -1
- package/dist/services/schemas/PluginDetailedInfoResponse.d.ts +1 -1
- package/dist/services/schemas/PluginInfoResponse.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AppConfigResponseResponse } from '../responses/AppConfigResponseResponse';
|
|
3
|
+
import type { AppConfigRequestRequestBody } from '../requestBodies/AppConfigRequestRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from './../../fetcher';
|
|
6
|
+
export interface InsertPluginAppConfigMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type InsertPluginAppConfigRequestBody = AppConfigRequestRequestBody;
|
|
10
|
+
export type InsertPluginAppConfigOkResponse = ResponseWithPagination<AppConfigResponseResponse>;
|
|
11
|
+
export type InsertPluginAppConfigErrorResponse = unknown;
|
|
12
|
+
export interface InsertPluginAppConfigProps extends Omit<FetcherOptions<unknown, InsertPluginAppConfigRequestBody, InsertPluginAppConfigMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: InsertPluginAppConfigRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function insertPluginAppConfig(props: InsertPluginAppConfigProps): Promise<InsertPluginAppConfigOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Insert Plugin Config
|
|
18
|
+
*/
|
|
19
|
+
export declare function useInsertPluginAppConfigMutation(options?: Omit<UseMutationOptions<InsertPluginAppConfigOkResponse, InsertPluginAppConfigErrorResponse, InsertPluginAppConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<InsertPluginAppConfigOkResponse, unknown, InsertPluginAppConfigProps, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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';
|
|
6
|
+
export function insertPluginAppConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/app-config`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Insert Plugin Config
|
|
11
|
+
*/
|
|
12
|
+
export function useInsertPluginAppConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => insertPluginAppConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -6,7 +6,7 @@ export interface TogglePluginForAccountMutationPathParams {
|
|
|
6
6
|
'plugin-id': string;
|
|
7
7
|
}
|
|
8
8
|
export interface TogglePluginForAccountMutationQueryParams {
|
|
9
|
-
enabled
|
|
9
|
+
enabled: boolean;
|
|
10
10
|
}
|
|
11
11
|
export interface TogglePluginForAccountMutationHeaderParams {
|
|
12
12
|
'Harness-Account'?: string;
|
package/dist/services/index.d.ts
CHANGED
|
@@ -19,10 +19,13 @@ export type { GetStatusInfoByTypeErrorResponse, GetStatusInfoByTypeOkResponse, G
|
|
|
19
19
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
20
20
|
export type { ImportHarnessEntitiesErrorResponse, ImportHarnessEntitiesOkResponse, ImportHarnessEntitiesProps, ImportHarnessEntitiesRequestBody, } from './hooks/useImportHarnessEntitiesMutation';
|
|
21
21
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
22
|
+
export type { InsertPluginAppConfigErrorResponse, InsertPluginAppConfigOkResponse, InsertPluginAppConfigProps, InsertPluginAppConfigRequestBody, } from './hooks/useInsertPluginAppConfigMutation';
|
|
23
|
+
export { insertPluginAppConfig, useInsertPluginAppConfigMutation, } from './hooks/useInsertPluginAppConfigMutation';
|
|
22
24
|
export type { TogglePluginForAccountErrorResponse, TogglePluginForAccountMutationPathParams, TogglePluginForAccountMutationQueryParams, TogglePluginForAccountOkResponse, TogglePluginForAccountProps, } from './hooks/useTogglePluginForAccountMutation';
|
|
23
25
|
export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
|
|
24
26
|
export type { UpdateBackstagePermissionsErrorResponse, UpdateBackstagePermissionsOkResponse, UpdateBackstagePermissionsProps, UpdateBackstagePermissionsRequestBody, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
25
27
|
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
28
|
+
export type { AppConfigRequestRequestBody } from './requestBodies/AppConfigRequestRequestBody';
|
|
26
29
|
export type { BackstagePermissionsRequestRequestBody } from './requestBodies/BackstagePermissionsRequestRequestBody';
|
|
27
30
|
export type { ImportHarnessEntitiesRequestRequestBody } from './requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
28
31
|
export type { AppConfigResponseResponse } from './responses/AppConfigResponseResponse';
|
|
@@ -34,6 +37,7 @@ export type { PluginDetailedInfoResponseResponse } from './responses/PluginDetai
|
|
|
34
37
|
export type { PluginInfoResponseListResponse } from './responses/PluginInfoResponseListResponse';
|
|
35
38
|
export type { StatusInfoResponseResponse } from './responses/StatusInfoResponseResponse';
|
|
36
39
|
export type { AppConfig } from './schemas/AppConfig';
|
|
40
|
+
export type { AppConfigRequest } from './schemas/AppConfigRequest';
|
|
37
41
|
export type { AppConfigResponse } from './schemas/AppConfigResponse';
|
|
38
42
|
export type { BackstagePermissions } from './schemas/BackstagePermissions';
|
|
39
43
|
export type { BackstagePermissionsRequest } from './schemas/BackstagePermissionsRequest';
|
package/dist/services/index.js
CHANGED
|
@@ -8,5 +8,6 @@ export { getPluginsInfoPluginId, useGetPluginsInfoPluginIdQuery, } from './hooks
|
|
|
8
8
|
export { getPlugins, useGetPluginsQuery } from './hooks/useGetPluginsQuery';
|
|
9
9
|
export { getStatusInfoByType, useGetStatusInfoByTypeQuery, } from './hooks/useGetStatusInfoByTypeQuery';
|
|
10
10
|
export { importHarnessEntities, useImportHarnessEntitiesMutation, } from './hooks/useImportHarnessEntitiesMutation';
|
|
11
|
+
export { insertPluginAppConfig, useInsertPluginAppConfigMutation, } from './hooks/useInsertPluginAppConfigMutation';
|
|
11
12
|
export { togglePluginForAccount, useTogglePluginForAccountMutation, } from './hooks/useTogglePluginForAccountMutation';
|
|
12
13
|
export { updateBackstagePermissions, useUpdateBackstagePermissionsMutation, } from './hooks/useUpdateBackstagePermissionsMutation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|