@openshift-migration-advisor/agent-sdk 0.29.0-1e225337414f → 0.29.0-1f84d7c08794

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.29.0-1e225337414f
1
+ # @openshift-migration-advisor/agent-sdk@0.29.0-1f84d7c08794
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -200,7 +200,7 @@ and is automatically generated by the
200
200
  [OpenAPI Generator](https://openapi-generator.tech) project:
201
201
 
202
202
  - API version: `v2`
203
- - Package version: `0.29.0-1e225337414f`
203
+ - Package version: `0.29.0-1f84d7c08794`
204
204
  - Generator version: `7.27.0-SNAPSHOT`
205
205
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
206
206
 
@@ -35,9 +35,13 @@ export interface Inventory1 {
35
35
  */
36
36
  vcenter?: InventoryData;
37
37
  /**
38
- * Timestamp when the inventory data was created or collected
38
+ * Timestamp when the inventory document was built
39
39
  */
40
40
  created_at?: Date;
41
+ /**
42
+ * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
43
+ */
44
+ collection_time?: Date | null;
41
45
  }
42
46
  /**
43
47
  * Check if a given object implements the Inventory1 interface.
@@ -36,6 +36,7 @@ export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
36
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
38
  'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
39
+ 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
39
40
  };
40
41
  }
41
42
  export function Inventory1ToJSON(json) {
@@ -51,5 +52,6 @@ export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
52
53
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
54
  'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
55
+ 'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
54
56
  };
55
57
  }
@@ -35,9 +35,13 @@ export interface Inventory1 {
35
35
  */
36
36
  vcenter?: InventoryData;
37
37
  /**
38
- * Timestamp when the inventory data was created or collected
38
+ * Timestamp when the inventory document was built
39
39
  */
40
40
  created_at?: Date;
41
+ /**
42
+ * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
43
+ */
44
+ collection_time?: Date | null;
41
45
  }
42
46
  /**
43
47
  * Check if a given object implements the Inventory1 interface.
@@ -43,6 +43,7 @@ function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
43
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
45
  'created_at': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
46
+ 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
46
47
  };
47
48
  }
48
49
  function Inventory1ToJSON(json) {
@@ -58,5 +59,6 @@ function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
58
59
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
59
60
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
61
  'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
62
+ 'collection_time': value['collection_time'] == null ? value['collection_time'] : (0, runtime_js_1.serializeDateTime)(value['collection_time']),
61
63
  };
62
64
  }
@@ -11,6 +11,7 @@ Name | Type
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
13
  `created_at` | Date
14
+ `collection_time` | Date
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const example = {
24
25
  "clusters": null,
25
26
  "vcenter": null,
26
27
  "created_at": null,
28
+ "collection_time": null,
27
29
  } satisfies Inventory1
28
30
 
29
31
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.29.0-1e225337414f",
3
+ "version": "0.29.0-1f84d7c08794",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -44,9 +44,13 @@ export interface Inventory1 {
44
44
  */
45
45
  vcenter?: InventoryData;
46
46
  /**
47
- * Timestamp when the inventory data was created or collected
47
+ * Timestamp when the inventory document was built
48
48
  */
49
49
  created_at?: Date;
50
+ /**
51
+ * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
52
+ */
53
+ collection_time?: Date | null;
50
54
  }
51
55
 
52
56
  /**
@@ -73,6 +77,7 @@ export function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean)
73
77
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
74
78
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
79
  'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
80
+ 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
76
81
  };
77
82
  }
78
83
 
@@ -92,6 +97,7 @@ export function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscrimin
92
97
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
93
98
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
99
  'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
100
+ 'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
95
101
  };
96
102
  }
97
103