@harnessio/react-har-service-client 0.77.0 → 0.79.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/useCopyMutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -1
- package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +3 -1
- package/dist/har-service/src/services/hooks/useGetFileV3Query.js +2 -1
- package/dist/har-service/src/services/hooks/useListPackagesQuery.d.ts +1 -1
- 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/hooks/useUpdateArtifactLabelsMutation.d.ts +1 -1
- 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/ArtifactType.d.ts +1 -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/PackageKindV3.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
- package/dist/har-service/src/services/schemas/PackageTypeV3.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 +3 -2
|
@@ -17,7 +17,7 @@ export interface CopyMutationQueryParams {
|
|
|
17
17
|
target_org_identifier?: string;
|
|
18
18
|
target_project_identifier?: string;
|
|
19
19
|
target_registry_identifier: string;
|
|
20
|
-
artifact_type?: 'dataset' | 'model';
|
|
20
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
21
21
|
filters?: string[];
|
|
22
22
|
}
|
|
23
23
|
export type CopyOkResponse = ResponseWithPagination<CopyResponseResponse>;
|
|
@@ -12,7 +12,7 @@ export interface DeleteArtifactMutationPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
}
|
|
14
14
|
export interface DeleteArtifactMutationQueryParams {
|
|
15
|
-
artifact_type?: 'dataset' | 'model';
|
|
15
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
16
16
|
}
|
|
17
17
|
export type DeleteArtifactOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
18
18
|
export type DeleteArtifactErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -13,7 +13,7 @@ export interface DeleteArtifactVersionMutationPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
15
|
export interface DeleteArtifactVersionMutationQueryParams {
|
|
16
|
-
artifact_type?: 'dataset' | 'model';
|
|
16
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
17
17
|
filters?: string[];
|
|
18
18
|
}
|
|
19
19
|
export type DeleteArtifactVersionOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
@@ -13,7 +13,7 @@ export interface DeleteQuarantineFilePathMutationQueryParams {
|
|
|
13
13
|
artifact?: string;
|
|
14
14
|
version?: string;
|
|
15
15
|
file_path?: string;
|
|
16
|
-
artifact_type?: 'dataset' | 'model';
|
|
16
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
17
17
|
filters?: string[];
|
|
18
18
|
}
|
|
19
19
|
export type DeleteQuarantineFilePathOkResponse = ResponseWithPagination<SuccessResponse>;
|
|
@@ -12,7 +12,7 @@ export interface GetAllArtifactVersionsQueryPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
}
|
|
14
14
|
export interface GetAllArtifactVersionsQueryQueryParams {
|
|
15
|
-
artifact_type?: 'dataset' | 'model';
|
|
15
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
16
16
|
/**
|
|
17
17
|
* @format int64
|
|
18
18
|
* @default 1
|
|
@@ -25,7 +25,7 @@ export interface GetAllArtifactsByRegistryQueryQueryParams {
|
|
|
25
25
|
sort_order?: string;
|
|
26
26
|
sort_field?: string;
|
|
27
27
|
search_term?: string;
|
|
28
|
-
artifact_type?: 'dataset' | 'model';
|
|
28
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
29
29
|
}
|
|
30
30
|
export type GetAllArtifactsByRegistryOkResponse = ResponseWithPagination<ListRegistryArtifactResponseResponse>;
|
|
31
31
|
export type GetAllArtifactsByRegistryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -13,7 +13,7 @@ export interface GetArtifactDetailsQueryPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
15
|
export interface GetArtifactDetailsQueryQueryParams {
|
|
16
|
-
artifact_type?: 'dataset' | 'model';
|
|
16
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
17
17
|
childVersion?: string;
|
|
18
18
|
filters?: string[];
|
|
19
19
|
}
|
|
@@ -14,7 +14,7 @@ export interface GetArtifactFileQueryPathParams {
|
|
|
14
14
|
file_name: string;
|
|
15
15
|
}
|
|
16
16
|
export interface GetArtifactFileQueryQueryParams {
|
|
17
|
-
artifact_type?: 'dataset' | 'model';
|
|
17
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
18
18
|
filters?: string[];
|
|
19
19
|
}
|
|
20
20
|
export type GetArtifactFileOkResponse = ResponseWithPagination<ArtifactFileResponseResponse>;
|
|
@@ -13,7 +13,7 @@ export interface GetArtifactFilesQueryPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
15
|
export interface GetArtifactFilesQueryQueryParams {
|
|
16
|
-
artifact_type?: 'dataset' | 'model';
|
|
16
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
17
17
|
/**
|
|
18
18
|
* @format int64
|
|
19
19
|
* @default 1
|
|
@@ -12,7 +12,7 @@ export interface GetArtifactSummaryQueryPathParams {
|
|
|
12
12
|
artifact: string;
|
|
13
13
|
}
|
|
14
14
|
export interface GetArtifactSummaryQueryQueryParams {
|
|
15
|
-
artifact_type?: 'dataset' | 'model';
|
|
15
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
16
16
|
}
|
|
17
17
|
export type GetArtifactSummaryOkResponse = ResponseWithPagination<ArtifactSummaryResponseResponse>;
|
|
18
18
|
export type GetArtifactSummaryErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
|
|
@@ -13,7 +13,7 @@ export interface GetArtifactVersionSummaryQueryPathParams {
|
|
|
13
13
|
version: string;
|
|
14
14
|
}
|
|
15
15
|
export interface GetArtifactVersionSummaryQueryQueryParams {
|
|
16
|
-
artifact_type?: 'dataset' | 'model';
|
|
16
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
17
17
|
digest?: string;
|
|
18
18
|
filters?: string[];
|
|
19
19
|
}
|
|
@@ -9,6 +9,7 @@ export interface GetFileV3QueryPathParams {
|
|
|
9
9
|
}
|
|
10
10
|
export interface GetFileV3QueryQueryParams {
|
|
11
11
|
account_identifier: string;
|
|
12
|
+
preview?: boolean;
|
|
12
13
|
}
|
|
13
14
|
export type GetFileV3OkResponse = ResponseWithPagination<DownloadFileResponseV3Response>;
|
|
14
15
|
export type GetFileV3ErrorResponse = RedirectV3Response | ErrorV3;
|
|
@@ -17,6 +18,7 @@ export interface GetFileV3Props extends GetFileV3QueryPathParams, Omit<FetcherOp
|
|
|
17
18
|
}
|
|
18
19
|
export declare function getFileV3(props: GetFileV3Props): Promise<GetFileV3OkResponse>;
|
|
19
20
|
/**
|
|
20
|
-
* Download file using id
|
|
21
|
+
* Download a file using its id. When `preview=true` is supplied the response is a `302` redirect to an inline-preview URL for the file instead of the file bytes.
|
|
22
|
+
*
|
|
21
23
|
*/
|
|
22
24
|
export declare function useGetFileV3Query(props: GetFileV3Props, options?: Omit<UseQueryOptions<GetFileV3OkResponse, GetFileV3ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetFileV3OkResponse, unknown>;
|
|
@@ -7,7 +7,8 @@ export function getFileV3(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/files/${props.id}/content`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Download file using id
|
|
10
|
+
* Download a file using its id. When `preview=true` is supplied the response is a `302` redirect to an inline-preview URL for the file instead of the file bytes.
|
|
11
|
+
*
|
|
11
12
|
*/
|
|
12
13
|
export function useGetFileV3Query(props, options) {
|
|
13
14
|
return useQuery(['GetFileV3', props.id, props.queryParams], ({ signal }) => getFileV3(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -29,7 +29,7 @@ export interface ListPackagesQueryQueryParams {
|
|
|
29
29
|
sort_order?: 'ASC' | 'DESC';
|
|
30
30
|
sort_field?: string;
|
|
31
31
|
search_term?: string;
|
|
32
|
-
artifact_type?: 'dataset' | 'model';
|
|
32
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
33
33
|
package_type?: string[];
|
|
34
34
|
/**
|
|
35
35
|
* @default "EXCLUDE"
|
|
@@ -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
|
+
}
|
|
@@ -13,7 +13,7 @@ export interface UpdateArtifactLabelsMutationPathParams {
|
|
|
13
13
|
artifact: string;
|
|
14
14
|
}
|
|
15
15
|
export interface UpdateArtifactLabelsMutationQueryParams {
|
|
16
|
-
artifact_type?: 'dataset' | 'model';
|
|
16
|
+
artifact_type?: 'dataset' | 'model' | 'module' | 'provider';
|
|
17
17
|
}
|
|
18
18
|
export type UpdateArtifactLabelsRequestBody = ArtifactLabelRequestRequestBody;
|
|
19
19
|
export type UpdateArtifactLabelsOkResponse = ResponseWithPagination<ArtifactLabelResponseResponse>;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* refers to package kind which is being used in huggingface packages for model, dataset
|
|
2
|
+
* refers to package kind which is being used in huggingface packages for model, dataset and terraform packages for module, provider
|
|
3
3
|
* @example "model"
|
|
4
4
|
*/
|
|
5
5
|
export type PackageKindV3 = string;
|
|
@@ -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' | 'SWIFT';
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RAW, DEBIAN, CONAN. This field is extensible; clients must handle unknown values.
|
|
2
|
+
* Package type. Known values include: DOCKER, MAVEN, PYTHON, GENERIC, HELM, HELM_HTTP, NUGET, NPM, RPM, CARGO, COMPOSER, GO, HUGGINGFACE, CONDA, DART, SWIFT, PUPPET, RAW, DEBIAN, CONAN, TERRAFORM. This field is extensible; clients must handle unknown values.
|
|
3
3
|
*
|
|
4
4
|
* @example "DOCKER"
|
|
5
5
|
*/
|
|
@@ -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';
|
|
18
|
+
source?: 'Anaconda' | 'AwsEcr' | 'ConanCenter' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HelmChartRepo' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PuppetForge' | 'PyPi' | '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 {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@harnessio/react-har-service-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.79.0",
|
|
4
4
|
"description": "Harness HAR Service APIs integrated with react hooks",
|
|
5
5
|
"author": "Harness Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"fmt": "prettier --write ./index.ts"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@harnessio/oats-cli": "^3.0.0"
|
|
32
|
+
"@harnessio/oats-cli": "^3.0.0",
|
|
33
|
+
"@harnessio/oats-plugin-react-query-harness": "1.1.0"
|
|
33
34
|
}
|
|
34
35
|
}
|