@openshift-migration-advisor/planner-sdk 0.13.7-c1a47d51e942 → 0.14.0-21224f1f74cf
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 +2 -2
- package/dist/esm/models/Source.d.ts +14 -0
- package/dist/esm/models/Source.js +9 -0
- package/dist/models/Source.d.ts +14 -0
- package/dist/models/Source.js +10 -0
- package/docs/Source.md +2 -0
- package/package.json +1 -1
- package/src/models/Source.ts +19 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/planner-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/planner-sdk@0.14.0-21224f1f74cf
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -189,7 +189,7 @@ and is automatically generated by the
|
|
|
189
189
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
190
190
|
|
|
191
191
|
- API version: `v1alpha1`
|
|
192
|
-
- Package version: `0.
|
|
192
|
+
- Package version: `0.14.0-21224f1f74cf`
|
|
193
193
|
- Generator version: `7.24.0-SNAPSHOT`
|
|
194
194
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
195
195
|
|
|
@@ -85,7 +85,21 @@ export interface Source {
|
|
|
85
85
|
* @memberof Source
|
|
86
86
|
*/
|
|
87
87
|
agentVersionWarning?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
90
|
+
* @type {SourceUpdateTypeEnum}
|
|
91
|
+
* @memberof Source
|
|
92
|
+
*/
|
|
93
|
+
updateType?: SourceUpdateTypeEnum;
|
|
88
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const SourceUpdateTypeEnum: {
|
|
99
|
+
readonly Auto: "auto";
|
|
100
|
+
readonly Manual: "manual";
|
|
101
|
+
};
|
|
102
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
89
103
|
/**
|
|
90
104
|
* Check if a given object implements the Source interface.
|
|
91
105
|
*/
|
|
@@ -15,6 +15,13 @@ import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra.js';
|
|
|
15
15
|
import { AgentFromJSON, AgentToJSON, } from './Agent.js';
|
|
16
16
|
import { LabelFromJSON, LabelToJSON, } from './Label.js';
|
|
17
17
|
import { InventoryFromJSON, InventoryToJSON, } from './Inventory.js';
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export const SourceUpdateTypeEnum = {
|
|
22
|
+
Auto: 'auto',
|
|
23
|
+
Manual: 'manual'
|
|
24
|
+
};
|
|
18
25
|
/**
|
|
19
26
|
* Check if a given object implements the Source interface.
|
|
20
27
|
*/
|
|
@@ -50,6 +57,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
57
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
51
58
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
52
59
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
60
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
53
61
|
};
|
|
54
62
|
}
|
|
55
63
|
export function SourceToJSON(json) {
|
|
@@ -71,5 +79,6 @@ export function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
79
|
'infra': SourceInfraToJSON(value['infra']),
|
|
72
80
|
'agentVersion': value['agentVersion'],
|
|
73
81
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
82
|
+
'updateType': value['updateType'],
|
|
74
83
|
};
|
|
75
84
|
}
|
package/dist/models/Source.d.ts
CHANGED
|
@@ -85,7 +85,21 @@ export interface Source {
|
|
|
85
85
|
* @memberof Source
|
|
86
86
|
*/
|
|
87
87
|
agentVersionWarning?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
90
|
+
* @type {SourceUpdateTypeEnum}
|
|
91
|
+
* @memberof Source
|
|
92
|
+
*/
|
|
93
|
+
updateType?: SourceUpdateTypeEnum;
|
|
88
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export declare const SourceUpdateTypeEnum: {
|
|
99
|
+
readonly Auto: "auto";
|
|
100
|
+
readonly Manual: "manual";
|
|
101
|
+
};
|
|
102
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
89
103
|
/**
|
|
90
104
|
* Check if a given object implements the Source interface.
|
|
91
105
|
*/
|
package/dist/models/Source.js
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SourceUpdateTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfSource = instanceOfSource;
|
|
17
18
|
exports.SourceFromJSON = SourceFromJSON;
|
|
18
19
|
exports.SourceFromJSONTyped = SourceFromJSONTyped;
|
|
@@ -22,6 +23,13 @@ const SourceInfra_js_1 = require("./SourceInfra.js");
|
|
|
22
23
|
const Agent_js_1 = require("./Agent.js");
|
|
23
24
|
const Label_js_1 = require("./Label.js");
|
|
24
25
|
const Inventory_js_1 = require("./Inventory.js");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.SourceUpdateTypeEnum = {
|
|
30
|
+
Auto: 'auto',
|
|
31
|
+
Manual: 'manual'
|
|
32
|
+
};
|
|
25
33
|
/**
|
|
26
34
|
* Check if a given object implements the Source interface.
|
|
27
35
|
*/
|
|
@@ -57,6 +65,7 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
65
|
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
58
66
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
59
67
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
68
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
60
69
|
};
|
|
61
70
|
}
|
|
62
71
|
function SourceToJSON(json) {
|
|
@@ -78,5 +87,6 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
87
|
'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
|
|
79
88
|
'agentVersion': value['agentVersion'],
|
|
80
89
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
90
|
+
'updateType': value['updateType'],
|
|
81
91
|
};
|
|
82
92
|
}
|
package/docs/Source.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`infra` | [SourceInfra](SourceInfra.md)
|
|
18
18
|
`agentVersion` | string
|
|
19
19
|
`agentVersionWarning` | string
|
|
20
|
+
`updateType` | string
|
|
20
21
|
|
|
21
22
|
## Example
|
|
22
23
|
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"infra": null,
|
|
37
38
|
"agentVersion": null,
|
|
38
39
|
"agentVersionWarning": null,
|
|
40
|
+
"updateType": null,
|
|
39
41
|
} satisfies Source
|
|
40
42
|
|
|
41
43
|
console.log(example)
|
package/package.json
CHANGED
package/src/models/Source.ts
CHANGED
|
@@ -114,8 +114,25 @@ export interface Source {
|
|
|
114
114
|
* @memberof Source
|
|
115
115
|
*/
|
|
116
116
|
agentVersionWarning?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
119
|
+
* @type {SourceUpdateTypeEnum}
|
|
120
|
+
* @memberof Source
|
|
121
|
+
*/
|
|
122
|
+
updateType?: SourceUpdateTypeEnum;
|
|
117
123
|
}
|
|
118
124
|
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @export
|
|
128
|
+
*/
|
|
129
|
+
export const SourceUpdateTypeEnum = {
|
|
130
|
+
Auto: 'auto',
|
|
131
|
+
Manual: 'manual'
|
|
132
|
+
} as const;
|
|
133
|
+
export type SourceUpdateTypeEnum = typeof SourceUpdateTypeEnum[keyof typeof SourceUpdateTypeEnum];
|
|
134
|
+
|
|
135
|
+
|
|
119
136
|
/**
|
|
120
137
|
* Check if a given object implements the Source interface.
|
|
121
138
|
*/
|
|
@@ -149,6 +166,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
149
166
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
150
167
|
'agentVersion': json['agentVersion'] == null ? undefined : json['agentVersion'],
|
|
151
168
|
'agentVersionWarning': json['agentVersionWarning'] == null ? undefined : json['agentVersionWarning'],
|
|
169
|
+
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
152
170
|
};
|
|
153
171
|
}
|
|
154
172
|
|
|
@@ -174,6 +192,7 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
|
|
|
174
192
|
'infra': SourceInfraToJSON(value['infra']),
|
|
175
193
|
'agentVersion': value['agentVersion'],
|
|
176
194
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
195
|
+
'updateType': value['updateType'],
|
|
177
196
|
};
|
|
178
197
|
}
|
|
179
198
|
|