@chrt-inc/typescript-sdk 1.530.1 → 1.539.0
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 +1 -18
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +5 -77
- 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/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 +1 -18
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +5 -77
- 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/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 +302 -180
- 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
package/README.md
CHANGED
package/dist/cjs/Client.js
CHANGED
|
@@ -53,8 +53,8 @@ class ChrtClient {
|
|
|
53
53
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
54
54
|
"X-Fern-Language": "JavaScript",
|
|
55
55
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
56
|
-
"X-Fern-SDK-Version": "1.
|
|
57
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
56
|
+
"X-Fern-SDK-Version": "1.539.0",
|
|
57
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.539.0",
|
|
58
58
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
59
59
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
60
60
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./resources/index.js"), exports);
|
|
18
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export * as rateSheets from "./rateSheets/index.js";
|
|
2
|
-
export * from "./rateSheets/types/index.js";
|
|
3
1
|
export * as lineItemGroups from "./lineItemGroups/index.js";
|
|
2
|
+
export * as rateSheets from "./rateSheets/index.js";
|
|
4
3
|
export * as statements from "./statements/index.js";
|
|
5
4
|
export * as stripe from "./stripe/index.js";
|
|
6
5
|
export * as stripeConnect from "./stripeConnect/index.js";
|
|
@@ -36,10 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.stripeConnect = exports.stripe = exports.statements = exports.
|
|
40
|
-
exports.rateSheets = __importStar(require("./rateSheets/index.js"));
|
|
41
|
-
__exportStar(require("./rateSheets/types/index.js"), exports);
|
|
39
|
+
exports.stripeConnect = exports.stripe = exports.statements = exports.rateSheets = exports.lineItemGroups = void 0;
|
|
42
40
|
exports.lineItemGroups = __importStar(require("./lineItemGroups/index.js"));
|
|
41
|
+
exports.rateSheets = __importStar(require("./rateSheets/index.js"));
|
|
43
42
|
exports.statements = __importStar(require("./statements/index.js"));
|
|
44
43
|
exports.stripe = __importStar(require("./stripe/index.js"));
|
|
45
44
|
exports.stripeConnect = __importStar(require("./stripeConnect/index.js"));
|
|
@@ -143,6 +143,7 @@ class LineItemGroups {
|
|
|
143
143
|
* filter_attached_to_statement: true,
|
|
144
144
|
* filter_order_id: "filter_order_id",
|
|
145
145
|
* filter_payment_role: "origin",
|
|
146
|
+
* sort_order: "asc",
|
|
146
147
|
* page: 1,
|
|
147
148
|
* page_size: 1
|
|
148
149
|
* })
|
|
@@ -153,7 +154,7 @@ class LineItemGroups {
|
|
|
153
154
|
__listForCourierOrgV1() {
|
|
154
155
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
155
156
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
156
|
-
const { filter_driver_id: filterDriverId, filter_status: filterStatus, filter_attached_to_statement: filterAttachedToStatement, filter_order_id: filterOrderId, filter_payment_role: filterPaymentRole, page, page_size: pageSize, } = request;
|
|
157
|
+
const { filter_driver_id: filterDriverId, filter_status: filterStatus, filter_attached_to_statement: filterAttachedToStatement, filter_order_id: filterOrderId, filter_payment_role: filterPaymentRole, sort_order: sortOrder, page, page_size: pageSize, } = request;
|
|
157
158
|
const _queryParams = {};
|
|
158
159
|
if (filterDriverId !== undefined) {
|
|
159
160
|
_queryParams["filter_driver_id"] = filterDriverId;
|
|
@@ -175,6 +176,9 @@ class LineItemGroups {
|
|
|
175
176
|
if (filterPaymentRole !== undefined) {
|
|
176
177
|
_queryParams["filter_payment_role"] = filterPaymentRole;
|
|
177
178
|
}
|
|
179
|
+
if (sortOrder !== undefined) {
|
|
180
|
+
_queryParams["sort_order"] = sortOrder;
|
|
181
|
+
}
|
|
178
182
|
if (page !== undefined) {
|
|
179
183
|
_queryParams["page"] = (_b = page === null || page === void 0 ? void 0 : page.toString()) !== null && _b !== void 0 ? _b : null;
|
|
180
184
|
}
|
|
@@ -9,6 +9,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
9
9
|
* filter_attached_to_statement: true,
|
|
10
10
|
* filter_order_id: "filter_order_id",
|
|
11
11
|
* filter_payment_role: "origin",
|
|
12
|
+
* sort_order: "asc",
|
|
12
13
|
* page: 1,
|
|
13
14
|
* page_size: 1
|
|
14
15
|
* }
|
|
@@ -24,6 +25,8 @@ export interface LineItemGroupsListForCourierOrgV1Request {
|
|
|
24
25
|
filter_order_id?: string | null;
|
|
25
26
|
/** Filter by payment role: origin (courier pays) or destination (courier receives). Returns both if not specified. */
|
|
26
27
|
filter_payment_role?: Chrt.PaymentRoleFilterEnum | null;
|
|
28
|
+
/** Sort order (asc or desc) */
|
|
29
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
27
30
|
page?: number | null;
|
|
28
31
|
page_size?: number | null;
|
|
29
32
|
}
|
|
@@ -58,7 +58,7 @@ export declare class RateSheets {
|
|
|
58
58
|
updateV1(rateSheetId: string, request?: Chrt.billing.RateSheetClientUpdate1, requestOptions?: RateSheets.RequestOptions): core.HttpResponsePromise<Chrt.RateSheet1>;
|
|
59
59
|
private __updateV1;
|
|
60
60
|
/**
|
|
61
|
-
* Lists rate sheets for the caller's organization with filtering, sorting, and
|
|
61
|
+
* Lists rate sheets for the caller's organization with filtering, sorting, pagination, and optional full-text search. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheetListResponse)
|
|
62
62
|
*
|
|
63
63
|
* @param {Chrt.billing.RateSheetsListByOrgV1Request} request
|
|
64
64
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,9 +68,10 @@ export declare class RateSheets {
|
|
|
68
68
|
* @example
|
|
69
69
|
* await client.billing.rateSheets.listByOrgV1({
|
|
70
70
|
* sort_by: "id",
|
|
71
|
-
* sort_order: "
|
|
71
|
+
* sort_order: "asc",
|
|
72
72
|
* page: 1,
|
|
73
73
|
* page_size: 1,
|
|
74
|
+
* search: "search",
|
|
74
75
|
* filter_archived: true,
|
|
75
76
|
* filter_payment_vector_type: "shipper_pay_forwarder",
|
|
76
77
|
* filter_service_type: "on_demand",
|
|
@@ -189,7 +189,7 @@ class RateSheets {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
* Lists rate sheets for the caller's organization with filtering, sorting, and
|
|
192
|
+
* Lists rate sheets for the caller's organization with filtering, sorting, pagination, and optional full-text search. | authz: allowed_org_types=[courier, forwarder], min_org_role=operator | () -> (RateSheetListResponse)
|
|
193
193
|
*
|
|
194
194
|
* @param {Chrt.billing.RateSheetsListByOrgV1Request} request
|
|
195
195
|
* @param {RateSheets.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -199,9 +199,10 @@ class RateSheets {
|
|
|
199
199
|
* @example
|
|
200
200
|
* await client.billing.rateSheets.listByOrgV1({
|
|
201
201
|
* sort_by: "id",
|
|
202
|
-
* sort_order: "
|
|
202
|
+
* sort_order: "asc",
|
|
203
203
|
* page: 1,
|
|
204
204
|
* page_size: 1,
|
|
205
|
+
* search: "search",
|
|
205
206
|
* filter_archived: true,
|
|
206
207
|
* filter_payment_vector_type: "shipper_pay_forwarder",
|
|
207
208
|
* filter_service_type: "on_demand",
|
|
@@ -215,7 +216,7 @@ class RateSheets {
|
|
|
215
216
|
__listByOrgV1() {
|
|
216
217
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
217
218
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
218
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_archived: filterArchived, filter_payment_vector_type: filterPaymentVectorType, filter_service_type: filterServiceType, filter_cargo_type: filterCargoType, filter_vehicle_type: filterVehicleType, } = request;
|
|
219
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_archived: filterArchived, filter_payment_vector_type: filterPaymentVectorType, filter_service_type: filterServiceType, filter_cargo_type: filterCargoType, filter_vehicle_type: filterVehicleType, } = request;
|
|
219
220
|
const _queryParams = {};
|
|
220
221
|
if (sortBy !== undefined) {
|
|
221
222
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -229,6 +230,9 @@ class RateSheets {
|
|
|
229
230
|
if (pageSize !== undefined) {
|
|
230
231
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
231
232
|
}
|
|
233
|
+
if (search !== undefined) {
|
|
234
|
+
_queryParams["search"] = search;
|
|
235
|
+
}
|
|
232
236
|
if (filterArchived !== undefined) {
|
|
233
237
|
_queryParams["filter_archived"] = (_c = filterArchived === null || filterArchived === void 0 ? void 0 : filterArchived.toString()) !== null && _c !== void 0 ? _c : null;
|
|
234
238
|
}
|
|
@@ -6,9 +6,10 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* sort_by: "id",
|
|
9
|
-
* sort_order: "
|
|
9
|
+
* sort_order: "asc",
|
|
10
10
|
* page: 1,
|
|
11
11
|
* page_size: 1,
|
|
12
|
+
* search: "search",
|
|
12
13
|
* filter_archived: true,
|
|
13
14
|
* filter_payment_vector_type: "shipper_pay_forwarder",
|
|
14
15
|
* filter_service_type: "on_demand",
|
|
@@ -18,9 +19,12 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
18
19
|
*/
|
|
19
20
|
export interface RateSheetsListByOrgV1Request {
|
|
20
21
|
sort_by?: Chrt.RateSheetSortByEnum | null;
|
|
21
|
-
|
|
22
|
+
/** Sort order (asc or desc) */
|
|
23
|
+
sort_order?: Chrt.SortOrderEnum | null;
|
|
22
24
|
page?: number | null;
|
|
23
25
|
page_size?: number | null;
|
|
26
|
+
/** Full-text search query */
|
|
27
|
+
search?: string | null;
|
|
24
28
|
filter_archived?: boolean | null;
|
|
25
29
|
filter_payment_vector_type?: Chrt.PaymentVectorTypeEnum1 | null;
|
|
26
30
|
/** Filter by service type (exact match) */
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types/index.js"), exports);
|
|
18
17
|
__exportStar(require("./client/index.js"), exports);
|
|
@@ -88,6 +88,7 @@ export declare class Statements {
|
|
|
88
88
|
* filter_settlement_type: "stripe_connect",
|
|
89
89
|
* filter_order_id: "filter_order_id",
|
|
90
90
|
* filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
91
|
+
* filter_payment_origin_off_chrt_shipper_org_id: "filter_payment_origin_off_chrt_shipper_org_id",
|
|
91
92
|
* filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
92
93
|
* filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
93
94
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -95,7 +96,9 @@ export declare class Statements {
|
|
|
95
96
|
* filter_opened_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
96
97
|
* filter_opened_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
97
98
|
* filter_paid_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
98
|
-
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
99
|
+
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
100
|
+
* filter_uncollectible_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
101
|
+
* filter_uncollectible_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
99
102
|
* })
|
|
100
103
|
*/
|
|
101
104
|
listV1(request?: Chrt.billing.StatementsListV1Request, requestOptions?: Statements.RequestOptions): core.HttpResponsePromise<Chrt.StatementsListRes>;
|
|
@@ -117,6 +120,7 @@ export declare class Statements {
|
|
|
117
120
|
* filter_settlement_type: "stripe_connect",
|
|
118
121
|
* filter_order_id: "filter_order_id",
|
|
119
122
|
* filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
123
|
+
* filter_payment_origin_off_chrt_shipper_org_id: "filter_payment_origin_off_chrt_shipper_org_id",
|
|
120
124
|
* filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
121
125
|
* filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
122
126
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -124,7 +128,9 @@ export declare class Statements {
|
|
|
124
128
|
* filter_opened_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
125
129
|
* filter_opened_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
126
130
|
* filter_paid_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
127
|
-
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
131
|
+
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
132
|
+
* filter_uncollectible_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
133
|
+
* filter_uncollectible_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
128
134
|
* })
|
|
129
135
|
*/
|
|
130
136
|
expandedListV1(request?: Chrt.billing.StatementsExpandedListV1Request, requestOptions?: Statements.RequestOptions): core.HttpResponsePromise<Chrt.StatementsExpandedListRes>;
|
|
@@ -254,6 +254,7 @@ class Statements {
|
|
|
254
254
|
* filter_settlement_type: "stripe_connect",
|
|
255
255
|
* filter_order_id: "filter_order_id",
|
|
256
256
|
* filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
257
|
+
* filter_payment_origin_off_chrt_shipper_org_id: "filter_payment_origin_off_chrt_shipper_org_id",
|
|
257
258
|
* filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
258
259
|
* filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
259
260
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -261,7 +262,9 @@ class Statements {
|
|
|
261
262
|
* filter_opened_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
262
263
|
* filter_opened_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
263
264
|
* filter_paid_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
264
|
-
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
265
|
+
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
266
|
+
* filter_uncollectible_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
267
|
+
* filter_uncollectible_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
265
268
|
* })
|
|
266
269
|
*/
|
|
267
270
|
listV1(request = {}, requestOptions) {
|
|
@@ -270,7 +273,7 @@ class Statements {
|
|
|
270
273
|
__listV1() {
|
|
271
274
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
272
275
|
var _a, _b, _c, _d, _e, _f;
|
|
273
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_settlement_type: filterSettlementType, filter_order_id: filterOrderId, filter_payment_origin_org_id: filterPaymentOriginOrgId, filter_payment_destination_org_id: filterPaymentDestinationOrgId, filter_owned_by_org_id: filterOwnedByOrgId, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_opened_at_timestamp_gte: filterOpenedAtTimestampGte, filter_opened_at_timestamp_lte: filterOpenedAtTimestampLte, filter_paid_at_timestamp_gte: filterPaidAtTimestampGte, filter_paid_at_timestamp_lte: filterPaidAtTimestampLte, } = request;
|
|
276
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_settlement_type: filterSettlementType, filter_order_id: filterOrderId, filter_payment_origin_org_id: filterPaymentOriginOrgId, filter_payment_origin_off_chrt_shipper_org_id: filterPaymentOriginOffChrtShipperOrgId, filter_payment_destination_org_id: filterPaymentDestinationOrgId, filter_owned_by_org_id: filterOwnedByOrgId, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_opened_at_timestamp_gte: filterOpenedAtTimestampGte, filter_opened_at_timestamp_lte: filterOpenedAtTimestampLte, filter_paid_at_timestamp_gte: filterPaidAtTimestampGte, filter_paid_at_timestamp_lte: filterPaidAtTimestampLte, filter_uncollectible_at_timestamp_gte: filterUncollectibleAtTimestampGte, filter_uncollectible_at_timestamp_lte: filterUncollectibleAtTimestampLte, } = request;
|
|
274
277
|
const _queryParams = {};
|
|
275
278
|
if (sortBy !== undefined) {
|
|
276
279
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -301,6 +304,9 @@ class Statements {
|
|
|
301
304
|
if (filterPaymentOriginOrgId !== undefined) {
|
|
302
305
|
_queryParams["filter_payment_origin_org_id"] = filterPaymentOriginOrgId;
|
|
303
306
|
}
|
|
307
|
+
if (filterPaymentOriginOffChrtShipperOrgId !== undefined) {
|
|
308
|
+
_queryParams["filter_payment_origin_off_chrt_shipper_org_id"] = filterPaymentOriginOffChrtShipperOrgId;
|
|
309
|
+
}
|
|
304
310
|
if (filterPaymentDestinationOrgId !== undefined) {
|
|
305
311
|
_queryParams["filter_payment_destination_org_id"] = filterPaymentDestinationOrgId;
|
|
306
312
|
}
|
|
@@ -325,6 +331,12 @@ class Statements {
|
|
|
325
331
|
if (filterPaidAtTimestampLte !== undefined) {
|
|
326
332
|
_queryParams["filter_paid_at_timestamp_lte"] = filterPaidAtTimestampLte;
|
|
327
333
|
}
|
|
334
|
+
if (filterUncollectibleAtTimestampGte !== undefined) {
|
|
335
|
+
_queryParams["filter_uncollectible_at_timestamp_gte"] = filterUncollectibleAtTimestampGte;
|
|
336
|
+
}
|
|
337
|
+
if (filterUncollectibleAtTimestampLte !== undefined) {
|
|
338
|
+
_queryParams["filter_uncollectible_at_timestamp_lte"] = filterUncollectibleAtTimestampLte;
|
|
339
|
+
}
|
|
328
340
|
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
329
341
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
330
342
|
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, "billing/statements/list/v1"),
|
|
@@ -384,6 +396,7 @@ class Statements {
|
|
|
384
396
|
* filter_settlement_type: "stripe_connect",
|
|
385
397
|
* filter_order_id: "filter_order_id",
|
|
386
398
|
* filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
399
|
+
* filter_payment_origin_off_chrt_shipper_org_id: "filter_payment_origin_off_chrt_shipper_org_id",
|
|
387
400
|
* filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
388
401
|
* filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
389
402
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -391,7 +404,9 @@ class Statements {
|
|
|
391
404
|
* filter_opened_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
392
405
|
* filter_opened_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
393
406
|
* filter_paid_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
394
|
-
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
407
|
+
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
408
|
+
* filter_uncollectible_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
409
|
+
* filter_uncollectible_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
395
410
|
* })
|
|
396
411
|
*/
|
|
397
412
|
expandedListV1(request = {}, requestOptions) {
|
|
@@ -400,7 +415,7 @@ class Statements {
|
|
|
400
415
|
__expandedListV1() {
|
|
401
416
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
402
417
|
var _a, _b, _c, _d, _e, _f;
|
|
403
|
-
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_settlement_type: filterSettlementType, filter_order_id: filterOrderId, filter_payment_origin_org_id: filterPaymentOriginOrgId, filter_payment_destination_org_id: filterPaymentDestinationOrgId, filter_owned_by_org_id: filterOwnedByOrgId, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_opened_at_timestamp_gte: filterOpenedAtTimestampGte, filter_opened_at_timestamp_lte: filterOpenedAtTimestampLte, filter_paid_at_timestamp_gte: filterPaidAtTimestampGte, filter_paid_at_timestamp_lte: filterPaidAtTimestampLte, } = request;
|
|
418
|
+
const { sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_status: filterStatus, filter_settlement_type: filterSettlementType, filter_order_id: filterOrderId, filter_payment_origin_org_id: filterPaymentOriginOrgId, filter_payment_origin_off_chrt_shipper_org_id: filterPaymentOriginOffChrtShipperOrgId, filter_payment_destination_org_id: filterPaymentDestinationOrgId, filter_owned_by_org_id: filterOwnedByOrgId, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_opened_at_timestamp_gte: filterOpenedAtTimestampGte, filter_opened_at_timestamp_lte: filterOpenedAtTimestampLte, filter_paid_at_timestamp_gte: filterPaidAtTimestampGte, filter_paid_at_timestamp_lte: filterPaidAtTimestampLte, filter_uncollectible_at_timestamp_gte: filterUncollectibleAtTimestampGte, filter_uncollectible_at_timestamp_lte: filterUncollectibleAtTimestampLte, } = request;
|
|
404
419
|
const _queryParams = {};
|
|
405
420
|
if (sortBy !== undefined) {
|
|
406
421
|
_queryParams["sort_by"] = sortBy;
|
|
@@ -431,6 +446,9 @@ class Statements {
|
|
|
431
446
|
if (filterPaymentOriginOrgId !== undefined) {
|
|
432
447
|
_queryParams["filter_payment_origin_org_id"] = filterPaymentOriginOrgId;
|
|
433
448
|
}
|
|
449
|
+
if (filterPaymentOriginOffChrtShipperOrgId !== undefined) {
|
|
450
|
+
_queryParams["filter_payment_origin_off_chrt_shipper_org_id"] = filterPaymentOriginOffChrtShipperOrgId;
|
|
451
|
+
}
|
|
434
452
|
if (filterPaymentDestinationOrgId !== undefined) {
|
|
435
453
|
_queryParams["filter_payment_destination_org_id"] = filterPaymentDestinationOrgId;
|
|
436
454
|
}
|
|
@@ -455,6 +473,12 @@ class Statements {
|
|
|
455
473
|
if (filterPaidAtTimestampLte !== undefined) {
|
|
456
474
|
_queryParams["filter_paid_at_timestamp_lte"] = filterPaidAtTimestampLte;
|
|
457
475
|
}
|
|
476
|
+
if (filterUncollectibleAtTimestampGte !== undefined) {
|
|
477
|
+
_queryParams["filter_uncollectible_at_timestamp_gte"] = filterUncollectibleAtTimestampGte;
|
|
478
|
+
}
|
|
479
|
+
if (filterUncollectibleAtTimestampLte !== undefined) {
|
|
480
|
+
_queryParams["filter_uncollectible_at_timestamp_lte"] = filterUncollectibleAtTimestampLte;
|
|
481
|
+
}
|
|
458
482
|
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
459
483
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
460
484
|
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, "billing/statements/expanded/list/v1"),
|
|
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
12
12
|
* filter_settlement_type: "stripe_connect",
|
|
13
13
|
* filter_order_id: "filter_order_id",
|
|
14
14
|
* filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
15
|
+
* filter_payment_origin_off_chrt_shipper_org_id: "filter_payment_origin_off_chrt_shipper_org_id",
|
|
15
16
|
* filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
16
17
|
* filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
17
18
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -19,7 +20,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
19
20
|
* filter_opened_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
21
|
* filter_opened_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
22
|
* filter_paid_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
|
-
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
23
|
+
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
|
+
* filter_uncollectible_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_uncollectible_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
23
26
|
* }
|
|
24
27
|
*/
|
|
25
28
|
export interface StatementsExpandedListV1Request {
|
|
@@ -37,6 +40,8 @@ export interface StatementsExpandedListV1Request {
|
|
|
37
40
|
filter_order_id?: string | null;
|
|
38
41
|
/** Filter by payment origin org ID */
|
|
39
42
|
filter_payment_origin_org_id?: string | null;
|
|
43
|
+
/** Filter by payment origin off-chrt shipper org ID */
|
|
44
|
+
filter_payment_origin_off_chrt_shipper_org_id?: string | null;
|
|
40
45
|
/** Filter by payment destination org ID */
|
|
41
46
|
filter_payment_destination_org_id?: string | null;
|
|
42
47
|
/** Filter by owned by org ID */
|
|
@@ -53,4 +58,8 @@ export interface StatementsExpandedListV1Request {
|
|
|
53
58
|
filter_paid_at_timestamp_gte?: string | null;
|
|
54
59
|
/** Filter by paid_at_timestamp <= value */
|
|
55
60
|
filter_paid_at_timestamp_lte?: string | null;
|
|
61
|
+
/** Filter by uncollectible_at_timestamp >= value */
|
|
62
|
+
filter_uncollectible_at_timestamp_gte?: string | null;
|
|
63
|
+
/** Filter by uncollectible_at_timestamp <= value */
|
|
64
|
+
filter_uncollectible_at_timestamp_lte?: string | null;
|
|
56
65
|
}
|
|
@@ -12,6 +12,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
12
12
|
* filter_settlement_type: "stripe_connect",
|
|
13
13
|
* filter_order_id: "filter_order_id",
|
|
14
14
|
* filter_payment_origin_org_id: "filter_payment_origin_org_id",
|
|
15
|
+
* filter_payment_origin_off_chrt_shipper_org_id: "filter_payment_origin_off_chrt_shipper_org_id",
|
|
15
16
|
* filter_payment_destination_org_id: "filter_payment_destination_org_id",
|
|
16
17
|
* filter_owned_by_org_id: "filter_owned_by_org_id",
|
|
17
18
|
* filter_staged_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
@@ -19,7 +20,9 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
19
20
|
* filter_opened_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
20
21
|
* filter_opened_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
21
22
|
* filter_paid_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
22
|
-
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
23
|
+
* filter_paid_at_timestamp_lte: "2024-01-15T09:30:00Z",
|
|
24
|
+
* filter_uncollectible_at_timestamp_gte: "2024-01-15T09:30:00Z",
|
|
25
|
+
* filter_uncollectible_at_timestamp_lte: "2024-01-15T09:30:00Z"
|
|
23
26
|
* }
|
|
24
27
|
*/
|
|
25
28
|
export interface StatementsListV1Request {
|
|
@@ -37,6 +40,8 @@ export interface StatementsListV1Request {
|
|
|
37
40
|
filter_order_id?: string | null;
|
|
38
41
|
/** Filter by payment origin org ID */
|
|
39
42
|
filter_payment_origin_org_id?: string | null;
|
|
43
|
+
/** Filter by payment origin off-chrt shipper org ID */
|
|
44
|
+
filter_payment_origin_off_chrt_shipper_org_id?: string | null;
|
|
40
45
|
/** Filter by payment destination org ID */
|
|
41
46
|
filter_payment_destination_org_id?: string | null;
|
|
42
47
|
/** Filter by owned by org ID */
|
|
@@ -53,4 +58,8 @@ export interface StatementsListV1Request {
|
|
|
53
58
|
filter_paid_at_timestamp_gte?: string | null;
|
|
54
59
|
/** Filter by paid_at_timestamp <= value */
|
|
55
60
|
filter_paid_at_timestamp_lte?: string | null;
|
|
61
|
+
/** Filter by uncollectible_at_timestamp >= value */
|
|
62
|
+
filter_uncollectible_at_timestamp_gte?: string | null;
|
|
63
|
+
/** Filter by uncollectible_at_timestamp <= value */
|
|
64
|
+
filter_uncollectible_at_timestamp_lte?: string | null;
|
|
56
65
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as billing from "./billing/index.js";
|
|
2
1
|
export * as orgs from "./orgs/index.js";
|
|
3
|
-
export * as shipping from "./shipping/index.js";
|
|
4
2
|
export * as utils from "./utils/index.js";
|
|
5
3
|
export * as analytics from "./analytics/index.js";
|
|
4
|
+
export * as billing from "./billing/index.js";
|
|
6
5
|
export * as integrations from "./integrations/index.js";
|
|
7
6
|
export * as notifications from "./notifications/index.js";
|
|
7
|
+
export * as shipping from "./shipping/index.js";
|
|
8
8
|
export * as tracking from "./tracking/index.js";
|
|
9
9
|
export * as users from "./users/index.js";
|
|
10
10
|
export * from "./orgs/client/requests/index.js";
|
|
@@ -36,14 +36,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.users = exports.tracking = exports.
|
|
40
|
-
exports.billing = __importStar(require("./billing/index.js"));
|
|
39
|
+
exports.users = exports.tracking = exports.shipping = exports.notifications = exports.integrations = exports.billing = exports.analytics = exports.utils = exports.orgs = void 0;
|
|
41
40
|
exports.orgs = __importStar(require("./orgs/index.js"));
|
|
42
|
-
exports.shipping = __importStar(require("./shipping/index.js"));
|
|
43
41
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
44
42
|
exports.analytics = __importStar(require("./analytics/index.js"));
|
|
43
|
+
exports.billing = __importStar(require("./billing/index.js"));
|
|
45
44
|
exports.integrations = __importStar(require("./integrations/index.js"));
|
|
46
45
|
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
46
|
+
exports.shipping = __importStar(require("./shipping/index.js"));
|
|
47
47
|
exports.tracking = __importStar(require("./tracking/index.js"));
|
|
48
48
|
exports.users = __importStar(require("./users/index.js"));
|
|
49
49
|
__exportStar(require("./orgs/client/requests/index.js"), exports);
|
|
@@ -31,17 +31,21 @@ export declare class AdHoc {
|
|
|
31
31
|
protected readonly _options: AdHoc.Options;
|
|
32
32
|
constructor(_options?: AdHoc.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists all ad-hoc notification intents for an order. | authz: min_org_role=operator | () -> (
|
|
34
|
+
* Lists all ad-hoc notification intents for an order. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
|
|
35
35
|
*
|
|
36
36
|
* @param {string} orderId
|
|
37
|
+
* @param {Chrt.notifications.AdHocListByOrderIdV1Request} request
|
|
37
38
|
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
39
|
*
|
|
39
40
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
|
-
* await client.notifications.adHoc.listByOrderIdV1("order_id"
|
|
43
|
+
* await client.notifications.adHoc.listByOrderIdV1("order_id", {
|
|
44
|
+
* page: 1,
|
|
45
|
+
* page_size: 1
|
|
46
|
+
* })
|
|
43
47
|
*/
|
|
44
|
-
listByOrderIdV1(orderId: string, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
48
|
+
listByOrderIdV1(orderId: string, request?: Chrt.notifications.AdHocListByOrderIdV1Request, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise<Chrt.NotificationAdHocListRes>;
|
|
45
49
|
private __listByOrderIdV1;
|
|
46
50
|
/**
|
|
47
51
|
* Creates a new ad-hoc notification intent for an order. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
|
|
@@ -56,28 +56,40 @@ class AdHoc {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Lists all ad-hoc notification intents for an order. | authz: min_org_role=operator | () -> (
|
|
59
|
+
* Lists all ad-hoc notification intents for an order. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
|
|
60
60
|
*
|
|
61
61
|
* @param {string} orderId
|
|
62
|
+
* @param {Chrt.notifications.AdHocListByOrderIdV1Request} request
|
|
62
63
|
* @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
|
-
* await client.notifications.adHoc.listByOrderIdV1("order_id"
|
|
68
|
+
* await client.notifications.adHoc.listByOrderIdV1("order_id", {
|
|
69
|
+
* page: 1,
|
|
70
|
+
* page_size: 1
|
|
71
|
+
* })
|
|
68
72
|
*/
|
|
69
|
-
listByOrderIdV1(orderId, requestOptions) {
|
|
70
|
-
return core.HttpResponsePromise.fromPromise(this.__listByOrderIdV1(orderId, requestOptions));
|
|
73
|
+
listByOrderIdV1(orderId, request = {}, requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOrderIdV1(orderId, request, requestOptions));
|
|
71
75
|
}
|
|
72
|
-
__listByOrderIdV1(
|
|
73
|
-
return __awaiter(this,
|
|
74
|
-
var _a, _b, _c, _d;
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
76
|
+
__listByOrderIdV1(orderId_1) {
|
|
77
|
+
return __awaiter(this, arguments, void 0, function* (orderId, request = {}, requestOptions) {
|
|
78
|
+
var _a, _b, _c, _d, _e, _f;
|
|
79
|
+
const { page, page_size: pageSize } = request;
|
|
80
|
+
const _queryParams = {};
|
|
81
|
+
if (page !== undefined) {
|
|
82
|
+
_queryParams["page"] = (_a = page === null || page === void 0 ? void 0 : page.toString()) !== null && _a !== void 0 ? _a : null;
|
|
83
|
+
}
|
|
84
|
+
if (pageSize !== undefined) {
|
|
85
|
+
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
86
|
+
}
|
|
87
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
88
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
89
|
+
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, `notifications/ad_hoc/list_by_order_id/v1/${encodeURIComponent(orderId)}`),
|
|
78
90
|
method: "GET",
|
|
79
91
|
headers: _headers,
|
|
80
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
92
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
81
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
94
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -31,14 +31,20 @@ export declare class Groups {
|
|
|
31
31
|
protected readonly _options: Groups.Options;
|
|
32
32
|
constructor(_options?: Groups.Options);
|
|
33
33
|
/**
|
|
34
|
-
* Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (
|
|
34
|
+
* Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (NotificationGroupListRes)
|
|
35
35
|
*
|
|
36
|
+
* @param {Chrt.notifications.GroupsListByOrgV1Request} request
|
|
36
37
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
38
|
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
38
41
|
* @example
|
|
39
|
-
* await client.notifications.groups.listByOrgV1(
|
|
42
|
+
* await client.notifications.groups.listByOrgV1({
|
|
43
|
+
* page: 1,
|
|
44
|
+
* page_size: 1
|
|
45
|
+
* })
|
|
40
46
|
*/
|
|
41
|
-
listByOrgV1(requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
47
|
+
listByOrgV1(request?: Chrt.notifications.GroupsListByOrgV1Request, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroupListRes>;
|
|
42
48
|
private __listByOrgV1;
|
|
43
49
|
/**
|
|
44
50
|
* Retrieves full notification group details including user membership. | authz: min_org_role=operator | () -> (NotificationGroup1)
|
|
@@ -54,14 +60,20 @@ export declare class Groups {
|
|
|
54
60
|
getForAdministratorV1(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroup1>;
|
|
55
61
|
private __getForAdministratorV1;
|
|
56
62
|
/**
|
|
57
|
-
* Lists notification groups the caller is a member of. | () -> (
|
|
63
|
+
* Lists notification groups the caller is a member of. | () -> (NotificationGroupUserListRes)
|
|
58
64
|
*
|
|
65
|
+
* @param {Chrt.notifications.GroupsListByUserV1Request} request
|
|
59
66
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
67
|
*
|
|
68
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
69
|
+
*
|
|
61
70
|
* @example
|
|
62
|
-
* await client.notifications.groups.listByUserV1(
|
|
71
|
+
* await client.notifications.groups.listByUserV1({
|
|
72
|
+
* page: 1,
|
|
73
|
+
* page_size: 1
|
|
74
|
+
* })
|
|
63
75
|
*/
|
|
64
|
-
listByUserV1(requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
76
|
+
listByUserV1(request?: Chrt.notifications.GroupsListByUserV1Request, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroupUserListRes>;
|
|
65
77
|
private __listByUserV1;
|
|
66
78
|
/**
|
|
67
79
|
* Retrieves limited notification group details for a group the caller is a member of. | () -> (NotificationGroupLimitedForDriver1)
|