@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.
- package/dist/template-service/src/services/index.d.ts +1 -0
- package/dist/template-service/src/services/schemas/CacheResponseMetadataDto.d.ts +20 -0
- package/dist/template-service/src/services/schemas/CacheResponseMetadataDto.js +4 -0
- package/dist/template-service/src/services/schemas/InputDetailsDto.d.ts +1 -1
- package/dist/template-service/src/services/schemas/TemplateMetadataFilterExpression.d.ts +3 -1
- package/dist/template-service/src/services/schemas/TemplateResponse.d.ts +2 -0
- package/dist/template-service/src/services/schemas/TemplateYamlInputDto.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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 &
|
|
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
|
*/
|
package/package.json
CHANGED