Dashboard Models
Dashboard models for the ACPortal API.
- class ab.api.models.dashboard.DashboardParams(*, viewId=None, companyId=None)[source]
Bases:
RequestModelQuery parameters for GET /dashboard.
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.dashboard.DashboardCompanyParams(*, companyId=None)[source]
Bases:
RequestModelQuery parameters for GET /dashboard/gridviews (company filter).
- Parameters:
companyId (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.dashboard.DashboardCompanyRequest(*, companyId=None)[source]
Bases:
RequestModelBody for POST /dashboard/{inbound,inhouse,outbound,…} endpoints.
- Parameters:
companyId (str | None)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'forbid', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.dashboard.DashboardItem(*, location=None, jobDisplayID=None, pickup=None, customer=None, packer=None, priority=None, next=None, pause=None, labels=None, opsForm=None, step=None, shipBy=None, expedite=None, note=None, carrier=None, labor=None, actual=None, item_Count=None, **extra_data)[source]
Bases:
ResponseModelRow in the dashboard data grid — element of DashboardSummary.data.
- Parameters:
location (str | None)
jobDisplayID (int | None)
pickup (str | None)
customer (str | None)
packer (str | None)
priority (int | None)
next (str | None)
pause (int | None)
labels (str | None)
opsForm (str | None)
step (int | None)
shipBy (datetime | None)
expedite (str | None)
note (str | None)
carrier (str | None)
labor (float | None)
actual (float | None)
item_Count (int | None)
extra_data (Any)
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.dashboard.DashboardSummary(*, inboundCount=None, outboundCount=None, inHouseCount=None, localDeliveriesCount=None, recentEstimatesCount=None, data=None, **extra_data)[source]
Bases:
ResponseModelAggregated dashboard data — GET /dashboard.
- Parameters:
- data: List[DashboardItem] | None
- cli_format()[source]
Pretty summary line + one line per row (vs. JSON).
datais the active grid view’s rows; counts are populated only when the API includes them. The header surfaces both so it’s clear which fields were returned.- Return type:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.dashboard.GridViewState(*, id=None, columns=None, filters=None, sortOrder=None, **extra_data)[source]
Bases:
ResponseModelSaved grid view state — GET/POST /dashboard/gridviewstate/{id}.
- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class ab.api.models.dashboard.GridViewInfo(*, id=None, name=None, dataKey=None, isActive=None, storedProcedure=None, columnsSpecification=None, spColumns=None, **extra_data)[source]
Bases:
ResponseModelGrid view metadata — GET /dashboard/gridviews.
Shape matches the swagger
GridViewDetailscomponent.idis the forward reference consumed byDashboardParams.view_idwhen calling GET/dashboard.- Parameters:
- model_config = {'alias_generator': <function _to_camel>, 'extra': 'allow', 'populate_by_name': True, 'str_strip_whitespace': True, 'use_enum_values': True, 'validate_by_alias': True, 'validate_by_name': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].