@chrt-inc/typescript-sdk 1.530.1 → 1.539.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billing/index.d.ts +1 -1
- package/dist/cjs/api/resources/billing/index.js +1 -1
- package/dist/cjs/api/resources/billing/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/billing/resources/index.js +2 -3
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +5 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +7 -3
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/billing/resources/rateSheets/index.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/rateSheets/index.js +0 -1
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +8 -2
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +28 -4
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.ts +10 -1
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.ts +10 -1
- package/dist/cjs/api/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/index.js +3 -3
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +7 -3
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +23 -11
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +18 -6
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +71 -36
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +11 -3
- package/dist/cjs/api/resources/orgs/client/Client.js +51 -16
- package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +23 -0
- package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +27 -9
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +105 -48
- package/dist/cjs/api/resources/orgs/resources/connections/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/index.js +15 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/orgs/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/index.js +1 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +9 -3
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +35 -16
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +14 -8
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +58 -24
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +11 -4
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +17 -6
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/index.js +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.ts +3 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/index.js +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +2 -3
- package/dist/cjs/api/resources/shipping/resources/orders/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +22 -4
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +82 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/index.js +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/index.js +0 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +22 -4
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +82 -6
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.ts +6 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/index.js +0 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +1 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +2 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +5 -20
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +15 -79
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +10 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +4 -21
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +8 -80
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +2 -2
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +12 -3
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +47 -16
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.ts +24 -0
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.js +5 -0
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/CourierConnectionListRes.d.ts +8 -0
- package/dist/cjs/api/types/CourierConnectionListRes.js +5 -0
- package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +1 -0
- package/dist/cjs/api/types/DeviceListRes.d.ts +1 -1
- package/dist/cjs/api/types/DevicePausedTimeWindow1.d.ts +7 -0
- package/dist/cjs/api/types/DevicePausedTimeWindow1.js +5 -0
- package/dist/cjs/api/types/{DeviceSearchRes.d.ts → DirectoryEntryListRes.d.ts} +2 -2
- package/dist/cjs/api/types/DirectoryEntryListRes.js +5 -0
- package/dist/cjs/api/types/DirectoryEntrySortByEnum.d.ts +9 -0
- package/dist/cjs/api/types/DirectoryEntrySortByEnum.js +11 -0
- package/dist/cjs/api/types/{SessionSearchRes.d.ts → DriverListRes.d.ts} +2 -2
- package/dist/cjs/api/types/DriverListRes.js +5 -0
- package/dist/cjs/api/types/ForwarderConnectionListRes.d.ts +8 -0
- package/dist/cjs/api/types/ForwarderConnectionListRes.js +5 -0
- package/dist/cjs/api/types/LineItemGroupListRes.d.ts +1 -1
- package/dist/cjs/api/types/NotificationAdHocListRes.d.ts +8 -0
- package/dist/cjs/api/types/NotificationAdHocListRes.js +5 -0
- package/dist/cjs/api/types/NotificationGroupListRes.d.ts +8 -0
- package/dist/cjs/api/types/NotificationGroupListRes.js +5 -0
- package/dist/cjs/api/types/NotificationGroupUserListRes.d.ts +8 -0
- package/dist/cjs/api/types/NotificationGroupUserListRes.js +5 -0
- package/dist/cjs/api/types/OffChrtShipperOrgListRes.d.ts +8 -0
- package/dist/cjs/api/types/OffChrtShipperOrgListRes.js +5 -0
- package/dist/cjs/api/types/OrderDraftExpandedListRes.d.ts +1 -1
- package/dist/cjs/api/types/OrdersExpandedListRes.d.ts +1 -1
- package/dist/cjs/api/types/OrgMemberListRes.d.ts +8 -0
- package/dist/cjs/api/types/OrgMemberListRes.js +5 -0
- package/dist/cjs/api/types/OrgMemberSortByEnum.d.ts +8 -0
- package/dist/cjs/api/types/OrgMemberSortByEnum.js +10 -0
- package/dist/cjs/api/types/OrgMembersAndDriversListRes.d.ts +8 -0
- package/dist/cjs/api/types/OrgMembersAndDriversListRes.js +5 -0
- package/dist/cjs/api/types/RateSheetListResponse.d.ts +1 -1
- package/dist/cjs/api/types/SessionListRes.d.ts +1 -1
- package/dist/cjs/api/types/ShipperConnectionListRes.d.ts +8 -0
- package/dist/cjs/api/types/ShipperConnectionListRes.js +5 -0
- package/dist/cjs/api/types/StatementsExpandedListRes.d.ts +1 -1
- package/dist/cjs/api/types/StatementsListRes.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupExpandedListRes.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +14 -2
- package/dist/cjs/api/types/index.js +14 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/billing/index.d.mts +1 -1
- package/dist/esm/api/resources/billing/index.mjs +1 -1
- package/dist/esm/api/resources/billing/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/billing/resources/index.mjs +1 -2
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +5 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupsListForCourierOrgV1Request.d.mts +3 -0
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +7 -3
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetsListByOrgV1Request.d.mts +6 -2
- package/dist/esm/api/resources/billing/resources/rateSheets/index.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/rateSheets/index.mjs +0 -1
- package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +8 -2
- package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +28 -4
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsExpandedListV1Request.d.mts +10 -1
- package/dist/esm/api/resources/billing/resources/statements/client/requests/StatementsListV1Request.d.mts +10 -1
- package/dist/esm/api/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/index.mjs +2 -2
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +7 -3
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +23 -11
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +18 -6
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +71 -36
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByOrgV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +11 -3
- package/dist/esm/api/resources/orgs/client/Client.mjs +51 -16
- package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +23 -0
- package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +27 -9
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +105 -48
- package/dist/esm/api/resources/orgs/resources/connections/client/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/index.mjs +1 -1
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.d.mts +14 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCouriersV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.d.mts +14 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListForwardersV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.d.mts +14 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/index.mjs +1 -0
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +9 -3
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +35 -16
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.d.mts +14 -0
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgListV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +14 -8
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +58 -24
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +11 -4
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +17 -6
- package/dist/esm/api/resources/shipping/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/index.mjs +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/requests/ExpandedListV1Request.d.mts +3 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +1 -2
- package/dist/esm/api/resources/shipping/resources/orders/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +22 -4
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +82 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForForwarderOperatorsV1Request.d.mts +6 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +6 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +22 -4
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +82 -6
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierDriverV1Request.d.mts +6 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForCourierOperatorsV1Request.d.mts +6 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +1 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +1 -2
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +5 -20
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +15 -79
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +10 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +4 -21
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +8 -80
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +4 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +2 -2
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +12 -3
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +47 -16
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.d.mts +24 -0
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntriesListV1Request.mjs +4 -0
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/CourierConnectionListRes.d.mts +8 -0
- package/dist/esm/api/types/CourierConnectionListRes.mjs +4 -0
- package/dist/esm/api/types/DeviceLimitedForList1.d.mts +1 -0
- package/dist/esm/api/types/DeviceListRes.d.mts +1 -1
- package/dist/esm/api/types/DevicePausedTimeWindow1.d.mts +7 -0
- package/dist/esm/api/types/DevicePausedTimeWindow1.mjs +4 -0
- package/dist/esm/api/types/{DeviceSearchRes.d.mts → DirectoryEntryListRes.d.mts} +2 -2
- package/dist/esm/api/types/DirectoryEntryListRes.mjs +4 -0
- package/dist/esm/api/types/DirectoryEntrySortByEnum.d.mts +9 -0
- package/dist/esm/api/types/DirectoryEntrySortByEnum.mjs +8 -0
- package/dist/esm/api/types/{SessionSearchRes.d.mts → DriverListRes.d.mts} +2 -2
- package/dist/esm/api/types/DriverListRes.mjs +4 -0
- package/dist/esm/api/types/ForwarderConnectionListRes.d.mts +8 -0
- package/dist/esm/api/types/ForwarderConnectionListRes.mjs +4 -0
- package/dist/esm/api/types/LineItemGroupListRes.d.mts +1 -1
- package/dist/esm/api/types/NotificationAdHocListRes.d.mts +8 -0
- package/dist/esm/api/types/NotificationAdHocListRes.mjs +4 -0
- package/dist/esm/api/types/NotificationGroupListRes.d.mts +8 -0
- package/dist/esm/api/types/NotificationGroupListRes.mjs +4 -0
- package/dist/esm/api/types/NotificationGroupUserListRes.d.mts +8 -0
- package/dist/esm/api/types/NotificationGroupUserListRes.mjs +4 -0
- package/dist/esm/api/types/OffChrtShipperOrgListRes.d.mts +8 -0
- package/dist/esm/api/types/OffChrtShipperOrgListRes.mjs +4 -0
- package/dist/esm/api/types/OrderDraftExpandedListRes.d.mts +1 -1
- package/dist/esm/api/types/OrdersExpandedListRes.d.mts +1 -1
- package/dist/esm/api/types/OrgMemberListRes.d.mts +8 -0
- package/dist/esm/api/types/OrgMemberListRes.mjs +4 -0
- package/dist/esm/api/types/OrgMemberSortByEnum.d.mts +8 -0
- package/dist/esm/api/types/OrgMemberSortByEnum.mjs +7 -0
- package/dist/esm/api/types/OrgMembersAndDriversListRes.d.mts +8 -0
- package/dist/esm/api/types/OrgMembersAndDriversListRes.mjs +4 -0
- package/dist/esm/api/types/RateSheetListResponse.d.mts +1 -1
- package/dist/esm/api/types/SessionListRes.d.mts +1 -1
- package/dist/esm/api/types/ShipperConnectionListRes.d.mts +8 -0
- package/dist/esm/api/types/ShipperConnectionListRes.mjs +4 -0
- package/dist/esm/api/types/StatementsExpandedListRes.d.mts +1 -1
- package/dist/esm/api/types/StatementsListRes.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupExpandedListRes.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +14 -2
- package/dist/esm/api/types/index.mjs +14 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +307 -185
- package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/billing/resources/rateSheets/types/index.js +0 -17
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.js +0 -17
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/types/index.js +0 -18
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.ts +0 -8
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.js +0 -10
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +0 -18
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.ts +0 -21
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.ts +0 -21
- package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/billing/resources/rateSheets/types/RateSheetsListByOrgV1RequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/billing/resources/rateSheets/types/index.d.mts +0 -1
- package/dist/esm/api/resources/billing/resources/rateSheets/types/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/ExpandedListV1RequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/types/index.mjs +0 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForForwarderOperatorsV1RequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/ExpandedListForShipperOperatorsV1RequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/types/index.mjs +0 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierDriverV1RequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.d.mts +0 -8
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/ExpandedListForCourierOperatorsV1RequestSortOrder.mjs +0 -7
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +0 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +0 -2
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesSearchV1Request.d.mts +0 -21
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsSearchV1Request.d.mts +0 -21
- /package/dist/cjs/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.js → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.js} +0 -0
- /package/dist/cjs/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.js → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.js} +0 -0
- /package/dist/cjs/api/{types/DeviceSearchRes.js → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.js} +0 -0
- /package/dist/cjs/api/{types/SessionSearchRes.js → resources/orgs/client/requests/OrgsListMembersV1Request.js} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/devices/client/requests/DevicesSearchV1Request.mjs → notifications/resources/adHoc/client/requests/AdHocListByOrderIdV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/{tracking/resources/sessions/client/requests/SessionsSearchV1Request.mjs → notifications/resources/groups/client/requests/GroupsListByOrgV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/DeviceSearchRes.mjs → resources/notifications/resources/groups/client/requests/GroupsListByUserV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/SessionSearchRes.mjs → resources/orgs/client/requests/OrgsListMembersV1Request.mjs} +0 -0
|
@@ -31,7 +31,7 @@ export declare class Sessions {
|
|
|
31
31
|
protected readonly _options: Sessions.Options;
|
|
32
32
|
constructor(_options?: Sessions.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
|
|
34
|
+
* Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.tracking.SessionsListV1Request} request
|
|
37
37
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,6 +44,7 @@ export declare class Sessions {
|
|
|
44
44
|
* sort_order: "asc",
|
|
45
45
|
* page: 1,
|
|
46
46
|
* page_size: 1,
|
|
47
|
+
* search: "search",
|
|
47
48
|
* org_scope: "owned",
|
|
48
49
|
* filter_terminated: true,
|
|
49
50
|
* filter_public: true,
|
|
@@ -63,7 +64,7 @@ export declare class Sessions {
|
|
|
63
64
|
listV1(request?: Chrt.tracking.SessionsListV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.SessionListRes>;
|
|
64
65
|
private __listV1;
|
|
65
66
|
/**
|
|
66
|
-
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (Session1)
|
|
67
|
+
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session1)
|
|
67
68
|
*
|
|
68
69
|
* @param {Chrt.tracking.SessionsGetV1Request} request
|
|
69
70
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -78,7 +79,7 @@ export declare class Sessions {
|
|
|
78
79
|
getV1(request: Chrt.tracking.SessionsGetV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.Session1>;
|
|
79
80
|
private __getV1;
|
|
80
81
|
/**
|
|
81
|
-
* Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
|
|
82
|
+
* Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
|
|
82
83
|
*
|
|
83
84
|
* @param {Chrt.tracking.SessionsTypeaheadV1Request} request
|
|
84
85
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -94,24 +95,6 @@ export declare class Sessions {
|
|
|
94
95
|
*/
|
|
95
96
|
typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
|
|
96
97
|
private __typeaheadV1;
|
|
97
|
-
/**
|
|
98
|
-
* Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id. Handles both partial and full matches. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionSearchRes)
|
|
99
|
-
*
|
|
100
|
-
* @param {Chrt.tracking.SessionsSearchV1Request} request
|
|
101
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
-
*
|
|
103
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* await client.tracking.sessions.searchV1({
|
|
107
|
-
* query: "query",
|
|
108
|
-
* page: 1,
|
|
109
|
-
* page_size: 1,
|
|
110
|
-
* org_scope: "owned"
|
|
111
|
-
* })
|
|
112
|
-
*/
|
|
113
|
-
searchV1(request: Chrt.tracking.SessionsSearchV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.SessionSearchRes>;
|
|
114
|
-
private __searchV1;
|
|
115
98
|
/**
|
|
116
99
|
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
|
|
117
100
|
*
|
|
@@ -31,7 +31,7 @@ export class Sessions {
|
|
|
31
31
|
this._options = _options;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionListRes)
|
|
34
|
+
* Lists sessions with filtering, sorting, and pagination. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (SessionListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.tracking.SessionsListV1Request} request
|
|
37
37
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,6 +44,7 @@ export class Sessions {
|
|
|
44
44
|
* sort_order: "asc",
|
|
45
45
|
* page: 1,
|
|
46
46
|
* page_size: 1,
|
|
47
|
+
* search: "search",
|
|
47
48
|
* org_scope: "owned",
|
|
48
49
|
* filter_terminated: true,
|
|
49
50
|
* filter_public: true,
|
|
@@ -66,7 +67,7 @@ export class Sessions {
|
|
|
66
67
|
__listV1() {
|
|
67
68
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
68
69
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
69
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
70
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_terminated: filterTerminated, filter_public: filterPublic, filter_device_id: filterDeviceId, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_flight_number: filterFlightNumber, filter_fa_flight_id: filterFaFlightId, filter_flight_loaded_status: filterFlightLoadedStatus, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_termination_scheduled_for_timestamp_gte: filterTerminationScheduledForTimestampGte, filter_termination_scheduled_for_timestamp_lte: filterTerminationScheduledForTimestampLte, filter_terminated_at_timestamp_gte: filterTerminatedAtTimestampGte, filter_terminated_at_timestamp_lte: filterTerminatedAtTimestampLte, } = request;
|
|
70
71
|
const _queryParams = {};
|
|
71
72
|
if (sortBy !== undefined) {
|
|
72
73
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -80,6 +81,9 @@ export class Sessions {
|
|
|
80
81
|
if (pageSize !== undefined) {
|
|
81
82
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
82
83
|
}
|
|
84
|
+
if (search !== undefined) {
|
|
85
|
+
_queryParams["search"] = search;
|
|
86
|
+
}
|
|
83
87
|
if (orgScope !== undefined) {
|
|
84
88
|
_queryParams["org_scope"] = orgScope;
|
|
85
89
|
}
|
|
@@ -165,7 +169,7 @@ export class Sessions {
|
|
|
165
169
|
});
|
|
166
170
|
}
|
|
167
171
|
/**
|
|
168
|
-
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | authz: min_org_role=operator | () -> (Session1)
|
|
172
|
+
* Retrieves a single session by its ID. Access restricted to the caller's organization or shared organizations. | auth: api_key | authz: min_org_role=operator | () -> (Session1)
|
|
169
173
|
*
|
|
170
174
|
* @param {Chrt.tracking.SessionsGetV1Request} request
|
|
171
175
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -229,7 +233,7 @@ export class Sessions {
|
|
|
229
233
|
});
|
|
230
234
|
}
|
|
231
235
|
/**
|
|
232
|
-
* Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
|
|
236
|
+
* Returns distinct device_mac_address and off_chrt_reference_id values matching the query via case-insensitive regex, searching sessions. Use org_scope to restrict to owned, shared, or both (default). | auth: api_key | authz: min_org_role=operator | () -> (list[TrackingTypeaheadResult])
|
|
233
237
|
*
|
|
234
238
|
* @param {Chrt.tracking.SessionsTypeaheadV1Request} request
|
|
235
239
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -300,82 +304,6 @@ export class Sessions {
|
|
|
300
304
|
}
|
|
301
305
|
});
|
|
302
306
|
}
|
|
303
|
-
/**
|
|
304
|
-
* Search across session comments, device_mac_address, flight_numbers, and off_chrt_reference_id. Handles both partial and full matches. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (SessionSearchRes)
|
|
305
|
-
*
|
|
306
|
-
* @param {Chrt.tracking.SessionsSearchV1Request} request
|
|
307
|
-
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
308
|
-
*
|
|
309
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
310
|
-
*
|
|
311
|
-
* @example
|
|
312
|
-
* await client.tracking.sessions.searchV1({
|
|
313
|
-
* query: "query",
|
|
314
|
-
* page: 1,
|
|
315
|
-
* page_size: 1,
|
|
316
|
-
* org_scope: "owned"
|
|
317
|
-
* })
|
|
318
|
-
*/
|
|
319
|
-
searchV1(request, requestOptions) {
|
|
320
|
-
return core.HttpResponsePromise.fromPromise(this.__searchV1(request, requestOptions));
|
|
321
|
-
}
|
|
322
|
-
__searchV1(request, requestOptions) {
|
|
323
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
var _a, _b, _c, _d, _e, _f;
|
|
325
|
-
const { query, page, page_size: pageSize, org_scope: orgScope } = request;
|
|
326
|
-
const _queryParams = {};
|
|
327
|
-
_queryParams["query"] = query;
|
|
328
|
-
if (page !== undefined) {
|
|
329
|
-
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
330
|
-
}
|
|
331
|
-
if (pageSize !== undefined) {
|
|
332
|
-
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
333
|
-
}
|
|
334
|
-
if (orgScope !== undefined) {
|
|
335
|
-
_queryParams["org_scope"] = orgScope;
|
|
336
|
-
}
|
|
337
|
-
let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
338
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
339
|
-
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "tracking/sessions/search/v1"),
|
|
340
|
-
method: "GET",
|
|
341
|
-
headers: _headers,
|
|
342
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
343
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
344
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
345
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
346
|
-
});
|
|
347
|
-
if (_response.ok) {
|
|
348
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
349
|
-
}
|
|
350
|
-
if (_response.error.reason === "status-code") {
|
|
351
|
-
switch (_response.error.statusCode) {
|
|
352
|
-
case 422:
|
|
353
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
354
|
-
default:
|
|
355
|
-
throw new errors.ChrtError({
|
|
356
|
-
statusCode: _response.error.statusCode,
|
|
357
|
-
body: _response.error.body,
|
|
358
|
-
rawResponse: _response.rawResponse,
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
switch (_response.error.reason) {
|
|
363
|
-
case "non-json":
|
|
364
|
-
throw new errors.ChrtError({
|
|
365
|
-
statusCode: _response.error.statusCode,
|
|
366
|
-
body: _response.error.rawBody,
|
|
367
|
-
rawResponse: _response.rawResponse,
|
|
368
|
-
});
|
|
369
|
-
case "timeout":
|
|
370
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/sessions/search/v1.");
|
|
371
|
-
case "unknown":
|
|
372
|
-
throw new errors.ChrtError({
|
|
373
|
-
message: _response.error.errorMessage,
|
|
374
|
-
rawResponse: _response.rawResponse,
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
307
|
/**
|
|
380
308
|
* Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
|
|
381
309
|
*
|
|
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
9
9
|
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* search: "search",
|
|
12
13
|
* org_scope: "owned",
|
|
13
14
|
* filter_terminated: true,
|
|
14
15
|
* filter_public: true,
|
|
@@ -28,10 +29,12 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
28
29
|
export interface SessionsListV1Request {
|
|
29
30
|
/** Field to sort by */
|
|
30
31
|
sort_by?: Chrt.SessionSortByEnum | null;
|
|
31
|
-
/** Sort order (
|
|
32
|
+
/** Sort order (asc or desc) */
|
|
32
33
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
33
34
|
page?: number | null;
|
|
34
35
|
page_size?: number | null;
|
|
36
|
+
/** Full-text search query */
|
|
37
|
+
search?: string | null;
|
|
35
38
|
/** Filter by org ownership: owned, shared, or owned_and_shared */
|
|
36
39
|
org_scope?: Chrt.TrackingOrgScopeEnum | null;
|
|
37
40
|
/** Filter by terminated status */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { type SessionsListV1Request } from "./SessionsListV1Request.mjs";
|
|
2
2
|
export { type SessionsGetV1Request } from "./SessionsGetV1Request.mjs";
|
|
3
3
|
export { type SessionsTypeaheadV1Request } from "./SessionsTypeaheadV1Request.mjs";
|
|
4
|
-
export { type SessionsSearchV1Request } from "./SessionsSearchV1Request.mjs";
|
|
5
4
|
export { type SessionClientCreate1 } from "./SessionClientCreate1.mjs";
|
|
6
5
|
export { type SessionClientUpdate1 } from "./SessionClientUpdate1.mjs";
|
|
7
6
|
export { type SessionsUpdateSharedOrgsReq1 } from "./SessionsUpdateSharedOrgsReq1.mjs";
|
|
@@ -31,7 +31,7 @@ export declare class SessionByDevice {
|
|
|
31
31
|
protected readonly _options: SessionByDevice.Options;
|
|
32
32
|
constructor(_options?: SessionByDevice.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
|
|
34
|
+
* Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
|
|
35
35
|
*
|
|
36
36
|
* @param {Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request} request
|
|
37
37
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,7 +46,7 @@ export declare class SessionByDevice {
|
|
|
46
46
|
lastSeenV1(request: Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.SessionByDeviceDataPoint1 | null) | undefined>;
|
|
47
47
|
private __lastSeenV1;
|
|
48
48
|
/**
|
|
49
|
-
* Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
|
|
49
|
+
* Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | auth: api_key | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
|
|
50
50
|
*
|
|
51
51
|
* @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
|
|
52
52
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -20,7 +20,7 @@ export class SessionByDevice {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
|
|
23
|
+
* Returns the most recent data point for a session, excluding outliers. Access restricted to the caller's organization. | auth: api_key | authz: min_org_role=operator | () -> (SessionByDeviceDataPoint1 | None)
|
|
24
24
|
*
|
|
25
25
|
* @param {Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request} request
|
|
26
26
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -87,7 +87,7 @@ export class SessionByDevice {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
|
|
90
|
+
* Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | auth: api_key | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
|
|
93
93
|
* @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -44,14 +44,23 @@ export declare class DirectoryEntries {
|
|
|
44
44
|
getV1(directoryEntryId: string, requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<Chrt.DirectoryEntry1>;
|
|
45
45
|
private __getV1;
|
|
46
46
|
/**
|
|
47
|
-
* Lists
|
|
47
|
+
* Lists directory entries with pagination and optional full-text search. | authz: min_org_role=operator | () -> (DirectoryEntryListRes)
|
|
48
48
|
*
|
|
49
|
+
* @param {Chrt.users.DirectoryEntriesListV1Request} request
|
|
49
50
|
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
51
|
*
|
|
52
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
53
|
+
*
|
|
51
54
|
* @example
|
|
52
|
-
* await client.users.directoryEntries.listV1(
|
|
55
|
+
* await client.users.directoryEntries.listV1({
|
|
56
|
+
* search: "search",
|
|
57
|
+
* sort_by: "company_name",
|
|
58
|
+
* sort_order: "asc",
|
|
59
|
+
* page: 1,
|
|
60
|
+
* page_size: 1
|
|
61
|
+
* })
|
|
53
62
|
*/
|
|
54
|
-
listV1(requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
63
|
+
listV1(request?: Chrt.users.DirectoryEntriesListV1Request, requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<Chrt.DirectoryEntryListRes>;
|
|
55
64
|
private __listV1;
|
|
56
65
|
/**
|
|
57
66
|
* Creates a directory entry. | (DirectoryEntryClientCreate1) -> (PydanticObjectId)
|
|
@@ -79,25 +79,51 @@ export class DirectoryEntries {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* Lists
|
|
82
|
+
* Lists directory entries with pagination and optional full-text search. | authz: min_org_role=operator | () -> (DirectoryEntryListRes)
|
|
83
83
|
*
|
|
84
|
+
* @param {Chrt.users.DirectoryEntriesListV1Request} request
|
|
84
85
|
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
86
|
*
|
|
87
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
88
|
+
*
|
|
86
89
|
* @example
|
|
87
|
-
* await client.users.directoryEntries.listV1(
|
|
90
|
+
* await client.users.directoryEntries.listV1({
|
|
91
|
+
* search: "search",
|
|
92
|
+
* sort_by: "company_name",
|
|
93
|
+
* sort_order: "asc",
|
|
94
|
+
* page: 1,
|
|
95
|
+
* page_size: 1
|
|
96
|
+
* })
|
|
88
97
|
*/
|
|
89
|
-
listV1(requestOptions) {
|
|
90
|
-
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
98
|
+
listV1(request = {}, requestOptions) {
|
|
99
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(request, requestOptions));
|
|
91
100
|
}
|
|
92
|
-
__listV1(
|
|
93
|
-
return __awaiter(this,
|
|
94
|
-
var _a, _b, _c, _d;
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
|
|
101
|
+
__listV1() {
|
|
102
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
103
|
+
var _a, _b, _c, _d, _e, _f;
|
|
104
|
+
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize } = request;
|
|
105
|
+
const _queryParams = {};
|
|
106
|
+
if (search !== undefined) {
|
|
107
|
+
_queryParams["search"] = search;
|
|
108
|
+
}
|
|
109
|
+
if (sortBy !== undefined) {
|
|
110
|
+
_queryParams["sort_by"] = sortBy;
|
|
111
|
+
}
|
|
112
|
+
if (sortOrder !== undefined) {
|
|
113
|
+
_queryParams["sort_order"] = sortOrder;
|
|
114
|
+
}
|
|
115
|
+
if (page !== undefined) {
|
|
116
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
117
|
+
}
|
|
118
|
+
if (pageSize !== undefined) {
|
|
119
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
120
|
+
}
|
|
121
|
+
let _headers = mergeHeaders((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
122
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
123
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ChrtEnvironment.Local, "users/directory_entries/list/v1"),
|
|
98
124
|
method: "GET",
|
|
99
125
|
headers: _headers,
|
|
100
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
126
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
101
127
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
102
128
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
103
129
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -106,11 +132,16 @@ export class DirectoryEntries {
|
|
|
106
132
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
107
133
|
}
|
|
108
134
|
if (_response.error.reason === "status-code") {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
135
|
+
switch (_response.error.statusCode) {
|
|
136
|
+
case 422:
|
|
137
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
138
|
+
default:
|
|
139
|
+
throw new errors.ChrtError({
|
|
140
|
+
statusCode: _response.error.statusCode,
|
|
141
|
+
body: _response.error.body,
|
|
142
|
+
rawResponse: _response.rawResponse,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
114
145
|
}
|
|
115
146
|
switch (_response.error.reason) {
|
|
116
147
|
case "non-json":
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* search: "search",
|
|
9
|
+
* sort_by: "company_name",
|
|
10
|
+
* sort_order: "asc",
|
|
11
|
+
* page: 1,
|
|
12
|
+
* page_size: 1
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface DirectoryEntriesListV1Request {
|
|
16
|
+
/** Full-text search query */
|
|
17
|
+
search?: string | null;
|
|
18
|
+
/** Field to sort by */
|
|
19
|
+
sort_by?: Chrt.DirectoryEntrySortByEnum | null;
|
|
20
|
+
/** Sort order (asc or desc) */
|
|
21
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
22
|
+
page?: number | null;
|
|
23
|
+
page_size?: number | null;
|
|
24
|
+
}
|
|
@@ -26,6 +26,7 @@ export interface DeviceLimitedForList1 {
|
|
|
26
26
|
last_seen_battery_level?: string | null;
|
|
27
27
|
archived?: boolean;
|
|
28
28
|
paused?: boolean;
|
|
29
|
+
pause_windows?: Chrt.DevicePausedTimeWindow1[];
|
|
29
30
|
shared_with_org_ids?: string[];
|
|
30
31
|
off_chrt_shipper_org_id?: string | null;
|
|
31
32
|
active_session_id?: string | null;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.mjs";
|
|
5
|
-
export interface
|
|
6
|
-
|
|
5
|
+
export interface DirectoryEntryListRes {
|
|
6
|
+
items: Chrt.DirectoryEntry1[];
|
|
7
7
|
total_count: number;
|
|
8
8
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type DirectoryEntrySortByEnum = "company_name" | "contact_first_name" | "contact_last_name";
|
|
5
|
+
export declare const DirectoryEntrySortByEnum: {
|
|
6
|
+
readonly CompanyName: "company_name";
|
|
7
|
+
readonly ContactFirstName: "contact_first_name";
|
|
8
|
+
readonly ContactLastName: "contact_last_name";
|
|
9
|
+
};
|