kailash-client-ts 0.9.3 → 0.9.6

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.
@@ -1,6 +1,7 @@
1
1
  import type { SlotSpec } from './SlotSpec';
2
2
  export interface AcquireRequest {
3
3
  clientId?: string;
4
+ idempotencyKey?: string;
4
5
  snapshotId?: string;
5
6
  spec: SlotSpec;
6
7
  whenFull?: AcquireRequestWhenFullEnum;
@@ -17,6 +17,7 @@ export function AcquireRequestFromJSONTyped(json, ignoreDiscriminator) {
17
17
  }
18
18
  return {
19
19
  'clientId': json['clientId'] == null ? undefined : json['clientId'],
20
+ 'idempotencyKey': json['idempotencyKey'] == null ? undefined : json['idempotencyKey'],
20
21
  'snapshotId': json['snapshotId'] == null ? undefined : json['snapshotId'],
21
22
  'spec': SlotSpecFromJSON(json['spec']),
22
23
  'whenFull': json['whenFull'] == null ? undefined : json['whenFull'],
@@ -31,6 +32,7 @@ export function AcquireRequestToJSONTyped(value, ignoreDiscriminator = false) {
31
32
  }
32
33
  return {
33
34
  'clientId': value['clientId'],
35
+ 'idempotencyKey': value['idempotencyKey'],
34
36
  'snapshotId': value['snapshotId'],
35
37
  'spec': SlotSpecToJSON(value['spec']),
36
38
  'whenFull': value['whenFull'],
@@ -1,8 +1,10 @@
1
+ import type { GaugeFieldDoc } from './GaugeFieldDoc';
1
2
  import type { SpecFieldDoc } from './SpecFieldDoc';
2
3
  export interface CategoryDetail {
3
4
  category?: string;
4
5
  description?: string;
5
6
  enabled?: boolean;
7
+ gaugeFields?: Array<GaugeFieldDoc>;
6
8
  healthyCount?: number;
7
9
  instanceCount?: number;
8
10
  sdkVersion?: string;
@@ -1,3 +1,4 @@
1
+ import { GaugeFieldDocFromJSON, GaugeFieldDocToJSON, } from './GaugeFieldDoc';
1
2
  import { SpecFieldDocFromJSON, SpecFieldDocToJSON, } from './SpecFieldDoc';
2
3
  export function instanceOfCategoryDetail(value) {
3
4
  return true;
@@ -13,6 +14,7 @@ export function CategoryDetailFromJSONTyped(json, ignoreDiscriminator) {
13
14
  'category': json['category'] == null ? undefined : json['category'],
14
15
  'description': json['description'] == null ? undefined : json['description'],
15
16
  'enabled': json['enabled'] == null ? undefined : json['enabled'],
17
+ 'gaugeFields': json['gaugeFields'] == null ? undefined : (json['gaugeFields'].map(GaugeFieldDocFromJSON)),
16
18
  'healthyCount': json['healthyCount'] == null ? undefined : json['healthyCount'],
17
19
  'instanceCount': json['instanceCount'] == null ? undefined : json['instanceCount'],
18
20
  'sdkVersion': json['sdkVersion'] == null ? undefined : json['sdkVersion'],
@@ -36,6 +38,7 @@ export function CategoryDetailToJSONTyped(value, ignoreDiscriminator = false) {
36
38
  'category': value['category'],
37
39
  'description': value['description'],
38
40
  'enabled': value['enabled'],
41
+ 'gaugeFields': value['gaugeFields'] == null ? undefined : (value['gaugeFields'].map(GaugeFieldDocToJSON)),
39
42
  'healthyCount': value['healthyCount'],
40
43
  'instanceCount': value['instanceCount'],
41
44
  'sdkVersion': value['sdkVersion'],
@@ -0,0 +1,9 @@
1
+ export interface GaugeFieldDoc {
2
+ description?: string;
3
+ name?: string;
4
+ }
5
+ export declare function instanceOfGaugeFieldDoc(value: object): value is GaugeFieldDoc;
6
+ export declare function GaugeFieldDocFromJSON(json: any): GaugeFieldDoc;
7
+ export declare function GaugeFieldDocFromJSONTyped(json: any, ignoreDiscriminator: boolean): GaugeFieldDoc;
8
+ export declare function GaugeFieldDocToJSON(json: any): GaugeFieldDoc;
9
+ export declare function GaugeFieldDocToJSONTyped(value?: GaugeFieldDoc | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,27 @@
1
+ export function instanceOfGaugeFieldDoc(value) {
2
+ return true;
3
+ }
4
+ export function GaugeFieldDocFromJSON(json) {
5
+ return GaugeFieldDocFromJSONTyped(json, false);
6
+ }
7
+ export function GaugeFieldDocFromJSONTyped(json, ignoreDiscriminator) {
8
+ if (json == null) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'description': json['description'] == null ? undefined : json['description'],
13
+ 'name': json['name'] == null ? undefined : json['name'],
14
+ };
15
+ }
16
+ export function GaugeFieldDocToJSON(json) {
17
+ return GaugeFieldDocToJSONTyped(json, false);
18
+ }
19
+ export function GaugeFieldDocToJSONTyped(value, ignoreDiscriminator = false) {
20
+ if (value == null) {
21
+ return value;
22
+ }
23
+ return {
24
+ 'description': value['description'],
25
+ 'name': value['name'],
26
+ };
27
+ }
@@ -4,7 +4,12 @@ export interface InstanceDescriptor {
4
4
  capacity?: number;
5
5
  category?: string;
6
6
  endpoint?: string;
7
+ gauges?: {
8
+ [key: string]: number;
9
+ };
7
10
  healthy?: boolean;
11
+ lastProbeDetail?: string;
12
+ lastProbedAt?: Date;
8
13
  managementUrl?: string;
9
14
  name?: string;
10
15
  site?: string;
@@ -14,7 +14,10 @@ export function InstanceDescriptorFromJSONTyped(json, ignoreDiscriminator) {
14
14
  'capacity': json['capacity'] == null ? undefined : json['capacity'],
15
15
  'category': json['category'] == null ? undefined : json['category'],
16
16
  'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
17
+ 'gauges': json['gauges'] == null ? undefined : json['gauges'],
17
18
  'healthy': json['healthy'] == null ? undefined : json['healthy'],
19
+ 'lastProbeDetail': json['lastProbeDetail'] == null ? undefined : json['lastProbeDetail'],
20
+ 'lastProbedAt': json['lastProbedAt'] == null ? undefined : (new Date(json['lastProbedAt'])),
18
21
  'managementUrl': json['managementUrl'] == null ? undefined : json['managementUrl'],
19
22
  'name': json['name'] == null ? undefined : json['name'],
20
23
  'site': json['site'] == null ? undefined : json['site'],
@@ -35,7 +38,10 @@ export function InstanceDescriptorToJSONTyped(value, ignoreDiscriminator = false
35
38
  'capacity': value['capacity'],
36
39
  'category': value['category'],
37
40
  'endpoint': value['endpoint'],
41
+ 'gauges': value['gauges'],
38
42
  'healthy': value['healthy'],
43
+ 'lastProbeDetail': value['lastProbeDetail'],
44
+ 'lastProbedAt': value['lastProbedAt'] == null ? value['lastProbedAt'] : value['lastProbedAt'].toISOString(),
39
45
  'managementUrl': value['managementUrl'],
40
46
  'name': value['name'],
41
47
  'site': value['site'],
@@ -22,6 +22,7 @@ export * from './EsSeedSpec';
22
22
  export * from './EsSlotSpec';
23
23
  export * from './EsTemplateDeclaration';
24
24
  export * from './ExchangeDecl';
25
+ export * from './GaugeFieldDoc';
25
26
  export * from './HatchetConnection';
26
27
  export * from './HatchetSlotSpec';
27
28
  export * from './HealthProbe';
@@ -22,6 +22,7 @@ export * from './EsSeedSpec';
22
22
  export * from './EsSlotSpec';
23
23
  export * from './EsTemplateDeclaration';
24
24
  export * from './ExchangeDecl';
25
+ export * from './GaugeFieldDoc';
25
26
  export * from './HatchetConnection';
26
27
  export * from './HatchetSlotSpec';
27
28
  export * from './HealthProbe';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kailash-client-ts",
3
- "version": "0.9.3",
3
+ "version": "0.9.6",
4
4
  "description": "Kailash test-resource service TypeScript client (generated apis+models+runtime plus KailashClient facade)",
5
5
  "license": "MIT",
6
6
  "repository": {