@harnessio/react-har-service-client 0.78.0 → 0.80.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/har-service/src/services/hooks/useListVersionDeploymentsV3Query.d.ts +36 -0
- package/dist/har-service/src/services/hooks/useListVersionDeploymentsV3Query.js +15 -0
- package/dist/har-service/src/services/index.d.ts +6 -0
- package/dist/har-service/src/services/index.js +1 -0
- package/dist/har-service/src/services/responses/ListVersionDeploymentsResponseV3Response.d.ts +2 -0
- package/dist/har-service/src/services/responses/ListVersionDeploymentsResponseV3Response.js +1 -0
- package/dist/har-service/src/services/schemas/ArtifactDetail.d.ts +2 -1
- package/dist/har-service/src/services/schemas/ListVersionDeploymentsResponseBodyV3.d.ts +10 -0
- package/dist/har-service/src/services/schemas/ListVersionDeploymentsResponseBodyV3.js +1 -0
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/RubyArtifactDetailConfig.d.ts +8 -0
- package/dist/har-service/src/services/schemas/RubyArtifactDetailConfig.js +4 -0
- package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
- package/dist/har-service/src/services/schemas/VersionDeploymentV3.d.ts +32 -0
- package/dist/har-service/src/services/schemas/VersionDeploymentV3.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ListVersionDeploymentsResponseV3Response } from '../responses/ListVersionDeploymentsResponseV3Response';
|
|
3
|
+
import type { ErrorV3 } from '../schemas/ErrorV3';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ListVersionDeploymentsV3QueryPathParams {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ListVersionDeploymentsV3QueryQueryParams {
|
|
10
|
+
account_identifier: string;
|
|
11
|
+
env_type?: 'PRE_PRODUCTION' | 'PRODUCTION';
|
|
12
|
+
/**
|
|
13
|
+
* @format int64
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
page?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
* @default 20
|
|
20
|
+
*/
|
|
21
|
+
size?: number;
|
|
22
|
+
sort?: string;
|
|
23
|
+
search_term?: string;
|
|
24
|
+
package_tag?: string;
|
|
25
|
+
}
|
|
26
|
+
export type ListVersionDeploymentsV3OkResponse = ResponseWithPagination<ListVersionDeploymentsResponseV3Response>;
|
|
27
|
+
export type ListVersionDeploymentsV3ErrorResponse = ErrorV3;
|
|
28
|
+
export interface ListVersionDeploymentsV3Props extends ListVersionDeploymentsV3QueryPathParams, Omit<FetcherOptions<ListVersionDeploymentsV3QueryQueryParams, unknown>, 'url'> {
|
|
29
|
+
queryParams: ListVersionDeploymentsV3QueryQueryParams;
|
|
30
|
+
}
|
|
31
|
+
export declare function listVersionDeploymentsV3(props: ListVersionDeploymentsV3Props): Promise<ListVersionDeploymentsV3OkResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* List Harness CD deployments for a specific version. Returns the environments and services that are actively running this version, together with aggregate prod/non-prod counts in `meta`. For OCI-based package types (DOCKER, HELM) the artifact is identified by `image:tag` — supply `package_tag` or an empty response is returned. For all other package types the artifact is identified by `package_name/version_name`.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare function useListVersionDeploymentsV3Query(props: ListVersionDeploymentsV3Props, options?: Omit<UseQueryOptions<ListVersionDeploymentsV3OkResponse, ListVersionDeploymentsV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVersionDeploymentsV3OkResponse, ErrorV3>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 listVersionDeploymentsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/versions/${props.id}/deployments`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Harness CD deployments for a specific version. Returns the environments and services that are actively running this version, together with aggregate prod/non-prod counts in `meta`. For OCI-based package types (DOCKER, HELM) the artifact is identified by `image:tag` — supply `package_tag` or an empty response is returned. For all other package types the artifact is identified by `package_name/version_name`.
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
export function useListVersionDeploymentsV3Query(props, options) {
|
|
14
|
+
return useQuery(['ListVersionDeploymentsV3', props.id, props.queryParams], ({ signal }) => listVersionDeploymentsV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
15
|
+
}
|
|
@@ -219,6 +219,8 @@ export type { ListSpaceLabelValuesErrorResponse, ListSpaceLabelValuesOkResponse,
|
|
|
219
219
|
export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
|
|
220
220
|
export type { ListSpaceLabelsErrorResponse, ListSpaceLabelsOkResponse, ListSpaceLabelsProps, ListSpaceLabelsQueryPathParams, ListSpaceLabelsQueryQueryParams, } from './hooks/useListSpaceLabelsQuery';
|
|
221
221
|
export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
|
|
222
|
+
export type { ListVersionDeploymentsV3ErrorResponse, ListVersionDeploymentsV3OkResponse, ListVersionDeploymentsV3Props, ListVersionDeploymentsV3QueryPathParams, ListVersionDeploymentsV3QueryQueryParams, } from './hooks/useListVersionDeploymentsV3Query';
|
|
223
|
+
export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
|
|
222
224
|
export type { ListVersionsErrorResponse, ListVersionsOkResponse, ListVersionsProps, ListVersionsQueryQueryParams, } from './hooks/useListVersionsQuery';
|
|
223
225
|
export { listVersions, useListVersionsQuery } from './hooks/useListVersionsQuery';
|
|
224
226
|
export type { ListVersionsV3ErrorResponse, ListVersionsV3OkResponse, ListVersionsV3Props, ListVersionsV3QueryQueryParams, } from './hooks/useListVersionsV3Query';
|
|
@@ -380,6 +382,7 @@ export type { ListRegistryArtifactResponseResponse } from './responses/ListRegis
|
|
|
380
382
|
export type { ListRegistryResponseResponse } from './responses/ListRegistryResponseResponse';
|
|
381
383
|
export type { ListRegistryResponseV3Response } from './responses/ListRegistryResponseV3Response';
|
|
382
384
|
export type { ListReplicationRuleResponseResponse } from './responses/ListReplicationRuleResponseResponse';
|
|
385
|
+
export type { ListVersionDeploymentsResponseV3Response } from './responses/ListVersionDeploymentsResponseV3Response';
|
|
383
386
|
export type { ListVersionResponseResponse } from './responses/ListVersionResponseResponse';
|
|
384
387
|
export type { ListVersionResponseV3Response } from './responses/ListVersionResponseV3Response';
|
|
385
388
|
export type { ListWebhooksExecutionResponseResponse } from './responses/ListWebhooksExecutionResponseResponse';
|
|
@@ -566,6 +569,7 @@ export type { ListRegistry } from './schemas/ListRegistry';
|
|
|
566
569
|
export type { ListRegistryArtifact } from './schemas/ListRegistryArtifact';
|
|
567
570
|
export type { ListReplicationRule } from './schemas/ListReplicationRule';
|
|
568
571
|
export type { ListVersion } from './schemas/ListVersion';
|
|
572
|
+
export type { ListVersionDeploymentsResponseBodyV3 } from './schemas/ListVersionDeploymentsResponseBodyV3';
|
|
569
573
|
export type { ListVersionsResponseBodyV3 } from './schemas/ListVersionsResponseBodyV3';
|
|
570
574
|
export type { ListWebhooks } from './schemas/ListWebhooks';
|
|
571
575
|
export type { ListWebhooksExecutions } from './schemas/ListWebhooksExecutions';
|
|
@@ -628,6 +632,7 @@ export type { ReplicationRuleRequest } from './schemas/ReplicationRuleRequest';
|
|
|
628
632
|
export type { ResourceMetadataV3 } from './schemas/ResourceMetadataV3';
|
|
629
633
|
export type { RootPackageV3 } from './schemas/RootPackageV3';
|
|
630
634
|
export type { RpmArtifactDetailConfig } from './schemas/RpmArtifactDetailConfig';
|
|
635
|
+
export type { RubyArtifactDetailConfig } from './schemas/RubyArtifactDetailConfig';
|
|
631
636
|
export type { SbomDetails } from './schemas/SbomDetails';
|
|
632
637
|
export type { ScanMetaV3 } from './schemas/ScanMetaV3';
|
|
633
638
|
export type { ScanStatusV3 } from './schemas/ScanStatusV3';
|
|
@@ -656,6 +661,7 @@ export type { UserInfo } from './schemas/UserInfo';
|
|
|
656
661
|
export type { UserInfoV3 } from './schemas/UserInfoV3';
|
|
657
662
|
export type { UserPassword } from './schemas/UserPassword';
|
|
658
663
|
export type { UsererrorError } from './schemas/UsererrorError';
|
|
664
|
+
export type { VersionDeploymentV3 } from './schemas/VersionDeploymentV3';
|
|
659
665
|
export type { VersionMetadata } from './schemas/VersionMetadata';
|
|
660
666
|
export type { VersionV3 } from './schemas/VersionV3';
|
|
661
667
|
export type { VirtualConfig } from './schemas/VirtualConfig';
|
|
@@ -108,6 +108,7 @@ export { listRegistryFilesV3, useListRegistryFilesV3Query, } from './hooks/useLi
|
|
|
108
108
|
export { listReplicationRules, useListReplicationRulesQuery, } from './hooks/useListReplicationRulesQuery';
|
|
109
109
|
export { listSpaceLabelValues, useListSpaceLabelValuesQuery, } from './hooks/useListSpaceLabelValuesQuery';
|
|
110
110
|
export { listSpaceLabels, useListSpaceLabelsQuery } from './hooks/useListSpaceLabelsQuery';
|
|
111
|
+
export { listVersionDeploymentsV3, useListVersionDeploymentsV3Query, } from './hooks/useListVersionDeploymentsV3Query';
|
|
111
112
|
export { listVersions, useListVersionsQuery } from './hooks/useListVersionsQuery';
|
|
112
113
|
export { listVersionsV3, useListVersionsV3Query } from './hooks/useListVersionsV3Query';
|
|
113
114
|
export { listWebhookExecutions, useListWebhookExecutionsQuery, } from './hooks/useListWebhookExecutionsQuery';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,13 +17,14 @@ import type { PuppetArtifactDetailConfig } from '../schemas/PuppetArtifactDetail
|
|
|
17
17
|
import type { HelmHttpArtifactDetailConfig } from '../schemas/HelmHttpArtifactDetailConfig';
|
|
18
18
|
import type { DebianArtifactDetailConfig } from '../schemas/DebianArtifactDetailConfig';
|
|
19
19
|
import type { ConanArtifactDetailConfig } from '../schemas/ConanArtifactDetailConfig';
|
|
20
|
+
import type { RubyArtifactDetailConfig } from '../schemas/RubyArtifactDetailConfig';
|
|
20
21
|
import type { ArtifactType } from '../schemas/ArtifactType';
|
|
21
22
|
import type { UserInfo } from '../schemas/UserInfo';
|
|
22
23
|
import type { PackageType } from '../schemas/PackageType';
|
|
23
24
|
/**
|
|
24
25
|
* Artifact Detail
|
|
25
26
|
*/
|
|
26
|
-
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig) & {
|
|
27
|
+
export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig | SwiftArtifactDetailConfig | PuppetArtifactDetailConfig | HelmHttpArtifactDetailConfig | DebianArtifactDetailConfig | ConanArtifactDetailConfig | RubyArtifactDetailConfig) & {
|
|
27
28
|
artifactKey?: {
|
|
28
29
|
[key: string]: string;
|
|
29
30
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VersionDeploymentV3 } from '../schemas/VersionDeploymentV3';
|
|
2
|
+
import type { DeploymentMetadataV3 } from '../schemas/DeploymentMetadataV3';
|
|
3
|
+
import type { PageInfoV3 } from '../schemas/PageInfoV3';
|
|
4
|
+
export interface ListVersionDeploymentsResponseBodyV3 extends PageInfoV3 {
|
|
5
|
+
/**
|
|
6
|
+
* List of deployment records.
|
|
7
|
+
*/
|
|
8
|
+
items: VersionDeploymentV3[];
|
|
9
|
+
meta?: DeploymentMetadataV3;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* refers to package
|
|
3
3
|
*/
|
|
4
|
-
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM';
|
|
4
|
+
export type PackageType = 'CARGO' | 'COMPOSER' | 'CONAN' | 'CONDA' | 'DART' | 'DEBIAN' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HELM_HTTP' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PUPPET' | 'PYTHON' | 'R' | 'RAW' | 'RPM' | 'RUBY' | 'SWIFT' | 'TERRAFORM';
|
|
@@ -15,6 +15,6 @@ export interface UpstreamConfig {
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
remoteUrlSuffix?: string;
|
|
18
|
-
source?: 'Anaconda' | 'AwsEcr' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'TerraformRegistry';
|
|
18
|
+
source?: 'Anaconda' | 'AwsEcr' | 'CRAN' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | 'RubyGems' | 'TerraformRegistry';
|
|
19
19
|
url?: string;
|
|
20
20
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { UserInfoV3 } from '../schemas/UserInfoV3';
|
|
2
|
+
/**
|
|
3
|
+
* A single Harness CD deployment record for a version.
|
|
4
|
+
*/
|
|
5
|
+
export interface VersionDeploymentV3 {
|
|
6
|
+
envIdentifier: string;
|
|
7
|
+
envName: string;
|
|
8
|
+
/**
|
|
9
|
+
* Environment type. Allowed values: `PRODUCTION`, `PRE_PRODUCTION`.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
envType: 'PRE_PRODUCTION' | 'PRODUCTION';
|
|
13
|
+
infraIdentifier?: string;
|
|
14
|
+
infraName?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Number of running instances for this service + environment combination.
|
|
17
|
+
* @format int32
|
|
18
|
+
*/
|
|
19
|
+
instanceCount: number;
|
|
20
|
+
/**
|
|
21
|
+
* Unix timestamp in milliseconds of the last deployment.
|
|
22
|
+
* @format int64
|
|
23
|
+
*/
|
|
24
|
+
lastDeployedAt?: number | null;
|
|
25
|
+
lastDeployedBy?: UserInfoV3;
|
|
26
|
+
orgIdentifier: string;
|
|
27
|
+
pipelineExecutionId?: string;
|
|
28
|
+
pipelineExecutionName?: string;
|
|
29
|
+
projectIdentifier: string;
|
|
30
|
+
serviceIdentifier: string;
|
|
31
|
+
serviceName: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|