@harnessio/react-template-service-client 1.2.0 → 1.2.1

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.
@@ -72,6 +72,7 @@ export type { TemplateUpdateStableResponseResponse } from './responses/TemplateU
72
72
  export type { TemplateWithInputsResponseResponse } from './responses/TemplateWithInputsResponseResponse';
73
73
  export type { UnresolvedNotificationRulesResponseBodyResponse } from './responses/UnresolvedNotificationRulesResponseBodyResponse';
74
74
  export type { ValidateTemplateInputsResponseBodyResponse } from './responses/ValidateTemplateInputsResponseBodyResponse';
75
+ export type { CacheResponseMetadataDto } from './schemas/CacheResponseMetadataDto';
75
76
  export type { EntityGitDetails } from './schemas/EntityGitDetails';
76
77
  export type { EntityTemplateReferencesResponse } from './schemas/EntityTemplateReferencesResponse';
77
78
  export type { FixedValueFieldDependencyDetailsDto } from './schemas/FixedValueFieldDependencyDetailsDto';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This tells the state of the cache from which the template was fetched.
3
+ */
4
+ export interface CacheResponseMetadataDto {
5
+ /**
6
+ * Tells the state of cache.
7
+ */
8
+ cache_state: 'STALE_CACHE' | 'UNKNOWN' | 'VALID_CACHE';
9
+ is_sync_enabled: boolean;
10
+ /**
11
+ * Time when the cache was last updated at.
12
+ * @format int64
13
+ */
14
+ last_updated_at: number;
15
+ /**
16
+ * Time left till cache expriry.
17
+ * @format int64
18
+ */
19
+ ttl_left: number;
20
+ }
@@ -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,5 +1,5 @@
1
1
  export interface InputDetailsDto {
2
- entity_group?: {};
2
+ entity_group?: 'STAGE' | 'STEP' | 'STEP_GROUP';
3
3
  entity_type?: string;
4
4
  input_type?: string;
5
5
  path?: string;
@@ -7,4 +7,6 @@ import type { TemplateMetadataLogicalFilter } from '../schemas/TemplateMetadataL
7
7
  * - If it has "and" or "or" fields, it's a logical filter
8
8
  *
9
9
  */
10
- export type TemplateMetadataFilterExpression = TemplateMetadataPropertyFilter & TemplateMetadataLogicalFilter;
10
+ export type TemplateMetadataFilterExpression = (TemplateMetadataPropertyFilter | TemplateMetadataLogicalFilter) & {
11
+ [key: string]: any;
12
+ };
@@ -1,3 +1,4 @@
1
+ import type { CacheResponseMetadataDto } from '../schemas/CacheResponseMetadataDto';
1
2
  import type { EntityGitDetails } from '../schemas/EntityGitDetails';
2
3
  import type { TemplateGovernanceMetadata } from '../schemas/TemplateGovernanceMetadata';
3
4
  /**
@@ -8,6 +9,7 @@ export interface TemplateResponse {
8
9
  * Account identifier
9
10
  */
10
11
  account: string;
12
+ cache_response_metadata?: CacheResponseMetadataDto;
11
13
  /**
12
14
  * Defines child template type
13
15
  */
@@ -1,6 +1,6 @@
1
1
  import type { YamlInputType } from '../schemas/YamlInputType';
2
2
  export interface TemplateYamlInputDto {
3
- allowed_values?: Array<{}>;
3
+ allowed_values?: [];
4
4
  default?: {
5
5
  [key: string]: any;
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-template-service-client",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Harness React template service client - Template APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",