-
Notifications
You must be signed in to change notification settings - Fork 20
[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
[DAS 336] - Update Acc Admin models and endpoints #166
Conversation
@@ -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; } |
There was a problem hiding this comment.
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?
There was a problem hiding this 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 ProjectUsersImportResponse → ProjectUsersImport |
construction/accountadmin/source/Model/ProjectUserDetails.gen.cs | Renamed ProjectUserResponse → ProjectUserDetails |
construction/accountadmin/source/Model/ProjectPatch.gen.cs | Renamed ProjectPatchResponse → ProjectPatch |
construction/accountadmin/source/Model/ProjectCompanies.gen.cs | Renamed CompanyResponse → ProjectCompanies |
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 CompanyImportResponse → CompanyImport 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 BusinessUnitsRequestPyload → BusinessUnitsPayload and updated list type |
construction/accountadmin/source/Model/BusinessUnitsObject.gen.cs | Renamed BusinessUnitsRequest → BusinessUnitsObject |
construction/accountadmin/source/Model/BusinessUnits.gen.cs | Renamed BusinessUnitsResponse → BusinessUnits , 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
toBusinessUnits
for consistency and clarity, removing theVar
prefix.
public List<BusinessUnit> VarBusinessUnits { get; set; }
construction/accountadmin/source/Model/FilterCompanySort.gen.cs:50
- Use PascalCase for enum members, e.g., rename
Nameasc
→NameAsc
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 toAddressType
to clarify its purpose and avoid confusion withSystem.Type
.
public string Type { get; set; }
What does this PR do?
Update Acc Admin models and endpoints
Branch Name?
DAS-336-update-acc-admin-models