@openshift-assisted/types 2.9.5-cim
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 +39 -0
- package/accounts-management-service.d.ts +3 -0
- package/assisted-installer-service.d.ts +2865 -0
- package/package.json +43 -0
- package/tsconfig.json +10 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @openshift-assisted/types
|
|
2
|
+
|
|
3
|
+
This package provides general type definitions.
|
|
4
|
+
|
|
5
|
+
## Included:
|
|
6
|
+
|
|
7
|
+
### Based on OCM APIs:
|
|
8
|
+
|
|
9
|
+
- [**assisted-installer-service**](https://api.openshift.com/api/assisted-install/v2/openapi)
|
|
10
|
+
- [**accounts-management-service**](https://api.openshift.com/api/accounts_mgmt/v1/openapi)
|
|
11
|
+
(non-comprehensive)
|
|
12
|
+
|
|
13
|
+
## Usage:
|
|
14
|
+
|
|
15
|
+
From the command-line execute:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
$ yarn add -D @openshift-assisted/types
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Now you can import types as following:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
25
|
+
// or...
|
|
26
|
+
import { AccessTokenCfg } from '@openshift-assisted/types/accounts-management-service';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Development:
|
|
30
|
+
|
|
31
|
+
The types for the `assisted-installer-service` are generated automatically.
|
|
32
|
+
In order to update the types use the following script defined in the `package.json`:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
$ yarn update-types:assisted-installer-service
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The types for the `accounts-management-service` are not generated automatically (for now, maybe they
|
|
39
|
+
will in the future if there is a need to do so...).
|