-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECOPROJECT-2357: Adjusting UI to last changes of API (#51)
* ECOPROJECT-2357: Adjusting UI to last changes of API Signed-off-by: Montse Ortega <[email protected]>
- Loading branch information
Showing
25 changed files
with
727 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { AgentApiInterface, DeleteAgentRequest } from "@migration-planner-ui/api-client/apis"; | ||
import { Agent } from "@migration-planner-ui/api-client/models"; | ||
import { InitOverrideFunction, ApiResponse, ConfigurationParameters } from "@migration-planner-ui/api-client/runtime"; | ||
|
||
export class MockAgentApi implements AgentApiInterface { | ||
constructor(_configuration: ConfigurationParameters) { | ||
console.warn("#### CAUTION: Using MockAgentApi ####"); | ||
} | ||
|
||
deleteAgentRaw(_requestParameters: DeleteAgentRequest, _initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Agent>> { | ||
throw new Error("Method not implemented."); | ||
} | ||
deleteAgent(_requestParameters: DeleteAgentRequest, _initOverrides?: RequestInit | InitOverrideFunction): Promise<Agent> { | ||
throw new Error("Method not implemented."); | ||
} | ||
listAgentsRaw(_initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<Agent>>> { | ||
throw new Error("Method not implemented."); | ||
} | ||
async listAgents(_initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<Agent>> { | ||
const { default: json } = await import("./responses/agents.json"); | ||
return json as unknown as Array<Agent>; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"associated": true, | ||
"createdAt": "2024-12-11T07:22:40.264166+01:00", | ||
"credentialUrl": "http://127.0.0.1:3333", | ||
"sourceId": "29031FCA-3274-4067-A655-8BC4C322EA3F", | ||
"id": "f8d28f7d-d862-47c5-b823-9763b319ff91", | ||
"status": "up-to-date", | ||
"statusInfo": "Inventory successfully collected", | ||
"updatedAt": "2024-12-11T07:23:25.261977+01:00", | ||
"version": "b1dc3f5" | ||
}, | ||
{ | ||
"associated": true, | ||
"createdAt": "2024-12-11T07:22:40.264166+01:00", | ||
"credentialUrl": "http://127.0.0.1:3333", | ||
"sourceId": "29031FCA-3274-4067-A655-8BC4C322EA3C", | ||
"id": "f8d28f7d-d862-47c5-b823-9763b319ff92", | ||
"status": "gathering-initial-inventory", | ||
"statusInfo": "Gathering inventory", | ||
"updatedAt": "2024-12-11T07:23:25.261977+01:00", | ||
"version": "b1dc3f5" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/demo/src/migration-wizard/steps/connect/sources-table/Columns.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.