@harnessio/react-idp-service-client 0.25.0 → 0.27.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/README.md +2 -2
- package/dist/{fetcher.js → fetcher/index.js} +5 -5
- package/dist/{index.d.ts → idp-service/src/index.d.ts} +1 -1
- package/dist/{index.js → idp-service/src/index.js} +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useCreateBackstageEnvVariablesMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useCreateBackstageEnvVariablesMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useCreateBackstagePermissionsMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useCreateBackstagePermissionsMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useCreateLayoutMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useCreateLayoutMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetAllLayoutsQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetAllLayoutsQuery.js +1 -1
- package/dist/idp-service/src/services/hooks/useGetAllowListQuery.d.ts +16 -0
- package/dist/idp-service/src/services/hooks/useGetAllowListQuery.js +14 -0
- package/dist/idp-service/src/services/hooks/useGetAuthInfoAuthIdQuery.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useGetAuthInfoAuthIdQuery.js +14 -0
- package/dist/{services → idp-service/src/services}/hooks/useGetBackstagePermissionsQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetBackstagePermissionsQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetConnectorInfoQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetConnectorInfoQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesCountQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesCountQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetLayoutQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetLayoutQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetMergedPluginsConfigQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetMergedPluginsConfigQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetPluginsInfoPluginIdQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetPluginsInfoPluginIdQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetPluginsQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetPluginsQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetStatusInfoByTypeQuery.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useGetStatusInfoByTypeQuery.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useImportHarnessEntitiesMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useImportHarnessEntitiesMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useLayoutIngestMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useLayoutIngestMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useOnboardingGenerateYamlMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useOnboardingGenerateYamlMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/usePostPluginRequestMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/usePostPluginRequestMutation.js +1 -1
- package/dist/idp-service/src/services/hooks/useSaveAllowListMutation.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useSaveAllowListMutation.js +14 -0
- package/dist/idp-service/src/services/hooks/useSaveAuthInfoAuthIdMutation.d.ts +22 -0
- package/dist/idp-service/src/services/hooks/useSaveAuthInfoAuthIdMutation.js +14 -0
- package/dist/{services → idp-service/src/services}/hooks/useSaveConnectorInfoMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useSaveConnectorInfoMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useSaveOrUpdatePluginAppConfigMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useSaveOrUpdatePluginAppConfigMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useTogglePluginForAccountMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useTogglePluginForAccountMutation.js +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useUpdateBackstagePermissionsMutation.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/hooks/useUpdateBackstagePermissionsMutation.js +1 -1
- package/dist/idp-service/src/services/hooks/useUpdateConfigurationEntitiesMutation.d.ts +19 -0
- package/dist/idp-service/src/services/hooks/useUpdateConfigurationEntitiesMutation.js +14 -0
- package/dist/{services → idp-service/src/services}/index.d.ts +21 -0
- package/dist/{services → idp-service/src/services}/index.js +5 -0
- package/dist/idp-service/src/services/requestBodies/ConfigurationEntitiesRequestRequestBody.d.ts +2 -0
- package/dist/idp-service/src/services/responses/AllowListResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/AuthInfoResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/responses/ConfigurationEntitiesResponseResponse.d.ts +2 -0
- package/dist/idp-service/src/services/schemas/AllowListRequest.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/AllowListResponse.d.ts +4 -0
- package/dist/{services → idp-service/src/services}/schemas/AppConfig.d.ts +2 -0
- package/dist/idp-service/src/services/schemas/AuthInfo.d.ts +5 -0
- package/dist/idp-service/src/services/schemas/AuthInfoResponse.d.ts +4 -0
- package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariableBatchRequest.d.ts +1 -1
- package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariableResponse.d.ts +1 -1
- package/dist/idp-service/src/services/schemas/ConfigurationEntities.d.ts +6 -0
- package/dist/idp-service/src/services/schemas/HostInfo.d.ts +4 -0
- package/dist/idp-service/src/services/schemas/ImportEntitiesBase.js +1 -0
- package/dist/idp-service/src/services/schemas/LayoutIngestRequest.js +1 -0
- package/dist/idp-service/src/services/schemas/MergedPluginConfigResponse.js +1 -0
- package/dist/{services → idp-service/src/services}/schemas/MergedPluginConfigs.d.ts +2 -0
- package/dist/idp-service/src/services/schemas/MergedPluginConfigs.js +1 -0
- package/dist/idp-service/src/services/schemas/PluginDetailedInfo.js +1 -0
- package/dist/idp-service/src/services/schemas/PluginDetailedInfoResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/PluginDetails.js +1 -0
- package/dist/idp-service/src/services/schemas/PluginInfoResponse.js +1 -0
- package/dist/idp-service/src/services/schemas/ProxyHostDetail.d.ts +8 -0
- package/dist/idp-service/src/services/schemas/RequestPlugin.js +4 -0
- package/dist/idp-service/src/services/schemas/StatusInfo.js +4 -0
- package/dist/idp-service/src/services/schemas/StatusInfoResponse.js +1 -0
- package/package.json +7 -20
- /package/dist/{fetcher.d.ts → fetcher/index.d.ts} +0 -0
- /package/dist/{services → idp-service/src/services}/helpers.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/helpers.js +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/AppConfigRequestRequestBody.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/AppConfigRequestRequestBody.js +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/BackstageEnvVariableBatchRequestRequestBody.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/BackstageEnvVariableBatchRequestRequestBody.js +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/BackstagePermissionsRequestRequestBody.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/BackstagePermissionsRequestRequestBody.js +0 -0
- /package/dist/{services/requestBodies/ConnectorInfoRequestRequestBody.js → idp-service/src/services/requestBodies/ConfigurationEntitiesRequestRequestBody.js} +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/ConnectorInfoRequestRequestBody.d.ts +0 -0
- /package/dist/{services/requestBodies/GenerateYamlRequestRequestBody.js → idp-service/src/services/requestBodies/ConnectorInfoRequestRequestBody.js} +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/GenerateYamlRequestRequestBody.d.ts +0 -0
- /package/dist/{services/requestBodies/ImportHarnessEntitiesRequestRequestBody.js → idp-service/src/services/requestBodies/GenerateYamlRequestRequestBody.js} +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/ImportHarnessEntitiesRequestRequestBody.d.ts +0 -0
- /package/dist/{services/requestBodies/RequestPluginRequestRequestBody.js → idp-service/src/services/requestBodies/ImportHarnessEntitiesRequestRequestBody.js} +0 -0
- /package/dist/{services → idp-service/src/services}/requestBodies/RequestPluginRequestRequestBody.d.ts +0 -0
- /package/dist/{services/responses/AppConfigResponseResponse.js → idp-service/src/services/requestBodies/RequestPluginRequestRequestBody.js} +0 -0
- /package/dist/{services/responses/BackstageEnvVariableResponseListResponse.js → idp-service/src/services/responses/AllowListResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/AppConfigResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/BackstagePermissionsResponseResponse.js → idp-service/src/services/responses/AppConfigResponseResponse.js} +0 -0
- /package/dist/{services/responses/ConnectorInfoResponseResponse.js → idp-service/src/services/responses/AuthInfoResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/BackstageEnvVariableResponseListResponse.d.ts +0 -0
- /package/dist/{services/responses/GenerateYamlResponseResponse.js → idp-service/src/services/responses/BackstageEnvVariableResponseListResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/BackstagePermissionsResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/HarnessEntitiesCountResponseResponse.js → idp-service/src/services/responses/BackstagePermissionsResponseResponse.js} +0 -0
- /package/dist/{services/responses/HarnessEntitiesResponseResponse.js → idp-service/src/services/responses/ConfigurationEntitiesResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/ConnectorInfoResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/ImportEntitiesResponseResponse.js → idp-service/src/services/responses/ConnectorInfoResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/GenerateYamlResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/LayoutResponseResponse.js → idp-service/src/services/responses/GenerateYamlResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/HarnessEntitiesCountResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/MergedPluginConfigResponseResponse.js → idp-service/src/services/responses/HarnessEntitiesCountResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/HarnessEntitiesResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/PluginDetailedInfoResponseResponse.js → idp-service/src/services/responses/HarnessEntitiesResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/ImportEntitiesResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/PluginInfoResponseListResponse.js → idp-service/src/services/responses/ImportEntitiesResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/LayoutResponseResponse.d.ts +0 -0
- /package/dist/{services/responses/StatusInfoResponseResponse.js → idp-service/src/services/responses/LayoutResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/MergedPluginConfigResponseResponse.d.ts +0 -0
- /package/dist/{services/schemas/AppConfig.js → idp-service/src/services/responses/MergedPluginConfigResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/PluginDetailedInfoResponseResponse.d.ts +0 -0
- /package/dist/{services/schemas/AppConfigRequest.js → idp-service/src/services/responses/PluginDetailedInfoResponseResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/PluginInfoResponseListResponse.d.ts +0 -0
- /package/dist/{services/schemas/AppConfigResponse.js → idp-service/src/services/responses/PluginInfoResponseListResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/responses/StatusInfoResponseResponse.d.ts +0 -0
- /package/dist/{services/schemas/BackstageEnvSecretVariable.js → idp-service/src/services/responses/StatusInfoResponseResponse.js} +0 -0
- /package/dist/{services/schemas/BackstageEnvVariableBatchRequest.js → idp-service/src/services/schemas/AllowListRequest.js} +0 -0
- /package/dist/{services/schemas/BackstageEnvVariableResponse.js → idp-service/src/services/schemas/AllowListResponse.js} +0 -0
- /package/dist/{services/schemas/BackstagePermissionsRequest.js → idp-service/src/services/schemas/AppConfig.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/AppConfigRequest.d.ts +0 -0
- /package/dist/{services/schemas/BackstagePermissionsResponse.js → idp-service/src/services/schemas/AppConfigRequest.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/AppConfigResponse.d.ts +0 -0
- /package/dist/{services/schemas/CatalogConnectorInfo.js → idp-service/src/services/schemas/AppConfigResponse.js} +0 -0
- /package/dist/{services/schemas/ConnectorInfoRequest.js → idp-service/src/services/schemas/AuthInfo.js} +0 -0
- /package/dist/{services/schemas/ConnectorInfoResponse.js → idp-service/src/services/schemas/AuthInfoResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstageEnvSecretVariable.d.ts +0 -0
- /package/dist/{services/schemas/Exports.js → idp-service/src/services/schemas/BackstageEnvSecretVariable.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariable.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariable.js +0 -0
- /package/dist/{services/schemas/GenerateYamlRequest.js → idp-service/src/services/schemas/BackstageEnvVariableBatchRequest.js} +0 -0
- /package/dist/{services/schemas/HarnessEntitiesResponse.js → idp-service/src/services/schemas/BackstageEnvVariableResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissions.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissions.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissionsRequest.d.ts +0 -0
- /package/dist/{services/schemas/ImportEntitiesBase.js → idp-service/src/services/schemas/BackstagePermissionsRequest.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissionsResponse.d.ts +0 -0
- /package/dist/{services/schemas/LayoutIngestRequest.js → idp-service/src/services/schemas/BackstagePermissionsResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/CatalogConnectorInfo.d.ts +0 -0
- /package/dist/{services/schemas/MergedPluginConfigResponse.js → idp-service/src/services/schemas/CatalogConnectorInfo.js} +0 -0
- /package/dist/{services/schemas/MergedPluginConfigs.js → idp-service/src/services/schemas/ConfigurationEntities.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ConnectorDetails.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ConnectorDetails.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ConnectorInfoRequest.d.ts +0 -0
- /package/dist/{services/schemas/PluginDetailedInfo.js → idp-service/src/services/schemas/ConnectorInfoRequest.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ConnectorInfoResponse.d.ts +0 -0
- /package/dist/{services/schemas/PluginDetailedInfoResponse.js → idp-service/src/services/schemas/ConnectorInfoResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/EntitiesForImport.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/EntitiesForImport.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ExportDetails.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ExportDetails.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/Exports.d.ts +0 -0
- /package/dist/{services/schemas/PluginDetails.js → idp-service/src/services/schemas/Exports.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/GenerateYamlRequest.d.ts +0 -0
- /package/dist/{services/schemas/PluginInfoResponse.js → idp-service/src/services/schemas/GenerateYamlRequest.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/GenerateYamlResponse.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/GenerateYamlResponse.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/HarnessBackstageEntities.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/HarnessBackstageEntities.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/HarnessEntitiesCountResponse.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/HarnessEntitiesCountResponse.js +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/HarnessEntitiesResponse.d.ts +0 -0
- /package/dist/{services/schemas/StatusInfoResponse.js → idp-service/src/services/schemas/HarnessEntitiesResponse.js} +0 -0
- /package/dist/{services/schemas/ImportEntitiesResponse.js → idp-service/src/services/schemas/HostInfo.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ImportEntitiesBase.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/ImportEntitiesResponse.d.ts +0 -0
- /package/dist/{services/schemas/LayoutRequest.js → idp-service/src/services/schemas/ImportEntitiesResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/LayoutIngestRequest.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/LayoutRequest.d.ts +0 -0
- /package/dist/{services/schemas/LayoutResponse.js → idp-service/src/services/schemas/LayoutRequest.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/LayoutResponse.d.ts +0 -0
- /package/dist/{services/schemas/PluginInfo.js → idp-service/src/services/schemas/LayoutResponse.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/MergedPluginConfigResponse.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/PluginDetailedInfo.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/PluginDetailedInfoResponse.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/PluginDetails.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/PluginInfo.d.ts +0 -0
- /package/dist/{services/schemas/RequestPlugin.js → idp-service/src/services/schemas/PluginInfo.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/PluginInfoResponse.d.ts +0 -0
- /package/dist/{services/schemas/StatusInfo.js → idp-service/src/services/schemas/ProxyHostDetail.js} +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/RequestPlugin.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/StatusInfo.d.ts +0 -0
- /package/dist/{services → idp-service/src/services}/schemas/StatusInfoResponse.d.ts +0 -0
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ yarn build
|
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## For NextGen UI adoption : IDPServiceAPIClient should be initialized
|
|
19
|
+
|
|
19
20
|
Before using API Client, it must be initilaized with required `ClientCallbacks`.
|
|
20
21
|
|
|
21
22
|
Example:
|
|
@@ -28,12 +29,11 @@ Example:
|
|
|
28
29
|
```
|
|
29
30
|
|
|
30
31
|
## Versioning
|
|
32
|
+
|
|
31
33
|

|
|
32
34
|
|
|
33
35
|
Once development phase is completed, this repo will have changes and versioning driven by API spec only.
|
|
34
36
|
|
|
35
|
-
|
|
36
37
|
## License
|
|
37
38
|
|
|
38
39
|
[MIT](./LICENSE.md). Copyright(c) [Harness Inc](https://harness.io)
|
|
39
|
-
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { __awaiter, __rest } from "tslib";
|
|
2
2
|
import { stringify } from 'qs';
|
|
3
3
|
const JSON_CONTENT_TYPES = ['application/json'];
|
|
4
|
-
let
|
|
4
|
+
let APIClientInitialized = false;
|
|
5
5
|
let fetcherCallbacks;
|
|
6
6
|
let customHeaders = {
|
|
7
|
-
'Content-Type': JSON_CONTENT_TYPES[0]
|
|
7
|
+
'Content-Type': JSON_CONTENT_TYPES[0],
|
|
8
8
|
};
|
|
9
9
|
export function setupClient(callbacks) {
|
|
10
10
|
fetcherCallbacks = callbacks;
|
|
11
11
|
customHeaders = Object.assign(Object.assign({}, customHeaders), ((fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.getRequestHeaders) ? fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.getRequestHeaders() : {}));
|
|
12
|
-
|
|
12
|
+
APIClientInitialized = true;
|
|
13
13
|
}
|
|
14
14
|
export const updateClientHeaders = (headers) => {
|
|
15
15
|
customHeaders = Object.assign(Object.assign({}, customHeaders), headers);
|
|
@@ -18,7 +18,7 @@ export function fetcher(options) {
|
|
|
18
18
|
var _a, _b;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
// If not initialized throw error even without making request
|
|
21
|
-
if (!
|
|
21
|
+
if (!APIClientInitialized) {
|
|
22
22
|
throw { reason: 'HarnessReactAPIClient has not been initialized' };
|
|
23
23
|
}
|
|
24
24
|
const { stringifyQueryParamsOptions, headers, body, url, queryParams = { account: customHeaders['Harness-Account'] } } = options, rest = __rest(options, ["stringifyQueryParamsOptions", "headers", "body", "url", "queryParams"]);
|
|
@@ -58,7 +58,7 @@ export function fetcher(options) {
|
|
|
58
58
|
const asJson = contentType && JSON_CONTENT_TYPES.some((h) => contentType.startsWith(h));
|
|
59
59
|
const data = yield (asJson ? response.json() : response.text());
|
|
60
60
|
if (response.ok) {
|
|
61
|
-
return
|
|
61
|
+
return Object.assign({ content: data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
|
|
62
62
|
}
|
|
63
63
|
throw data;
|
|
64
64
|
});
|
package/dist/{services → idp-service/src/services}/hooks/useCreateBackstageEnvVariablesMutation.d.ts
RENAMED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { BackstageEnvVariableResponseListResponse } from '../responses/BackstageEnvVariableResponseListResponse';
|
|
3
3
|
import type { BackstageEnvVariableBatchRequestRequestBody } from '../requestBodies/BackstageEnvVariableBatchRequestRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CreateBackstageEnvVariablesMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useCreateBackstageEnvVariablesMutation.js
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function createBackstageEnvVariables(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/backstage-env-variables/batch`, method: 'POST' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useCreateBackstagePermissionsMutation.d.ts
RENAMED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { BackstagePermissionsResponseResponse } from '../responses/BackstagePermissionsResponseResponse';
|
|
3
3
|
import type { BackstagePermissionsRequestRequestBody } from '../requestBodies/BackstagePermissionsRequestRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CreateBackstagePermissionsMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useCreateBackstagePermissionsMutation.js
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function createBackstagePermissions(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/backstage-permissions`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { LayoutResponseResponse } from '../responses/LayoutResponseResponse';
|
|
3
3
|
import type { LayoutRequest } from '../schemas/LayoutRequest';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface CreateLayoutMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function createLayout(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/layout`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { LayoutResponseResponse } from '../responses/LayoutResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetAllLayoutsQueryHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAllLayouts(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/layout`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AllowListResponseResponse } from '../responses/AllowListResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAllowListQueryHeaderParams {
|
|
6
|
+
'Harness-Account'?: string;
|
|
7
|
+
}
|
|
8
|
+
export type GetAllowListOkResponse = ResponseWithPagination<AllowListResponseResponse>;
|
|
9
|
+
export type GetAllowListErrorResponse = unknown;
|
|
10
|
+
export interface GetAllowListProps extends Omit<FetcherOptions<unknown, unknown, GetAllowListQueryHeaderParams>, 'url'> {
|
|
11
|
+
}
|
|
12
|
+
export declare function getAllowList(props: GetAllowListProps): Promise<GetAllowListOkResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Get backend url allow list
|
|
15
|
+
*/
|
|
16
|
+
export declare function useGetAllowListQuery(props: GetAllowListProps, options?: Omit<UseQueryOptions<GetAllowListOkResponse, GetAllowListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAllowListOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAllowList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/allow-list`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get backend url allow list
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAllowListQuery(props, options) {
|
|
13
|
+
return useQuery(['get-allow-list'], ({ signal }) => getAllowList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AuthInfoResponseResponse } from '../responses/AuthInfoResponseResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAuthInfoAuthIdQueryPathParams {
|
|
6
|
+
'auth-id': 'github-auth' | 'google-auth';
|
|
7
|
+
}
|
|
8
|
+
export interface GetAuthInfoAuthIdQueryHeaderParams {
|
|
9
|
+
'Harness-Account'?: string;
|
|
10
|
+
}
|
|
11
|
+
export type GetAuthInfoAuthIdOkResponse = ResponseWithPagination<AuthInfoResponseResponse>;
|
|
12
|
+
export type GetAuthInfoAuthIdErrorResponse = unknown;
|
|
13
|
+
export interface GetAuthInfoAuthIdProps extends GetAuthInfoAuthIdQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetAuthInfoAuthIdQueryHeaderParams>, 'url'> {
|
|
14
|
+
}
|
|
15
|
+
export declare function getAuthInfoAuthId(props: GetAuthInfoAuthIdProps): Promise<GetAuthInfoAuthIdOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Get auth details for given authId
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetAuthInfoAuthIdQuery(props: GetAuthInfoAuthIdProps, options?: Omit<UseQueryOptions<GetAuthInfoAuthIdOkResponse, GetAuthInfoAuthIdErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAuthInfoAuthIdOkResponse, 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 { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getAuthInfoAuthId(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/auth-info/${props['auth-id']}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get auth details for given authId
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAuthInfoAuthIdQuery(props, options) {
|
|
13
|
+
return useQuery(['get-auth-info-auth-id', props['auth-id']], ({ signal }) => getAuthInfoAuthId(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/{services → idp-service/src/services}/hooks/useGetBackstagePermissionsQuery.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { BackstagePermissionsResponseResponse } from '../responses/BackstagePermissionsResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetBackstagePermissionsQueryHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getBackstagePermissions(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/backstage-permissions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ConnectorInfoResponseResponse } from '../responses/ConnectorInfoResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetConnectorInfoQueryHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getConnectorInfo(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/connector-info`, method: 'GET' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesCountQuery.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HarnessEntitiesCountResponseResponse } from '../responses/HarnessEntitiesCountResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetHarnessEntitiesCountQueryHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getHarnessEntitiesCount(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/onboarding/harness-entities-count`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { HarnessEntitiesResponseResponse } from '../responses/HarnessEntitiesResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetHarnessEntitiesQueryQueryParams {
|
|
6
6
|
page?: number;
|
|
7
7
|
limit?: number;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getHarnessEntities(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/onboarding/harness-entities`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { LayoutResponseResponse } from '../responses/LayoutResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetLayoutQueryPathParams {
|
|
6
6
|
'layout-identifier': string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getLayout(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/layout/${props['layout-identifier']}`, method: 'GET' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useGetMergedPluginsConfigQuery.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { MergedPluginConfigResponseResponse } from '../responses/MergedPluginConfigResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetMergedPluginsConfigQueryHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getMergedPluginsConfig(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/merged-plugins-config`, method: 'GET' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useGetPluginsInfoPluginIdQuery.d.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { PluginDetailedInfoResponseResponse } from '../responses/PluginDetailedInfoResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetPluginsInfoPluginIdQueryPathParams {
|
|
6
6
|
'plugin-id': string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getPluginsInfoPluginId(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/plugins-info/${props['plugin-id']}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { PluginInfoResponseListResponse } from '../responses/PluginInfoResponseListResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetPluginsQueryHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getPlugins(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/plugins-info`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { StatusInfoResponseResponse } from '../responses/StatusInfoResponseResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetStatusInfoByTypeQueryPathParams {
|
|
6
6
|
type: 'infra' | 'onboarding';
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getStatusInfoByType(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/status-info/${props.type}`, method: 'GET' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useImportHarnessEntitiesMutation.d.ts
RENAMED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ImportEntitiesResponseResponse } from '../responses/ImportEntitiesResponseResponse';
|
|
3
3
|
import type { ImportHarnessEntitiesRequestRequestBody } from '../requestBodies/ImportHarnessEntitiesRequestRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface ImportHarnessEntitiesMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useImportHarnessEntitiesMutation.js
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function importHarnessEntities(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/onboarding/import-harness-entities`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { LayoutResponseResponse } from '../responses/LayoutResponseResponse';
|
|
3
3
|
import type { LayoutIngestRequest } from '../schemas/LayoutIngestRequest';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface LayoutIngestMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function layoutIngest(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/layout/ingest`, method: 'POST' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useOnboardingGenerateYamlMutation.d.ts
RENAMED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { GenerateYamlResponseResponse } from '../responses/GenerateYamlResponseResponse';
|
|
3
3
|
import type { GenerateYamlRequestRequestBody } from '../requestBodies/GenerateYamlRequestRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface OnboardingGenerateYamlMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useOnboardingGenerateYamlMutation.js
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function onboardingGenerateYaml(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/onboarding/generate-yaml`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { RequestPluginRequestRequestBody } from '../requestBodies/RequestPluginRequestRequestBody';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface PostPluginRequestMutationHeaderParams {
|
|
6
6
|
'Harness-Account'?: string;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function postPluginRequest(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/plugin/request`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AllowListResponseResponse } from '../responses/AllowListResponseResponse';
|
|
3
|
+
import type { AllowListRequest } from '../schemas/AllowListRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SaveAllowListMutationHeaderParams {
|
|
7
|
+
'Harness-Account'?: string;
|
|
8
|
+
}
|
|
9
|
+
export type SaveAllowListRequestBody = AllowListRequest;
|
|
10
|
+
export type SaveAllowListOkResponse = ResponseWithPagination<AllowListResponseResponse>;
|
|
11
|
+
export type SaveAllowListErrorResponse = unknown;
|
|
12
|
+
export interface SaveAllowListProps extends Omit<FetcherOptions<unknown, SaveAllowListRequestBody, SaveAllowListMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: SaveAllowListRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function saveAllowList(props: SaveAllowListProps): Promise<SaveAllowListOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Save backend url allow list
|
|
18
|
+
*/
|
|
19
|
+
export declare function useSaveAllowListMutation(options?: Omit<UseMutationOptions<SaveAllowListOkResponse, SaveAllowListErrorResponse, SaveAllowListProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAllowListOkResponse, unknown, SaveAllowListProps, 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/index.js';
|
|
6
|
+
export function saveAllowList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/allow-list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Save backend url allow list
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveAllowListMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => saveAllowList(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BackstageEnvVariableResponseListResponse } from '../responses/BackstageEnvVariableResponseListResponse';
|
|
3
|
+
import type { BackstageEnvVariableBatchRequest } from '../schemas/BackstageEnvVariableBatchRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface SaveAuthInfoAuthIdMutationPathParams {
|
|
7
|
+
'auth-id': 'github-auth' | 'google-auth';
|
|
8
|
+
}
|
|
9
|
+
export interface SaveAuthInfoAuthIdMutationHeaderParams {
|
|
10
|
+
'Harness-Account'?: string;
|
|
11
|
+
}
|
|
12
|
+
export type SaveAuthInfoAuthIdRequestBody = BackstageEnvVariableBatchRequest;
|
|
13
|
+
export type SaveAuthInfoAuthIdOkResponse = ResponseWithPagination<BackstageEnvVariableResponseListResponse>;
|
|
14
|
+
export type SaveAuthInfoAuthIdErrorResponse = unknown;
|
|
15
|
+
export interface SaveAuthInfoAuthIdProps extends SaveAuthInfoAuthIdMutationPathParams, Omit<FetcherOptions<unknown, SaveAuthInfoAuthIdRequestBody, SaveAuthInfoAuthIdMutationHeaderParams>, 'url'> {
|
|
16
|
+
body: SaveAuthInfoAuthIdRequestBody;
|
|
17
|
+
}
|
|
18
|
+
export declare function saveAuthInfoAuthId(props: SaveAuthInfoAuthIdProps): Promise<SaveAuthInfoAuthIdOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Save auth details for given authId
|
|
21
|
+
*/
|
|
22
|
+
export declare function useSaveAuthInfoAuthIdMutation(options?: Omit<UseMutationOptions<SaveAuthInfoAuthIdOkResponse, SaveAuthInfoAuthIdErrorResponse, SaveAuthInfoAuthIdProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAuthInfoAuthIdOkResponse, unknown, SaveAuthInfoAuthIdProps, 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/index.js';
|
|
6
|
+
export function saveAuthInfoAuthId(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/auth-info/${props['auth-id']}`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Save auth details for given authId
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveAuthInfoAuthIdMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => saveAuthInfoAuthId(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { ConnectorInfoResponseResponse } from '../responses/ConnectorInfoResponseResponse';
|
|
3
3
|
import type { ConnectorInfoRequestRequestBody } from '../requestBodies/ConnectorInfoRequestRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface SaveConnectorInfoMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function saveConnectorInfo(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/connector-info`, method: 'POST' }, props));
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useSaveOrUpdatePluginAppConfigMutation.d.ts
RENAMED
|
@@ -2,7 +2,7 @@ import { UseMutationOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { AppConfigResponseResponse } from '../responses/AppConfigResponseResponse';
|
|
3
3
|
import type { AppConfigRequestRequestBody } from '../requestBodies/AppConfigRequestRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
6
|
export interface SaveOrUpdatePluginAppConfigMutationHeaderParams {
|
|
7
7
|
'Harness-Account'?: string;
|
|
8
8
|
}
|
package/dist/{services → idp-service/src/services}/hooks/useSaveOrUpdatePluginAppConfigMutation.js
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function saveOrUpdatePluginAppConfig(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/app-config`, method: 'POST' }, props));
|
|
8
8
|
}
|