@harnessio/react-har-service-client 0.31.0 → 0.33.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.
@@ -30,7 +30,7 @@ export function fetcher(options) {
30
30
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) {
31
31
  finalUrl = (_a = fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.urlInterceptor) === null || _a === void 0 ? void 0 : _a.call(fetcherCallbacks, finalUrl);
32
32
  }
33
- let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign({ Authorization: `Bearer ${token}` }, headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
33
+ let request = new Request(finalUrl, Object.assign({ headers: Object.assign(Object.assign(Object.assign({}, (token ? { Authorization: `Bearer ${token}` } : {})), headers), customHeaders), body: body ? JSON.stringify(body) : undefined }, rest));
34
34
  if (fetcherCallbacks === null || fetcherCallbacks === void 0 ? void 0 : fetcherCallbacks.requestInterceptor) {
35
35
  request = fetcherCallbacks.requestInterceptor(request.clone());
36
36
  }
@@ -190,6 +190,7 @@ export type { ClientSetupStep } from './schemas/ClientSetupStep';
190
190
  export type { ClientSetupStepCommand } from './schemas/ClientSetupStepCommand';
191
191
  export type { ClientSetupStepConfig } from './schemas/ClientSetupStepConfig';
192
192
  export type { ClientSetupStepType } from './schemas/ClientSetupStepType';
193
+ export type { ComposerArtifactDetailConfig } from './schemas/ComposerArtifactDetailConfig';
193
194
  export type { CondaArtifactDetailConfig } from './schemas/CondaArtifactDetailConfig';
194
195
  export type { DartArtifactDetailConfig } from './schemas/DartArtifactDetailConfig';
195
196
  export type { DeploymentDetails } from './schemas/DeploymentDetails';
@@ -11,12 +11,13 @@ import type { GoArtifactDetailConfig } from '../schemas/GoArtifactDetailConfig';
11
11
  import type { HuggingFaceArtifactDetailConfig } from '../schemas/HuggingFaceArtifactDetailConfig';
12
12
  import type { CondaArtifactDetailConfig } from '../schemas/CondaArtifactDetailConfig';
13
13
  import type { DartArtifactDetailConfig } from '../schemas/DartArtifactDetailConfig';
14
+ import type { ComposerArtifactDetailConfig } from '../schemas/ComposerArtifactDetailConfig';
14
15
  import type { ArtifactType } from '../schemas/ArtifactType';
15
16
  import type { PackageType } from '../schemas/PackageType';
16
17
  /**
17
18
  * Artifact Detail
18
19
  */
19
- export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig) & {
20
+ export type ArtifactDetail = (DockerArtifactDetailConfig | HelmArtifactDetailConfig | GenericArtifactDetailConfig | MavenArtifactDetailConfig | PythonArtifactDetailConfig | NpmArtifactDetailConfig | RpmArtifactDetailConfig | NugetArtifactDetailConfig | CargoArtifactDetailConfig | GoArtifactDetailConfig | HuggingFaceArtifactDetailConfig | CondaArtifactDetailConfig | DartArtifactDetailConfig | ComposerArtifactDetailConfig) & {
20
21
  artifactType?: ArtifactType;
21
22
  createdAt?: string;
22
23
  createdBy?: string;
@@ -7,11 +7,20 @@ import type { PackageType } from '../schemas/PackageType';
7
7
  */
8
8
  export interface ArtifactMetadata {
9
9
  artifactType?: ArtifactType;
10
+ /**
11
+ * Timestamp when the artifact was soft-deleted
12
+ * @format date-time
13
+ */
14
+ deletedAt?: string;
10
15
  deploymentMetadata?: DeploymentMetadata;
11
16
  /**
12
17
  * @format int64
13
18
  */
14
19
  downloadsCount?: number;
20
+ /**
21
+ * True if the artifact, its parent image, or registry is soft-deleted (cascade)
22
+ */
23
+ isDeleted?: boolean;
15
24
  isQuarantined?: boolean;
16
25
  labels?: string[];
17
26
  lastModified?: string;
@@ -6,11 +6,20 @@ import type { PackageType } from '../schemas/PackageType';
6
6
  export interface ArtifactSummary {
7
7
  artifactType?: ArtifactType;
8
8
  createdAt?: string;
9
+ /**
10
+ * Timestamp when the package (image) was soft-deleted
11
+ * @format date-time
12
+ */
13
+ deletedAt?: string;
9
14
  /**
10
15
  * @format int64
11
16
  */
12
17
  downloadsCount?: number;
13
18
  imageName: string;
19
+ /**
20
+ * True if the package or its parent registry is soft-deleted (cascade)
21
+ */
22
+ isDeleted?: boolean;
14
23
  labels?: string[];
15
24
  modifiedAt?: string;
16
25
  packageType: PackageType;
@@ -5,7 +5,16 @@ import type { PackageType } from '../schemas/PackageType';
5
5
  */
6
6
  export interface ArtifactVersionSummary {
7
7
  artifactType?: ArtifactType;
8
+ /**
9
+ * Timestamp when the artifact (version) was soft-deleted
10
+ * @format date-time
11
+ */
12
+ deletedAt?: string;
8
13
  imageName: string;
14
+ /**
15
+ * True if the artifact (version) is soft-deleted
16
+ */
17
+ isDeleted?: boolean;
9
18
  isQuarantined?: boolean;
10
19
  packageType: PackageType;
11
20
  quarantineReason?: string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Config for composer artifact details
3
+ */
4
+ export interface ComposerArtifactDetailConfig {
5
+ metadata?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * refers to package
3
3
  */
4
- export type PackageType = 'CARGO' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RPM';
4
+ export type PackageType = 'CARGO' | 'COMPOSER' | 'CONDA' | 'DART' | 'DOCKER' | 'GENERIC' | 'GO' | 'HELM' | 'HUGGINGFACE' | 'MAVEN' | 'NPM' | 'NUGET' | 'PYTHON' | 'RPM';
@@ -11,8 +11,17 @@ export interface Registry<T0 extends RegistryConfig = RegistryConfig> {
11
11
  cleanupPolicy?: CleanupPolicy[];
12
12
  config?: T0;
13
13
  createdAt?: string;
14
+ /**
15
+ * Timestamp when the registry was soft-deleted
16
+ * @format date-time
17
+ */
18
+ deletedAt?: string;
14
19
  description?: string;
15
20
  identifier: string;
21
+ /**
22
+ * True if the registry is soft-deleted
23
+ */
24
+ isDeleted?: boolean;
16
25
  isPublic: boolean;
17
26
  labels?: string[];
18
27
  modifiedAt?: string;
@@ -5,10 +5,19 @@ import type { PackageType } from '../schemas/PackageType';
5
5
  */
6
6
  export interface RegistryArtifactMetadata {
7
7
  artifactType?: ArtifactType;
8
+ /**
9
+ * Timestamp when the package (image) was soft-deleted
10
+ * @format date-time
11
+ */
12
+ deletedAt?: string;
8
13
  /**
9
14
  * @format int64
10
15
  */
11
16
  downloadsCount?: number;
17
+ /**
18
+ * True if the package (image) is soft-deleted
19
+ */
20
+ isDeleted?: boolean;
12
21
  isPublic: boolean;
13
22
  isQuarantined?: boolean;
14
23
  labels?: string[];
@@ -8,12 +8,21 @@ export interface RegistryMetadata {
8
8
  * @format int64
9
9
  */
10
10
  artifactsCount?: number;
11
+ /**
12
+ * Timestamp when the registry was soft-deleted
13
+ * @format date-time
14
+ */
15
+ deletedAt?: string;
11
16
  description?: string;
12
17
  /**
13
18
  * @format int64
14
19
  */
15
20
  downloadsCount?: number;
16
21
  identifier: string;
22
+ /**
23
+ * True if the registry is soft-deleted
24
+ */
25
+ isDeleted?: boolean;
17
26
  isPublic: boolean;
18
27
  labels?: string[];
19
28
  lastModified?: string;
@@ -8,6 +8,11 @@ import type { AuthType } from '../schemas/AuthType';
8
8
  export interface UpstreamConfig {
9
9
  auth?: UserPassword | Anonymous | AccessKeySecretKey;
10
10
  authType: AuthType;
11
- source?: 'Anaconda' | 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Pubdev' | 'PyPi';
11
+ /**
12
+ * Optional path suffix appended to the remote URL for this registry. For Python upstreams, this allows overriding the default `/simple` path used for PyPI-compatible indexes. Leading and trailing slashes are not required and will be normalized.
13
+ *
14
+ */
15
+ remoteUrlSuffix?: string;
16
+ source?: 'Anaconda' | 'AwsEcr' | 'Crates' | 'Custom' | 'Dockerhub' | 'GoProxy' | 'HuggingFace' | 'MavenCentral' | 'NpmJs' | 'NugetOrg' | 'Packagist' | 'Pubdev' | 'PyPi';
12
17
  url?: string;
13
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",