Skip to content

[6126] usage export button - #604

Draft
strongmindsaln wants to merge 2 commits into
mainfrom
feature/kitosudv-6126-usage-export
Draft

[6126] usage export button#604
strongmindsaln wants to merge 2 commits into
mainfrom
feature/kitosudv-6126-usage-export

Conversation

@strongmindsaln

Copy link
Copy Markdown

PR requirements

Follow this guide to test and review: https://strongminds.atlassian.net/wiki/spaces/KITOS/pages/993984514/QA

Description

Describe what was changed in this branch, and WHY it was changed.

Checklist

  • Validate UI wrt Figma wireframe
    Look through the Figma wireframe with similar elements and validate the implementation
  • Remember to check for missing translations
    Did you remember to run yarn i18n?
  • Merge current master in your local branch
    Make sure you are testing your changes and how they co-exist with the latest version of master
  • Test the pull request
    Test all of the changes made
  • Verify that Cypress tests are all green
    This is part of the PR checks, so look at the PR page itself
  • Self-review
    Before requesting a review do a yet another self-review
  • Add a description
    Under "Description" above, explain what was changed in this branch, and WHY it was changed
  • Request review
    Tag whomever you wish to review your code

Copilot AI review requested due to automatic review settings May 4, 2026 10:17
@strongmindsaln
strongmindsaln marked this pull request as draft May 4, 2026 10:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR mainly updates the generated V1 API client layer for Excel-related endpoints, splitting the old shared Excel client into a local-admin-specific service plus a new IT-system-usage export service. In the codebase, these files sit under the autogenerated src/app/api/v1/ surface that other frontend services import from.

Changes:

  • Renamed the existing V1 Excel client to LocalAdminExcelService and renamed its request/method types accordingly.
  • Added a new generated ExcelExportService for /api/excel/it-system-usage/{systemUsageUuid}.
  • Updated the V1 API barrel/module/generated file manifest to expose the new services.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/app/api/v1/api/localAdminExcel.service.ts Renames the old generated Excel client to a local-admin-specific service and updates its generated method/type names.
src/app/api/v1/api/excelExport.service.ts Adds a new generated V1 client for IT system usage Excel export.
src/app/api/v1/api/api.ts Updates the V1 barrel exports and APIS list to reference the new Excel services.
src/app/api/v1/api.module.ts Adjusts generated API module imports to match the renamed/new Excel services.
src/app/api/v1/.openapi-generator/FILES Updates the OpenAPI generator manifest for the renamed/new generated service files.

Comment thread src/app/api/v1/api/api.ts
Comment on lines +7 to +8
export * from './excelExport.service';
import { ExcelExportService } from './excelExport.service';
Comment on lines +101 to +145
public getSingleExcelExportGetItSystemUsageByUuid(requestParameters: GetSingleExcelExportGetItSystemUsageByUuidRequestParams, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any>;
public getSingleExcelExportGetItSystemUsageByUuid(requestParameters: GetSingleExcelExportGetItSystemUsageByUuidRequestParams, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpResponse<any>>;
public getSingleExcelExportGetItSystemUsageByUuid(requestParameters: GetSingleExcelExportGetItSystemUsageByUuidRequestParams, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<HttpEvent<any>>;
public getSingleExcelExportGetItSystemUsageByUuid(requestParameters: GetSingleExcelExportGetItSystemUsageByUuidRequestParams, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext}): Observable<any> {
const systemUsageUuid = requestParameters.systemUsageUuid;
if (systemUsageUuid === null || systemUsageUuid === undefined) {
throw new Error('Required parameter systemUsageUuid was null or undefined when calling getSingleExcelExportGetItSystemUsageByUuid.');
}

let localVarHeaders = this.defaultHeaders;

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}


let responseType_: 'text' | 'json' | 'blob' = 'json';
if (localVarHttpHeaderAcceptSelected) {
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
responseType_ = 'text';
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
responseType_ = 'json';
} else {
responseType_ = 'blob';
}
}

let localVarPath = `/api/excel/it-system-usage/${this.configuration.encodeParam({name: "systemUsageUuid", value: systemUsageUuid, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants