@chrt-inc/typescript-sdk 1.1002.0 → 1.1006.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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js +81 -1
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.ts +25 -5
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/Client.js +80 -8
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionRevertForOrdersReq.d.ts +22 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateForOrdersReq.d.ts +28 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateForOrdersReq.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/Client.js +78 -1
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/InvoicesTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/billingNew/resources/invoices/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/billingNew/resources/orders/client/Client.js +10 -1
- package/dist/cjs/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.ts +4 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +78 -1
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/operations/resources/departments/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +81 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +20 -2
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/client/Client.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/client/Client.js +68 -0
- package/dist/cjs/api/resources/orgs/client/requests/OrgsTypeaheadMembersV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/client/requests/OrgsTypeaheadMembersV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/accounts/client/Client.js +10 -5
- package/dist/cjs/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +50 -5
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForExecutorV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForShipperV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsForCoordinatorV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/Client.js +78 -1
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactsListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactsTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/ContactsTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.d.ts +18 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/Client.js +82 -1
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataTypeaheadV1Request.d.ts +20 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/orgs/resources/offChrtOrgData/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +18 -1
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +88 -6
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/Client.js +81 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +20 -2
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +4 -1
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +20 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.js +78 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.js +78 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/OrdersListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.js +81 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/OrdersListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.js +78 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/OrdersListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/Client.js +30 -3
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.js +81 -1
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.d.ts +3 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.ts +16 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.js +5 -0
- package/dist/cjs/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +10 -5
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +11 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.ts +3 -0
- package/dist/cjs/api/types/AtlasOrderTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/AtlasOrderTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/AtlasOrderTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/AtlasOrderTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/AtlasOrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/AtlasOrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/ChrtGroundProviderRatesTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/ContactTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/ContactTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/ContactTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/ContactTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/ContactTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/ContactTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/CxtOrderTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/CxtOrderTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/CxtOrderTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/CxtOrderTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/CxtOrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/CxtOrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/DepartmentTypeaheadFieldEnum.d.ts +8 -0
- package/dist/cjs/api/types/DepartmentTypeaheadFieldEnum.js +10 -0
- package/dist/cjs/api/types/DepartmentTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/DepartmentTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/DepartmentTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/DepartmentTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/{TrackingTypeaheadResult.d.ts → DeviceTypeaheadResult.d.ts} +2 -2
- package/dist/cjs/api/types/DeviceTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/DeviceTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/DeviceTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/DispatchScienceOrderTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/DispatchScienceOrderTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/DispatchScienceOrderTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/DispatchScienceOrderTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/DispatchScienceOrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/DispatchScienceOrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/DriverTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/DriverTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/DriverTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/DriverTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/DriverTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/DriverTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/InvoiceLineItemsCurrencyConversionForOrdersRes.d.ts +20 -0
- package/dist/cjs/api/types/InvoiceLineItemsCurrencyConversionForOrdersRes.js +14 -0
- package/dist/cjs/api/types/InvoiceTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/InvoiceTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/InvoiceTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/InvoiceTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/InvoiceTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/InvoiceTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/OffChrtOrgDataTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OffChrtOrgDataTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OffChrtOrgDataTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OffChrtOrgDataTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OffChrtOrgDataTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OffChrtOrgDataTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/OnTime360OrderTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OnTime360OrderTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OnTime360OrderTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OnTime360OrderTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OnTime360OrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OnTime360OrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OperationsTaskListTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OperationsTaskListTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTaskListTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadResult.d.ts +1 -1
- package/dist/cjs/api/types/OperationsTaskTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OperationsTaskTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/OrderLabelTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OrderLabelTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OrderLabelTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OrderLabelTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OrderTemplateNewTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/OrderTemplateNewTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/OrderTemplateNewTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OrderTemplateNewTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OrderTemplateNewTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OrderTemplateNewTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/OrgMemberTypeaheadFieldEnum.d.ts +8 -0
- package/dist/cjs/api/types/OrgMemberTypeaheadFieldEnum.js +10 -0
- package/dist/cjs/api/types/OrgMemberTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/OrgMemberTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/OrgMemberTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/OrgMemberTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/SessionTypeaheadFieldEnum.d.ts +9 -0
- package/dist/cjs/api/types/SessionTypeaheadFieldEnum.js +11 -0
- package/dist/cjs/api/types/SessionTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/SessionTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/SessionTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/SessionTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadResult.d.ts +1 -1
- package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/ShippingIntegrationOrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/TaskGroupTypeaheadResult.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/TaskGroupTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderTypeaheadFieldEnum.d.ts +4 -0
- package/dist/cjs/api/types/XceleratorOrderTypeaheadFieldEnum.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderTypeaheadResult.d.ts +8 -0
- package/dist/cjs/api/types/XceleratorOrderTypeaheadResult.js +5 -0
- package/dist/cjs/api/types/XceleratorOrderTypeaheadValue.d.ts +7 -0
- package/dist/cjs/api/types/XceleratorOrderTypeaheadValue.js +5 -0
- package/dist/cjs/api/types/index.d.ts +53 -2
- package/dist/cjs/api/types/index.js +53 -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/billingNew/resources/chrtGroundProviderRates/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.mjs +81 -1
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/billingNew/resources/chrtGroundProviderRates/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.d.mts +25 -5
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/Client.mjs +80 -8
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionRevertForOrdersReq.d.mts +22 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateForOrdersReq.d.mts +28 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionUpdateForOrdersReq.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/Client.mjs +78 -1
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/InvoicesTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/billingNew/resources/invoices/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/billingNew/resources/orders/client/Client.mjs +10 -1
- package/dist/esm/api/resources/billingNew/resources/orders/client/requests/OrderBillingExpandedListReq.d.mts +4 -1
- package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +78 -1
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/operations/resources/departments/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +81 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +20 -2
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/client/Client.d.mts +16 -0
- package/dist/esm/api/resources/orgs/client/Client.mjs +68 -0
- package/dist/esm/api/resources/orgs/client/requests/OrgsTypeaheadMembersV1Request.d.mts +16 -0
- package/dist/esm/api/resources/orgs/client/requests/OrgsTypeaheadMembersV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/accounts/client/Client.mjs +10 -5
- package/dist/esm/api/resources/orgs/resources/accounts/client/requests/AccountsListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +50 -5
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForExecutorV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListCoordinatorsForShipperV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsForCoordinatorV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListExecutorsGeoSearchForCoordinatorV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/Client.mjs +78 -1
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactsListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactsTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/ContactsTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/contacts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.d.mts +18 -0
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/Client.mjs +82 -1
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataTypeaheadV1Request.d.mts +20 -0
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/OffChrtOrgDataTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/orgs/resources/offChrtOrgData/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +18 -1
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +88 -6
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/Client.mjs +81 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewListV1Request.d.mts +4 -1
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplatesNewTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +20 -2
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +4 -1
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +20 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/Client.mjs +78 -1
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/atlas/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/Client.mjs +78 -1
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/OrdersListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/cxt/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/Client.mjs +81 -1
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/OrdersListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/dispatchScience/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/Client.mjs +78 -1
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/OrdersListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/ontime360/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/Client.mjs +30 -3
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListForIntegrationExecutorOperatorsV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/orders/client/requests/OrdersStatusSummaryV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/Client.mjs +81 -1
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersListV1Request.d.mts +3 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.d.mts +16 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/OrdersTypeaheadV1Request.mjs +4 -0
- package/dist/esm/api/resources/shippingIntegrations/resources/xcelerator/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +10 -5
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesListV1Request.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +11 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsListV1Request.d.mts +3 -0
- package/dist/esm/api/types/AtlasOrderTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/AtlasOrderTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/AtlasOrderTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/AtlasOrderTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/AtlasOrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/AtlasOrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/ChrtGroundProviderRatesTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/ContactTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/ContactTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/ContactTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/ContactTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/ContactTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/ContactTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/CxtOrderTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/CxtOrderTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/CxtOrderTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/CxtOrderTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/CxtOrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/CxtOrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/DepartmentTypeaheadFieldEnum.d.mts +8 -0
- package/dist/esm/api/types/DepartmentTypeaheadFieldEnum.mjs +7 -0
- package/dist/esm/api/types/DepartmentTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/DepartmentTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/DepartmentTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/DepartmentTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/{TrackingTypeaheadResult.d.mts → DeviceTypeaheadResult.d.mts} +2 -2
- package/dist/esm/api/types/DeviceTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/DeviceTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/DeviceTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/DispatchScienceOrderTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/DispatchScienceOrderTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/DispatchScienceOrderTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/DispatchScienceOrderTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/DispatchScienceOrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/DispatchScienceOrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/DriverTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/DriverTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/DriverTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/DriverTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/DriverTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/DriverTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/InvoiceLineItemsCurrencyConversionForOrdersRes.d.mts +20 -0
- package/dist/esm/api/types/InvoiceLineItemsCurrencyConversionForOrdersRes.mjs +11 -0
- package/dist/esm/api/types/InvoiceTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/InvoiceTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/InvoiceTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/InvoiceTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/InvoiceTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/InvoiceTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/OffChrtOrgDataTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OffChrtOrgDataTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OffChrtOrgDataTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OffChrtOrgDataTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OffChrtOrgDataTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OffChrtOrgDataTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/OnTime360OrderTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OnTime360OrderTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OnTime360OrderTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OnTime360OrderTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OnTime360OrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OnTime360OrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OperationsTaskListTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OperationsTaskListTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OperationsTaskListTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadResult.d.mts +1 -1
- package/dist/esm/api/types/OperationsTaskTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OperationsTaskTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/OrderLabelTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OrderLabelTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OrderLabelTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OrderLabelTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateNewTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/OrderTemplateNewTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateNewTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OrderTemplateNewTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OrderTemplateNewTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OrderTemplateNewTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/OrgMemberTypeaheadFieldEnum.d.mts +8 -0
- package/dist/esm/api/types/OrgMemberTypeaheadFieldEnum.mjs +7 -0
- package/dist/esm/api/types/OrgMemberTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/OrgMemberTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/OrgMemberTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/OrgMemberTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/SessionTypeaheadFieldEnum.d.mts +9 -0
- package/dist/esm/api/types/SessionTypeaheadFieldEnum.mjs +8 -0
- package/dist/esm/api/types/SessionTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/SessionTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/SessionTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/SessionTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadResult.d.mts +1 -1
- package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/ShippingIntegrationOrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/TaskGroupTypeaheadResult.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/TaskGroupTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderTypeaheadFieldEnum.d.mts +4 -0
- package/dist/esm/api/types/XceleratorOrderTypeaheadFieldEnum.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderTypeaheadResult.d.mts +8 -0
- package/dist/esm/api/types/XceleratorOrderTypeaheadResult.mjs +4 -0
- package/dist/esm/api/types/XceleratorOrderTypeaheadValue.d.mts +7 -0
- package/dist/esm/api/types/XceleratorOrderTypeaheadValue.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +53 -2
- package/dist/esm/api/types/index.mjs +53 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1042 -18
- package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.d.ts +0 -18
- package/dist/cjs/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.d.ts +0 -18
- package/dist/cjs/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.js +0 -14
- package/dist/esm/api/resources/billingNew/resources/invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.d.mts +0 -18
- package/dist/esm/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.d.mts +0 -18
- package/dist/esm/api/types/ReceivablesAcrossOrdersCurrencyConversionOrderRes.mjs +0 -11
- /package/dist/cjs/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.js → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesTypeaheadV1Request.js} +0 -0
- /package/dist/cjs/api/{types/TrackingTypeaheadResult.js → resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionRevertForOrdersReq.js} +0 -0
- /package/dist/esm/api/resources/billingNew/resources/{invoiceLineItems/client/requests/ReceivablesAcrossOrdersCurrencyConversionUpdateReq.mjs → chrtGroundProviderRates/client/requests/ChrtGroundProviderRatesTypeaheadV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/TrackingTypeaheadResult.mjs → resources/billingNew/resources/invoiceLineItems/client/requests/InvoiceLineItemsCurrencyConversionRevertForOrdersReq.mjs} +0 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -60,8 +60,8 @@ class ChrtClient {
|
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
63
|
-
"X-Fern-SDK-Version": "1.
|
|
64
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
63
|
+
"X-Fern-SDK-Version": "1.1006.0",
|
|
64
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.1006.0",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export declare class ChrtGroundProviderRates {
|
|
|
88
88
|
* sort_order: "asc",
|
|
89
89
|
* page: 1,
|
|
90
90
|
* page_size: 1,
|
|
91
|
+
* filter_chrt_ground_provider_rates_ids: ["filter_chrt_ground_provider_rates_ids"],
|
|
91
92
|
* filter_service_line: ["on_demand"],
|
|
92
93
|
* filter_invoice_types: ["accounts_receivable"],
|
|
93
94
|
* filter_currency_codes: ["USD"],
|
|
@@ -120,6 +121,22 @@ export declare class ChrtGroundProviderRates {
|
|
|
120
121
|
*/
|
|
121
122
|
resolveV1(request: Chrt.billingNew.ResolveChrtGroundProviderRatesReq, requestOptions?: ChrtGroundProviderRates.RequestOptions): core.HttpResponsePromise<Chrt.ResolvedTaskGroupChrtGroundProviderRates1[]>;
|
|
122
123
|
private __resolveV1;
|
|
124
|
+
/**
|
|
125
|
+
* Returns matching name values and their IDs within the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ChrtGroundProviderRatesTypeaheadResult])
|
|
126
|
+
*
|
|
127
|
+
* @param {Chrt.billingNew.ChrtGroundProviderRatesTypeaheadV1Request} request
|
|
128
|
+
* @param {ChrtGroundProviderRates.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* await client.billingNew.chrtGroundProviderRates.typeaheadV1({
|
|
134
|
+
* query: "query",
|
|
135
|
+
* limit: 1
|
|
136
|
+
* })
|
|
137
|
+
*/
|
|
138
|
+
typeaheadV1(request: Chrt.billingNew.ChrtGroundProviderRatesTypeaheadV1Request, requestOptions?: ChrtGroundProviderRates.RequestOptions): core.HttpResponsePromise<Chrt.ChrtGroundProviderRatesTypeaheadResult[]>;
|
|
139
|
+
private __typeaheadV1;
|
|
123
140
|
/**
|
|
124
141
|
* Updates owner-scoped ground-provider rates and advances the server-managed update timestamp. | authz: allowed_org_types=[provider], min_org_role=operator | (ChrtGroundProviderRatesClientUpdate1) -> (bool)
|
|
125
142
|
*
|
package/dist/cjs/api/resources/billingNew/resources/chrtGroundProviderRates/client/Client.js
CHANGED
|
@@ -254,6 +254,7 @@ class ChrtGroundProviderRates {
|
|
|
254
254
|
* sort_order: "asc",
|
|
255
255
|
* page: 1,
|
|
256
256
|
* page_size: 1,
|
|
257
|
+
* filter_chrt_ground_provider_rates_ids: ["filter_chrt_ground_provider_rates_ids"],
|
|
257
258
|
* filter_service_line: ["on_demand"],
|
|
258
259
|
* filter_invoice_types: ["accounts_receivable"],
|
|
259
260
|
* filter_currency_codes: ["USD"],
|
|
@@ -275,7 +276,7 @@ class ChrtGroundProviderRates {
|
|
|
275
276
|
__listV1() {
|
|
276
277
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
277
278
|
var _a, _b, _c, _d, _e, _f;
|
|
278
|
-
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_service_line: filterServiceLine, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_shipper_account_id: filterShipperAccountId, filter_counterparty_driver_id: filterCounterpartyDriverId, filter_cargo_types: filterCargoTypes, filter_vehicle_types: filterVehicleTypes, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_updated_at_timestamp_gte: filterUpdatedAtTimestampGte, filter_updated_at_timestamp_lte: filterUpdatedAtTimestampLte, } = request;
|
|
279
|
+
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_chrt_ground_provider_rates_ids: filterChrtGroundProviderRatesIds, filter_service_line: filterServiceLine, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_shipper_account_id: filterShipperAccountId, filter_counterparty_driver_id: filterCounterpartyDriverId, filter_cargo_types: filterCargoTypes, filter_vehicle_types: filterVehicleTypes, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_updated_at_timestamp_gte: filterUpdatedAtTimestampGte, filter_updated_at_timestamp_lte: filterUpdatedAtTimestampLte, } = request;
|
|
279
280
|
const _queryParams = {};
|
|
280
281
|
if (search !== undefined) {
|
|
281
282
|
_queryParams["search"] = search;
|
|
@@ -292,6 +293,14 @@ class ChrtGroundProviderRates {
|
|
|
292
293
|
if (pageSize !== undefined) {
|
|
293
294
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
294
295
|
}
|
|
296
|
+
if (filterChrtGroundProviderRatesIds !== undefined) {
|
|
297
|
+
if (Array.isArray(filterChrtGroundProviderRatesIds)) {
|
|
298
|
+
_queryParams["filter_chrt_ground_provider_rates_ids"] = filterChrtGroundProviderRatesIds.map((item) => item);
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
_queryParams["filter_chrt_ground_provider_rates_ids"] = filterChrtGroundProviderRatesIds;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
295
304
|
if (filterServiceLine !== undefined) {
|
|
296
305
|
if (Array.isArray(filterServiceLine)) {
|
|
297
306
|
_queryParams["filter_service_line"] = filterServiceLine.map((item) => item);
|
|
@@ -465,6 +474,77 @@ class ChrtGroundProviderRates {
|
|
|
465
474
|
}
|
|
466
475
|
});
|
|
467
476
|
}
|
|
477
|
+
/**
|
|
478
|
+
* Returns matching name values and their IDs within the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[ChrtGroundProviderRatesTypeaheadResult])
|
|
479
|
+
*
|
|
480
|
+
* @param {Chrt.billingNew.ChrtGroundProviderRatesTypeaheadV1Request} request
|
|
481
|
+
* @param {ChrtGroundProviderRates.RequestOptions} requestOptions - Request-specific configuration.
|
|
482
|
+
*
|
|
483
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
484
|
+
*
|
|
485
|
+
* @example
|
|
486
|
+
* await client.billingNew.chrtGroundProviderRates.typeaheadV1({
|
|
487
|
+
* query: "query",
|
|
488
|
+
* limit: 1
|
|
489
|
+
* })
|
|
490
|
+
*/
|
|
491
|
+
typeaheadV1(request, requestOptions) {
|
|
492
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
493
|
+
}
|
|
494
|
+
__typeaheadV1(request, requestOptions) {
|
|
495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
496
|
+
var _a, _b, _c, _d, _e;
|
|
497
|
+
const { query, limit } = request;
|
|
498
|
+
const _queryParams = {};
|
|
499
|
+
_queryParams["query"] = query;
|
|
500
|
+
if (limit !== undefined) {
|
|
501
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
502
|
+
}
|
|
503
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
504
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
505
|
+
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, "billing_new/chrt_ground_provider_rates/typeahead/v1"),
|
|
506
|
+
method: "GET",
|
|
507
|
+
headers: _headers,
|
|
508
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
509
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
510
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
511
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
512
|
+
});
|
|
513
|
+
if (_response.ok) {
|
|
514
|
+
return {
|
|
515
|
+
data: _response.body,
|
|
516
|
+
rawResponse: _response.rawResponse,
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
if (_response.error.reason === "status-code") {
|
|
520
|
+
switch (_response.error.statusCode) {
|
|
521
|
+
case 422:
|
|
522
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
523
|
+
default:
|
|
524
|
+
throw new errors.ChrtError({
|
|
525
|
+
statusCode: _response.error.statusCode,
|
|
526
|
+
body: _response.error.body,
|
|
527
|
+
rawResponse: _response.rawResponse,
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
switch (_response.error.reason) {
|
|
532
|
+
case "non-json":
|
|
533
|
+
throw new errors.ChrtError({
|
|
534
|
+
statusCode: _response.error.statusCode,
|
|
535
|
+
body: _response.error.rawBody,
|
|
536
|
+
rawResponse: _response.rawResponse,
|
|
537
|
+
});
|
|
538
|
+
case "timeout":
|
|
539
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing_new/chrt_ground_provider_rates/typeahead/v1.");
|
|
540
|
+
case "unknown":
|
|
541
|
+
throw new errors.ChrtError({
|
|
542
|
+
message: _response.error.errorMessage,
|
|
543
|
+
rawResponse: _response.rawResponse,
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
}
|
|
468
548
|
/**
|
|
469
549
|
* Updates owner-scoped ground-provider rates and advances the server-managed update timestamp. | authz: allowed_org_types=[provider], min_org_role=operator | (ChrtGroundProviderRatesClientUpdate1) -> (bool)
|
|
470
550
|
*
|
|
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
10
10
|
* sort_order: "asc",
|
|
11
11
|
* page: 1,
|
|
12
12
|
* page_size: 1,
|
|
13
|
+
* filter_chrt_ground_provider_rates_ids: ["filter_chrt_ground_provider_rates_ids"],
|
|
13
14
|
* filter_service_line: ["on_demand"],
|
|
14
15
|
* filter_invoice_types: ["accounts_receivable"],
|
|
15
16
|
* filter_currency_codes: ["USD"],
|
|
@@ -34,6 +35,8 @@ export interface ChrtGroundProviderRatesListV1Request {
|
|
|
34
35
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
35
36
|
page?: number | null;
|
|
36
37
|
page_size?: number | null;
|
|
38
|
+
/** Filter by CHRT ground provider rate IDs */
|
|
39
|
+
filter_chrt_ground_provider_rates_ids?: (string | null) | (string | null)[];
|
|
37
40
|
/** Filter by one or more service lines. */
|
|
38
41
|
filter_service_line?: (Chrt.ServiceLineEnum | null) | (Chrt.ServiceLineEnum | null)[];
|
|
39
42
|
/** Filter by one or more invoice types. */
|
|
@@ -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 ChrtGroundProviderRatesTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { type ChrtGroundProviderRatesClientCreate1 } from "./ChrtGroundProviderRatesClientCreate1.js";
|
|
2
2
|
export { type ChrtGroundProviderRatesListV1Request } from "./ChrtGroundProviderRatesListV1Request.js";
|
|
3
3
|
export { type ResolveChrtGroundProviderRatesReq } from "./ResolveChrtGroundProviderRatesReq.js";
|
|
4
|
+
export { type ChrtGroundProviderRatesTypeaheadV1Request } from "./ChrtGroundProviderRatesTypeaheadV1Request.js";
|
|
4
5
|
export { type ChrtGroundProviderRatesClientUpdate1 } from "./ChrtGroundProviderRatesClientUpdate1.js";
|
|
@@ -232,21 +232,41 @@ export declare class InvoiceLineItems {
|
|
|
232
232
|
listV1(request?: Chrt.billingNew.InvoiceLineItemsListV1Request, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemListRes>;
|
|
233
233
|
private __listV1;
|
|
234
234
|
/**
|
|
235
|
-
*
|
|
235
|
+
* Restores each selected order's converted charges for one direction, counterparty, and source currency to their original amounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionRevertForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])
|
|
236
236
|
*
|
|
237
|
-
* @param {Chrt.billingNew.
|
|
237
|
+
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionRevertForOrdersReq} request
|
|
238
238
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
239
239
|
*
|
|
240
240
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
241
241
|
*
|
|
242
242
|
* @example
|
|
243
|
-
* await client.billingNew.invoiceLineItems.
|
|
243
|
+
* await client.billingNew.invoiceLineItems.revertCurrencyConversionForOrdersV1({
|
|
244
|
+
* invoice_type: "accounts_receivable",
|
|
244
245
|
* order_ids: ["order_ids"],
|
|
246
|
+
* source_currency_code: "USD"
|
|
247
|
+
* })
|
|
248
|
+
*/
|
|
249
|
+
revertCurrencyConversionForOrdersV1(request: Chrt.billingNew.InvoiceLineItemsCurrencyConversionRevertForOrdersReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsCurrencyConversionForOrdersRes[]>;
|
|
250
|
+
private __revertCurrencyConversionForOrdersV1;
|
|
251
|
+
/**
|
|
252
|
+
* Converts each selected order's charges for one direction, counterparty, and source currency at one rate. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])
|
|
253
|
+
*
|
|
254
|
+
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateForOrdersReq} request
|
|
255
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
256
|
+
*
|
|
257
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* await client.billingNew.invoiceLineItems.updateCurrencyConversionForOrdersV1({
|
|
261
|
+
* conversion_rate: 1.1,
|
|
262
|
+
* invoice_type: "accounts_receivable",
|
|
263
|
+
* order_ids: ["order_ids"],
|
|
264
|
+
* source_currency_code: "USD",
|
|
245
265
|
* target_currency_code: "USD"
|
|
246
266
|
* })
|
|
247
267
|
*/
|
|
248
|
-
|
|
249
|
-
private
|
|
268
|
+
updateCurrencyConversionForOrdersV1(request: Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateForOrdersReq, requestOptions?: InvoiceLineItems.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceLineItemsCurrencyConversionForOrdersRes[]>;
|
|
269
|
+
private __updateCurrencyConversionForOrdersV1;
|
|
250
270
|
/**
|
|
251
271
|
* Converts uninvoiced charges or updates exchange rates within their draft invoice currency. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateManyReq) -> (list[InvoiceLineItem1])
|
|
252
272
|
*
|
|
@@ -851,28 +851,100 @@ class InvoiceLineItems {
|
|
|
851
851
|
});
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
|
-
*
|
|
854
|
+
* Restores each selected order's converted charges for one direction, counterparty, and source currency to their original amounts. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionRevertForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])
|
|
855
855
|
*
|
|
856
|
-
* @param {Chrt.billingNew.
|
|
856
|
+
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionRevertForOrdersReq} request
|
|
857
857
|
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
858
858
|
*
|
|
859
859
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
860
860
|
*
|
|
861
861
|
* @example
|
|
862
|
-
* await client.billingNew.invoiceLineItems.
|
|
862
|
+
* await client.billingNew.invoiceLineItems.revertCurrencyConversionForOrdersV1({
|
|
863
|
+
* invoice_type: "accounts_receivable",
|
|
863
864
|
* order_ids: ["order_ids"],
|
|
865
|
+
* source_currency_code: "USD"
|
|
866
|
+
* })
|
|
867
|
+
*/
|
|
868
|
+
revertCurrencyConversionForOrdersV1(request, requestOptions) {
|
|
869
|
+
return core.HttpResponsePromise.fromPromise(this.__revertCurrencyConversionForOrdersV1(request, requestOptions));
|
|
870
|
+
}
|
|
871
|
+
__revertCurrencyConversionForOrdersV1(request, requestOptions) {
|
|
872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
873
|
+
var _a, _b, _c, _d;
|
|
874
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
875
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
876
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/revert_currency_conversion_for_orders/v1"),
|
|
877
|
+
method: "PATCH",
|
|
878
|
+
headers: _headers,
|
|
879
|
+
contentType: "application/json",
|
|
880
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
881
|
+
requestType: "json",
|
|
882
|
+
body: request,
|
|
883
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
884
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
885
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
886
|
+
});
|
|
887
|
+
if (_response.ok) {
|
|
888
|
+
return {
|
|
889
|
+
data: _response.body,
|
|
890
|
+
rawResponse: _response.rawResponse,
|
|
891
|
+
};
|
|
892
|
+
}
|
|
893
|
+
if (_response.error.reason === "status-code") {
|
|
894
|
+
switch (_response.error.statusCode) {
|
|
895
|
+
case 422:
|
|
896
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
897
|
+
default:
|
|
898
|
+
throw new errors.ChrtError({
|
|
899
|
+
statusCode: _response.error.statusCode,
|
|
900
|
+
body: _response.error.body,
|
|
901
|
+
rawResponse: _response.rawResponse,
|
|
902
|
+
});
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
switch (_response.error.reason) {
|
|
906
|
+
case "non-json":
|
|
907
|
+
throw new errors.ChrtError({
|
|
908
|
+
statusCode: _response.error.statusCode,
|
|
909
|
+
body: _response.error.rawBody,
|
|
910
|
+
rawResponse: _response.rawResponse,
|
|
911
|
+
});
|
|
912
|
+
case "timeout":
|
|
913
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/revert_currency_conversion_for_orders/v1.");
|
|
914
|
+
case "unknown":
|
|
915
|
+
throw new errors.ChrtError({
|
|
916
|
+
message: _response.error.errorMessage,
|
|
917
|
+
rawResponse: _response.rawResponse,
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* Converts each selected order's charges for one direction, counterparty, and source currency at one rate. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceLineItemsCurrencyConversionUpdateForOrdersReq) -> (list[InvoiceLineItemsCurrencyConversionForOrdersRes])
|
|
924
|
+
*
|
|
925
|
+
* @param {Chrt.billingNew.InvoiceLineItemsCurrencyConversionUpdateForOrdersReq} request
|
|
926
|
+
* @param {InvoiceLineItems.RequestOptions} requestOptions - Request-specific configuration.
|
|
927
|
+
*
|
|
928
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
929
|
+
*
|
|
930
|
+
* @example
|
|
931
|
+
* await client.billingNew.invoiceLineItems.updateCurrencyConversionForOrdersV1({
|
|
932
|
+
* conversion_rate: 1.1,
|
|
933
|
+
* invoice_type: "accounts_receivable",
|
|
934
|
+
* order_ids: ["order_ids"],
|
|
935
|
+
* source_currency_code: "USD",
|
|
864
936
|
* target_currency_code: "USD"
|
|
865
937
|
* })
|
|
866
938
|
*/
|
|
867
|
-
|
|
868
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
939
|
+
updateCurrencyConversionForOrdersV1(request, requestOptions) {
|
|
940
|
+
return core.HttpResponsePromise.fromPromise(this.__updateCurrencyConversionForOrdersV1(request, requestOptions));
|
|
869
941
|
}
|
|
870
|
-
|
|
942
|
+
__updateCurrencyConversionForOrdersV1(request, requestOptions) {
|
|
871
943
|
return __awaiter(this, void 0, void 0, function* () {
|
|
872
944
|
var _a, _b, _c, _d;
|
|
873
945
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
874
946
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
875
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/
|
|
947
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "billing_new/invoice_line_items/update_currency_conversion_for_orders/v1"),
|
|
876
948
|
method: "PATCH",
|
|
877
949
|
headers: _headers,
|
|
878
950
|
contentType: "application/json",
|
|
@@ -909,7 +981,7 @@ class InvoiceLineItems {
|
|
|
909
981
|
rawResponse: _response.rawResponse,
|
|
910
982
|
});
|
|
911
983
|
case "timeout":
|
|
912
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/
|
|
984
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /billing_new/invoice_line_items/update_currency_conversion_for_orders/v1.");
|
|
913
985
|
case "unknown":
|
|
914
986
|
throw new errors.ChrtError({
|
|
915
987
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* invoice_type: "accounts_receivable",
|
|
9
|
+
* order_ids: ["order_ids"],
|
|
10
|
+
* source_currency_code: "USD"
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface InvoiceLineItemsCurrencyConversionRevertForOrdersReq {
|
|
14
|
+
counterparty_driver_id?: string | null;
|
|
15
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
16
|
+
/** Must be a string starting with `org_` */
|
|
17
|
+
counterparty_org_id?: string | null;
|
|
18
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
19
|
+
order_ids: string[];
|
|
20
|
+
/** Original currency of the charges to act on -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. */
|
|
21
|
+
source_currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Chrt from "../../../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* conversion_rate: 1.1,
|
|
9
|
+
* invoice_type: "accounts_receivable",
|
|
10
|
+
* order_ids: ["order_ids"],
|
|
11
|
+
* source_currency_code: "USD",
|
|
12
|
+
* target_currency_code: "USD"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface InvoiceLineItemsCurrencyConversionUpdateForOrdersReq {
|
|
16
|
+
/** Units of target_currency_code per one unit of source_currency_code. */
|
|
17
|
+
conversion_rate: number;
|
|
18
|
+
counterparty_driver_id?: string | null;
|
|
19
|
+
counterparty_off_chrt_org_data_id?: string | null;
|
|
20
|
+
/** Must be a string starting with `org_` */
|
|
21
|
+
counterparty_org_id?: string | null;
|
|
22
|
+
description?: string | null;
|
|
23
|
+
invoice_type: Chrt.InvoiceTypeEnum1;
|
|
24
|
+
order_ids: string[];
|
|
25
|
+
/** Original currency of the charges to act on -- their currency_conversion.source_currency_code if already converted, otherwise their current currency_code. */
|
|
26
|
+
source_currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
27
|
+
target_currency_code: Chrt.BillingCurrencyCodeEnum1;
|
|
28
|
+
}
|
package/dist/cjs/api/resources/billingNew/resources/invoiceLineItems/client/requests/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { type CreateInvoiceLineItemsFromAwbCostsReq } from "./CreateInvoiceLineI
|
|
|
3
3
|
export { type InvoiceLineItemsDeleteManyReq } from "./InvoiceLineItemsDeleteManyReq.js";
|
|
4
4
|
export { type InvoiceLineItemExportListReq } from "./InvoiceLineItemExportListReq.js";
|
|
5
5
|
export { type InvoiceLineItemsListV1Request } from "./InvoiceLineItemsListV1Request.js";
|
|
6
|
-
export { type
|
|
6
|
+
export { type InvoiceLineItemsCurrencyConversionRevertForOrdersReq } from "./InvoiceLineItemsCurrencyConversionRevertForOrdersReq.js";
|
|
7
|
+
export { type InvoiceLineItemsCurrencyConversionUpdateForOrdersReq } from "./InvoiceLineItemsCurrencyConversionUpdateForOrdersReq.js";
|
|
7
8
|
export { type InvoiceLineItemsCurrencyConversionUpdateManyReq } from "./InvoiceLineItemsCurrencyConversionUpdateManyReq.js";
|
|
8
9
|
export { type InvoiceLineItemClientUpdate1 } from "./InvoiceLineItemClientUpdate1.js";
|
|
@@ -151,6 +151,7 @@ export declare class Invoices {
|
|
|
151
151
|
* sort_order: "asc",
|
|
152
152
|
* page: 1,
|
|
153
153
|
* page_size: 1,
|
|
154
|
+
* filter_invoice_ids: ["filter_invoice_ids"],
|
|
154
155
|
* filter_statuses: ["draft"],
|
|
155
156
|
* filter_invoice_types: ["accounts_receivable"],
|
|
156
157
|
* filter_currency_codes: ["USD"],
|
|
@@ -201,6 +202,22 @@ export declare class Invoices {
|
|
|
201
202
|
*/
|
|
202
203
|
previewFromOrdersV1(request: Chrt.InvoiceCreateFromOrdersReq, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoicePreviewFromOrdersRes>;
|
|
203
204
|
private __previewFromOrdersV1;
|
|
205
|
+
/**
|
|
206
|
+
* Returns matching name values and their IDs within the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[InvoiceTypeaheadResult])
|
|
207
|
+
*
|
|
208
|
+
* @param {Chrt.billingNew.InvoicesTypeaheadV1Request} request
|
|
209
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
210
|
+
*
|
|
211
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* await client.billingNew.invoices.typeaheadV1({
|
|
215
|
+
* query: "query",
|
|
216
|
+
* limit: 1
|
|
217
|
+
* })
|
|
218
|
+
*/
|
|
219
|
+
typeaheadV1(request: Chrt.billingNew.InvoicesTypeaheadV1Request, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Chrt.InvoiceTypeaheadResult[]>;
|
|
220
|
+
private __typeaheadV1;
|
|
204
221
|
/**
|
|
205
222
|
* Updates the name or description of a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientUpdate1) -> (bool)
|
|
206
223
|
*
|
|
@@ -510,6 +510,7 @@ class Invoices {
|
|
|
510
510
|
* sort_order: "asc",
|
|
511
511
|
* page: 1,
|
|
512
512
|
* page_size: 1,
|
|
513
|
+
* filter_invoice_ids: ["filter_invoice_ids"],
|
|
513
514
|
* filter_statuses: ["draft"],
|
|
514
515
|
* filter_invoice_types: ["accounts_receivable"],
|
|
515
516
|
* filter_currency_codes: ["USD"],
|
|
@@ -529,7 +530,7 @@ class Invoices {
|
|
|
529
530
|
__listV1() {
|
|
530
531
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
531
532
|
var _a, _b, _c, _d, _e, _f;
|
|
532
|
-
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_statuses: filterStatuses, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_counterparty_driver_id: filterCounterpartyDriverId, filter_counterparty_account_id: filterCounterpartyAccountId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, } = request;
|
|
533
|
+
const { search, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, filter_invoice_ids: filterInvoiceIds, filter_statuses: filterStatuses, filter_invoice_types: filterInvoiceTypes, filter_currency_codes: filterCurrencyCodes, filter_counterparty_org_id: filterCounterpartyOrgId, filter_counterparty_off_chrt_org_data_id: filterCounterpartyOffChrtOrgDataId, filter_counterparty_driver_id: filterCounterpartyDriverId, filter_counterparty_account_id: filterCounterpartyAccountId, filter_created_at_timestamp_gte: filterCreatedAtTimestampGte, filter_created_at_timestamp_lte: filterCreatedAtTimestampLte, filter_last_edited_at_timestamp_gte: filterLastEditedAtTimestampGte, filter_last_edited_at_timestamp_lte: filterLastEditedAtTimestampLte, } = request;
|
|
533
534
|
const _queryParams = {};
|
|
534
535
|
if (search !== undefined) {
|
|
535
536
|
_queryParams["search"] = search;
|
|
@@ -546,6 +547,14 @@ class Invoices {
|
|
|
546
547
|
if (pageSize !== undefined) {
|
|
547
548
|
_queryParams["page_size"] = (_b = pageSize === null || pageSize === void 0 ? void 0 : pageSize.toString()) !== null && _b !== void 0 ? _b : null;
|
|
548
549
|
}
|
|
550
|
+
if (filterInvoiceIds !== undefined) {
|
|
551
|
+
if (Array.isArray(filterInvoiceIds)) {
|
|
552
|
+
_queryParams["filter_invoice_ids"] = filterInvoiceIds.map((item) => item);
|
|
553
|
+
}
|
|
554
|
+
else {
|
|
555
|
+
_queryParams["filter_invoice_ids"] = filterInvoiceIds;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
549
558
|
if (filterStatuses !== undefined) {
|
|
550
559
|
if (Array.isArray(filterStatuses)) {
|
|
551
560
|
_queryParams["filter_statuses"] = filterStatuses.map((item) => item);
|
|
@@ -769,6 +778,74 @@ class Invoices {
|
|
|
769
778
|
}
|
|
770
779
|
});
|
|
771
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* Returns matching name values and their IDs within the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | () -> (list[InvoiceTypeaheadResult])
|
|
783
|
+
*
|
|
784
|
+
* @param {Chrt.billingNew.InvoicesTypeaheadV1Request} request
|
|
785
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
786
|
+
*
|
|
787
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
788
|
+
*
|
|
789
|
+
* @example
|
|
790
|
+
* await client.billingNew.invoices.typeaheadV1({
|
|
791
|
+
* query: "query",
|
|
792
|
+
* limit: 1
|
|
793
|
+
* })
|
|
794
|
+
*/
|
|
795
|
+
typeaheadV1(request, requestOptions) {
|
|
796
|
+
return core.HttpResponsePromise.fromPromise(this.__typeaheadV1(request, requestOptions));
|
|
797
|
+
}
|
|
798
|
+
__typeaheadV1(request, requestOptions) {
|
|
799
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
+
var _a, _b, _c, _d, _e;
|
|
801
|
+
const { query, limit } = request;
|
|
802
|
+
const _queryParams = {};
|
|
803
|
+
_queryParams["query"] = query;
|
|
804
|
+
if (limit !== undefined) {
|
|
805
|
+
_queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
|
|
806
|
+
}
|
|
807
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
808
|
+
const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
|
|
809
|
+
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, "billing_new/invoices/typeahead/v1"),
|
|
810
|
+
method: "GET",
|
|
811
|
+
headers: _headers,
|
|
812
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
813
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
814
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
815
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
816
|
+
});
|
|
817
|
+
if (_response.ok) {
|
|
818
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
819
|
+
}
|
|
820
|
+
if (_response.error.reason === "status-code") {
|
|
821
|
+
switch (_response.error.statusCode) {
|
|
822
|
+
case 422:
|
|
823
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
824
|
+
default:
|
|
825
|
+
throw new errors.ChrtError({
|
|
826
|
+
statusCode: _response.error.statusCode,
|
|
827
|
+
body: _response.error.body,
|
|
828
|
+
rawResponse: _response.rawResponse,
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
switch (_response.error.reason) {
|
|
833
|
+
case "non-json":
|
|
834
|
+
throw new errors.ChrtError({
|
|
835
|
+
statusCode: _response.error.statusCode,
|
|
836
|
+
body: _response.error.rawBody,
|
|
837
|
+
rawResponse: _response.rawResponse,
|
|
838
|
+
});
|
|
839
|
+
case "timeout":
|
|
840
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /billing_new/invoices/typeahead/v1.");
|
|
841
|
+
case "unknown":
|
|
842
|
+
throw new errors.ChrtError({
|
|
843
|
+
message: _response.error.errorMessage,
|
|
844
|
+
rawResponse: _response.rawResponse,
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
}
|
|
772
849
|
/**
|
|
773
850
|
* Updates the name or description of a draft invoice owned by the caller's organization. | authz: allowed_org_types=[provider], min_org_role=operator | (InvoiceClientUpdate1) -> (bool)
|
|
774
851
|
*
|
|
@@ -10,6 +10,7 @@ import * as Chrt from "../../../../../../index.js";
|
|
|
10
10
|
* sort_order: "asc",
|
|
11
11
|
* page: 1,
|
|
12
12
|
* page_size: 1,
|
|
13
|
+
* filter_invoice_ids: ["filter_invoice_ids"],
|
|
13
14
|
* filter_statuses: ["draft"],
|
|
14
15
|
* filter_invoice_types: ["accounts_receivable"],
|
|
15
16
|
* filter_currency_codes: ["USD"],
|
|
@@ -32,6 +33,8 @@ export interface InvoicesListV1Request {
|
|
|
32
33
|
sort_order?: Chrt.SortOrderEnum | null;
|
|
33
34
|
page?: number | null;
|
|
34
35
|
page_size?: number | null;
|
|
36
|
+
/** Filter by selected invoice ids */
|
|
37
|
+
filter_invoice_ids?: (string | null) | (string | null)[];
|
|
35
38
|
/** Filter by one or more invoice statuses. */
|
|
36
39
|
filter_statuses?: (Chrt.InvoiceStatusEnum1 | null) | (Chrt.InvoiceStatusEnum1 | null)[];
|
|
37
40
|
/** Filter by one or more invoice types. */
|
|
@@ -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 InvoicesTypeaheadV1Request {
|
|
12
|
+
/** Typeahead search query */
|
|
13
|
+
query: string;
|
|
14
|
+
/** Max results per field */
|
|
15
|
+
limit?: number | null;
|
|
16
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { type InvoiceLineItemsAddReq } from "./InvoiceLineItemsAddReq.js";
|
|
2
2
|
export { type InvoiceLineItemsRemoveReq } from "./InvoiceLineItemsRemoveReq.js";
|
|
3
3
|
export { type InvoicesListV1Request } from "./InvoicesListV1Request.js";
|
|
4
|
+
export { type InvoicesTypeaheadV1Request } from "./InvoicesTypeaheadV1Request.js";
|
|
4
5
|
export { type InvoiceClientUpdate1 } from "./InvoiceClientUpdate1.js";
|
|
5
6
|
export { type InvoicePeriodUpdateReq } from "./InvoicePeriodUpdateReq.js";
|
|
6
7
|
export { type InvoiceVoidReq } from "./InvoiceVoidReq.js";
|