@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-347af06813e6
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/.openapi-generator/FILES +18 -2
- package/README.md +12 -4
- package/dist/apis/AppliancesApi.d.ts +64 -0
- package/dist/apis/AppliancesApi.js +72 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +39 -0
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/InventoriesApi.d.ts +9 -9
- package/dist/apis/InventoriesApi.js +3 -3
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +64 -0
- package/dist/esm/apis/AppliancesApi.js +68 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +39 -0
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/InventoriesApi.d.ts +9 -9
- package/dist/esm/apis/InventoriesApi.js +3 -3
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -0
- package/dist/esm/models/CollectedInventory.d.ts +31 -0
- package/dist/esm/models/CollectedInventory.js +44 -0
- package/dist/esm/models/GroupResponse.d.ts +2 -2
- package/dist/esm/models/GroupResponse.js +3 -3
- package/dist/esm/models/Host.d.ts +26 -0
- package/dist/esm/models/Host.js +14 -0
- package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/esm/models/HostPhysicalNIC.js +45 -0
- package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
- package/dist/esm/models/HostStorageAdapter.js +55 -0
- package/dist/esm/models/HostStorageLun.d.ts +50 -0
- package/dist/esm/models/HostStorageLun.js +51 -0
- package/dist/esm/models/Inventory.d.ts +24 -2
- package/dist/esm/models/Inventory.js +17 -4
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/UpdateInventory.d.ts +2 -2
- package/dist/esm/models/UpdateInventory.js +3 -3
- package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/esm/models/VirtualMachineDetail.js +8 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/esm/models/VirtualMachineNIC.js +6 -0
- package/dist/esm/models/index.d.ts +8 -1
- package/dist/esm/models/index.js +8 -1
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -0
- package/dist/models/CollectedInventory.d.ts +31 -0
- package/dist/models/CollectedInventory.js +51 -0
- package/dist/models/GroupResponse.d.ts +2 -2
- package/dist/models/GroupResponse.js +3 -3
- package/dist/models/Host.d.ts +26 -0
- package/dist/models/Host.js +14 -0
- package/dist/models/HostPhysicalNIC.d.ts +34 -0
- package/dist/models/HostPhysicalNIC.js +52 -0
- package/dist/models/HostStorageAdapter.d.ts +58 -0
- package/dist/models/HostStorageAdapter.js +62 -0
- package/dist/models/HostStorageLun.d.ts +50 -0
- package/dist/models/HostStorageLun.js +58 -0
- package/dist/models/Inventory.d.ts +24 -2
- package/dist/models/Inventory.js +17 -4
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/UpdateInventory.d.ts +2 -2
- package/dist/models/UpdateInventory.js +3 -3
- package/dist/models/VirtualMachineDetail.d.ts +14 -0
- package/dist/models/VirtualMachineDetail.js +8 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/VirtualMachineNIC.d.ts +12 -0
- package/dist/models/VirtualMachineNIC.js +6 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/dist/runtime.js +4 -3
- package/docs/{Inventory1.md → Appliance.md} +16 -16
- package/docs/ApplianceListResponse.md +34 -0
- package/docs/AppliancesApi.md +76 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectedInventory.md +34 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/GroupResponse.md +1 -1
- package/docs/GroupsApi.md +68 -0
- package/docs/Host.md +12 -0
- package/docs/HostPhysicalNIC.md +36 -0
- package/docs/HostStorageAdapter.md +49 -0
- package/docs/HostStorageLun.md +45 -0
- package/docs/InventoriesApi.md +4 -4
- package/docs/Inventory.md +12 -2
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/UpdateInventory.md +1 -1
- package/docs/VirtualMachineDetail.md +6 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachineNIC.md +6 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +111 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +80 -0
- package/src/apis/InventoriesApi.ts +14 -14
- package/src/apis/index.ts +1 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -0
- package/src/models/ApplicationOverview.ts +26 -0
- package/src/models/CollectedInventory.ts +72 -0
- package/src/models/GroupResponse.ts +9 -9
- package/src/models/Host.ts +51 -0
- package/src/models/HostPhysicalNIC.ts +70 -0
- package/src/models/HostStorageAdapter.ts +105 -0
- package/src/models/HostStorageLun.ts +93 -0
- package/src/models/Inventory.ts +42 -11
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/UpdateInventory.ts +9 -9
- package/src/models/VirtualMachineDetail.ts +32 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/VirtualMachineNIC.ts +18 -0
- package/src/models/index.ts +8 -1
- package/src/runtime.ts +3 -3
- package/dist/esm/models/Inventory1.d.ts +0 -53
- package/dist/esm/models/Inventory1.js +0 -57
- package/dist/models/Inventory1.d.ts +0 -53
- package/dist/models/Inventory1.js +0 -64
- package/src/models/Inventory1.ts +0 -103
package/.openapi-generator/FILES
CHANGED
|
@@ -6,6 +6,9 @@ docs/AgentApi.md
|
|
|
6
6
|
docs/AgentModeRequest.md
|
|
7
7
|
docs/AgentStatus.md
|
|
8
8
|
docs/AgentStatusConsoleConnection.md
|
|
9
|
+
docs/Appliance.md
|
|
10
|
+
docs/ApplianceListResponse.md
|
|
11
|
+
docs/AppliancesApi.md
|
|
9
12
|
docs/ApplicationListResponse.md
|
|
10
13
|
docs/ApplicationOverview.md
|
|
11
14
|
docs/ApplicationVM.md
|
|
@@ -16,6 +19,7 @@ docs/CapabilityStatus.md
|
|
|
16
19
|
docs/CapabilityStatusCapabilities.md
|
|
17
20
|
docs/ClusterFeatures.md
|
|
18
21
|
docs/ClusterUtilization.md
|
|
22
|
+
docs/CollectedInventory.md
|
|
19
23
|
docs/Collection.md
|
|
20
24
|
docs/CollectionAggregate.md
|
|
21
25
|
docs/CollectionComparisonDiff.md
|
|
@@ -48,13 +52,15 @@ docs/GroupsApi.md
|
|
|
48
52
|
docs/GuestNetwork.md
|
|
49
53
|
docs/Histogram.md
|
|
50
54
|
docs/Host.md
|
|
55
|
+
docs/HostPhysicalNIC.md
|
|
56
|
+
docs/HostStorageAdapter.md
|
|
57
|
+
docs/HostStorageLun.md
|
|
51
58
|
docs/Infra.md
|
|
52
59
|
docs/InspectionStatus.md
|
|
53
60
|
docs/InspectorApi.md
|
|
54
61
|
docs/InspectorStatus.md
|
|
55
62
|
docs/InventoriesApi.md
|
|
56
63
|
docs/Inventory.md
|
|
57
|
-
docs/Inventory1.md
|
|
58
64
|
docs/InventoryData.md
|
|
59
65
|
docs/IssuesBreakdown.md
|
|
60
66
|
docs/MigrationIssue.md
|
|
@@ -64,6 +70,7 @@ docs/OsInfo.md
|
|
|
64
70
|
docs/PairCapability.md
|
|
65
71
|
docs/PairCapabilityRequest.md
|
|
66
72
|
docs/Process.md
|
|
73
|
+
docs/Product.md
|
|
67
74
|
docs/RDMBacking.md
|
|
68
75
|
docs/RightsizingApi.md
|
|
69
76
|
docs/RightsizingClusterResponse.md
|
|
@@ -89,6 +96,7 @@ docs/VirtualMachineDatastore.md
|
|
|
89
96
|
docs/VirtualMachineDetail.md
|
|
90
97
|
docs/VirtualMachineDevice.md
|
|
91
98
|
docs/VirtualMachineDisk.md
|
|
99
|
+
docs/VirtualMachineIdentity.md
|
|
92
100
|
docs/VirtualMachineInspectionConcern.md
|
|
93
101
|
docs/VirtualMachineInspectionResults.md
|
|
94
102
|
docs/VirtualMachineIssue.md
|
|
@@ -99,6 +107,7 @@ docs/VirtualMachinesApi.md
|
|
|
99
107
|
docs/VmUtilizationDetails.md
|
|
100
108
|
package.json
|
|
101
109
|
src/apis/AgentApi.ts
|
|
110
|
+
src/apis/AppliancesApi.ts
|
|
102
111
|
src/apis/ApplicationsApi.ts
|
|
103
112
|
src/apis/CollectionsApi.ts
|
|
104
113
|
src/apis/CollectorApi.ts
|
|
@@ -115,6 +124,8 @@ src/index.ts
|
|
|
115
124
|
src/models/AgentModeRequest.ts
|
|
116
125
|
src/models/AgentStatus.ts
|
|
117
126
|
src/models/AgentStatusConsoleConnection.ts
|
|
127
|
+
src/models/Appliance.ts
|
|
128
|
+
src/models/ApplianceListResponse.ts
|
|
118
129
|
src/models/ApplicationListResponse.ts
|
|
119
130
|
src/models/ApplicationOverview.ts
|
|
120
131
|
src/models/ApplicationVM.ts
|
|
@@ -124,6 +135,7 @@ src/models/CapabilityStatus.ts
|
|
|
124
135
|
src/models/CapabilityStatusCapabilities.ts
|
|
125
136
|
src/models/ClusterFeatures.ts
|
|
126
137
|
src/models/ClusterUtilization.ts
|
|
138
|
+
src/models/CollectedInventory.ts
|
|
127
139
|
src/models/Collection.ts
|
|
128
140
|
src/models/CollectionAggregate.ts
|
|
129
141
|
src/models/CollectionComparisonDiff.ts
|
|
@@ -151,11 +163,13 @@ src/models/GroupResponse.ts
|
|
|
151
163
|
src/models/GuestNetwork.ts
|
|
152
164
|
src/models/Histogram.ts
|
|
153
165
|
src/models/Host.ts
|
|
166
|
+
src/models/HostPhysicalNIC.ts
|
|
167
|
+
src/models/HostStorageAdapter.ts
|
|
168
|
+
src/models/HostStorageLun.ts
|
|
154
169
|
src/models/Infra.ts
|
|
155
170
|
src/models/InspectionStatus.ts
|
|
156
171
|
src/models/InspectorStatus.ts
|
|
157
172
|
src/models/Inventory.ts
|
|
158
|
-
src/models/Inventory1.ts
|
|
159
173
|
src/models/InventoryData.ts
|
|
160
174
|
src/models/IssuesBreakdown.ts
|
|
161
175
|
src/models/MigrationIssue.ts
|
|
@@ -165,6 +179,7 @@ src/models/OsInfo.ts
|
|
|
165
179
|
src/models/PairCapability.ts
|
|
166
180
|
src/models/PairCapabilityRequest.ts
|
|
167
181
|
src/models/Process.ts
|
|
182
|
+
src/models/Product.ts
|
|
168
183
|
src/models/RDMBacking.ts
|
|
169
184
|
src/models/RightsizingClusterResponse.ts
|
|
170
185
|
src/models/RightsizingClusterUtilization.ts
|
|
@@ -188,6 +203,7 @@ src/models/VirtualMachineDatastore.ts
|
|
|
188
203
|
src/models/VirtualMachineDetail.ts
|
|
189
204
|
src/models/VirtualMachineDevice.ts
|
|
190
205
|
src/models/VirtualMachineDisk.ts
|
|
206
|
+
src/models/VirtualMachineIdentity.ts
|
|
191
207
|
src/models/VirtualMachineInspectionConcern.ts
|
|
192
208
|
src/models/VirtualMachineInspectionResults.ts
|
|
193
209
|
src/models/VirtualMachineIssue.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @openshift-migration-advisor/agent-sdk@0.
|
|
1
|
+
# @openshift-migration-advisor/agent-sdk@0.32.0-347af06813e6
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the raw.githubusercontent.com API.
|
|
4
4
|
|
|
@@ -47,6 +47,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
47
47
|
| ----- | ------ | ------------ | -------------
|
|
48
48
|
*AgentApi* | [**getAgentStatus**](docs/AgentApi.md#getagentstatus) | **GET** /agent | Get agent status
|
|
49
49
|
*AgentApi* | [**setAgentMode**](docs/AgentApi.md#setagentmode) | **POST** /agent | Change agent mode
|
|
50
|
+
*AppliancesApi* | [**listAppliances**](docs/AppliancesApi.md#listappliances) | **GET** /collections/{id}/appliances | List detected appliances in a collection
|
|
50
51
|
*ApplicationsApi* | [**listApplications**](docs/ApplicationsApi.md#listapplications) | **GET** /collections/{id}/applications | List detected applications in a collection
|
|
51
52
|
*CollectionsApi* | [**compareCollections**](docs/CollectionsApi.md#comparecollections) | **GET** /collections/compare/{aId}/{bId} | Compare two collections — returns aggregates and diffs
|
|
52
53
|
*CollectionsApi* | [**compareCollectionsDiff**](docs/CollectionsApi.md#comparecollectionsdiff) | **GET** /collections/compare/{aId}/{bId}/{dimension} | Drill down — VM IDs that differ between two collections for a given dimension
|
|
@@ -55,7 +56,6 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
55
56
|
*CollectionsApi* | [**listCollections**](docs/CollectionsApi.md#listcollections) | **GET** /collections | List all collections
|
|
56
57
|
*CollectorApi* | [**getCollectorStatus**](docs/CollectorApi.md#getcollectorstatus) | **GET** /collector | Get collector status
|
|
57
58
|
*CollectorApi* | [**startCollector**](docs/CollectorApi.md#startcollector) | **POST** /collector | Start a collection
|
|
58
|
-
*CollectorApi* | [**startRvtoolsCollector**](docs/CollectorApi.md#startrvtoolscollector) | **POST** /collector/rvtools | Start a collection from RVTools files
|
|
59
59
|
*CollectorApi* | [**stopCollector**](docs/CollectorApi.md#stopcollector) | **DELETE** /collector | Stop collector
|
|
60
60
|
*CredentialsApi* | [**deleteCredentials**](docs/CredentialsApi.md#deletecredentials) | **DELETE** /credentials | Delete stored credentials
|
|
61
61
|
*CredentialsApi* | [**getCredentialCapabilities**](docs/CredentialsApi.md#getcredentialcapabilities) | **GET** /credentials/capabilities | Check vSphere operation capabilities
|
|
@@ -74,6 +74,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
74
74
|
*GroupsApi* | [**deleteLatestGroup**](docs/GroupsApi.md#deletelatestgroup) | **DELETE** /groups/{groupId} | Delete group from the latest collection
|
|
75
75
|
*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getgroup) | **GET** /collections/{id}/groups/{groupId} | Get group by ID with its VirtualMachines
|
|
76
76
|
*GroupsApi* | [**getLatestGroup**](docs/GroupsApi.md#getlatestgroup) | **GET** /groups/{groupId} | Get group by ID from the latest collection
|
|
77
|
+
*GroupsApi* | [**listGroupAppliances**](docs/GroupsApi.md#listgroupappliances) | **GET** /groups/{groupId}/appliances | List detected appliances for a group
|
|
77
78
|
*GroupsApi* | [**listGroupApplications**](docs/GroupsApi.md#listgroupapplications) | **GET** /groups/{groupId}/applications | List detected applications for a group
|
|
78
79
|
*GroupsApi* | [**listGroups**](docs/GroupsApi.md#listgroups) | **GET** /collections/{id}/groups | List all groups in a collection
|
|
79
80
|
*GroupsApi* | [**listLatestGroups**](docs/GroupsApi.md#listlatestgroups) | **GET** /groups | List groups from the latest collection
|
|
@@ -109,6 +110,8 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
109
110
|
- [AgentModeRequest](docs/AgentModeRequest.md)
|
|
110
111
|
- [AgentStatus](docs/AgentStatus.md)
|
|
111
112
|
- [AgentStatusConsoleConnection](docs/AgentStatusConsoleConnection.md)
|
|
113
|
+
- [Appliance](docs/Appliance.md)
|
|
114
|
+
- [ApplianceListResponse](docs/ApplianceListResponse.md)
|
|
112
115
|
- [ApplicationListResponse](docs/ApplicationListResponse.md)
|
|
113
116
|
- [ApplicationOverview](docs/ApplicationOverview.md)
|
|
114
117
|
- [ApplicationVM](docs/ApplicationVM.md)
|
|
@@ -118,6 +121,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
118
121
|
- [CapabilityStatusCapabilities](docs/CapabilityStatusCapabilities.md)
|
|
119
122
|
- [ClusterFeatures](docs/ClusterFeatures.md)
|
|
120
123
|
- [ClusterUtilization](docs/ClusterUtilization.md)
|
|
124
|
+
- [CollectedInventory](docs/CollectedInventory.md)
|
|
121
125
|
- [Collection](docs/Collection.md)
|
|
122
126
|
- [CollectionAggregate](docs/CollectionAggregate.md)
|
|
123
127
|
- [CollectionComparisonDiff](docs/CollectionComparisonDiff.md)
|
|
@@ -145,11 +149,13 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
145
149
|
- [GuestNetwork](docs/GuestNetwork.md)
|
|
146
150
|
- [Histogram](docs/Histogram.md)
|
|
147
151
|
- [Host](docs/Host.md)
|
|
152
|
+
- [HostPhysicalNIC](docs/HostPhysicalNIC.md)
|
|
153
|
+
- [HostStorageAdapter](docs/HostStorageAdapter.md)
|
|
154
|
+
- [HostStorageLun](docs/HostStorageLun.md)
|
|
148
155
|
- [Infra](docs/Infra.md)
|
|
149
156
|
- [InspectionStatus](docs/InspectionStatus.md)
|
|
150
157
|
- [InspectorStatus](docs/InspectorStatus.md)
|
|
151
158
|
- [Inventory](docs/Inventory.md)
|
|
152
|
-
- [Inventory1](docs/Inventory1.md)
|
|
153
159
|
- [InventoryData](docs/InventoryData.md)
|
|
154
160
|
- [IssuesBreakdown](docs/IssuesBreakdown.md)
|
|
155
161
|
- [MigrationIssue](docs/MigrationIssue.md)
|
|
@@ -159,6 +165,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
159
165
|
- [PairCapability](docs/PairCapability.md)
|
|
160
166
|
- [PairCapabilityRequest](docs/PairCapabilityRequest.md)
|
|
161
167
|
- [Process](docs/Process.md)
|
|
168
|
+
- [Product](docs/Product.md)
|
|
162
169
|
- [RDMBacking](docs/RDMBacking.md)
|
|
163
170
|
- [RightsizingClusterResponse](docs/RightsizingClusterResponse.md)
|
|
164
171
|
- [RightsizingClusterUtilization](docs/RightsizingClusterUtilization.md)
|
|
@@ -182,6 +189,7 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v2*
|
|
|
182
189
|
- [VirtualMachineDetail](docs/VirtualMachineDetail.md)
|
|
183
190
|
- [VirtualMachineDevice](docs/VirtualMachineDevice.md)
|
|
184
191
|
- [VirtualMachineDisk](docs/VirtualMachineDisk.md)
|
|
192
|
+
- [VirtualMachineIdentity](docs/VirtualMachineIdentity.md)
|
|
185
193
|
- [VirtualMachineInspectionConcern](docs/VirtualMachineInspectionConcern.md)
|
|
186
194
|
- [VirtualMachineInspectionResults](docs/VirtualMachineInspectionResults.md)
|
|
187
195
|
- [VirtualMachineIssue](docs/VirtualMachineIssue.md)
|
|
@@ -202,7 +210,7 @@ and is automatically generated by the
|
|
|
202
210
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
203
211
|
|
|
204
212
|
- API version: `v2`
|
|
205
|
-
- Package version: `0.
|
|
213
|
+
- Package version: `0.32.0-347af06813e6`
|
|
206
214
|
- Generator version: `7.28.0-SNAPSHOT`
|
|
207
215
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
208
216
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
14
|
+
export interface ListAppliancesRequest {
|
|
15
|
+
/**
|
|
16
|
+
* Collection ID
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* AppliancesApi - interface
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface AppliancesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
export interface AppliancesApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for listAppliances without sending the request
|
|
29
|
+
* @param {string} id Collection ID
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
* @memberof AppliancesApiInterface
|
|
32
|
+
*/
|
|
33
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary List detected appliances in a collection
|
|
37
|
+
* @param {string} id Collection ID
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
* @memberof AppliancesApiInterface
|
|
41
|
+
*/
|
|
42
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
43
|
+
/**
|
|
44
|
+
* List detected appliances in a collection
|
|
45
|
+
*/
|
|
46
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
export declare class AppliancesApi extends runtime.BaseAPI implements AppliancesApiInterface {
|
|
52
|
+
/**
|
|
53
|
+
* Creates request options for listAppliances without sending the request
|
|
54
|
+
*/
|
|
55
|
+
listAppliancesRequestOpts(requestParameters: ListAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
56
|
+
/**
|
|
57
|
+
* List detected appliances in a collection
|
|
58
|
+
*/
|
|
59
|
+
listAppliancesRaw(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
60
|
+
/**
|
|
61
|
+
* List detected appliances in a collection
|
|
62
|
+
*/
|
|
63
|
+
listAppliances(requestParameters: ListAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
64
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AppliancesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime.js");
|
|
27
|
+
const ApplianceListResponse_js_1 = require("../models/ApplianceListResponse.js");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AppliancesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listAppliances without sending the request
|
|
34
|
+
*/
|
|
35
|
+
listAppliancesRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['id'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listAppliances().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
let urlPath = `/collections/{id}/appliances`;
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
|
+
return {
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'GET',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* List detected appliances in a collection
|
|
54
|
+
*/
|
|
55
|
+
listAppliancesRaw(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const requestOptions = yield this.listAppliancesRequestOpts(requestParameters);
|
|
58
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceListResponse_js_1.ApplianceListResponseFromJSON)(jsonValue));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* List detected appliances in a collection
|
|
64
|
+
*/
|
|
65
|
+
listAppliances(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const response = yield this.listAppliancesRaw(requestParameters, initOverrides);
|
|
68
|
+
return yield response.value();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.AppliancesApi = AppliancesApi;
|
|
@@ -11,12 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import { type CollectorStatus } from '../models/CollectorStatus.js';
|
|
14
|
-
export interface StartRvtoolsCollectorRequest {
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
files: Array<Blob>;
|
|
19
|
-
}
|
|
20
14
|
/**
|
|
21
15
|
* CollectorApi - interface
|
|
22
16
|
*
|
|
@@ -60,26 +54,6 @@ export interface CollectorApiInterface {
|
|
|
60
54
|
* Start a collection
|
|
61
55
|
*/
|
|
62
56
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
63
|
-
/**
|
|
64
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
65
|
-
* @param {Array<Blob>} files
|
|
66
|
-
* @throws {RequiredError}
|
|
67
|
-
* @memberof CollectorApiInterface
|
|
68
|
-
*/
|
|
69
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @summary Start a collection from RVTools files
|
|
73
|
-
* @param {Array<Blob>} files
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
* @memberof CollectorApiInterface
|
|
77
|
-
*/
|
|
78
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
79
|
-
/**
|
|
80
|
-
* Start a collection from RVTools files
|
|
81
|
-
*/
|
|
82
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
83
57
|
/**
|
|
84
58
|
* Creates request options for stopCollector without sending the request
|
|
85
59
|
* @throws {RequiredError}
|
|
@@ -127,18 +101,6 @@ export declare class CollectorApi extends runtime.BaseAPI implements CollectorAp
|
|
|
127
101
|
* Start a collection
|
|
128
102
|
*/
|
|
129
103
|
startCollector(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
130
|
-
/**
|
|
131
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
132
|
-
*/
|
|
133
|
-
startRvtoolsCollectorRequestOpts(requestParameters: StartRvtoolsCollectorRequest): Promise<runtime.RequestOpts>;
|
|
134
|
-
/**
|
|
135
|
-
* Start a collection from RVTools files
|
|
136
|
-
*/
|
|
137
|
-
startRvtoolsCollectorRaw(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectorStatus>>;
|
|
138
|
-
/**
|
|
139
|
-
* Start a collection from RVTools files
|
|
140
|
-
*/
|
|
141
|
-
startRvtoolsCollector(requestParameters: StartRvtoolsCollectorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectorStatus>;
|
|
142
104
|
/**
|
|
143
105
|
* Creates request options for stopCollector without sending the request
|
|
144
106
|
*/
|
|
@@ -99,65 +99,6 @@ class CollectorApi extends runtime.BaseAPI {
|
|
|
99
99
|
return yield response.value();
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Creates request options for startRvtoolsCollector without sending the request
|
|
104
|
-
*/
|
|
105
|
-
startRvtoolsCollectorRequestOpts(requestParameters) {
|
|
106
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
if (requestParameters['files'] == null) {
|
|
108
|
-
throw new runtime.RequiredError('files', 'Required parameter "files" was null or undefined when calling startRvtoolsCollector().');
|
|
109
|
-
}
|
|
110
|
-
const queryParameters = {};
|
|
111
|
-
const headerParameters = {};
|
|
112
|
-
const consumes = [
|
|
113
|
-
{ contentType: 'multipart/form-data' },
|
|
114
|
-
];
|
|
115
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
116
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
117
|
-
let formParams;
|
|
118
|
-
let useForm = false;
|
|
119
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
120
|
-
useForm = canConsumeForm;
|
|
121
|
-
if (useForm) {
|
|
122
|
-
formParams = new FormData();
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
formParams = new URLSearchParams();
|
|
126
|
-
}
|
|
127
|
-
if (requestParameters['files'] != null) {
|
|
128
|
-
requestParameters['files'].forEach((element) => {
|
|
129
|
-
formParams.append('files', element);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
let urlPath = `/collector/rvtools`;
|
|
133
|
-
return {
|
|
134
|
-
path: urlPath,
|
|
135
|
-
method: 'POST',
|
|
136
|
-
headers: headerParameters,
|
|
137
|
-
query: queryParameters,
|
|
138
|
-
body: formParams,
|
|
139
|
-
};
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Start a collection from RVTools files
|
|
144
|
-
*/
|
|
145
|
-
startRvtoolsCollectorRaw(requestParameters, initOverrides) {
|
|
146
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
-
const requestOptions = yield this.startRvtoolsCollectorRequestOpts(requestParameters);
|
|
148
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
149
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectorStatus_js_1.CollectorStatusFromJSON)(jsonValue));
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Start a collection from RVTools files
|
|
154
|
-
*/
|
|
155
|
-
startRvtoolsCollector(requestParameters, initOverrides) {
|
|
156
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
-
const response = yield this.startRvtoolsCollectorRaw(requestParameters, initOverrides);
|
|
158
|
-
return yield response.value();
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
102
|
/**
|
|
162
103
|
* Creates request options for stopCollector without sending the request
|
|
163
104
|
*/
|
package/dist/apis/GroupsApi.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
+
import { type ApplianceListResponse } from '../models/ApplianceListResponse.js';
|
|
13
14
|
import { type ApplicationListResponse } from '../models/ApplicationListResponse.js';
|
|
14
15
|
import { type CreateGroupRequest } from '../models/CreateGroupRequest.js';
|
|
15
16
|
import { type Group } from '../models/Group.js';
|
|
@@ -68,6 +69,12 @@ export interface GetLatestGroupRequest {
|
|
|
68
69
|
*/
|
|
69
70
|
pageSize?: number;
|
|
70
71
|
}
|
|
72
|
+
export interface ListGroupAppliancesRequest {
|
|
73
|
+
/**
|
|
74
|
+
* Group ID
|
|
75
|
+
*/
|
|
76
|
+
groupId: string;
|
|
77
|
+
}
|
|
71
78
|
export interface ListGroupApplicationsRequest {
|
|
72
79
|
/**
|
|
73
80
|
* Group ID
|
|
@@ -217,6 +224,26 @@ export interface GroupsApiInterface {
|
|
|
217
224
|
* Get group by ID from the latest collection
|
|
218
225
|
*/
|
|
219
226
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
229
|
+
* @param {string} groupId Group ID
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
* @memberof GroupsApiInterface
|
|
232
|
+
*/
|
|
233
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
234
|
+
/**
|
|
235
|
+
*
|
|
236
|
+
* @summary List detected appliances for a group
|
|
237
|
+
* @param {string} groupId Group ID
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof GroupsApiInterface
|
|
241
|
+
*/
|
|
242
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
243
|
+
/**
|
|
244
|
+
* List detected appliances for a group
|
|
245
|
+
*/
|
|
246
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
220
247
|
/**
|
|
221
248
|
* Creates request options for listGroupApplications without sending the request
|
|
222
249
|
* @param {string} groupId Group ID
|
|
@@ -362,6 +389,18 @@ export declare class GroupsApi extends runtime.BaseAPI implements GroupsApiInter
|
|
|
362
389
|
* Get group by ID from the latest collection
|
|
363
390
|
*/
|
|
364
391
|
getLatestGroup(requestParameters: GetLatestGroupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GroupResponse>;
|
|
392
|
+
/**
|
|
393
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
394
|
+
*/
|
|
395
|
+
listGroupAppliancesRequestOpts(requestParameters: ListGroupAppliancesRequest): Promise<runtime.RequestOpts>;
|
|
396
|
+
/**
|
|
397
|
+
* List detected appliances for a group
|
|
398
|
+
*/
|
|
399
|
+
listGroupAppliancesRaw(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplianceListResponse>>;
|
|
400
|
+
/**
|
|
401
|
+
* List detected appliances for a group
|
|
402
|
+
*/
|
|
403
|
+
listGroupAppliances(requestParameters: ListGroupAppliancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplianceListResponse>;
|
|
365
404
|
/**
|
|
366
405
|
* Creates request options for listGroupApplications without sending the request
|
|
367
406
|
*/
|
package/dist/apis/GroupsApi.js
CHANGED
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GroupsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
+
const ApplianceListResponse_js_1 = require("../models/ApplianceListResponse.js");
|
|
27
28
|
const ApplicationListResponse_js_1 = require("../models/ApplicationListResponse.js");
|
|
28
29
|
const CreateGroupRequest_js_1 = require("../models/CreateGroupRequest.js");
|
|
29
30
|
const Group_js_1 = require("../models/Group.js");
|
|
@@ -212,6 +213,45 @@ class GroupsApi extends runtime.BaseAPI {
|
|
|
212
213
|
return yield response.value();
|
|
213
214
|
});
|
|
214
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Creates request options for listGroupAppliances without sending the request
|
|
218
|
+
*/
|
|
219
|
+
listGroupAppliancesRequestOpts(requestParameters) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
if (requestParameters['groupId'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling listGroupAppliances().');
|
|
223
|
+
}
|
|
224
|
+
const queryParameters = {};
|
|
225
|
+
const headerParameters = {};
|
|
226
|
+
let urlPath = `/groups/{groupId}/appliances`;
|
|
227
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
228
|
+
return {
|
|
229
|
+
path: urlPath,
|
|
230
|
+
method: 'GET',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
};
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* List detected appliances for a group
|
|
238
|
+
*/
|
|
239
|
+
listGroupAppliancesRaw(requestParameters, initOverrides) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
241
|
+
const requestOptions = yield this.listGroupAppliancesRequestOpts(requestParameters);
|
|
242
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
243
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ApplianceListResponse_js_1.ApplianceListResponseFromJSON)(jsonValue));
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* List detected appliances for a group
|
|
248
|
+
*/
|
|
249
|
+
listGroupAppliances(requestParameters, initOverrides) {
|
|
250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
251
|
+
const response = yield this.listGroupAppliancesRaw(requestParameters, initOverrides);
|
|
252
|
+
return yield response.value();
|
|
253
|
+
});
|
|
254
|
+
}
|
|
215
255
|
/**
|
|
216
256
|
* Creates request options for listGroupApplications without sending the request
|
|
217
257
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import { type
|
|
13
|
+
import { type CollectedInventory } from '../models/CollectedInventory.js';
|
|
14
14
|
export interface GetInventoryRequest {
|
|
15
15
|
/**
|
|
16
16
|
* Collection ID
|
|
@@ -45,11 +45,11 @@ export interface InventoriesApiInterface {
|
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
* @memberof InventoriesApiInterface
|
|
47
47
|
*/
|
|
48
|
-
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
48
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
49
49
|
/**
|
|
50
50
|
* Get collected inventory for a collection
|
|
51
51
|
*/
|
|
52
|
-
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
52
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
53
53
|
/**
|
|
54
54
|
* Creates request options for getLatestInventory without sending the request
|
|
55
55
|
* @param {'main' | 'all'} [scope] Selects which inventories to return. \"main\" (default) returns only the main inventory as JSON. \"all\" returns a ZIP bundle containing the main inventory (inventory.json) and every group subset inventory (subsets/<groupId>.json), for manual upload in disconnected environments.
|
|
@@ -65,11 +65,11 @@ export interface InventoriesApiInterface {
|
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
* @memberof InventoriesApiInterface
|
|
67
67
|
*/
|
|
68
|
-
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
68
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
69
69
|
/**
|
|
70
70
|
* Get inventory from the latest collection
|
|
71
71
|
*/
|
|
72
|
-
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
72
|
+
getLatestInventory(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -82,11 +82,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
|
|
|
82
82
|
/**
|
|
83
83
|
* Get collected inventory for a collection
|
|
84
84
|
*/
|
|
85
|
-
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
85
|
+
getInventoryRaw(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
86
86
|
/**
|
|
87
87
|
* Get collected inventory for a collection
|
|
88
88
|
*/
|
|
89
|
-
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
89
|
+
getInventory(requestParameters: GetInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
90
90
|
/**
|
|
91
91
|
* Creates request options for getLatestInventory without sending the request
|
|
92
92
|
*/
|
|
@@ -94,11 +94,11 @@ export declare class InventoriesApi extends runtime.BaseAPI implements Inventori
|
|
|
94
94
|
/**
|
|
95
95
|
* Get inventory from the latest collection
|
|
96
96
|
*/
|
|
97
|
-
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
97
|
+
getLatestInventoryRaw(requestParameters: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectedInventory>>;
|
|
98
98
|
/**
|
|
99
99
|
* Get inventory from the latest collection
|
|
100
100
|
*/
|
|
101
|
-
getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
101
|
+
getLatestInventory(requestParameters?: GetLatestInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectedInventory>;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* @export
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetLatestInventoryScopeEnum = exports.InventoriesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime.js");
|
|
27
|
-
const
|
|
27
|
+
const CollectedInventory_js_1 = require("../models/CollectedInventory.js");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
@@ -56,7 +56,7 @@ class InventoriesApi extends runtime.BaseAPI {
|
|
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
|
57
57
|
const requestOptions = yield this.getInventoryRequestOpts(requestParameters);
|
|
58
58
|
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
59
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectedInventory_js_1.CollectedInventoryFromJSON)(jsonValue));
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
@@ -94,7 +94,7 @@ class InventoriesApi extends runtime.BaseAPI {
|
|
|
94
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
const requestOptions = yield this.getLatestInventoryRequestOpts(requestParameters);
|
|
96
96
|
const response = yield this.request(requestOptions, initOverrides);
|
|
97
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CollectedInventory_js_1.CollectedInventoryFromJSON)(jsonValue));
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
/**
|