@harnessio/react-ng-manager-swagger-service-client 1.35.1 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetEntityReferencesQuery.d.ts +32 -0
- package/dist/ng-manager-swagger-service/src/services/hooks/useGetEntityReferencesQuery.js +14 -0
- package/dist/ng-manager-swagger-service/src/services/index.d.ts +2 -0
- package/dist/ng-manager-swagger-service/src/services/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ResponsePageEntitySetupUsageDto } from '../schemas/ResponsePageEntitySetupUsageDto';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetEntityReferencesQueryQueryParams {
|
|
6
|
+
/**
|
|
7
|
+
* @format int32
|
|
8
|
+
* @default 0
|
|
9
|
+
*/
|
|
10
|
+
pageIndex?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @format int32
|
|
13
|
+
* @default 100
|
|
14
|
+
*/
|
|
15
|
+
pageSize?: number;
|
|
16
|
+
accountIdentifier?: string;
|
|
17
|
+
orgIdentifier?: string;
|
|
18
|
+
projectIdentifier?: string;
|
|
19
|
+
referredByEntityScope?: string;
|
|
20
|
+
referredEntityScope?: string;
|
|
21
|
+
referredEntityType?: 'AIEvaluation' | 'AIExperiment' | 'AWSECR' | 'AWSSecurityHub' | 'Action' | 'AiTestAutomation' | 'AiVerify' | 'AlertSetting' | 'AnalyzeDeploymentImpact' | 'Anchore' | 'AppResize' | 'AppRollback' | 'ApprovalStage' | 'AquaSecurity' | 'AquaTrivy' | 'ArtifactSource' | 'ArtifactoryUpload' | 'AsgBlueGreenDeploy' | 'AsgBlueGreenRollback' | 'AsgBlueGreenSwapService' | 'AsgCanaryDelete' | 'AsgCanaryDeploy' | 'AsgPhasedDeploy' | 'AsgRollback' | 'AsgRollingDeploy' | 'AsgRollingRollback' | 'AsgScale' | 'AsgSetup' | 'AsgShiftTraffic' | 'AsgSteadyState' | 'AuditStreamingDestination' | 'AwsCdkBootstrap' | 'AwsCdkDeploy' | 'AwsCdkDestroy' | 'AwsCdkDiff' | 'AwsCdkRollback' | 'AwsCdkSynth' | 'AwsLambdaDeploy' | 'AwsLambdaRollback' | 'AwsSamBuild' | 'AwsSamDeploy' | 'AwsSamRollback' | 'AzureARMRollback' | 'AzureCreateARMResource' | 'AzureCreateBPResource' | 'AzureFunctionDeploy' | 'AzureFunctionRollback' | 'AzureSlotDeployment' | 'AzureSwapSlot' | 'AzureTrafficShift' | 'AzureWebAppRollback' | 'BGAppSetup' | 'Background' | 'BackstageEnvironmentVariable' | 'BambooBuild' | 'Bandit' | 'Barrier' | 'BasicAppSetup' | 'Bitrise' | 'BlackDuck' | 'Brakeman' | 'BuildAndPushACR' | 'BuildAndPushDockerRegistry' | 'BuildAndPushECR' | 'BuildAndPushGAR' | 'BuildAndPushGCR' | 'Burp' | 'CanaryAppSetup' | 'CdSscaEnforcement' | 'CdSscaOrchestration' | 'Certificates' | 'Chaos' | 'ChaosHub' | 'ChaosInfrastructure' | 'ChaosInfrastructureV2' | 'Checkmarx' | 'CheckmarxOne' | 'Checkov' | 'Clair' | 'CloudFunctionRollback' | 'CloudFunctionTrafficShift' | 'CodeQL' | 'Command' | 'Connectors' | 'Container' | 'CookieCutter' | 'CortexCloud' | 'Coverity' | 'CreateCatalog' | 'CreateOrganisation' | 'CreatePR' | 'CreateProject' | 'CreateRepo' | 'CreateResource' | 'CreateStack' | 'CustomApproval' | 'CustomDeployment' | 'CustomIngest' | 'CustomStage' | 'CvConfig' | 'CvKubernetesActivitySource' | 'CvVerificationJob' | 'DBSchemaApply' | 'DBSchemaRollback' | 'DataSink' | 'DataTheorem' | 'DelegateConfigurations' | 'Delegates' | 'DeleteStack' | 'DeployAwsAgentCoreRevision' | 'DeployCloudFunction' | 'DeployCloudFunctionGenOne' | 'DeployCloudFunctionWithNoTraffic' | 'DeployGoogleAgentRuntimeRevision' | 'Deployable' | 'DeploymentStage' | 'DeploymentSteps' | 'DirectPush' | 'DockerContentTrust' | 'DownloadAwsS3' | 'DownloadHarnessStore' | 'DownloadManifests' | 'EcsBasicRollback' | 'EcsBlueGreenCreateService' | 'EcsBlueGreenRollback' | 'EcsBlueGreenSwapTargetGroups' | 'EcsBlueGreenTrafficShift' | 'EcsCanaryDelete' | 'EcsCanaryDeploy' | 'EcsRollingDeploy' | 'EcsRollingRollback' | 'EcsRunTask' | 'EcsScale' | 'EcsServiceSetup' | 'EcsUpgradeContainer' | 'ElastigroupBGStageSetup' | 'ElastigroupBlueGreenTrafficShift' | 'ElastigroupDeploy' | 'ElastigroupRollback' | 'ElastigroupSetup' | 'ElastigroupSwapRoute' | 'Email' | 'Environment' | 'EnvironmentGroup' | 'External' | 'FeatureFlagStage' | 'FeatureFlags' | 'FetchInstanceScript' | 'Files' | 'FlagConfiguration' | 'FortifyOnDemand' | 'Fossa' | 'Freeze' | 'GCSUpload' | 'GitClone' | 'GitHubAdvancedSecurity' | 'GitOpsApplication' | 'GitOpsFetchLinkedApps' | 'GitOpsRollout' | 'GitOpsSync' | 'GitOpsUpdateReleaseRepo' | 'GitRepositories' | 'Gitleaks' | 'GoogleCloudRunDeploy' | 'GoogleCloudRunJob' | 'GoogleCloudRunPrepareRollbackData' | 'GoogleCloudRunRollback' | 'GoogleCloudRunTrafficShift' | 'GovernancePolicies' | 'GovernanceRuleAWS' | 'Grype' | 'HarUpload' | 'HarnessApproval' | 'HelmDelete' | 'HelmDeploy' | 'HelmRollback' | 'Http' | 'IACM' | 'IACMAnsiblePlugin' | 'IACMApproval' | 'IACMAwsCdkPlugin' | 'IACMBlastRadiusAgent' | 'IACMCheckov' | 'IACMModuleTestPlugin' | 'IACMOpenTofuPlugin' | 'IACMPrepareExecution' | 'IACMRemediationAgent' | 'IACMStage' | 'IACMStep' | 'IACMTFCompliance' | 'IACMTFLint' | 'IACMTFSec' | 'IACMTerraformPlugin' | 'IACMTerragruntPlugin' | 'IACMWorkspace' | 'IDPStage' | 'IdpCatalog' | 'IdpCdService' | 'IdpCheck' | 'IdpConnector' | 'IdpEnvironment' | 'IdpEnvironmentBlueprint' | 'IdpScorecard' | 'Infrastructure' | 'InputSets' | 'IntegrationStage' | 'IntegrationSteps' | 'JenkinsBuild' | 'JfrogXray' | 'JiraApproval' | 'JiraCreate' | 'JiraUpdate' | 'K8sApply' | 'K8sBGSwapServices' | 'K8sBlueGreenDeploy' | 'K8sBlueGreenStageScaleDown' | 'K8sBlueGreenStageScaleUp' | 'K8sCanaryDelete' | 'K8sCanaryDeploy' | 'K8sDelete' | 'K8sDryRun' | 'K8sPatch' | 'K8sProgressiveCanaryRollback' | 'K8sRollingDeploy' | 'K8sRollingRollback' | 'K8sRollout' | 'K8sScale' | 'K8sTrafficRouting' | 'Mend' | 'MergePR' | 'Metasploit' | 'ModelScan' | 'MonitoredService' | 'Nessus' | 'NexusIQ' | 'Nikto' | 'Nmap' | 'NotificationChannel' | 'NotificationRule' | 'OpenAi' | 'Openvas' | 'OsvScaner' | 'Overrides' | 'Owasp' | 'PipelineStage' | 'PipelineSteps' | 'Pipelines' | 'Plugin' | 'Policy' | 'PrismaCloud' | 'Projects' | 'Prowler' | 'Qualys' | 'Queue' | 'Reapsaw' | 'RegisterCatalog' | 'RestoreCache' | 'RestoreCacheAzure' | 'RestoreCacheGCS' | 'RestoreCacheS3' | 'RevertPR' | 'RollbackAwsAgentCoreRevision' | 'RollbackCloudFunctionGenOne' | 'RollbackGoogleAgentRuntimeRevision' | 'RollbackStack' | 'RouteMapping' | 'Run' | 'RunTests' | 'S3Upload' | 'SASTSecret' | 'SCA' | 'SalesforceApexTest' | 'SalesforceChangeset' | 'SalesforceComparisonPair' | 'SalesforceCreateScratchOrg' | 'SalesforceDeleteScratchOrg' | 'SalesforceDeploy' | 'SalesforceDownloadDeployables' | 'SalesforceDownloadOrg' | 'SalesforceEvaluateDiff' | 'SalesforceExecution' | 'SalesforceQuickDeploy' | 'SalesforceRollback' | 'SalesforceSourceBackup' | 'SalesforceValidate' | 'SaveCache' | 'SaveCacheAzure' | 'SaveCacheGCS' | 'SaveCacheS3' | 'Secrets' | 'Security' | 'SecurityStage' | 'SecuritySteps' | 'Semgrep' | 'ServerlessAwsLambdaDeploy' | 'ServerlessAwsLambdaDeployV2' | 'ServerlessAwsLambdaPackageV2' | 'ServerlessAwsLambdaPrepareRollbackV2' | 'ServerlessAwsLambdaRollback' | 'ServerlessAwsLambdaRollbackV2' | 'Service' | 'ServiceDiscoveryAgent' | 'ServiceNowApproval' | 'ServiceNowCreate' | 'ServiceNowImportSet' | 'ServiceNowUpdate' | 'ShellScript' | 'ShellScriptProvision' | 'ShiftAwsAgentCoreTraffic' | 'ShiftGoogleAgentRuntimeTraffic' | 'ShiftLeft' | 'SlackNotify' | 'SlsaVerification' | 'Sniper' | 'Snyk' | 'Sonarqube' | 'SscaArtifactVerification' | 'SscaEnforcement' | 'SscaOrchestration' | 'StandAloneTrafficShiftRollback' | 'StrategyNode' | 'SwapRollback' | 'SwapRoutes' | 'Sysdig' | 'TanzuCommand' | 'TasRollingDeploy' | 'TasRollingRollback' | 'Template' | 'TemplateStage' | 'Tenable' | 'TerraformApply' | 'TerraformCloudRollback' | 'TerraformCloudRun' | 'TerraformDestroy' | 'TerraformPlan' | 'TerraformRollback' | 'TerragruntApply' | 'TerragruntDestroy' | 'TerragruntPlan' | 'TerragruntRollback' | 'Test' | 'Traceable' | 'Triggers' | 'UpdateCatalogProperty' | 'UpdateGitOpsApp' | 'UserGroup' | 'Veracode' | 'Verify' | 'Wait' | 'Wiz' | 'Zap';
|
|
22
|
+
}
|
|
23
|
+
export type GetEntityReferencesOkResponse = ResponseWithPagination<ResponsePageEntitySetupUsageDto>;
|
|
24
|
+
export type GetEntityReferencesErrorResponse = unknown;
|
|
25
|
+
export interface GetEntityReferencesProps extends Omit<FetcherOptions<GetEntityReferencesQueryQueryParams, unknown>, 'url'> {
|
|
26
|
+
queryParams: GetEntityReferencesQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function getEntityReferences(props: GetEntityReferencesProps): Promise<GetEntityReferencesOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare function useGetEntityReferencesQuery(props: GetEntityReferencesProps, options?: Omit<UseQueryOptions<GetEntityReferencesOkResponse, GetEntityReferencesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetEntityReferencesOkResponse, 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 getEntityReferences(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/entitySetupUsage/getEntityReferences`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export function useGetEntityReferencesQuery(props, options) {
|
|
13
|
+
return useQuery(['getEntityReferences', props.queryParams], ({ signal }) => getEntityReferences(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -121,6 +121,8 @@ export type { GetEksClusterNamesErrorResponse, GetEksClusterNamesOkResponse, Get
|
|
|
121
121
|
export { getEksClusterNames, useGetEksClusterNamesQuery } from './hooks/useGetEksClusterNamesQuery';
|
|
122
122
|
export type { GetEnabledFeatureRestrictionDetailByAccountIdErrorResponse, GetEnabledFeatureRestrictionDetailByAccountIdOkResponse, GetEnabledFeatureRestrictionDetailByAccountIdProps, GetEnabledFeatureRestrictionDetailByAccountIdQueryQueryParams, } from './hooks/useGetEnabledFeatureRestrictionDetailByAccountIdQuery';
|
|
123
123
|
export { getEnabledFeatureRestrictionDetailByAccountId, useGetEnabledFeatureRestrictionDetailByAccountIdQuery, } from './hooks/useGetEnabledFeatureRestrictionDetailByAccountIdQuery';
|
|
124
|
+
export type { GetEntityReferencesErrorResponse, GetEntityReferencesOkResponse, GetEntityReferencesProps, GetEntityReferencesQueryQueryParams, } from './hooks/useGetEntityReferencesQuery';
|
|
125
|
+
export { getEntityReferences, useGetEntityReferencesQuery, } from './hooks/useGetEntityReferencesQuery';
|
|
124
126
|
export type { GetEnvironmentAccessListErrorResponse, GetEnvironmentAccessListOkResponse, GetEnvironmentAccessListProps, GetEnvironmentAccessListQueryQueryParams, } from './hooks/useGetEnvironmentAccessListQuery';
|
|
125
127
|
export { getEnvironmentAccessList, useGetEnvironmentAccessListQuery, } from './hooks/useGetEnvironmentAccessListQuery';
|
|
126
128
|
export type { GetEnvironmentGroupListErrorResponse, GetEnvironmentGroupListMutationQueryParams, GetEnvironmentGroupListOkResponse, GetEnvironmentGroupListProps, GetEnvironmentGroupListRequestBody, } from './hooks/useGetEnvironmentGroupListMutation';
|
|
@@ -59,6 +59,7 @@ export { getClusterNamesForGcp, useGetClusterNamesForGcpQuery, } from './hooks/u
|
|
|
59
59
|
export { getConnectorListV2, useGetConnectorListV2Mutation, } from './hooks/useGetConnectorListV2Mutation';
|
|
60
60
|
export { getEksClusterNames, useGetEksClusterNamesQuery } from './hooks/useGetEksClusterNamesQuery';
|
|
61
61
|
export { getEnabledFeatureRestrictionDetailByAccountId, useGetEnabledFeatureRestrictionDetailByAccountIdQuery, } from './hooks/useGetEnabledFeatureRestrictionDetailByAccountIdQuery';
|
|
62
|
+
export { getEntityReferences, useGetEntityReferencesQuery, } from './hooks/useGetEntityReferencesQuery';
|
|
62
63
|
export { getEnvironmentAccessList, useGetEnvironmentAccessListQuery, } from './hooks/useGetEnvironmentAccessListQuery';
|
|
63
64
|
export { getEnvironmentGroupList, useGetEnvironmentGroupListMutation, } from './hooks/useGetEnvironmentGroupListMutation';
|
|
64
65
|
export { getEnvironmentListV2, useGetEnvironmentListV2Mutation, } from './hooks/useGetEnvironmentListV2Mutation';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-ng-manager-swagger-service-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.0",
|
|
4
4
|
"description": "Harness React NG Manager Swagger service client - NG Manager APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|