@harnessio/react-idp-service-client 0.24.0 → 0.26.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.
Files changed (189) hide show
  1. package/README.md +2 -2
  2. package/dist/{fetcher.js → fetcher/index.js} +5 -5
  3. package/dist/{index.d.ts → idp-service/src/index.d.ts} +1 -1
  4. package/dist/{index.js → idp-service/src/index.js} +1 -1
  5. package/dist/{services → idp-service/src/services}/hooks/useCreateBackstageEnvVariablesMutation.d.ts +1 -1
  6. package/dist/{services → idp-service/src/services}/hooks/useCreateBackstageEnvVariablesMutation.js +1 -1
  7. package/dist/{services → idp-service/src/services}/hooks/useCreateBackstagePermissionsMutation.d.ts +1 -1
  8. package/dist/{services → idp-service/src/services}/hooks/useCreateBackstagePermissionsMutation.js +1 -1
  9. package/dist/{services → idp-service/src/services}/hooks/useCreateLayoutMutation.d.ts +1 -1
  10. package/dist/{services → idp-service/src/services}/hooks/useCreateLayoutMutation.js +1 -1
  11. package/dist/{services → idp-service/src/services}/hooks/useGetAllLayoutsQuery.d.ts +1 -1
  12. package/dist/{services → idp-service/src/services}/hooks/useGetAllLayoutsQuery.js +1 -1
  13. package/dist/idp-service/src/services/hooks/useGetAllowListQuery.d.ts +16 -0
  14. package/dist/idp-service/src/services/hooks/useGetAllowListQuery.js +14 -0
  15. package/dist/idp-service/src/services/hooks/useGetAuthInfoAuthIdQuery.d.ts +19 -0
  16. package/dist/idp-service/src/services/hooks/useGetAuthInfoAuthIdQuery.js +14 -0
  17. package/dist/{services → idp-service/src/services}/hooks/useGetBackstagePermissionsQuery.d.ts +1 -1
  18. package/dist/{services → idp-service/src/services}/hooks/useGetBackstagePermissionsQuery.js +1 -1
  19. package/dist/{services → idp-service/src/services}/hooks/useGetConnectorInfoQuery.d.ts +1 -1
  20. package/dist/{services → idp-service/src/services}/hooks/useGetConnectorInfoQuery.js +1 -1
  21. package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesCountQuery.d.ts +1 -1
  22. package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesCountQuery.js +1 -1
  23. package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesQuery.d.ts +1 -1
  24. package/dist/{services → idp-service/src/services}/hooks/useGetHarnessEntitiesQuery.js +1 -1
  25. package/dist/{services → idp-service/src/services}/hooks/useGetLayoutQuery.d.ts +1 -1
  26. package/dist/{services → idp-service/src/services}/hooks/useGetLayoutQuery.js +1 -1
  27. package/dist/{services → idp-service/src/services}/hooks/useGetMergedPluginsConfigQuery.d.ts +1 -1
  28. package/dist/{services → idp-service/src/services}/hooks/useGetMergedPluginsConfigQuery.js +1 -1
  29. package/dist/{services → idp-service/src/services}/hooks/useGetPluginsInfoPluginIdQuery.d.ts +1 -1
  30. package/dist/{services → idp-service/src/services}/hooks/useGetPluginsInfoPluginIdQuery.js +1 -1
  31. package/dist/{services → idp-service/src/services}/hooks/useGetPluginsQuery.d.ts +1 -1
  32. package/dist/{services → idp-service/src/services}/hooks/useGetPluginsQuery.js +1 -1
  33. package/dist/{services → idp-service/src/services}/hooks/useGetStatusInfoByTypeQuery.d.ts +1 -1
  34. package/dist/{services → idp-service/src/services}/hooks/useGetStatusInfoByTypeQuery.js +1 -1
  35. package/dist/{services → idp-service/src/services}/hooks/useImportHarnessEntitiesMutation.d.ts +1 -1
  36. package/dist/{services → idp-service/src/services}/hooks/useImportHarnessEntitiesMutation.js +1 -1
  37. package/dist/{services → idp-service/src/services}/hooks/useLayoutIngestMutation.d.ts +3 -2
  38. package/dist/{services → idp-service/src/services}/hooks/useLayoutIngestMutation.js +1 -1
  39. package/dist/{services → idp-service/src/services}/hooks/useOnboardingGenerateYamlMutation.d.ts +1 -1
  40. package/dist/{services → idp-service/src/services}/hooks/useOnboardingGenerateYamlMutation.js +1 -1
  41. package/dist/{services → idp-service/src/services}/hooks/usePostPluginRequestMutation.d.ts +1 -1
  42. package/dist/{services → idp-service/src/services}/hooks/usePostPluginRequestMutation.js +1 -1
  43. package/dist/idp-service/src/services/hooks/useSaveAllowListMutation.d.ts +19 -0
  44. package/dist/idp-service/src/services/hooks/useSaveAllowListMutation.js +14 -0
  45. package/dist/idp-service/src/services/hooks/useSaveAuthInfoAuthIdMutation.d.ts +22 -0
  46. package/dist/idp-service/src/services/hooks/useSaveAuthInfoAuthIdMutation.js +14 -0
  47. package/dist/{services → idp-service/src/services}/hooks/useSaveConnectorInfoMutation.d.ts +1 -1
  48. package/dist/{services → idp-service/src/services}/hooks/useSaveConnectorInfoMutation.js +1 -1
  49. package/dist/{services → idp-service/src/services}/hooks/useSaveOrUpdatePluginAppConfigMutation.d.ts +1 -1
  50. package/dist/{services → idp-service/src/services}/hooks/useSaveOrUpdatePluginAppConfigMutation.js +1 -1
  51. package/dist/{services → idp-service/src/services}/hooks/useTogglePluginForAccountMutation.d.ts +1 -1
  52. package/dist/{services → idp-service/src/services}/hooks/useTogglePluginForAccountMutation.js +1 -1
  53. package/dist/{services → idp-service/src/services}/hooks/useUpdateBackstagePermissionsMutation.d.ts +1 -1
  54. package/dist/{services → idp-service/src/services}/hooks/useUpdateBackstagePermissionsMutation.js +1 -1
  55. package/dist/{services → idp-service/src/services}/index.d.ts +15 -0
  56. package/dist/{services → idp-service/src/services}/index.js +4 -0
  57. package/dist/idp-service/src/services/responses/AllowListResponseResponse.d.ts +2 -0
  58. package/dist/idp-service/src/services/responses/AuthInfoResponseResponse.d.ts +2 -0
  59. package/dist/idp-service/src/services/schemas/AllowListRequest.d.ts +4 -0
  60. package/dist/idp-service/src/services/schemas/AllowListResponse.d.ts +4 -0
  61. package/dist/idp-service/src/services/schemas/AuthInfo.d.ts +5 -0
  62. package/dist/idp-service/src/services/schemas/AuthInfoResponse.d.ts +4 -0
  63. package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariableBatchRequest.d.ts +1 -1
  64. package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariableResponse.d.ts +1 -1
  65. package/dist/idp-service/src/services/schemas/HostInfo.d.ts +4 -0
  66. package/dist/idp-service/src/services/schemas/LayoutIngestRequest.d.ts +5 -0
  67. package/dist/idp-service/src/services/schemas/MergedPluginConfigs.js +1 -0
  68. package/dist/idp-service/src/services/schemas/PluginDetailedInfo.js +1 -0
  69. package/dist/idp-service/src/services/schemas/PluginDetailedInfoResponse.js +1 -0
  70. package/dist/idp-service/src/services/schemas/PluginDetails.js +1 -0
  71. package/dist/idp-service/src/services/schemas/PluginInfoResponse.js +1 -0
  72. package/dist/idp-service/src/services/schemas/StatusInfo.js +4 -0
  73. package/dist/idp-service/src/services/schemas/StatusInfoResponse.js +1 -0
  74. package/package.json +7 -20
  75. package/dist/services/schemas/LayoutIngestRequest.d.ts +0 -4
  76. /package/dist/{fetcher.d.ts → fetcher/index.d.ts} +0 -0
  77. /package/dist/{services → idp-service/src/services}/helpers.d.ts +0 -0
  78. /package/dist/{services → idp-service/src/services}/helpers.js +0 -0
  79. /package/dist/{services → idp-service/src/services}/requestBodies/AppConfigRequestRequestBody.d.ts +0 -0
  80. /package/dist/{services → idp-service/src/services}/requestBodies/AppConfigRequestRequestBody.js +0 -0
  81. /package/dist/{services → idp-service/src/services}/requestBodies/BackstageEnvVariableBatchRequestRequestBody.d.ts +0 -0
  82. /package/dist/{services → idp-service/src/services}/requestBodies/BackstageEnvVariableBatchRequestRequestBody.js +0 -0
  83. /package/dist/{services → idp-service/src/services}/requestBodies/BackstagePermissionsRequestRequestBody.d.ts +0 -0
  84. /package/dist/{services → idp-service/src/services}/requestBodies/BackstagePermissionsRequestRequestBody.js +0 -0
  85. /package/dist/{services → idp-service/src/services}/requestBodies/ConnectorInfoRequestRequestBody.d.ts +0 -0
  86. /package/dist/{services → idp-service/src/services}/requestBodies/ConnectorInfoRequestRequestBody.js +0 -0
  87. /package/dist/{services → idp-service/src/services}/requestBodies/GenerateYamlRequestRequestBody.d.ts +0 -0
  88. /package/dist/{services → idp-service/src/services}/requestBodies/GenerateYamlRequestRequestBody.js +0 -0
  89. /package/dist/{services → idp-service/src/services}/requestBodies/ImportHarnessEntitiesRequestRequestBody.d.ts +0 -0
  90. /package/dist/{services → idp-service/src/services}/requestBodies/ImportHarnessEntitiesRequestRequestBody.js +0 -0
  91. /package/dist/{services → idp-service/src/services}/requestBodies/RequestPluginRequestRequestBody.d.ts +0 -0
  92. /package/dist/{services → idp-service/src/services}/requestBodies/RequestPluginRequestRequestBody.js +0 -0
  93. /package/dist/{services/responses/AppConfigResponseResponse.js → idp-service/src/services/responses/AllowListResponseResponse.js} +0 -0
  94. /package/dist/{services → idp-service/src/services}/responses/AppConfigResponseResponse.d.ts +0 -0
  95. /package/dist/{services/responses/BackstageEnvVariableResponseListResponse.js → idp-service/src/services/responses/AppConfigResponseResponse.js} +0 -0
  96. /package/dist/{services/responses/BackstagePermissionsResponseResponse.js → idp-service/src/services/responses/AuthInfoResponseResponse.js} +0 -0
  97. /package/dist/{services → idp-service/src/services}/responses/BackstageEnvVariableResponseListResponse.d.ts +0 -0
  98. /package/dist/{services/responses/ConnectorInfoResponseResponse.js → idp-service/src/services/responses/BackstageEnvVariableResponseListResponse.js} +0 -0
  99. /package/dist/{services → idp-service/src/services}/responses/BackstagePermissionsResponseResponse.d.ts +0 -0
  100. /package/dist/{services/responses/GenerateYamlResponseResponse.js → idp-service/src/services/responses/BackstagePermissionsResponseResponse.js} +0 -0
  101. /package/dist/{services → idp-service/src/services}/responses/ConnectorInfoResponseResponse.d.ts +0 -0
  102. /package/dist/{services/responses/HarnessEntitiesCountResponseResponse.js → idp-service/src/services/responses/ConnectorInfoResponseResponse.js} +0 -0
  103. /package/dist/{services → idp-service/src/services}/responses/GenerateYamlResponseResponse.d.ts +0 -0
  104. /package/dist/{services/responses/HarnessEntitiesResponseResponse.js → idp-service/src/services/responses/GenerateYamlResponseResponse.js} +0 -0
  105. /package/dist/{services → idp-service/src/services}/responses/HarnessEntitiesCountResponseResponse.d.ts +0 -0
  106. /package/dist/{services/responses/ImportEntitiesResponseResponse.js → idp-service/src/services/responses/HarnessEntitiesCountResponseResponse.js} +0 -0
  107. /package/dist/{services → idp-service/src/services}/responses/HarnessEntitiesResponseResponse.d.ts +0 -0
  108. /package/dist/{services/responses/LayoutResponseResponse.js → idp-service/src/services/responses/HarnessEntitiesResponseResponse.js} +0 -0
  109. /package/dist/{services → idp-service/src/services}/responses/ImportEntitiesResponseResponse.d.ts +0 -0
  110. /package/dist/{services/responses/MergedPluginConfigResponseResponse.js → idp-service/src/services/responses/ImportEntitiesResponseResponse.js} +0 -0
  111. /package/dist/{services → idp-service/src/services}/responses/LayoutResponseResponse.d.ts +0 -0
  112. /package/dist/{services/responses/PluginDetailedInfoResponseResponse.js → idp-service/src/services/responses/LayoutResponseResponse.js} +0 -0
  113. /package/dist/{services → idp-service/src/services}/responses/MergedPluginConfigResponseResponse.d.ts +0 -0
  114. /package/dist/{services/responses/PluginInfoResponseListResponse.js → idp-service/src/services/responses/MergedPluginConfigResponseResponse.js} +0 -0
  115. /package/dist/{services → idp-service/src/services}/responses/PluginDetailedInfoResponseResponse.d.ts +0 -0
  116. /package/dist/{services/responses/StatusInfoResponseResponse.js → idp-service/src/services/responses/PluginDetailedInfoResponseResponse.js} +0 -0
  117. /package/dist/{services → idp-service/src/services}/responses/PluginInfoResponseListResponse.d.ts +0 -0
  118. /package/dist/{services/schemas/AppConfig.js → idp-service/src/services/responses/PluginInfoResponseListResponse.js} +0 -0
  119. /package/dist/{services → idp-service/src/services}/responses/StatusInfoResponseResponse.d.ts +0 -0
  120. /package/dist/{services/schemas/AppConfigRequest.js → idp-service/src/services/responses/StatusInfoResponseResponse.js} +0 -0
  121. /package/dist/{services/schemas/AppConfigResponse.js → idp-service/src/services/schemas/AllowListRequest.js} +0 -0
  122. /package/dist/{services/schemas/BackstageEnvSecretVariable.js → idp-service/src/services/schemas/AllowListResponse.js} +0 -0
  123. /package/dist/{services → idp-service/src/services}/schemas/AppConfig.d.ts +0 -0
  124. /package/dist/{services/schemas/BackstageEnvVariableBatchRequest.js → idp-service/src/services/schemas/AppConfig.js} +0 -0
  125. /package/dist/{services → idp-service/src/services}/schemas/AppConfigRequest.d.ts +0 -0
  126. /package/dist/{services/schemas/BackstageEnvVariableResponse.js → idp-service/src/services/schemas/AppConfigRequest.js} +0 -0
  127. /package/dist/{services → idp-service/src/services}/schemas/AppConfigResponse.d.ts +0 -0
  128. /package/dist/{services/schemas/BackstagePermissionsRequest.js → idp-service/src/services/schemas/AppConfigResponse.js} +0 -0
  129. /package/dist/{services/schemas/BackstagePermissionsResponse.js → idp-service/src/services/schemas/AuthInfo.js} +0 -0
  130. /package/dist/{services/schemas/CatalogConnectorInfo.js → idp-service/src/services/schemas/AuthInfoResponse.js} +0 -0
  131. /package/dist/{services → idp-service/src/services}/schemas/BackstageEnvSecretVariable.d.ts +0 -0
  132. /package/dist/{services/schemas/ConnectorInfoRequest.js → idp-service/src/services/schemas/BackstageEnvSecretVariable.js} +0 -0
  133. /package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariable.d.ts +0 -0
  134. /package/dist/{services → idp-service/src/services}/schemas/BackstageEnvVariable.js +0 -0
  135. /package/dist/{services/schemas/ConnectorInfoResponse.js → idp-service/src/services/schemas/BackstageEnvVariableBatchRequest.js} +0 -0
  136. /package/dist/{services/schemas/Exports.js → idp-service/src/services/schemas/BackstageEnvVariableResponse.js} +0 -0
  137. /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissions.d.ts +0 -0
  138. /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissions.js +0 -0
  139. /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissionsRequest.d.ts +0 -0
  140. /package/dist/{services/schemas/GenerateYamlRequest.js → idp-service/src/services/schemas/BackstagePermissionsRequest.js} +0 -0
  141. /package/dist/{services → idp-service/src/services}/schemas/BackstagePermissionsResponse.d.ts +0 -0
  142. /package/dist/{services/schemas/HarnessEntitiesResponse.js → idp-service/src/services/schemas/BackstagePermissionsResponse.js} +0 -0
  143. /package/dist/{services → idp-service/src/services}/schemas/CatalogConnectorInfo.d.ts +0 -0
  144. /package/dist/{services/schemas/ImportEntitiesBase.js → idp-service/src/services/schemas/CatalogConnectorInfo.js} +0 -0
  145. /package/dist/{services → idp-service/src/services}/schemas/ConnectorDetails.d.ts +0 -0
  146. /package/dist/{services → idp-service/src/services}/schemas/ConnectorDetails.js +0 -0
  147. /package/dist/{services → idp-service/src/services}/schemas/ConnectorInfoRequest.d.ts +0 -0
  148. /package/dist/{services/schemas/LayoutIngestRequest.js → idp-service/src/services/schemas/ConnectorInfoRequest.js} +0 -0
  149. /package/dist/{services → idp-service/src/services}/schemas/ConnectorInfoResponse.d.ts +0 -0
  150. /package/dist/{services/schemas/MergedPluginConfigResponse.js → idp-service/src/services/schemas/ConnectorInfoResponse.js} +0 -0
  151. /package/dist/{services → idp-service/src/services}/schemas/EntitiesForImport.d.ts +0 -0
  152. /package/dist/{services → idp-service/src/services}/schemas/EntitiesForImport.js +0 -0
  153. /package/dist/{services → idp-service/src/services}/schemas/ExportDetails.d.ts +0 -0
  154. /package/dist/{services → idp-service/src/services}/schemas/ExportDetails.js +0 -0
  155. /package/dist/{services → idp-service/src/services}/schemas/Exports.d.ts +0 -0
  156. /package/dist/{services/schemas/MergedPluginConfigs.js → idp-service/src/services/schemas/Exports.js} +0 -0
  157. /package/dist/{services → idp-service/src/services}/schemas/GenerateYamlRequest.d.ts +0 -0
  158. /package/dist/{services/schemas/PluginDetailedInfo.js → idp-service/src/services/schemas/GenerateYamlRequest.js} +0 -0
  159. /package/dist/{services → idp-service/src/services}/schemas/GenerateYamlResponse.d.ts +0 -0
  160. /package/dist/{services → idp-service/src/services}/schemas/GenerateYamlResponse.js +0 -0
  161. /package/dist/{services → idp-service/src/services}/schemas/HarnessBackstageEntities.d.ts +0 -0
  162. /package/dist/{services → idp-service/src/services}/schemas/HarnessBackstageEntities.js +0 -0
  163. /package/dist/{services → idp-service/src/services}/schemas/HarnessEntitiesCountResponse.d.ts +0 -0
  164. /package/dist/{services → idp-service/src/services}/schemas/HarnessEntitiesCountResponse.js +0 -0
  165. /package/dist/{services → idp-service/src/services}/schemas/HarnessEntitiesResponse.d.ts +0 -0
  166. /package/dist/{services/schemas/PluginDetailedInfoResponse.js → idp-service/src/services/schemas/HarnessEntitiesResponse.js} +0 -0
  167. /package/dist/{services/schemas/ImportEntitiesResponse.js → idp-service/src/services/schemas/HostInfo.js} +0 -0
  168. /package/dist/{services → idp-service/src/services}/schemas/ImportEntitiesBase.d.ts +0 -0
  169. /package/dist/{services/schemas/PluginDetails.js → idp-service/src/services/schemas/ImportEntitiesBase.js} +0 -0
  170. /package/dist/{services → idp-service/src/services}/schemas/ImportEntitiesResponse.d.ts +0 -0
  171. /package/dist/{services/schemas/LayoutRequest.js → idp-service/src/services/schemas/ImportEntitiesResponse.js} +0 -0
  172. /package/dist/{services/schemas/PluginInfoResponse.js → idp-service/src/services/schemas/LayoutIngestRequest.js} +0 -0
  173. /package/dist/{services → idp-service/src/services}/schemas/LayoutRequest.d.ts +0 -0
  174. /package/dist/{services/schemas/LayoutResponse.js → idp-service/src/services/schemas/LayoutRequest.js} +0 -0
  175. /package/dist/{services → idp-service/src/services}/schemas/LayoutResponse.d.ts +0 -0
  176. /package/dist/{services/schemas/PluginInfo.js → idp-service/src/services/schemas/LayoutResponse.js} +0 -0
  177. /package/dist/{services → idp-service/src/services}/schemas/MergedPluginConfigResponse.d.ts +0 -0
  178. /package/dist/{services/schemas/StatusInfoResponse.js → idp-service/src/services/schemas/MergedPluginConfigResponse.js} +0 -0
  179. /package/dist/{services → idp-service/src/services}/schemas/MergedPluginConfigs.d.ts +0 -0
  180. /package/dist/{services → idp-service/src/services}/schemas/PluginDetailedInfo.d.ts +0 -0
  181. /package/dist/{services → idp-service/src/services}/schemas/PluginDetailedInfoResponse.d.ts +0 -0
  182. /package/dist/{services → idp-service/src/services}/schemas/PluginDetails.d.ts +0 -0
  183. /package/dist/{services → idp-service/src/services}/schemas/PluginInfo.d.ts +0 -0
  184. /package/dist/{services/schemas/RequestPlugin.js → idp-service/src/services/schemas/PluginInfo.js} +0 -0
  185. /package/dist/{services → idp-service/src/services}/schemas/PluginInfoResponse.d.ts +0 -0
  186. /package/dist/{services → idp-service/src/services}/schemas/RequestPlugin.d.ts +0 -0
  187. /package/dist/{services/schemas/StatusInfo.js → idp-service/src/services/schemas/RequestPlugin.js} +0 -0
  188. /package/dist/{services → idp-service/src/services}/schemas/StatusInfo.d.ts +0 -0
  189. /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
  ![@harnessio/react-idp-service-client](https://img.shields.io/npm/v/@harnessio/react-idp-service-client.svg?style=flat-square)
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 APIClientIntitilized = false;
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
- APIClientIntitilized = true;
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 (!APIClientIntitilized) {
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 (Object.assign({ content: data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {})));
61
+ return Object.assign({ content: data }, (pagination ? { pagination: { total, pageCount, pageSize, pageNumber } } : {}));
62
62
  }
63
63
  throw data;
64
64
  });
