@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
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type ExpandedListForForwarderOperatorsV1Request } from "./ExpandedListForForwarderOperatorsV1Request.mjs";
|
|
2
2
|
export { type ExpandedListForShipperOperatorsV1Request } from "./ExpandedListForShipperOperatorsV1Request.mjs";
|
|
3
|
+
export { type ExpandedTypeaheadV1Request } from "./ExpandedTypeaheadV1Request.mjs";
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts
CHANGED
|
@@ -87,7 +87,7 @@ export declare class Expanded {
|
|
|
87
87
|
forForwarderOperatorsV1(taskGroupId: string, request: Chrt.OrderAndTaskGroupExpandedReq, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpanded>;
|
|
88
88
|
private __forForwarderOperatorsV1;
|
|
89
89
|
/**
|
|
90
|
-
* Lists expanded task groups for courier operators with filtering, sorting, and
|
|
90
|
+
* Lists expanded task groups for courier operators with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
91
91
|
*
|
|
92
92
|
* @param {Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1Request} request
|
|
93
93
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -97,9 +97,10 @@ export declare class Expanded {
|
|
|
97
97
|
* @example
|
|
98
98
|
* await client.shipping.taskGroups.expanded.listForCourierOperatorsV1({
|
|
99
99
|
* sort_by: "draft_started_at_timestamp",
|
|
100
|
-
* sort_order: "
|
|
100
|
+
* sort_order: "asc",
|
|
101
101
|
* page: 1,
|
|
102
102
|
* page_size: 1,
|
|
103
|
+
* search: "search",
|
|
103
104
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
104
105
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
105
106
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -118,7 +119,7 @@ export declare class Expanded {
|
|
|
118
119
|
listForCourierOperatorsV1(request: Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
|
|
119
120
|
private __listForCourierOperatorsV1;
|
|
120
121
|
/**
|
|
121
|
-
* Lists expanded task groups for courier driver with filtering, sorting, and
|
|
122
|
+
* Lists expanded task groups for courier driver with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_driver] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
122
123
|
*
|
|
123
124
|
* @param {Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1Request} request
|
|
124
125
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -128,9 +129,10 @@ export declare class Expanded {
|
|
|
128
129
|
* @example
|
|
129
130
|
* await client.shipping.taskGroups.expanded.listForCourierDriverV1({
|
|
130
131
|
* sort_by: "draft_started_at_timestamp",
|
|
131
|
-
* sort_order: "
|
|
132
|
+
* sort_order: "asc",
|
|
132
133
|
* page: 1,
|
|
133
134
|
* page_size: 1,
|
|
135
|
+
* search: "search",
|
|
134
136
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
135
137
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
136
138
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -148,5 +150,21 @@ export declare class Expanded {
|
|
|
148
150
|
*/
|
|
149
151
|
listForCourierDriverV1(request: Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<Chrt.TaskGroupExpandedListRes>;
|
|
150
152
|
private __listForCourierDriverV1;
|
|
153
|
+
/**
|
|
154
|
+
* Returns distinct order_short_id values matching the query via case-insensitive regex. Searches non-draft task groups belonging to the caller's courier org. | authz: allowed_org_types=[courier], min_org_role=driver | () -> (list[str])
|
|
155
|
+
*
|
|
156
|
+
* @param {Chrt.shipping.taskGroups.ExpandedTypeaheadV1Request} request
|
|
157
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* await client.shipping.taskGroups.expanded.typeaheadV1({
|
|
163
|
+
* query: "query",
|
|
164
|
+
* limit: 1
|
|
165
|
+
* })
|
|
166
|
+
*/
|
|
167
|
+
typeaheadV1(request: Chrt.shipping.taskGroups.ExpandedTypeaheadV1Request, requestOptions?: Expanded.RequestOptions): core.HttpResponsePromise<string[]>;
|
|
168
|
+
private __typeaheadV1;
|
|
151
169
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
152
170
|
}
|
package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs
CHANGED
|
@@ -272,7 +272,7 @@ export class Expanded {
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
|
-
* Lists expanded task groups for courier operators with filtering, sorting, and
|
|
275
|
+
* Lists expanded task groups for courier operators with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_org_operators] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
276
276
|
*
|
|
277
277
|
* @param {Chrt.shipping.taskGroups.ExpandedListForCourierOperatorsV1Request} request
|
|
278
278
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -282,9 +282,10 @@ export class Expanded {
|
|
|
282
282
|
* @example
|
|
283
283
|
* await client.shipping.taskGroups.expanded.listForCourierOperatorsV1({
|
|
284
284
|
* sort_by: "draft_started_at_timestamp",
|
|
285
|
-
* sort_order: "
|
|
285
|
+
* sort_order: "asc",
|
|
286
286
|
* page: 1,
|
|
287
287
|
* page_size: 1,
|
|
288
|
+
* search: "search",
|
|
288
289
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
289
290
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
290
291
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -306,7 +307,7 @@ export class Expanded {
|
|
|
306
307
|
__listForCourierOperatorsV1(request, requestOptions) {
|
|
307
308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
309
|
var _a, _b, _c, _d, _e, _f;
|
|
309
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
310
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
310
311
|
const _queryParams = {};
|
|
311
312
|
if (sortBy !== undefined) {
|
|
312
313
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -320,6 +321,9 @@ export class Expanded {
|
|
|
320
321
|
if (pageSize !== undefined) {
|
|
321
322
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
322
323
|
}
|
|
324
|
+
if (search !== undefined) {
|
|
325
|
+
_queryParams["search"] = search;
|
|
326
|
+
}
|
|
323
327
|
if (filterStatus !== undefined) {
|
|
324
328
|
if (Array.isArray(filterStatus)) {
|
|
325
329
|
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
@@ -410,7 +414,7 @@ export class Expanded {
|
|
|
410
414
|
});
|
|
411
415
|
}
|
|
412
416
|
/**
|
|
413
|
-
* Lists expanded task groups for courier driver with filtering, sorting, and
|
|
417
|
+
* Lists expanded task groups for courier driver with filtering, sorting, pagination, and optional full-text search. | authz_personas=[courier_driver] | (OrderAndTaskGroupExpandedReq) -> (TaskGroupExpandedListRes)
|
|
414
418
|
*
|
|
415
419
|
* @param {Chrt.shipping.taskGroups.ExpandedListForCourierDriverV1Request} request
|
|
416
420
|
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -420,9 +424,10 @@ export class Expanded {
|
|
|
420
424
|
* @example
|
|
421
425
|
* await client.shipping.taskGroups.expanded.listForCourierDriverV1({
|
|
422
426
|
* sort_by: "draft_started_at_timestamp",
|
|
423
|
-
* sort_order: "
|
|
427
|
+
* sort_order: "asc",
|
|
424
428
|
* page: 1,
|
|
425
429
|
* page_size: 1,
|
|
430
|
+
* search: "search",
|
|
426
431
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
427
432
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
428
433
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -444,7 +449,7 @@ export class Expanded {
|
|
|
444
449
|
__listForCourierDriverV1(request, requestOptions) {
|
|
445
450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
446
451
|
var _a, _b, _c, _d, _e, _f;
|
|
447
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
452
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_skipped_at_timestamp_lte: filterSkippedAtTimestampLte, filter_skipped_at_timestamp_gte: filterSkippedAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, body: _body, } = request;
|
|
448
453
|
const _queryParams = {};
|
|
449
454
|
if (sortBy !== undefined) {
|
|
450
455
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -458,6 +463,9 @@ export class Expanded {
|
|
|
458
463
|
if (pageSize !== undefined) {
|
|
459
464
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
460
465
|
}
|
|
466
|
+
if (search !== undefined) {
|
|
467
|
+
_queryParams["search"] = search;
|
|
468
|
+
}
|
|
461
469
|
if (filterStatus !== undefined) {
|
|
462
470
|
if (Array.isArray(filterStatus)) {
|
|
463
471
|
_queryParams["filter_status"] = filterStatus.map((item) => item);
|
|
@@ -547,6 +555,74 @@ export class Expanded {
|
|
|
547
555
|
}
|
|
548
556
|
});
|
|
549
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Returns distinct order_short_id values matching the query via case-insensitive regex. Searches non-draft task groups belonging to the caller's courier org. | authz: allowed_org_types=[courier], min_org_role=driver | () -> (list[str])
|
|
560
|
+
*
|
|
561
|
+
* @param {Chrt.shipping.taskGroups.ExpandedTypeaheadV1Request} request
|
|
562
|
+
* @param {Expanded.RequestOptions} requestOptions - Request-specific configuration.
|
|
563
|
+
*
|
|
564
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* await client.shipping.taskGroups.expanded.typeaheadV1({
|
|
568
|
+
* query: "query",
|
|
569
|
+
* limit: 1
|
|
570
|
+
* })
|
|
571
|
+
*/
|
|
572
|
+
typeaheadV1(request, requestOptions) {
|
|
573
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
574
|
+
}
|
|
575
|
+
__typeaheadV1(request, requestOptions) {
|
|
576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
577
|
+
var _a, _b, _c, _d, _e;
|
|
578
|
+
const { query, limit } = request;
|
|
579
|
+
const _queryParams = {};
|
|
580
|
+
_queryParams["query"] = query;
|
|
581
|
+
if (limit !== undefined) {
|
|
582
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
583
|
+
}
|
|
584
|
+
let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
585
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
586
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "shipping/task_groups/expanded/typeahead/v1"),
|
|
587
|
+
method: "GET",
|
|
588
|
+
headers: _headers,
|
|
589
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
590
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
591
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
592
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
593
|
+
});
|
|
594
|
+
if (_response.ok) {
|
|
595
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
596
|
+
}
|
|
597
|
+
if (_response.error.reason === "status-code") {
|
|
598
|
+
switch (_response.error.statusCode) {
|
|
599
|
+
case 422:
|
|
600
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
601
|
+
default:
|
|
602
|
+
throw new errors.ChrtError({
|
|
603
|
+
statusCode: _response.error.statusCode,
|
|
604
|
+
body: _response.error.body,
|
|
605
|
+
rawResponse: _response.rawResponse,
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
switch (_response.error.reason) {
|
|
610
|
+
case "non-json":
|
|
611
|
+
throw new errors.ChrtError({
|
|
612
|
+
statusCode: _response.error.statusCode,
|
|
613
|
+
body: _response.error.rawBody,
|
|
614
|
+
rawResponse: _response.rawResponse,
|
|
615
|
+
});
|
|
616
|
+
case "timeout":
|
|
617
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /shipping/task_groups/expanded/typeahead/v1.");
|
|
618
|
+
case "unknown":
|
|
619
|
+
throw new errors.ChrtError({
|
|
620
|
+
message: _response.error.errorMessage,
|
|
621
|
+
rawResponse: _response.rawResponse,
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}
|
|
550
626
|
_getAuthorizationHeader() {
|
|
551
627
|
return __awaiter(this, void 0, void 0, function* () {
|
|
552
628
|
const bearer = yield core.Supplier.get(this._options.token);
|
|
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* sort_by: "draft_started_at_timestamp",
|
|
9
|
-
* sort_order: "
|
|
9
|
+
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* search: "search",
|
|
12
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
13
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
14
15
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -26,9 +27,12 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
26
27
|
*/
|
|
27
28
|
export interface ExpandedListForCourierDriverV1Request {
|
|
28
29
|
sort_by?: Chrt.TaskGroupSortByEnum | null;
|
|
29
|
-
|
|
30
|
+
/** Sort order (asc or desc) */
|
|
31
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
30
32
|
page?: number | null;
|
|
31
33
|
page_size?: number | null;
|
|
34
|
+
/** Full-text search query (searches order_short_id, flight_number) */
|
|
35
|
+
search?: string | null;
|
|
32
36
|
filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
|
|
33
37
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
34
38
|
filter_draft_started_at_timestamp_gte?: string | null;
|
|
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* sort_by: "draft_started_at_timestamp",
|
|
9
|
-
* sort_order: "
|
|
9
|
+
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* search: "search",
|
|
12
13
|
* filter_draft_started_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
13
14
|
* filter_draft_started_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
14
15
|
* filter_staged_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
@@ -26,9 +27,12 @@ import * as Chrt from "../../../../../../../../index.mjs";
|
|
|
26
27
|
*/
|
|
27
28
|
export interface ExpandedListForCourierOperatorsV1Request {
|
|
28
29
|
sort_by?: Chrt.TaskGroupSortByEnum | null;
|
|
29
|
-
|
|
30
|
+
/** Sort order (asc or desc) */
|
|
31
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
30
32
|
page?: number | null;
|
|
31
33
|
page_size?: number | null;
|
|
34
|
+
/** Full-text search query (searches order_short_id, flight_number) */
|
|
35
|
+
search?: string | null;
|
|
32
36
|
filter_status?: (Chrt.TaskGroupStatusEnum1 | null) | (Chrt.TaskGroupStatusEnum1 | null)[];
|
|
33
37
|
filter_draft_started_at_timestamp_lte?: string | null;
|
|
34
38
|
filter_draft_started_at_timestamp_gte?: string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* query: "query",
|
|
8
|
+
* limit: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ExpandedTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { type ExpandedListForCourierOperatorsV1Request } from "./ExpandedListForCourierOperatorsV1Request.mjs";
|
|
2
2
|
export { type ExpandedListForCourierDriverV1Request } from "./ExpandedListForCourierDriverV1Request.mjs";
|
|
3
|
+
export { type ExpandedTypeaheadV1Request } from "./ExpandedTypeaheadV1Request.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * as expanded from "./expanded/index.mjs";
|
|
2
|
-
export * from "./expanded/types/index.mjs";
|
|
3
1
|
export * as taskGroupId from "./taskGroupId/index.mjs";
|
|
4
2
|
export * as s3Object from "./s3Object/index.mjs";
|
|
3
|
+
export * as expanded from "./expanded/index.mjs";
|
|
5
4
|
export * from "./s3Object/client/requests/index.mjs";
|
|
6
5
|
export * from "./expanded/client/requests/index.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * as expanded from "./expanded/index.mjs";
|
|
2
|
-
export * from "./expanded/types/index.mjs";
|
|
3
1
|
export * as taskGroupId from "./taskGroupId/index.mjs";
|
|
4
2
|
export * as s3Object from "./s3Object/index.mjs";
|
|
3
|
+
export * as expanded from "./expanded/index.mjs";
|
|
5
4
|
export * from "./s3Object/client/requests/index.mjs";
|
|
6
5
|
export * from "./expanded/client/requests/index.mjs";
|
|
@@ -77,7 +77,7 @@ export declare class Devices {
|
|
|
77
77
|
archiveV1(request: Chrt.tracking.DevicesArchiveV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
78
78
|
private __archiveV1;
|
|
79
79
|
/**
|
|
80
|
-
* Pauses a device
|
|
80
|
+
* Pauses a device and opens a new pause time window. | () -> (bool)
|
|
81
81
|
*
|
|
82
82
|
* @param {Chrt.tracking.DevicesPauseV1Request} request
|
|
83
83
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -92,7 +92,7 @@ export declare class Devices {
|
|
|
92
92
|
pauseV1(request: Chrt.tracking.DevicesPauseV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
93
93
|
private __pauseV1;
|
|
94
94
|
/**
|
|
95
|
-
* Unpauses a device. | () -> (bool)
|
|
95
|
+
* Unpauses a device. Closes the open pause time window. | () -> (bool)
|
|
96
96
|
*
|
|
97
97
|
* @param {Chrt.tracking.DevicesUnpauseV1Request} request
|
|
98
98
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -150,6 +150,7 @@ export declare class Devices {
|
|
|
150
150
|
* sort_order: "asc",
|
|
151
151
|
* page: 1,
|
|
152
152
|
* page_size: 1,
|
|
153
|
+
* search: "search",
|
|
153
154
|
* org_scope: "owned",
|
|
154
155
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
155
156
|
* filter_type: "D15N-tag",
|
|
@@ -161,6 +162,8 @@ export declare class Devices {
|
|
|
161
162
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
162
163
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
163
164
|
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
165
|
+
* filter_first_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
166
|
+
* filter_first_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
164
167
|
* filter_archived: true
|
|
165
168
|
* })
|
|
166
169
|
*/
|
|
@@ -183,23 +186,5 @@ export declare class Devices {
|
|
|
183
186
|
*/
|
|
184
187
|
typeaheadV1(request: Chrt.tracking.DevicesTypeaheadV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
|
|
185
188
|
private __typeaheadV1;
|
|
186
|
-
/**
|
|
187
|
-
* Search across device device_mac_address, comments, and off_chrt_reference_id. Handles both partial (typing) and full query submission. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceSearchRes)
|
|
188
|
-
*
|
|
189
|
-
* @param {Chrt.tracking.DevicesSearchV1Request} request
|
|
190
|
-
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
-
*
|
|
192
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
193
|
-
*
|
|
194
|
-
* @example
|
|
195
|
-
* await client.tracking.devices.searchV1({
|
|
196
|
-
* query: "query",
|
|
197
|
-
* page: 1,
|
|
198
|
-
* page_size: 1,
|
|
199
|
-
* org_scope: "owned"
|
|
200
|
-
* })
|
|
201
|
-
*/
|
|
202
|
-
searchV1(request: Chrt.tracking.DevicesSearchV1Request, requestOptions?: Devices.RequestOptions): core.HttpResponsePromise<Chrt.DeviceSearchRes>;
|
|
203
|
-
private __searchV1;
|
|
204
189
|
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
205
190
|
}
|
|
@@ -227,7 +227,7 @@ export class Devices {
|
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
|
-
* Pauses a device
|
|
230
|
+
* Pauses a device and opens a new pause time window. | () -> (bool)
|
|
231
231
|
*
|
|
232
232
|
* @param {Chrt.tracking.DevicesPauseV1Request} request
|
|
233
233
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -291,7 +291,7 @@ export class Devices {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
|
-
* Unpauses a device. | () -> (bool)
|
|
294
|
+
* Unpauses a device. Closes the open pause time window. | () -> (bool)
|
|
295
295
|
*
|
|
296
296
|
* @param {Chrt.tracking.DevicesUnpauseV1Request} request
|
|
297
297
|
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -496,6 +496,7 @@ export class Devices {
|
|
|
496
496
|
* sort_order: "asc",
|
|
497
497
|
* page: 1,
|
|
498
498
|
* page_size: 1,
|
|
499
|
+
* search: "search",
|
|
499
500
|
* org_scope: "owned",
|
|
500
501
|
* filter_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
501
502
|
* filter_type: "D15N-tag",
|
|
@@ -507,6 +508,8 @@ export class Devices {
|
|
|
507
508
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
508
509
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
509
510
|
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
511
|
+
* filter_first_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
512
|
+
* filter_first_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
510
513
|
* filter_archived: true
|
|
511
514
|
* })
|
|
512
515
|
*/
|
|
@@ -516,7 +519,7 @@ export class Devices {
|
|
|
516
519
|
__listV1() {
|
|
517
520
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
518
521
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
519
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_archived: filterArchived, } = request;
|
|
522
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, org_scope: orgScope, filter_off_chrt_reference_id: filterOffChrtReferenceId, filter_type: filterType, filter_active_cargo_id: filterActiveCargoId, filter_active_session_id: filterActiveSessionId, filter_has_active_session: filterHasActiveSession, filter_has_active_cargo: filterHasActiveCargo, filter_registered_at_timestamp_gte: filterRegisteredAtTimestampGte, filter_registered_at_timestamp_lte: filterRegisteredAtTimestampLte, filter_last_seen_at_timestamp_gte: filterLastSeenAtTimestampGte, filter_last_seen_at_timestamp_lte: filterLastSeenAtTimestampLte, filter_first_seen_at_timestamp_gte: filterFirstSeenAtTimestampGte, filter_first_seen_at_timestamp_lte: filterFirstSeenAtTimestampLte, filter_archived: filterArchived, } = request;
|
|
520
523
|
const _queryParams = {};
|
|
521
524
|
if (sortBy !== undefined) {
|
|
522
525
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -530,6 +533,9 @@ export class Devices {
|
|
|
530
533
|
if (pageSize !== undefined) {
|
|
531
534
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
532
535
|
}
|
|
536
|
+
if (search !== undefined) {
|
|
537
|
+
_queryParams["search"] = search;
|
|
538
|
+
}
|
|
533
539
|
if (orgScope !== undefined) {
|
|
534
540
|
_queryParams["org_scope"] = orgScope;
|
|
535
541
|
}
|
|
@@ -563,6 +569,12 @@ export class Devices {
|
|
|
563
569
|
if (filterLastSeenAtTimestampLte !== undefined) {
|
|
564
570
|
_queryParams["filter_last_seen_at_timestamp_lte"] = filterLastSeenAtTimestampLte;
|
|
565
571
|
}
|
|
572
|
+
if (filterFirstSeenAtTimestampGte !== undefined) {
|
|
573
|
+
_queryParams["filter_first_seen_at_timestamp_gte"] = filterFirstSeenAtTimestampGte;
|
|
574
|
+
}
|
|
575
|
+
if (filterFirstSeenAtTimestampLte !== undefined) {
|
|
576
|
+
_queryParams["filter_first_seen_at_timestamp_lte"] = filterFirstSeenAtTimestampLte;
|
|
577
|
+
}
|
|
566
578
|
if (filterArchived !== undefined) {
|
|
567
579
|
_queryParams["filter_archived"] = (_e = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _e !== void 0 ? _e : null;
|
|
568
580
|
}
|
|
@@ -680,82 +692,6 @@ export class Devices {
|
|
|
680
692
|
}
|
|
681
693
|
});
|
|
682
694
|
}
|
|
683
|
-
/**
|
|
684
|
-
* Search across device device_mac_address, comments, and off_chrt_reference_id. Handles both partial (typing) and full query submission. Use org_scope to restrict to owned, shared, or both (default). | authz: min_org_role=operator | () -> (DeviceSearchRes)
|
|
685
|
-
*
|
|
686
|
-
* @param {Chrt.tracking.DevicesSearchV1Request} request
|
|
687
|
-
* @param {Devices.RequestOptions} requestOptions - Request-specific configuration.
|
|
688
|
-
*
|
|
689
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
690
|
-
*
|
|
691
|
-
* @example
|
|
692
|
-
* await client.tracking.devices.searchV1({
|
|
693
|
-
* query: "query",
|
|
694
|
-
* page: 1,
|
|
695
|
-
* page_size: 1,
|
|
696
|
-
* org_scope: "owned"
|
|
697
|
-
* })
|
|
698
|
-
*/
|
|
699
|
-
searchV1(request, requestOptions) {
|
|
700
|
-
return core.HttpResponsePromise.fromPromise(this.__searchV1(request, requestOptions));
|
|
701
|
-
}
|
|
702
|
-
__searchV1(request, requestOptions) {
|
|
703
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
704
|
-
var _a, _b, _c, _d, _e, _f;
|
|
705
|
-
const { query, page, page_size: pageSize, org_scope: orgScope } = request;
|
|
706
|
-
const _queryParams = {};
|
|
707
|
-
_queryParams["query"] = query;
|
|
708
|
-
if (page !== undefined) {
|
|
709
|
-
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
710
|
-
}
|
|
711
|
-
if (pageSize !== undefined) {
|
|
712
|
-
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
713
|
-
}
|
|
714
|
-
if (orgScope !== undefined) {
|
|
715
|
-
_queryParams["org_scope"] = orgScope;
|
|
716
|
-
}
|
|
717
|
-
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);
|
|
718
|
-
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
719
|
-
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/devices/search/v1"),
|
|
720
|
-
method: "GET",
|
|
721
|
-
headers: _headers,
|
|
722
|
-
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
723
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
724
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
725
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
726
|
-
});
|
|
727
|
-
if (_response.ok) {
|
|
728
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
729
|
-
}
|
|
730
|
-
if (_response.error.reason === "status-code") {
|
|
731
|
-
switch (_response.error.statusCode) {
|
|
732
|
-
case 422:
|
|
733
|
-
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
734
|
-
default:
|
|
735
|
-
throw new errors.ChrtError({
|
|
736
|
-
statusCode: _response.error.statusCode,
|
|
737
|
-
body: _response.error.body,
|
|
738
|
-
rawResponse: _response.rawResponse,
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
switch (_response.error.reason) {
|
|
743
|
-
case "non-json":
|
|
744
|
-
throw new errors.ChrtError({
|
|
745
|
-
statusCode: _response.error.statusCode,
|
|
746
|
-
body: _response.error.rawBody,
|
|
747
|
-
rawResponse: _response.rawResponse,
|
|
748
|
-
});
|
|
749
|
-
case "timeout":
|
|
750
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /tracking/devices/search/v1.");
|
|
751
|
-
case "unknown":
|
|
752
|
-
throw new errors.ChrtError({
|
|
753
|
-
message: _response.error.errorMessage,
|
|
754
|
-
rawResponse: _response.rawResponse,
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
695
|
_getAuthorizationHeader() {
|
|
760
696
|
return __awaiter(this, void 0, void 0, function* () {
|
|
761
697
|
const bearer = yield core.Supplier.get(this._options.token);
|
package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts
CHANGED
|
@@ -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_off_chrt_reference_id: "filter_off_chrt_reference_id",
|
|
14
15
|
* filter_type: "D15N-tag",
|
|
@@ -20,16 +21,20 @@ import * as Chrt from "../../../../../../index.mjs";
|
|
|
20
21
|
* filter_registered_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
22
|
* filter_last_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
23
|
* filter_last_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
|
+
* filter_first_seen_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_first_seen_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
23
26
|
* filter_archived: true
|
|
24
27
|
* }
|
|
25
28
|
*/
|
|
26
29
|
export interface DevicesListV1Request {
|
|
27
30
|
/** Field to sort by */
|
|
28
31
|
sort_by?: Chrt.DeviceSortByEnum | null;
|
|
29
|
-
/** Sort order (
|
|
32
|
+
/** Sort order (asc or desc) */
|
|
30
33
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
31
34
|
page?: number | null;
|
|
32
35
|
page_size?: number | null;
|
|
36
|
+
/** Full-text search query */
|
|
37
|
+
search?: string | null;
|
|
33
38
|
/** Filter by org ownership: owned, shared, or owned_and_shared */
|
|
34
39
|
org_scope?: Chrt.TrackingOrgScopeEnum | null;
|
|
35
40
|
/** Filter by off-CHRT reference ID (exact match) */
|
|
@@ -52,6 +57,10 @@ export interface DevicesListV1Request {
|
|
|
52
57
|
filter_last_seen_at_timestamp_gte?: string | null;
|
|
53
58
|
/** Filter by last_seen_at_timestamp <= value */
|
|
54
59
|
filter_last_seen_at_timestamp_lte?: string | null;
|
|
60
|
+
/** Filter by first_seen_at_timestamp >= value */
|
|
61
|
+
filter_first_seen_at_timestamp_gte?: string | null;
|
|
62
|
+
/** Filter by first_seen_at_timestamp <= value */
|
|
63
|
+
filter_first_seen_at_timestamp_lte?: string | null;
|
|
55
64
|
/** Filter by archived status */
|
|
56
65
|
filter_archived?: boolean | null;
|
|
57
66
|
}
|
|
@@ -7,4 +7,3 @@ export { type DevicesUpdateSharedOrgsReq1 } from "./DevicesUpdateSharedOrgsReq1.
|
|
|
7
7
|
export { type DevicesGetV1Request } from "./DevicesGetV1Request.mjs";
|
|
8
8
|
export { type DevicesListV1Request } from "./DevicesListV1Request.mjs";
|
|
9
9
|
export { type DevicesTypeaheadV1Request } from "./DevicesTypeaheadV1Request.mjs";
|
|
10
|
-
export { type DevicesSearchV1Request } from "./DevicesSearchV1Request.mjs";
|