@chrt-inc/typescript-sdk 1.363.0 → 1.363.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +6 -6
- package/dist/cjs/Client.js +36 -36
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/directoryEntries/client/Client.d.ts +99 -0
- package/dist/cjs/api/resources/directoryEntries/client/Client.js +364 -0
- package/dist/cjs/api/{types/ShipperContactClientCreate1.d.ts → resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts} +11 -7
- package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.d.ts → directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts} +2 -2
- package/dist/cjs/api/resources/directoryEntries/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/drivers/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/index.d.ts +3 -4
- package/dist/cjs/api/resources/index.js +4 -5
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +12 -41
- package/dist/cjs/api/resources/notifications/client/Client.js +16 -169
- package/dist/cjs/api/resources/notifications/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/notifications/client/index.js +0 -15
- package/dist/cjs/api/resources/notifications/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/index.js +1 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +77 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +252 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/index.js +17 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.ts +18 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/index.js +17 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +209 -0
- package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/client/Client.js +305 -118
- package/dist/cjs/api/resources/notifications/resources/groups/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/index.js +17 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.d.ts +12 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/notifications/resources/groups/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/groups/index.js +17 -0
- package/dist/cjs/api/resources/notifications/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/notifications/resources/index.js +46 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +67 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.js +232 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/index.js +17 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.ts +15 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/userPreferences/index.js +17 -0
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.d.ts +74 -0
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.js +271 -0
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/index.js +2 -0
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/index.js +17 -0
- package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +13 -0
- package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +13 -0
- package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.js +5 -0
- package/dist/cjs/api/types/{ShipperContact1.d.ts → DirectoryEntry1.d.ts} +4 -6
- package/dist/cjs/api/types/DirectoryEntry1.js +5 -0
- package/dist/cjs/api/types/{Driver1.d.ts → Driver1Input.d.ts} +1 -1
- package/dist/cjs/api/types/Driver1Input.js +5 -0
- package/dist/cjs/api/types/Driver1Output.d.ts +27 -0
- package/dist/cjs/api/types/Driver1Output.js +5 -0
- package/dist/cjs/api/types/NotificationChannelsEnum.d.ts +12 -0
- package/dist/cjs/api/types/NotificationChannelsEnum.js +11 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +14 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +10 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +29 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +26 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +20 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +15 -0
- package/dist/cjs/api/types/NotificationGroup1.d.ts +18 -0
- package/dist/cjs/api/types/NotificationGroup1.js +5 -0
- package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +23 -0
- package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.js +5 -0
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +18 -0
- package/dist/cjs/api/types/NotificationIntentAdHoc1.js +5 -0
- package/dist/cjs/api/types/NotificationUserPreferences1.d.ts +15 -0
- package/dist/cjs/api/types/NotificationUserPreferences1.js +5 -0
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +1 -1
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +2 -0
- package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +16 -0
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +13 -0
- package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.ts +14 -0
- package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +15 -0
- package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.js +5 -0
- package/dist/cjs/api/types/Statement1.d.ts +1 -1
- package/dist/cjs/api/types/{Task1.d.ts → Task1Input.d.ts} +4 -8
- package/dist/cjs/api/types/Task1Input.js +5 -0
- package/dist/cjs/api/types/Task1Output.d.ts +36 -0
- package/dist/cjs/api/types/Task1Output.js +5 -0
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
- package/dist/cjs/api/types/UserPublicData1.d.ts +0 -1
- package/dist/cjs/api/types/WebhookAppPortalAccessRes.d.ts +10 -0
- package/dist/cjs/api/types/WebhookAppPortalAccessRes.js +5 -0
- package/dist/cjs/api/types/index.d.ts +32 -6
- package/dist/cjs/api/types/index.js +32 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +6 -6
- package/dist/esm/Client.mjs +10 -10
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/directoryEntries/client/Client.d.mts +99 -0
- package/dist/esm/api/resources/directoryEntries/client/Client.mjs +327 -0
- package/dist/esm/api/{types/ShipperContactClientCreate1.d.mts → resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts} +11 -7
- package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.d.mts → directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts} +2 -2
- package/dist/esm/api/resources/directoryEntries/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/drivers/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/index.d.mts +3 -4
- package/dist/esm/api/resources/index.mjs +3 -4
- package/dist/esm/api/resources/notifications/client/Client.d.mts +12 -41
- package/dist/esm/api/resources/notifications/client/Client.mjs +16 -136
- package/dist/esm/api/resources/notifications/client/index.d.mts +0 -1
- package/dist/esm/api/resources/notifications/client/index.mjs +1 -1
- package/dist/esm/api/resources/notifications/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +77 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +215 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.mts +18 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +209 -0
- package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/groups}/client/Client.mjs +303 -116
- package/dist/esm/api/resources/notifications/resources/groups/client/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.d.mts +12 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/groups/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/groups/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/notifications/resources/index.mjs +7 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +67 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.mjs +195 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/index.d.mts +2 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.mts +15 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/userPreferences/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.d.mts +74 -0
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.mjs +234 -0
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/index.mjs +1 -0
- package/dist/esm/api/resources/notifications/resources/webhookSetup/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/webhookSetup/index.mjs +1 -0
- package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +13 -0
- package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +13 -0
- package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/{ShipperContact1.d.mts → DirectoryEntry1.d.mts} +4 -6
- package/dist/esm/api/types/DirectoryEntry1.mjs +4 -0
- package/dist/esm/api/types/{Driver1.d.mts → Driver1Input.d.mts} +1 -1
- package/dist/esm/api/types/Driver1Input.mjs +4 -0
- package/dist/esm/api/types/Driver1Output.d.mts +27 -0
- package/dist/esm/api/types/Driver1Output.mjs +4 -0
- package/dist/esm/api/types/NotificationChannelsEnum.d.mts +12 -0
- package/dist/esm/api/types/NotificationChannelsEnum.mjs +8 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +14 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +7 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +29 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +23 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +20 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +12 -0
- package/dist/esm/api/types/NotificationGroup1.d.mts +18 -0
- package/dist/esm/api/types/NotificationGroup1.mjs +4 -0
- package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +23 -0
- package/dist/esm/api/types/NotificationGroupLimitedForDriver1.mjs +4 -0
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +18 -0
- package/dist/esm/api/types/NotificationIntentAdHoc1.mjs +4 -0
- package/dist/esm/api/types/NotificationUserPreferences1.d.mts +15 -0
- package/dist/esm/api/types/NotificationUserPreferences1.mjs +4 -0
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +1 -1
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPrivateData1.d.mts +2 -0
- package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +16 -0
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +13 -0
- package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.mts +14 -0
- package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +15 -0
- package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/Statement1.d.mts +1 -1
- package/dist/esm/api/types/{Task1.d.mts → Task1Input.d.mts} +4 -8
- package/dist/esm/api/types/Task1Input.mjs +4 -0
- package/dist/esm/api/types/Task1Output.d.mts +36 -0
- package/dist/esm/api/types/Task1Output.mjs +4 -0
- package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +1 -1
- package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
- package/dist/esm/api/types/UserPublicData1.d.mts +0 -1
- package/dist/esm/api/types/WebhookAppPortalAccessRes.d.mts +10 -0
- package/dist/esm/api/types/WebhookAppPortalAccessRes.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +32 -6
- package/dist/esm/api/types/index.mjs +32 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1786 -754
- package/dist/cjs/api/resources/notifications/client/requests/NotificationReq.d.ts +0 -17
- package/dist/cjs/api/resources/notifications/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipperContactInfo/client/Client.d.ts +0 -163
- package/dist/cjs/api/resources/shipperContactInfo/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/ChrtEmailRecipient.d.ts +0 -10
- package/dist/cjs/api/types/ChrtEmailRecipient.js +0 -12
- package/dist/cjs/api/types/NotificationRes.d.ts +0 -10
- package/dist/esm/api/resources/notifications/client/requests/NotificationReq.d.mts +0 -17
- package/dist/esm/api/resources/notifications/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/shipperContactInfo/client/Client.d.mts +0 -163
- package/dist/esm/api/resources/shipperContactInfo/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/ChrtEmailRecipient.d.mts +0 -10
- package/dist/esm/api/types/ChrtEmailRecipient.mjs +0 -9
- package/dist/esm/api/types/NotificationRes.d.mts +0 -10
- /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notifications/client/requests/NotificationReq.js → directoryEntries/client/requests/DirectoryEntryClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.js → directoryEntries/client/requests/DirectoryEntryClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{notifications → directoryEntries}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → directoryEntries}/index.js +0 -0
- /package/dist/cjs/api/{types/Driver1.js → resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/adHoc}/client/requests/index.js +0 -0
- /package/dist/cjs/api/{types/NotificationRes.js → resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.js} +0 -0
- /package/dist/cjs/api/{types/ShipperContact1.js → resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.js} +0 -0
- /package/dist/cjs/api/{types/ShipperContactClientCreate1.js → resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.js} +0 -0
- /package/dist/{esm/api/resources/notifications/client/requests/index.mjs → cjs/api/resources/notifications/resources/webhookSetup/client/index.d.ts} +0 -0
- /package/dist/cjs/api/types/{Task1.js → BillingLineItemGroupMessageWebhookPayload.js} +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notifications/client/requests/NotificationReq.mjs → directoryEntries/client/requests/DirectoryEntryClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.mjs → directoryEntries/client/requests/DirectoryEntryClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → directoryEntries}/index.mjs +0 -0
- /package/dist/esm/api/{types/Driver1.mjs → resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/NotificationRes.mjs → resources/notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/ShipperContact1.mjs → resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.mjs} +0 -0
- /package/dist/esm/api/{types/ShipperContactClientCreate1.mjs → resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.mjs} +0 -0
- /package/dist/esm/api/types/{Task1.mjs → BillingLineItemGroupMessageWebhookPayload.mjs} +0 -0
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.DirectoryEntries = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
50
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
51
|
+
const Chrt = __importStar(require("../../../index.js"));
|
|
52
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
53
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
54
|
+
class DirectoryEntries {
|
|
55
|
+
constructor(_options = {}) {
|
|
56
|
+
this._options = _options;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves a specific directory entry by ID if authorized to access it. | authz: min_org_role=operator | () -> (DirectoryEntry1)
|
|
60
|
+
*
|
|
61
|
+
* @param {string} directoryEntryId
|
|
62
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.directoryEntries.getV1("directory_entry_id")
|
|
68
|
+
*/
|
|
69
|
+
getV1(directoryEntryId, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(directoryEntryId, requestOptions));
|
|
71
|
+
}
|
|
72
|
+
__getV1(directoryEntryId, requestOptions) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
var _a, _b, _c, _d;
|
|
75
|
+
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);
|
|
76
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
77
|
+
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, `oort/directory_entries/v1/${encodeURIComponent(directoryEntryId)}`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
81
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
87
|
+
}
|
|
88
|
+
if (_response.error.reason === "status-code") {
|
|
89
|
+
switch (_response.error.statusCode) {
|
|
90
|
+
case 422:
|
|
91
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
+
default:
|
|
93
|
+
throw new errors.ChrtError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
body: _response.error.body,
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
switch (_response.error.reason) {
|
|
101
|
+
case "non-json":
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
statusCode: _response.error.statusCode,
|
|
104
|
+
body: _response.error.rawBody,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
case "timeout":
|
|
108
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/directory_entries/v1/{directory_entry_id}.");
|
|
109
|
+
case "unknown":
|
|
110
|
+
throw new errors.ChrtError({
|
|
111
|
+
message: _response.error.errorMessage,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Lists all directory entries created by the caller's organization. | authz: min_org_role=operator | () -> (list[DirectoryEntry1])
|
|
119
|
+
*
|
|
120
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* await client.directoryEntries.listV1()
|
|
124
|
+
*/
|
|
125
|
+
listV1(requestOptions) {
|
|
126
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
127
|
+
}
|
|
128
|
+
__listV1(requestOptions) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
var _a, _b, _c, _d;
|
|
131
|
+
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);
|
|
132
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
133
|
+
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, "oort/directory_entries/list/v1"),
|
|
134
|
+
method: "GET",
|
|
135
|
+
headers: _headers,
|
|
136
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
137
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
138
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
139
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
140
|
+
});
|
|
141
|
+
if (_response.ok) {
|
|
142
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
143
|
+
}
|
|
144
|
+
if (_response.error.reason === "status-code") {
|
|
145
|
+
throw new errors.ChrtError({
|
|
146
|
+
statusCode: _response.error.statusCode,
|
|
147
|
+
body: _response.error.body,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
switch (_response.error.reason) {
|
|
152
|
+
case "non-json":
|
|
153
|
+
throw new errors.ChrtError({
|
|
154
|
+
statusCode: _response.error.statusCode,
|
|
155
|
+
body: _response.error.rawBody,
|
|
156
|
+
rawResponse: _response.rawResponse,
|
|
157
|
+
});
|
|
158
|
+
case "timeout":
|
|
159
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/directory_entries/list/v1.");
|
|
160
|
+
case "unknown":
|
|
161
|
+
throw new errors.ChrtError({
|
|
162
|
+
message: _response.error.errorMessage,
|
|
163
|
+
rawResponse: _response.rawResponse,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Creates a directory entry. | (DirectoryEntryClientCreate1) -> (PydanticObjectId)
|
|
170
|
+
*
|
|
171
|
+
* @param {Chrt.DirectoryEntryClientCreate1} request
|
|
172
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
|
+
*
|
|
174
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* await client.directoryEntries.createV1({
|
|
178
|
+
* schema_version: 1
|
|
179
|
+
* })
|
|
180
|
+
*/
|
|
181
|
+
createV1(request, requestOptions) {
|
|
182
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
183
|
+
}
|
|
184
|
+
__createV1(request, requestOptions) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
var _a, _b, _c, _d;
|
|
187
|
+
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);
|
|
188
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
189
|
+
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, "oort/directory_entries/create/v1"),
|
|
190
|
+
method: "POST",
|
|
191
|
+
headers: _headers,
|
|
192
|
+
contentType: "application/json",
|
|
193
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
194
|
+
requestType: "json",
|
|
195
|
+
body: request,
|
|
196
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
197
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
198
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
199
|
+
});
|
|
200
|
+
if (_response.ok) {
|
|
201
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
202
|
+
}
|
|
203
|
+
if (_response.error.reason === "status-code") {
|
|
204
|
+
switch (_response.error.statusCode) {
|
|
205
|
+
case 422:
|
|
206
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
207
|
+
default:
|
|
208
|
+
throw new errors.ChrtError({
|
|
209
|
+
statusCode: _response.error.statusCode,
|
|
210
|
+
body: _response.error.body,
|
|
211
|
+
rawResponse: _response.rawResponse,
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
switch (_response.error.reason) {
|
|
216
|
+
case "non-json":
|
|
217
|
+
throw new errors.ChrtError({
|
|
218
|
+
statusCode: _response.error.statusCode,
|
|
219
|
+
body: _response.error.rawBody,
|
|
220
|
+
rawResponse: _response.rawResponse,
|
|
221
|
+
});
|
|
222
|
+
case "timeout":
|
|
223
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/directory_entries/create/v1.");
|
|
224
|
+
case "unknown":
|
|
225
|
+
throw new errors.ChrtError({
|
|
226
|
+
message: _response.error.errorMessage,
|
|
227
|
+
rawResponse: _response.rawResponse,
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Updates existing directory entry owned by the caller's organization. | (DirectoryEntryClientUpdate1) -> (bool)
|
|
234
|
+
*
|
|
235
|
+
* @param {string} directoryEntryId
|
|
236
|
+
* @param {Chrt.DirectoryEntryClientUpdate1} request
|
|
237
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
238
|
+
*
|
|
239
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
240
|
+
*
|
|
241
|
+
* @example
|
|
242
|
+
* await client.directoryEntries.updateV1("directory_entry_id")
|
|
243
|
+
*/
|
|
244
|
+
updateV1(directoryEntryId, request = {}, requestOptions) {
|
|
245
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(directoryEntryId, request, requestOptions));
|
|
246
|
+
}
|
|
247
|
+
__updateV1(directoryEntryId_1) {
|
|
248
|
+
return __awaiter(this, arguments, void 0, function* (directoryEntryId, request = {}, requestOptions) {
|
|
249
|
+
var _a, _b, _c, _d;
|
|
250
|
+
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);
|
|
251
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
252
|
+
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, `oort/directory_entries/update/v1/${encodeURIComponent(directoryEntryId)}`),
|
|
253
|
+
method: "PATCH",
|
|
254
|
+
headers: _headers,
|
|
255
|
+
contentType: "application/json",
|
|
256
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
257
|
+
requestType: "json",
|
|
258
|
+
body: request,
|
|
259
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
260
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
261
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
262
|
+
});
|
|
263
|
+
if (_response.ok) {
|
|
264
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
265
|
+
}
|
|
266
|
+
if (_response.error.reason === "status-code") {
|
|
267
|
+
switch (_response.error.statusCode) {
|
|
268
|
+
case 422:
|
|
269
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
270
|
+
default:
|
|
271
|
+
throw new errors.ChrtError({
|
|
272
|
+
statusCode: _response.error.statusCode,
|
|
273
|
+
body: _response.error.body,
|
|
274
|
+
rawResponse: _response.rawResponse,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
switch (_response.error.reason) {
|
|
279
|
+
case "non-json":
|
|
280
|
+
throw new errors.ChrtError({
|
|
281
|
+
statusCode: _response.error.statusCode,
|
|
282
|
+
body: _response.error.rawBody,
|
|
283
|
+
rawResponse: _response.rawResponse,
|
|
284
|
+
});
|
|
285
|
+
case "timeout":
|
|
286
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/directory_entries/update/v1/{directory_entry_id}.");
|
|
287
|
+
case "unknown":
|
|
288
|
+
throw new errors.ChrtError({
|
|
289
|
+
message: _response.error.errorMessage,
|
|
290
|
+
rawResponse: _response.rawResponse,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Deletes directory entry owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)
|
|
297
|
+
*
|
|
298
|
+
* @param {string} directoryEntryId
|
|
299
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
300
|
+
*
|
|
301
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
302
|
+
*
|
|
303
|
+
* @example
|
|
304
|
+
* await client.directoryEntries.deleteV1("directory_entry_id")
|
|
305
|
+
*/
|
|
306
|
+
deleteV1(directoryEntryId, requestOptions) {
|
|
307
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(directoryEntryId, requestOptions));
|
|
308
|
+
}
|
|
309
|
+
__deleteV1(directoryEntryId, requestOptions) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
var _a, _b, _c, _d;
|
|
312
|
+
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);
|
|
313
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
314
|
+
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, `oort/directory_entries/delete/v1/${encodeURIComponent(directoryEntryId)}`),
|
|
315
|
+
method: "DELETE",
|
|
316
|
+
headers: _headers,
|
|
317
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
318
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
319
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
320
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
321
|
+
});
|
|
322
|
+
if (_response.ok) {
|
|
323
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
324
|
+
}
|
|
325
|
+
if (_response.error.reason === "status-code") {
|
|
326
|
+
switch (_response.error.statusCode) {
|
|
327
|
+
case 422:
|
|
328
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
329
|
+
default:
|
|
330
|
+
throw new errors.ChrtError({
|
|
331
|
+
statusCode: _response.error.statusCode,
|
|
332
|
+
body: _response.error.body,
|
|
333
|
+
rawResponse: _response.rawResponse,
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
switch (_response.error.reason) {
|
|
338
|
+
case "non-json":
|
|
339
|
+
throw new errors.ChrtError({
|
|
340
|
+
statusCode: _response.error.statusCode,
|
|
341
|
+
body: _response.error.rawBody,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
});
|
|
344
|
+
case "timeout":
|
|
345
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/directory_entries/delete/v1/{directory_entry_id}.");
|
|
346
|
+
case "unknown":
|
|
347
|
+
throw new errors.ChrtError({
|
|
348
|
+
message: _response.error.errorMessage,
|
|
349
|
+
rawResponse: _response.rawResponse,
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
_getAuthorizationHeader() {
|
|
355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
356
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
357
|
+
if (bearer != null) {
|
|
358
|
+
return `Bearer ${bearer}`;
|
|
359
|
+
}
|
|
360
|
+
return undefined;
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
exports.DirectoryEntries = DirectoryEntries;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Chrt from "
|
|
5
|
-
|
|
4
|
+
import * as Chrt from "../../../../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* schema_version: 1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface DirectoryEntryClientCreate1 {
|
|
6
12
|
schema_version: number;
|
|
7
13
|
/** Must be a string starting with `org_` */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
shipper_user_id?: string | null;
|
|
11
|
-
off_chrt_shipper_org_id?: string | null;
|
|
14
|
+
entry_org_id?: string | null;
|
|
15
|
+
entry_off_chrt_shipper_org_id?: string | null;
|
|
12
16
|
company_name?: string | null;
|
|
13
17
|
industry?: string | null;
|
|
14
|
-
|
|
18
|
+
location?: Chrt.LocationFeature | null;
|
|
15
19
|
contact_first_name?: string | null;
|
|
16
20
|
contact_last_name?: string | null;
|
|
17
21
|
phone_number_primary?: string | null;
|
|
@@ -6,10 +6,10 @@ import * as Chrt from "../../../../index.js";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
|
-
export interface
|
|
9
|
+
export interface DirectoryEntryClientUpdate1 {
|
|
10
10
|
company_name?: string | null;
|
|
11
11
|
industry?: string | null;
|
|
12
|
-
|
|
12
|
+
location?: Chrt.LocationFeature | null;
|
|
13
13
|
contact_first_name?: string | null;
|
|
14
14
|
contact_last_name?: string | null;
|
|
15
15
|
phone_number_primary?: string | null;
|
|
@@ -38,7 +38,7 @@ export declare class Drivers {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.drivers.getForCallerV1()
|
|
40
40
|
*/
|
|
41
|
-
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
41
|
+
getForCallerV1(requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output>;
|
|
42
42
|
private __getForCallerV1;
|
|
43
43
|
/**
|
|
44
44
|
* Retrieves detailed driver information by driver ID within the organization. | () -> (Driver1)
|
|
@@ -51,7 +51,7 @@ export declare class Drivers {
|
|
|
51
51
|
* @example
|
|
52
52
|
* await client.drivers.getByDriverIdV1("driver_id")
|
|
53
53
|
*/
|
|
54
|
-
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
54
|
+
getByDriverIdV1(driverId: string, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output>;
|
|
55
55
|
private __getByDriverIdV1;
|
|
56
56
|
/**
|
|
57
57
|
* Lists all organization members paired with their driver information if they are drivers. Filter by availability. | () -> (list[OrgMembersAndDrivers])
|
|
@@ -83,7 +83,7 @@ export declare class Drivers {
|
|
|
83
83
|
* available_according_to_operators: true
|
|
84
84
|
* })
|
|
85
85
|
*/
|
|
86
|
-
listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.
|
|
86
|
+
listV1(request?: Chrt.DriversListV1Request, requestOptions?: Drivers.RequestOptions): core.HttpResponsePromise<Chrt.Driver1Output[]>;
|
|
87
87
|
private __listV1;
|
|
88
88
|
/**
|
|
89
89
|
* Creates a new driver profile for the target user (defaults to caller). Drivers can create themselves; operators+ can create any org member. Courier orgs only. | (DriverClientCreate1) -> (PydanticObjectId)
|
|
@@ -8,29 +8,28 @@ export * as payments from "./payments/index.js";
|
|
|
8
8
|
export * as orgProfiles from "./orgProfiles/index.js";
|
|
9
9
|
export * as dev from "./dev/index.js";
|
|
10
10
|
export * as flights from "./flights/index.js";
|
|
11
|
-
export * as notifications from "./notifications/index.js";
|
|
12
11
|
export * as drivers from "./drivers/index.js";
|
|
13
12
|
export * as cargos from "./cargos/index.js";
|
|
14
13
|
export * as taskArtifacts from "./taskArtifacts/index.js";
|
|
15
14
|
export * as offChrtShipperOrg from "./offChrtShipperOrg/index.js";
|
|
16
15
|
export * as tasks from "./tasks/index.js";
|
|
17
|
-
export * as
|
|
16
|
+
export * as directoryEntries from "./directoryEntries/index.js";
|
|
18
17
|
export * as orgs from "./orgs/index.js";
|
|
19
18
|
export * as root from "./root/index.js";
|
|
20
19
|
export * as users from "./users/index.js";
|
|
21
20
|
export * as utils from "./utils/index.js";
|
|
21
|
+
export * as notifications from "./notifications/index.js";
|
|
22
22
|
export * as orgInfoForConnections from "./orgInfoForConnections/index.js";
|
|
23
23
|
export * as tracking from "./tracking/index.js";
|
|
24
24
|
export * from "./payments/client/requests/index.js";
|
|
25
25
|
export * from "./orgProfiles/client/requests/index.js";
|
|
26
26
|
export * from "./dev/client/requests/index.js";
|
|
27
|
-
export * from "./notifications/client/requests/index.js";
|
|
28
27
|
export * from "./drivers/client/requests/index.js";
|
|
29
28
|
export * from "./taskArtifacts/client/requests/index.js";
|
|
30
29
|
export * from "./offChrtShipperOrg/client/requests/index.js";
|
|
31
30
|
export * from "./orderDrafts/client/requests/index.js";
|
|
32
31
|
export * from "./taskGroups/client/requests/index.js";
|
|
33
32
|
export * from "./tasks/client/requests/index.js";
|
|
34
|
-
export * from "./
|
|
33
|
+
export * from "./directoryEntries/client/requests/index.js";
|
|
35
34
|
export * from "./orgs/client/requests/index.js";
|
|
36
35
|
export * from "./utils/client/requests/index.js";
|
|
@@ -36,7 +36,7 @@ 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.tracking = exports.orgInfoForConnections = exports.utils = exports.users = exports.root = exports.orgs = exports.
|
|
39
|
+
exports.tracking = exports.orgInfoForConnections = exports.notifications = exports.utils = exports.users = exports.root = exports.orgs = exports.directoryEntries = exports.tasks = exports.offChrtShipperOrg = exports.taskArtifacts = exports.cargos = exports.drivers = exports.flights = exports.dev = exports.orgProfiles = exports.payments = exports.taskGroups = exports.orders = exports.orderDrafts = exports.billing = exports.connections = void 0;
|
|
40
40
|
exports.connections = __importStar(require("./connections/index.js"));
|
|
41
41
|
__exportStar(require("./connections/types/index.js"), exports);
|
|
42
42
|
exports.billing = __importStar(require("./billing/index.js"));
|
|
@@ -47,29 +47,28 @@ exports.payments = __importStar(require("./payments/index.js"));
|
|
|
47
47
|
exports.orgProfiles = __importStar(require("./orgProfiles/index.js"));
|
|
48
48
|
exports.dev = __importStar(require("./dev/index.js"));
|
|
49
49
|
exports.flights = __importStar(require("./flights/index.js"));
|
|
50
|
-
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
51
50
|
exports.drivers = __importStar(require("./drivers/index.js"));
|
|
52
51
|
exports.cargos = __importStar(require("./cargos/index.js"));
|
|
53
52
|
exports.taskArtifacts = __importStar(require("./taskArtifacts/index.js"));
|
|
54
53
|
exports.offChrtShipperOrg = __importStar(require("./offChrtShipperOrg/index.js"));
|
|
55
54
|
exports.tasks = __importStar(require("./tasks/index.js"));
|
|
56
|
-
exports.
|
|
55
|
+
exports.directoryEntries = __importStar(require("./directoryEntries/index.js"));
|
|
57
56
|
exports.orgs = __importStar(require("./orgs/index.js"));
|
|
58
57
|
exports.root = __importStar(require("./root/index.js"));
|
|
59
58
|
exports.users = __importStar(require("./users/index.js"));
|
|
60
59
|
exports.utils = __importStar(require("./utils/index.js"));
|
|
60
|
+
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
61
61
|
exports.orgInfoForConnections = __importStar(require("./orgInfoForConnections/index.js"));
|
|
62
62
|
exports.tracking = __importStar(require("./tracking/index.js"));
|
|
63
63
|
__exportStar(require("./payments/client/requests/index.js"), exports);
|
|
64
64
|
__exportStar(require("./orgProfiles/client/requests/index.js"), exports);
|
|
65
65
|
__exportStar(require("./dev/client/requests/index.js"), exports);
|
|
66
|
-
__exportStar(require("./notifications/client/requests/index.js"), exports);
|
|
67
66
|
__exportStar(require("./drivers/client/requests/index.js"), exports);
|
|
68
67
|
__exportStar(require("./taskArtifacts/client/requests/index.js"), exports);
|
|
69
68
|
__exportStar(require("./offChrtShipperOrg/client/requests/index.js"), exports);
|
|
70
69
|
__exportStar(require("./orderDrafts/client/requests/index.js"), exports);
|
|
71
70
|
__exportStar(require("./taskGroups/client/requests/index.js"), exports);
|
|
72
71
|
__exportStar(require("./tasks/client/requests/index.js"), exports);
|
|
73
|
-
__exportStar(require("./
|
|
72
|
+
__exportStar(require("./directoryEntries/client/requests/index.js"), exports);
|
|
74
73
|
__exportStar(require("./orgs/client/requests/index.js"), exports);
|
|
75
74
|
__exportStar(require("./utils/client/requests/index.js"), exports);
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.js";
|
|
5
5
|
import * as core from "../../../../core/index.js";
|
|
6
|
-
import
|
|
6
|
+
import { AdHoc } from "../resources/adHoc/client/Client.js";
|
|
7
|
+
import { Groups } from "../resources/groups/client/Client.js";
|
|
8
|
+
import { UserPreferences } from "../resources/userPreferences/client/Client.js";
|
|
9
|
+
import { WebhookSetup } from "../resources/webhookSetup/client/Client.js";
|
|
7
10
|
export declare namespace Notifications {
|
|
8
11
|
interface Options {
|
|
9
12
|
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
@@ -14,48 +17,16 @@ export declare namespace Notifications {
|
|
|
14
17
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
18
|
fetcher?: core.FetchFunction;
|
|
16
19
|
}
|
|
17
|
-
interface RequestOptions {
|
|
18
|
-
/** The maximum time to wait for a response in seconds. */
|
|
19
|
-
timeoutInSeconds?: number;
|
|
20
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
-
maxRetries?: number;
|
|
22
|
-
/** A hook to abort the request. */
|
|
23
|
-
abortSignal?: AbortSignal;
|
|
24
|
-
/** Additional query string parameters to include in the request. */
|
|
25
|
-
queryParams?: Record<string, unknown>;
|
|
26
|
-
/** Additional headers to include in the request. */
|
|
27
|
-
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
28
|
-
}
|
|
29
20
|
}
|
|
30
21
|
export declare class Notifications {
|
|
31
22
|
protected readonly _options: Notifications.Options;
|
|
23
|
+
protected _adHoc: AdHoc | undefined;
|
|
24
|
+
protected _groups: Groups | undefined;
|
|
25
|
+
protected _userPreferences: UserPreferences | undefined;
|
|
26
|
+
protected _webhookSetup: WebhookSetup | undefined;
|
|
32
27
|
constructor(_options?: Notifications.Options);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* await client.notifications.getNotificationV1()
|
|
40
|
-
*/
|
|
41
|
-
getNotificationV1(requestOptions?: Notifications.RequestOptions): core.HttpResponsePromise<string>;
|
|
42
|
-
private __getNotificationV1;
|
|
43
|
-
/**
|
|
44
|
-
* Send a notification email to a chrt.com recipient. | (NotificationReq) -> (NotificationRes)
|
|
45
|
-
*
|
|
46
|
-
* @param {Chrt.NotificationReq} request
|
|
47
|
-
* @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
-
*
|
|
49
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* await client.notifications.createNotificationV1({
|
|
53
|
-
* recipient: "aaron",
|
|
54
|
-
* name: "name",
|
|
55
|
-
* message: "message"
|
|
56
|
-
* })
|
|
57
|
-
*/
|
|
58
|
-
createNotificationV1(request: Chrt.NotificationReq, requestOptions?: Notifications.RequestOptions): core.HttpResponsePromise<Chrt.NotificationRes>;
|
|
59
|
-
private __createNotificationV1;
|
|
60
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
28
|
+
get adHoc(): AdHoc;
|
|
29
|
+
get groups(): Groups;
|
|
30
|
+
get userPreferences(): UserPreferences;
|
|
31
|
+
get webhookSetup(): WebhookSetup;
|
|
61
32
|
}
|