Skip to content

[DAS 336] - Update Acc Admin models and endpoints #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 11, 2025

Conversation

Arrotech
Copy link
Contributor

What does this PR do?

Update Acc Admin models and endpoints

Branch Name?

DAS-336-update-acc-admin-models

@Arrotech Arrotech requested review from sajith-subramanian and nishchhaldagar and removed request for sajith-subramanian May 21, 2025 14:23
Copilot

This comment was marked as outdated.

@@ -110,7 +111,7 @@ public ProjectPatchResponse()
///Monetary value of the project
/// </value>
[DataMember(Name="value", EmitDefaultValue=false)]
public decimal? Value { get; set; }
public decimal Value { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

why change this to non optional?

@nishchhaldagar nishchhaldagar requested a review from Copilot June 4, 2025 07:07
Copilot

This comment was marked as outdated.

@Arrotech Arrotech requested a review from nishchhaldagar June 4, 2025 07:24
@nishchhaldagar nishchhaldagar requested a review from Copilot June 4, 2025 07:32
Copilot

This comment was marked as outdated.

Copy link

@Copilot Copilot AI left a comment

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 updates the Account Admin SDK to reflect new model names, enhance filtering/pagination for companies, and align endpoints with renamed classes.

  • Updated license header branding and bumped package version.
  • Renamed generated model classes (removed Response suffix) and fixed field types.
  • Added company filtering enums and a paginated companies endpoint with updated return types.

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
construction/accountadmin/source/Model/ProjectUsersImport.gen.cs Renamed ProjectUsersImportResponseProjectUsersImport
construction/accountadmin/source/Model/ProjectUserDetails.gen.cs Renamed ProjectUserResponseProjectUserDetails
construction/accountadmin/source/Model/ProjectPatch.gen.cs Renamed ProjectPatchResponseProjectPatch
construction/accountadmin/source/Model/ProjectCompanies.gen.cs Renamed CompanyResponseProjectCompanies
construction/accountadmin/source/Model/FilterCompanySort.gen.cs Added FilterCompanySort enum for company sorting
construction/accountadmin/source/Model/FilterCompanyFields.gen.cs Added FilterCompanyFields enum for selecting company fields
construction/accountadmin/source/Model/CompanyOrFilters.gen.cs Added CompanyOrFilters enum for OR-style filtering
construction/accountadmin/source/Model/CompanyImport.gen.cs Renamed CompanyImportResponseCompanyImport and made counts non-nullable
construction/accountadmin/source/Model/CompaniesPage.gen.cs Introduced CompaniesPage model for paginated company lists
construction/accountadmin/source/Model/BusinessUnitsPayload.gen.cs Renamed BusinessUnitsRequestPyloadBusinessUnitsPayload and updated list type
construction/accountadmin/source/Model/BusinessUnitsObject.gen.cs Renamed BusinessUnitsRequestBusinessUnitsObject
construction/accountadmin/source/Model/BusinessUnits.gen.cs Renamed BusinessUnitsResponseBusinessUnits, adjusted property
construction/accountadmin/source/Model/AccountCompanyAddress.gen.cs Added AccountCompanyAddress model for address details
construction/accountadmin/source/Model/AccountCompany.gen.cs Added AccountCompany model with expanded company fields
construction/accountadmin/source/Http/ProjectsApi.gen.cs Updated ProjectsApi return types to use ProjectPatch and ProjectsPage
construction/accountadmin/source/Http/ProjectUsersApi.gen.cs Updated user endpoints to use ProjectUserDetails, import page
construction/accountadmin/source/Http/CompaniesApi.gen.cs Added GetCompaniesWithPaginationAsync, updated model return types
construction/accountadmin/source/Http/BusinessUnitsApi.gen.cs Updated business units endpoints to use new payload/response types
construction/accountadmin/source/Http/AccountUsersApi.gen.cs Updated import user endpoint to use UserImport
Directory.Packages.props Bumped Autodesk.Construction.AccountAdmin package to 2.2.1
Comments suppressed due to low confidence (3)

construction/accountadmin/source/Model/BusinessUnits.gen.cs:53

  • Rename the property VarBusinessUnits to BusinessUnits for consistency and clarity, removing the Var prefix.
public List<BusinessUnit> VarBusinessUnits { get; set; }

construction/accountadmin/source/Model/FilterCompanySort.gen.cs:50

  • Use PascalCase for enum members, e.g., rename NameascNameAsc to improve readability and follow C# conventions.
Nameasc,

construction/accountadmin/source/Model/AccountCompanyAddress.gen.cs:53

  • The property name Type is very generic; consider renaming to AddressType to clarify its purpose and avoid confusion with System.Type.
public string Type { get; set; }

@sajith-subramanian sajith-subramanian added the breaking breaking change label Jun 11, 2025
@sajith-subramanian sajith-subramanian merged commit 1b87c5c into development Jun 11, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants