@harnessio/react-har-service-client 0.77.0 → 0.78.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 (21) hide show
  1. package/dist/har-service/src/services/hooks/useCopyMutation.d.ts +1 -1
  2. package/dist/har-service/src/services/hooks/useDeleteArtifactMutation.d.ts +1 -1
  3. package/dist/har-service/src/services/hooks/useDeleteArtifactVersionMutation.d.ts +1 -1
  4. package/dist/har-service/src/services/hooks/useDeleteQuarantineFilePathMutation.d.ts +1 -1
  5. package/dist/har-service/src/services/hooks/useGetAllArtifactVersionsQuery.d.ts +1 -1
  6. package/dist/har-service/src/services/hooks/useGetAllArtifactsByRegistryQuery.d.ts +1 -1
  7. package/dist/har-service/src/services/hooks/useGetArtifactDetailsQuery.d.ts +1 -1
  8. package/dist/har-service/src/services/hooks/useGetArtifactFileQuery.d.ts +1 -1
  9. package/dist/har-service/src/services/hooks/useGetArtifactFilesQuery.d.ts +1 -1
  10. package/dist/har-service/src/services/hooks/useGetArtifactSummaryQuery.d.ts +1 -1
  11. package/dist/har-service/src/services/hooks/useGetArtifactVersionSummaryQuery.d.ts +1 -1
  12. package/dist/har-service/src/services/hooks/useGetFileV3Query.d.ts +3 -1
  13. package/dist/har-service/src/services/hooks/useGetFileV3Query.js +2 -1
  14. package/dist/har-service/src/services/hooks/useListPackagesQuery.d.ts +1 -1
  15. package/dist/har-service/src/services/hooks/useUpdateArtifactLabelsMutation.d.ts +1 -1
  16. package/dist/har-service/src/services/schemas/ArtifactType.d.ts +1 -1
  17. package/dist/har-service/src/services/schemas/PackageKindV3.d.ts +1 -1
  18. package/dist/har-service/src/services/schemas/PackageType.d.ts +1 -1
  19. package/dist/har-service/src/services/schemas/PackageTypeV3.d.ts +1 -1
  20. package/dist/har-service/src/services/schemas/UpstreamConfig.d.ts +1 -1
  21. 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"
@@ -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>;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * refers to artifact type
3
3
  */
4
- export type ArtifactType = 'dataset' | 'model';
4
+ export type ArtifactType = 'dataset' | 'model' | 'module' | 'provider';
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.77.0",
3
+ "version": "0.78.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
  }