@@ -1,4 +1,4 @@
1
- import { ClientCallbacks } from './fetcher';
1
+ import { ClientCallbacks } from '../../fetcher';
2
2
  export * from './services/index';
3
3
  export declare class IDPServiceAPIClient {
4
4
  updateHeaders: (headers: Record<string, any>) => void;
@@ -1,4 +1,4 @@
1
- import { setupClient, updateClientHeaders } from './fetcher';
1
+ import { setupClient, updateClientHeaders } from '../../fetcher';
2
2
  export * from './services/index';
3
3
  export class IDPServiceAPIClient {
4
4
  constructor(callbacks) {
@@ -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 './../../fetcher';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface CreateBackstageEnvVariablesMutationHeaderParams {
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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface CreateBackstagePermissionsMutationHeaderParams {
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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
+ }
@@ -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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface ImportHarnessEntitiesMutationHeaderParams {
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 './../../fetcher';
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
  }
@@ -1,12 +1,13 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LayoutResponseResponse } from '../responses/LayoutResponseResponse';
2
3
  import type { LayoutIngestRequest } from '../schemas/LayoutIngestRequest';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
- import { FetcherOptions } from './../../fetcher';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
6
  export interface LayoutIngestMutationHeaderParams {
6
7
  'Harness-Account'?: string;
7
8
  }
8
9
  export type LayoutIngestRequestBody = LayoutIngestRequest;
9
- export type LayoutIngestOkResponse = ResponseWithPagination<unknown>;
10
+ export type LayoutIngestOkResponse = ResponseWithPagination<LayoutResponseResponse>;
10
11
  export type LayoutIngestErrorResponse = unknown;
11
12
  export interface LayoutIngestProps extends Omit<FetcherOptions<unknown, LayoutIngestRequestBody, LayoutIngestMutationHeaderParams>, 'url'> {
12
13
  body: LayoutIngestRequestBody;
@@ -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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface OnboardingGenerateYamlMutationHeaderParams {
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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 './../../fetcher';
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
  }
@@ -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 './../../fetcher';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface SaveOrUpdatePluginAppConfigMutationHeaderParams {
7
7
  'Harness-Account'?: string;
8
8
  }