@chrt-inc/typescript-sdk 1.359.1 → 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 +3 -6
- package/dist/cjs/Client.js +37 -42
- 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 +2 -4
- package/dist/cjs/api/resources/index.js +3 -5
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +12 -6
- package/dist/cjs/api/resources/notifications/client/Client.js +16 -6
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +77 -0
- package/dist/cjs/api/resources/notifications/resources/{courier → adHoc}/client/Client.js +95 -26
- 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/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/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/index.d.ts +7 -4
- package/dist/cjs/api/resources/notifications/resources/index.js +8 -5
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +67 -0
- package/dist/cjs/api/resources/notifications/resources/{shipper → userPreferences}/client/Client.js +73 -24
- 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/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/BillingStatementOpenedWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +11 -0
- package/dist/cjs/api/types/{ShipperContact1.d.ts → DirectoryEntry1.d.ts} +4 -6
- package/dist/cjs/api/types/{Driver1.d.ts → Driver1Input.d.ts} +1 -1
- package/dist/cjs/api/types/Driver1Output.d.ts +27 -0
- package/dist/cjs/api/types/NotificationChannelsEnum.d.ts +12 -0
- package/dist/cjs/api/types/{NotificationChannelEnum.js → NotificationChannelsEnum.js} +2 -3
- 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 -10
- package/dist/cjs/api/types/index.js +32 -10
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +3 -6
- package/dist/esm/Client.mjs +5 -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 +2 -4
- package/dist/esm/api/resources/index.mjs +2 -4
- package/dist/esm/api/resources/notifications/client/Client.d.mts +12 -6
- package/dist/esm/api/resources/notifications/client/Client.mjs +16 -6
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +77 -0
- package/dist/esm/api/resources/notifications/resources/{shipper → adHoc}/client/Client.mjs +93 -24
- 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/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/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/index.d.mts +7 -4
- package/dist/esm/api/resources/notifications/resources/index.mjs +7 -4
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +67 -0
- package/dist/esm/api/resources/notifications/resources/{courier → userPreferences}/client/Client.mjs +71 -22
- 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/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/BillingStatementOpenedWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +11 -0
- package/dist/esm/api/types/{ShipperContact1.d.mts → DirectoryEntry1.d.mts} +4 -6
- package/dist/esm/api/types/{Driver1.d.mts → Driver1Input.d.mts} +1 -1
- package/dist/esm/api/types/Driver1Output.d.mts +27 -0
- package/dist/esm/api/types/NotificationChannelsEnum.d.mts +12 -0
- package/dist/esm/api/types/{NotificationChannelEnum.mjs → NotificationChannelsEnum.mjs} +1 -2
- 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 -10
- package/dist/esm/api/types/index.mjs +32 -10
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1534 -744
- package/dist/cjs/api/resources/notifications/resources/courier/client/Client.d.ts +0 -59
- package/dist/cjs/api/resources/notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/notifications/resources/courier/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/notifications/resources/shipper/client/Client.d.ts +0 -59
- package/dist/cjs/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/notifications/resources/shipper/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/resources/taskArtifactNotifications/client/Client.d.ts +0 -59
- package/dist/cjs/api/resources/taskArtifactNotifications/client/Client.js +0 -186
- package/dist/cjs/api/resources/taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.d.ts +0 -18
- package/dist/cjs/api/resources/taskArtifactNotifications/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/types/CourierNotificationEventEnum.d.ts +0 -7
- package/dist/cjs/api/types/CourierNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/NotificationChannelEnum.d.ts +0 -13
- package/dist/cjs/api/types/ShipperNotificationEventEnum.d.ts +0 -7
- package/dist/cjs/api/types/ShipperNotificationPreferences1.d.ts +0 -18
- package/dist/cjs/api/types/TaskArtifactNotificationPreferences1.d.ts +0 -18
- package/dist/esm/api/resources/notifications/resources/courier/client/Client.d.mts +0 -59
- package/dist/esm/api/resources/notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/notifications/resources/courier/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/notifications/resources/shipper/client/Client.d.mts +0 -59
- package/dist/esm/api/resources/notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/notifications/resources/shipper/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/resources/taskArtifactNotifications/client/Client.d.mts +0 -59
- package/dist/esm/api/resources/taskArtifactNotifications/client/Client.mjs +0 -149
- package/dist/esm/api/resources/taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.d.mts +0 -18
- package/dist/esm/api/resources/taskArtifactNotifications/client/requests/index.d.mts +0 -1
- package/dist/esm/api/types/CourierNotificationEventEnum.d.mts +0 -7
- package/dist/esm/api/types/CourierNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/NotificationChannelEnum.d.mts +0 -13
- package/dist/esm/api/types/ShipperNotificationEventEnum.d.mts +0 -7
- package/dist/esm/api/types/ShipperNotificationPreferences1.d.mts +0 -18
- package/dist/esm/api/types/TaskArtifactNotificationPreferences1.d.mts +0 -18
- /package/dist/cjs/api/resources/{notifications/resources/courier → directoryEntries}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → directoryEntries}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.js → directoryEntries/client/requests/DirectoryEntryClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.js → directoryEntries/client/requests/DirectoryEntryClientUpdate1.js} +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → directoryEntries}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → directoryEntries}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{notifications/resources/courier → directoryEntries}/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{shipper → adHoc}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{shipper → adHoc}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.js → notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{shipper → adHoc}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{shipper → adHoc}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/notifications/resources/{shipper → adHoc}/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.js → notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.js} +0 -0
- /package/dist/cjs/api/{types/CourierNotificationEventEnum.js → resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.js} +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{shipperContactInfo → notifications/resources/groups}/index.js +0 -0
- /package/dist/cjs/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/client/index.js +0 -0
- /package/dist/cjs/api/{types/CourierNotificationPreferences1.js → resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.js} +0 -0
- /package/dist/cjs/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/index.js +0 -0
- /package/dist/{esm/api/resources/notifications/resources/courier/client/requests/index.mjs → cjs/api/resources/notifications/resources/webhookSetup/client/index.d.ts} +0 -0
- /package/dist/cjs/api/types/{Driver1.js → BillingLineItemGroupMessageWebhookPayload.js} +0 -0
- /package/dist/cjs/api/types/{ShipperContact1.js → BillingLineItemGroupS3ObjectAddedWebhookPayload.js} +0 -0
- /package/dist/cjs/api/types/{ShipperContactClientCreate1.js → BillingStatementOpenedWebhookPayload.js} +0 -0
- /package/dist/cjs/api/types/{ShipperNotificationEventEnum.js → BillingStatementPaidWebhookPayload.js} +0 -0
- /package/dist/cjs/api/types/{ShipperNotificationPreferences1.js → DirectoryEntry1.js} +0 -0
- /package/dist/cjs/api/types/{Task1.js → Driver1Input.js} +0 -0
- /package/dist/cjs/api/types/{TaskArtifactNotificationPreferences1.js → Driver1Output.js} +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → directoryEntries}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → directoryEntries}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier/client/requests/CourierNotificationPreferencesClientCreate1.mjs → directoryEntries/client/requests/DirectoryEntryClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{notifications/resources/shipper/client/requests/ShipperNotificationPreferencesClientCreate1.mjs → directoryEntries/client/requests/DirectoryEntryClientUpdate1.mjs} +0 -0
- /package/dist/esm/api/resources/{notifications/resources/shipper → directoryEntries}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → directoryEntries}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{notifications/resources/courier → directoryEntries}/index.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{shipper → adHoc}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{shipper → adHoc}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo/client/requests/ShipperContactClientUpdate1.mjs → notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/adHoc}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/notifications/resources/{shipper → adHoc}/index.d.mts +0 -0
- /package/dist/esm/api/resources/notifications/resources/{shipper → adHoc}/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/groups}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/groups}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskArtifactNotifications/client/requests/TaskArtifactNotificationPreferencesClientCreate1.mjs → notifications/resources/groups/client/requests/GroupsUpdateNameV1Request.mjs} +0 -0
- /package/dist/esm/api/{types/CourierNotificationEventEnum.mjs → resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.mjs} +0 -0
- /package/dist/esm/api/resources/{taskArtifactNotifications → notifications/resources/groups}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/groups}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{shipperContactInfo → notifications/resources/groups}/index.mjs +0 -0
- /package/dist/esm/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/client/index.mjs +0 -0
- /package/dist/esm/api/{types/CourierNotificationPreferences1.mjs → resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{taskArtifactNotifications → notifications/resources/userPreferences}/index.mjs +0 -0
- /package/dist/esm/api/types/{Driver1.mjs → BillingLineItemGroupMessageWebhookPayload.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperContact1.mjs → BillingLineItemGroupS3ObjectAddedWebhookPayload.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperContactClientCreate1.mjs → BillingStatementOpenedWebhookPayload.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperNotificationEventEnum.mjs → BillingStatementPaidWebhookPayload.mjs} +0 -0
- /package/dist/esm/api/types/{ShipperNotificationPreferences1.mjs → DirectoryEntry1.mjs} +0 -0
- /package/dist/esm/api/types/{Task1.mjs → Driver1Input.mjs} +0 -0
- /package/dist/esm/api/types/{TaskArtifactNotificationPreferences1.mjs → Driver1Output.mjs} +0 -0
|
@@ -14,6 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BillingLineItemGroupMessageWebhookPayload.js"), exports);
|
|
18
|
+
__exportStar(require("./BillingLineItemGroupS3ObjectAddedWebhookPayload.js"), exports);
|
|
19
|
+
__exportStar(require("./BillingStatementOpenedWebhookPayload.js"), exports);
|
|
20
|
+
__exportStar(require("./BillingStatementPaidWebhookPayload.js"), exports);
|
|
17
21
|
__exportStar(require("./Cargo1.js"), exports);
|
|
18
22
|
__exportStar(require("./CargoByDeviceDataPoint1.js"), exports);
|
|
19
23
|
__exportStar(require("./CargoByDeviceDataPointMetadata1.js"), exports);
|
|
@@ -29,8 +33,6 @@ __exportStar(require("./CargoTypeEnum1.js"), exports);
|
|
|
29
33
|
__exportStar(require("./ChrtGroundCourierTaskActionEnum1.js"), exports);
|
|
30
34
|
__exportStar(require("./ClerkOrgData.js"), exports);
|
|
31
35
|
__exportStar(require("./CourierConnectionRes.js"), exports);
|
|
32
|
-
__exportStar(require("./CourierNotificationEventEnum.js"), exports);
|
|
33
|
-
__exportStar(require("./CourierNotificationPreferences1.js"), exports);
|
|
34
36
|
__exportStar(require("./CourierOrgInfoForConnections1.js"), exports);
|
|
35
37
|
__exportStar(require("./CourierOrgProfile1.js"), exports);
|
|
36
38
|
__exportStar(require("./CreateCheckoutSessionRes.js"), exports);
|
|
@@ -39,7 +41,9 @@ __exportStar(require("./CreateOrgPublicDataRes.js"), exports);
|
|
|
39
41
|
__exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
|
|
40
42
|
__exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
|
|
41
43
|
__exportStar(require("./Device1.js"), exports);
|
|
42
|
-
__exportStar(require("./
|
|
44
|
+
__exportStar(require("./DirectoryEntry1.js"), exports);
|
|
45
|
+
__exportStar(require("./Driver1Input.js"), exports);
|
|
46
|
+
__exportStar(require("./Driver1Output.js"), exports);
|
|
43
47
|
__exportStar(require("./DriverStatusEnum.js"), exports);
|
|
44
48
|
__exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
|
|
45
49
|
__exportStar(require("./DriverUpdateRes.js"), exports);
|
|
@@ -67,7 +71,14 @@ __exportStar(require("./LocationProperties.js"), exports);
|
|
|
67
71
|
__exportStar(require("./MultiLineString.js"), exports);
|
|
68
72
|
__exportStar(require("./MultiPoint.js"), exports);
|
|
69
73
|
__exportStar(require("./MultiPolygon.js"), exports);
|
|
70
|
-
__exportStar(require("./
|
|
74
|
+
__exportStar(require("./NotificationChannelsEnum.js"), exports);
|
|
75
|
+
__exportStar(require("./NotificationEventsForAdHocEnum.js"), exports);
|
|
76
|
+
__exportStar(require("./NotificationEventsForOrgsEnum.js"), exports);
|
|
77
|
+
__exportStar(require("./NotificationEventsForUsersEnum.js"), exports);
|
|
78
|
+
__exportStar(require("./NotificationGroup1.js"), exports);
|
|
79
|
+
__exportStar(require("./NotificationGroupLimitedForDriver1.js"), exports);
|
|
80
|
+
__exportStar(require("./NotificationIntentAdHoc1.js"), exports);
|
|
81
|
+
__exportStar(require("./NotificationUserPreferences1.js"), exports);
|
|
71
82
|
__exportStar(require("./OffChrtShipperOrg1.js"), exports);
|
|
72
83
|
__exportStar(require("./OnboardCourierTaskActionEnum1.js"), exports);
|
|
73
84
|
__exportStar(require("./Order1.js"), exports);
|
|
@@ -109,13 +120,23 @@ __exportStar(require("./SessionDeleteResponse1.js"), exports);
|
|
|
109
120
|
__exportStar(require("./SetFlightInfoReq.js"), exports);
|
|
110
121
|
__exportStar(require("./SettlementTypeEnum1.js"), exports);
|
|
111
122
|
__exportStar(require("./ShipperConnectionRes.js"), exports);
|
|
112
|
-
__exportStar(require("./ShipperContact1.js"), exports);
|
|
113
|
-
__exportStar(require("./ShipperContactClientCreate1.js"), exports);
|
|
114
123
|
__exportStar(require("./ShipperCourierConnection1.js"), exports);
|
|
115
124
|
__exportStar(require("./ShipperForwarderConnection1.js"), exports);
|
|
116
|
-
__exportStar(require("./ShipperNotificationEventEnum.js"), exports);
|
|
117
|
-
__exportStar(require("./ShipperNotificationPreferences1.js"), exports);
|
|
118
125
|
__exportStar(require("./ShipperOrgInfoForConnections1.js"), exports);
|
|
126
|
+
__exportStar(require("./ShippingOrderCancelledWebhookPayload.js"), exports);
|
|
127
|
+
__exportStar(require("./ShippingOrderCompletedWebhookPayload.js"), exports);
|
|
128
|
+
__exportStar(require("./ShippingOrderStagedWebhookPayload.js"), exports);
|
|
129
|
+
__exportStar(require("./ShippingTaskAddedWebhookPayload.js"), exports);
|
|
130
|
+
__exportStar(require("./ShippingTaskCompletedWebhookPayload.js"), exports);
|
|
131
|
+
__exportStar(require("./ShippingTaskDeletedWebhookPayload.js"), exports);
|
|
132
|
+
__exportStar(require("./ShippingTaskGroupCourierOrgAssignedWebhookPayload.js"), exports);
|
|
133
|
+
__exportStar(require("./ShippingTaskGroupDriverAssignedWebhookPayload.js"), exports);
|
|
134
|
+
__exportStar(require("./ShippingTaskGroupFlightInfoUpdatedWebhookPayload.js"), exports);
|
|
135
|
+
__exportStar(require("./ShippingTaskGroupInProgressWebhookPayload.js"), exports);
|
|
136
|
+
__exportStar(require("./ShippingTaskGroupMessageWebhookPayload.js"), exports);
|
|
137
|
+
__exportStar(require("./ShippingTaskGroupS3ObjectAddedWebhookPayload.js"), exports);
|
|
138
|
+
__exportStar(require("./ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.js"), exports);
|
|
139
|
+
__exportStar(require("./ShippingTaskSkippedWebhookPayload.js"), exports);
|
|
119
140
|
__exportStar(require("./SortOrderEnum.js"), exports);
|
|
120
141
|
__exportStar(require("./Statement1.js"), exports);
|
|
121
142
|
__exportStar(require("./StatementExpandedRes.js"), exports);
|
|
@@ -124,10 +145,10 @@ __exportStar(require("./StatementStatusEnum1.js"), exports);
|
|
|
124
145
|
__exportStar(require("./StatementsListRes.js"), exports);
|
|
125
146
|
__exportStar(require("./StripeConnectAccountOnboardingLinkRes.js"), exports);
|
|
126
147
|
__exportStar(require("./StripeConnectInvoiceStatusEnum.js"), exports);
|
|
127
|
-
__exportStar(require("./
|
|
148
|
+
__exportStar(require("./Task1Input.js"), exports);
|
|
149
|
+
__exportStar(require("./Task1Output.js"), exports);
|
|
128
150
|
__exportStar(require("./TaskArtifact1.js"), exports);
|
|
129
151
|
__exportStar(require("./TaskArtifactClientCreate1.js"), exports);
|
|
130
|
-
__exportStar(require("./TaskArtifactNotificationPreferences1.js"), exports);
|
|
131
152
|
__exportStar(require("./TaskArtifactS3ObjectMetadata1.js"), exports);
|
|
132
153
|
__exportStar(require("./TaskArtifactStatusEnum1.js"), exports);
|
|
133
154
|
__exportStar(require("./TaskArtifactTypeEnum1.js"), exports);
|
|
@@ -157,3 +178,4 @@ __exportStar(require("./UserPublicData1.js"), exports);
|
|
|
157
178
|
__exportStar(require("./ValidationError.js"), exports);
|
|
158
179
|
__exportStar(require("./Vehicle1.js"), exports);
|
|
159
180
|
__exportStar(require("./VehicleTypeEnum.js"), exports);
|
|
181
|
+
__exportStar(require("./WebhookAppPortalAccessRes.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.363.1";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -8,7 +8,6 @@ import { Connections } from "./api/resources/connections/client/Client.mjs";
|
|
|
8
8
|
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
9
9
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
10
10
|
import { Flights } from "./api/resources/flights/client/Client.mjs";
|
|
11
|
-
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
12
11
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
13
12
|
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
14
13
|
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
@@ -17,7 +16,7 @@ import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
|
17
16
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
18
17
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
|
|
19
18
|
import { Tasks } from "./api/resources/tasks/client/Client.mjs";
|
|
20
|
-
import {
|
|
19
|
+
import { DirectoryEntries } from "./api/resources/directoryEntries/client/Client.mjs";
|
|
21
20
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
22
21
|
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
23
22
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
@@ -56,7 +55,6 @@ export declare class ChrtClient {
|
|
|
56
55
|
protected _orgProfiles: OrgProfiles | undefined;
|
|
57
56
|
protected _dev: Dev | undefined;
|
|
58
57
|
protected _flights: Flights | undefined;
|
|
59
|
-
protected _taskArtifactNotifications: TaskArtifactNotifications | undefined;
|
|
60
58
|
protected _drivers: Drivers | undefined;
|
|
61
59
|
protected _cargos: Cargos | undefined;
|
|
62
60
|
protected _taskArtifacts: TaskArtifacts | undefined;
|
|
@@ -65,7 +63,7 @@ export declare class ChrtClient {
|
|
|
65
63
|
protected _orderDrafts: OrderDrafts | undefined;
|
|
66
64
|
protected _taskGroups: TaskGroups | undefined;
|
|
67
65
|
protected _tasks: Tasks | undefined;
|
|
68
|
-
protected
|
|
66
|
+
protected _directoryEntries: DirectoryEntries | undefined;
|
|
69
67
|
protected _orgs: Orgs | undefined;
|
|
70
68
|
protected _root: Root | undefined;
|
|
71
69
|
protected _users: Users | undefined;
|
|
@@ -80,7 +78,6 @@ export declare class ChrtClient {
|
|
|
80
78
|
get orgProfiles(): OrgProfiles;
|
|
81
79
|
get dev(): Dev;
|
|
82
80
|
get flights(): Flights;
|
|
83
|
-
get taskArtifactNotifications(): TaskArtifactNotifications;
|
|
84
81
|
get drivers(): Drivers;
|
|
85
82
|
get cargos(): Cargos;
|
|
86
83
|
get taskArtifacts(): TaskArtifacts;
|
|
@@ -89,7 +86,7 @@ export declare class ChrtClient {
|
|
|
89
86
|
get orderDrafts(): OrderDrafts;
|
|
90
87
|
get taskGroups(): TaskGroups;
|
|
91
88
|
get tasks(): Tasks;
|
|
92
|
-
get
|
|
89
|
+
get directoryEntries(): DirectoryEntries;
|
|
93
90
|
get orgs(): Orgs;
|
|
94
91
|
get root(): Root;
|
|
95
92
|
get users(): Users;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -8,7 +8,6 @@ import { Connections } from "./api/resources/connections/client/Client.mjs";
|
|
|
8
8
|
import { OrgProfiles } from "./api/resources/orgProfiles/client/Client.mjs";
|
|
9
9
|
import { Dev } from "./api/resources/dev/client/Client.mjs";
|
|
10
10
|
import { Flights } from "./api/resources/flights/client/Client.mjs";
|
|
11
|
-
import { TaskArtifactNotifications } from "./api/resources/taskArtifactNotifications/client/Client.mjs";
|
|
12
11
|
import { Drivers } from "./api/resources/drivers/client/Client.mjs";
|
|
13
12
|
import { Cargos } from "./api/resources/cargos/client/Client.mjs";
|
|
14
13
|
import { TaskArtifacts } from "./api/resources/taskArtifacts/client/Client.mjs";
|
|
@@ -17,7 +16,7 @@ import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
|
17
16
|
import { OrderDrafts } from "./api/resources/orderDrafts/client/Client.mjs";
|
|
18
17
|
import { TaskGroups } from "./api/resources/taskGroups/client/Client.mjs";
|
|
19
18
|
import { Tasks } from "./api/resources/tasks/client/Client.mjs";
|
|
20
|
-
import {
|
|
19
|
+
import { DirectoryEntries } from "./api/resources/directoryEntries/client/Client.mjs";
|
|
21
20
|
import { Orgs } from "./api/resources/orgs/client/Client.mjs";
|
|
22
21
|
import { Root } from "./api/resources/root/client/Client.mjs";
|
|
23
22
|
import { Users } from "./api/resources/users/client/Client.mjs";
|
|
@@ -31,8 +30,8 @@ export class ChrtClient {
|
|
|
31
30
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
32
31
|
"X-Fern-Language": "JavaScript",
|
|
33
32
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
34
|
-
"X-Fern-SDK-Version": "1.
|
|
35
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
33
|
+
"X-Fern-SDK-Version": "1.363.1",
|
|
34
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.363.1",
|
|
36
35
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
37
36
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
38
37
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -57,10 +56,6 @@ export class ChrtClient {
|
|
|
57
56
|
var _a;
|
|
58
57
|
return ((_a = this._flights) !== null && _a !== void 0 ? _a : (this._flights = new Flights(this._options)));
|
|
59
58
|
}
|
|
60
|
-
get taskArtifactNotifications() {
|
|
61
|
-
var _a;
|
|
62
|
-
return ((_a = this._taskArtifactNotifications) !== null && _a !== void 0 ? _a : (this._taskArtifactNotifications = new TaskArtifactNotifications(this._options)));
|
|
63
|
-
}
|
|
64
59
|
get drivers() {
|
|
65
60
|
var _a;
|
|
66
61
|
return ((_a = this._drivers) !== null && _a !== void 0 ? _a : (this._drivers = new Drivers(this._options)));
|
|
@@ -93,9 +88,9 @@ export class ChrtClient {
|
|
|
93
88
|
var _a;
|
|
94
89
|
return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Tasks(this._options)));
|
|
95
90
|
}
|
|
96
|
-
get
|
|
91
|
+
get directoryEntries() {
|
|
97
92
|
var _a;
|
|
98
|
-
return ((_a = this.
|
|
93
|
+
return ((_a = this._directoryEntries) !== null && _a !== void 0 ? _a : (this._directoryEntries = new DirectoryEntries(this._options)));
|
|
99
94
|
}
|
|
100
95
|
get orgs() {
|
|
101
96
|
var _a;
|
|
@@ -115,7 +115,7 @@ export declare class LineItemGroups {
|
|
|
115
115
|
calculateLineItemsV1(lineItemGroupId: string, requestOptions?: LineItemGroups.RequestOptions): core.HttpResponsePromise<Chrt.LineItemGroup1>;
|
|
116
116
|
private __calculateLineItemsV1;
|
|
117
117
|
/**
|
|
118
|
-
* Associates a line item group with a statement. LIG must be PENDING_RATES, PENDING_CALCULATION, ADJUSTABLE, or FINALIZED (before OPEN). Statement must be
|
|
118
|
+
* Associates a line item group with a statement. LIG must be PENDING_RATES, PENDING_CALCULATION, ADJUSTABLE, or FINALIZED (before OPEN). Statement must be STAGED. LIG payment info must match Statement. Also removes from previous statement if any. | org_type=[courier, forwarder], min_org_role=operator, authz_personas=[lig_owner_operators, statement_owner_operators] | (PydanticObjectId) -> (LineItemGroup1)
|
|
119
119
|
*
|
|
120
120
|
* @param {string} lineItemGroupId
|
|
121
121
|
* @param {Chrt.billing.LineItemGroupsAssociateWithStatementV1Request} request
|
|
@@ -371,7 +371,7 @@ export class LineItemGroups {
|
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
|
-
* Associates a line item group with a statement. LIG must be PENDING_RATES, PENDING_CALCULATION, ADJUSTABLE, or FINALIZED (before OPEN). Statement must be
|
|
374
|
+
* Associates a line item group with a statement. LIG must be PENDING_RATES, PENDING_CALCULATION, ADJUSTABLE, or FINALIZED (before OPEN). Statement must be STAGED. LIG payment info must match Statement. Also removes from previous statement if any. | org_type=[courier, forwarder], min_org_role=operator, authz_personas=[lig_owner_operators, statement_owner_operators] | (PydanticObjectId) -> (LineItemGroup1)
|
|
375
375
|
*
|
|
376
376
|
* @param {string} lineItemGroupId
|
|
377
377
|
* @param {Chrt.billing.LineItemGroupsAssociateWithStatementV1Request} request
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Chrt from "../../../index.mjs";
|
|
7
|
+
export declare namespace DirectoryEntries {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ChrtEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
fetcher?: core.FetchFunction;
|
|
16
|
+
}
|
|
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
|
+
}
|
|
30
|
+
export declare class DirectoryEntries {
|
|
31
|
+
protected readonly _options: DirectoryEntries.Options;
|
|
32
|
+
constructor(_options?: DirectoryEntries.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a specific directory entry by ID if authorized to access it. | authz: min_org_role=operator | () -> (DirectoryEntry1)
|
|
35
|
+
*
|
|
36
|
+
* @param {string} directoryEntryId
|
|
37
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.directoryEntries.getV1("directory_entry_id")
|
|
43
|
+
*/
|
|
44
|
+
getV1(directoryEntryId: string, requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<Chrt.DirectoryEntry1>;
|
|
45
|
+
private __getV1;
|
|
46
|
+
/**
|
|
47
|
+
* Lists all directory entries created by the caller's organization. | authz: min_org_role=operator | () -> (list[DirectoryEntry1])
|
|
48
|
+
*
|
|
49
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.directoryEntries.listV1()
|
|
53
|
+
*/
|
|
54
|
+
listV1(requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<Chrt.DirectoryEntry1[]>;
|
|
55
|
+
private __listV1;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a directory entry. | (DirectoryEntryClientCreate1) -> (PydanticObjectId)
|
|
58
|
+
*
|
|
59
|
+
* @param {Chrt.DirectoryEntryClientCreate1} request
|
|
60
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await client.directoryEntries.createV1({
|
|
66
|
+
* schema_version: 1
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
createV1(request: Chrt.DirectoryEntryClientCreate1, requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<string>;
|
|
70
|
+
private __createV1;
|
|
71
|
+
/**
|
|
72
|
+
* Updates existing directory entry owned by the caller's organization. | (DirectoryEntryClientUpdate1) -> (bool)
|
|
73
|
+
*
|
|
74
|
+
* @param {string} directoryEntryId
|
|
75
|
+
* @param {Chrt.DirectoryEntryClientUpdate1} request
|
|
76
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* await client.directoryEntries.updateV1("directory_entry_id")
|
|
82
|
+
*/
|
|
83
|
+
updateV1(directoryEntryId: string, request?: Chrt.DirectoryEntryClientUpdate1, requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
84
|
+
private __updateV1;
|
|
85
|
+
/**
|
|
86
|
+
* Deletes directory entry owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)
|
|
87
|
+
*
|
|
88
|
+
* @param {string} directoryEntryId
|
|
89
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* await client.directoryEntries.deleteV1("directory_entry_id")
|
|
95
|
+
*/
|
|
96
|
+
deleteV1(directoryEntryId: string, requestOptions?: DirectoryEntries.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
97
|
+
private __deleteV1;
|
|
98
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
99
|
+
}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Chrt from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
export class DirectoryEntries {
|
|
19
|
+
constructor(_options = {}) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a specific directory entry by ID if authorized to access it. | authz: min_org_role=operator | () -> (DirectoryEntry1)
|
|
24
|
+
*
|
|
25
|
+
* @param {string} directoryEntryId
|
|
26
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.directoryEntries.getV1("directory_entry_id")
|
|
32
|
+
*/
|
|
33
|
+
getV1(directoryEntryId, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(directoryEntryId, requestOptions));
|
|
35
|
+
}
|
|
36
|
+
__getV1(directoryEntryId, requestOptions) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
var _a, _b, _c, _d;
|
|
39
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
40
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
41
|
+
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)}`),
|
|
42
|
+
method: "GET",
|
|
43
|
+
headers: _headers,
|
|
44
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
45
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
46
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
47
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
48
|
+
});
|
|
49
|
+
if (_response.ok) {
|
|
50
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
51
|
+
}
|
|
52
|
+
if (_response.error.reason === "status-code") {
|
|
53
|
+
switch (_response.error.statusCode) {
|
|
54
|
+
case 422:
|
|
55
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
56
|
+
default:
|
|
57
|
+
throw new errors.ChrtError({
|
|
58
|
+
statusCode: _response.error.statusCode,
|
|
59
|
+
body: _response.error.body,
|
|
60
|
+
rawResponse: _response.rawResponse,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
switch (_response.error.reason) {
|
|
65
|
+
case "non-json":
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
statusCode: _response.error.statusCode,
|
|
68
|
+
body: _response.error.rawBody,
|
|
69
|
+
rawResponse: _response.rawResponse,
|
|
70
|
+
});
|
|
71
|
+
case "timeout":
|
|
72
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/directory_entries/v1/{directory_entry_id}.");
|
|
73
|
+
case "unknown":
|
|
74
|
+
throw new errors.ChrtError({
|
|
75
|
+
message: _response.error.errorMessage,
|
|
76
|
+
rawResponse: _response.rawResponse,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Lists all directory entries created by the caller's organization. | authz: min_org_role=operator | () -> (list[DirectoryEntry1])
|
|
83
|
+
*
|
|
84
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.directoryEntries.listV1()
|
|
88
|
+
*/
|
|
89
|
+
listV1(requestOptions) {
|
|
90
|
+
return core.HttpResponsePromise.fromPromise(this.__listV1(requestOptions));
|
|
91
|
+
}
|
|
92
|
+
__listV1(requestOptions) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
var _a, _b, _c, _d;
|
|
95
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
97
|
+
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"),
|
|
98
|
+
method: "GET",
|
|
99
|
+
headers: _headers,
|
|
100
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
101
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
102
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
103
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
104
|
+
});
|
|
105
|
+
if (_response.ok) {
|
|
106
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
107
|
+
}
|
|
108
|
+
if (_response.error.reason === "status-code") {
|
|
109
|
+
throw new errors.ChrtError({
|
|
110
|
+
statusCode: _response.error.statusCode,
|
|
111
|
+
body: _response.error.body,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
switch (_response.error.reason) {
|
|
116
|
+
case "non-json":
|
|
117
|
+
throw new errors.ChrtError({
|
|
118
|
+
statusCode: _response.error.statusCode,
|
|
119
|
+
body: _response.error.rawBody,
|
|
120
|
+
rawResponse: _response.rawResponse,
|
|
121
|
+
});
|
|
122
|
+
case "timeout":
|
|
123
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /oort/directory_entries/list/v1.");
|
|
124
|
+
case "unknown":
|
|
125
|
+
throw new errors.ChrtError({
|
|
126
|
+
message: _response.error.errorMessage,
|
|
127
|
+
rawResponse: _response.rawResponse,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Creates a directory entry. | (DirectoryEntryClientCreate1) -> (PydanticObjectId)
|
|
134
|
+
*
|
|
135
|
+
* @param {Chrt.DirectoryEntryClientCreate1} request
|
|
136
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* await client.directoryEntries.createV1({
|
|
142
|
+
* schema_version: 1
|
|
143
|
+
* })
|
|
144
|
+
*/
|
|
145
|
+
createV1(request, requestOptions) {
|
|
146
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
147
|
+
}
|
|
148
|
+
__createV1(request, requestOptions) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
var _a, _b, _c, _d;
|
|
151
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
152
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
153
|
+
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"),
|
|
154
|
+
method: "POST",
|
|
155
|
+
headers: _headers,
|
|
156
|
+
contentType: "application/json",
|
|
157
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
158
|
+
requestType: "json",
|
|
159
|
+
body: request,
|
|
160
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
161
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
162
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
163
|
+
});
|
|
164
|
+
if (_response.ok) {
|
|
165
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
166
|
+
}
|
|
167
|
+
if (_response.error.reason === "status-code") {
|
|
168
|
+
switch (_response.error.statusCode) {
|
|
169
|
+
case 422:
|
|
170
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
171
|
+
default:
|
|
172
|
+
throw new errors.ChrtError({
|
|
173
|
+
statusCode: _response.error.statusCode,
|
|
174
|
+
body: _response.error.body,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
switch (_response.error.reason) {
|
|
180
|
+
case "non-json":
|
|
181
|
+
throw new errors.ChrtError({
|
|
182
|
+
statusCode: _response.error.statusCode,
|
|
183
|
+
body: _response.error.rawBody,
|
|
184
|
+
rawResponse: _response.rawResponse,
|
|
185
|
+
});
|
|
186
|
+
case "timeout":
|
|
187
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/directory_entries/create/v1.");
|
|
188
|
+
case "unknown":
|
|
189
|
+
throw new errors.ChrtError({
|
|
190
|
+
message: _response.error.errorMessage,
|
|
191
|
+
rawResponse: _response.rawResponse,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Updates existing directory entry owned by the caller's organization. | (DirectoryEntryClientUpdate1) -> (bool)
|
|
198
|
+
*
|
|
199
|
+
* @param {string} directoryEntryId
|
|
200
|
+
* @param {Chrt.DirectoryEntryClientUpdate1} request
|
|
201
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
202
|
+
*
|
|
203
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
204
|
+
*
|
|
205
|
+
* @example
|
|
206
|
+
* await client.directoryEntries.updateV1("directory_entry_id")
|
|
207
|
+
*/
|
|
208
|
+
updateV1(directoryEntryId, request = {}, requestOptions) {
|
|
209
|
+
return core.HttpResponsePromise.fromPromise(this.__updateV1(directoryEntryId, request, requestOptions));
|
|
210
|
+
}
|
|
211
|
+
__updateV1(directoryEntryId_1) {
|
|
212
|
+
return __awaiter(this, arguments, void 0, function* (directoryEntryId, request = {}, requestOptions) {
|
|
213
|
+
var _a, _b, _c, _d;
|
|
214
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
215
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
216
|
+
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)}`),
|
|
217
|
+
method: "PATCH",
|
|
218
|
+
headers: _headers,
|
|
219
|
+
contentType: "application/json",
|
|
220
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
221
|
+
requestType: "json",
|
|
222
|
+
body: request,
|
|
223
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
224
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
225
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
226
|
+
});
|
|
227
|
+
if (_response.ok) {
|
|
228
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
229
|
+
}
|
|
230
|
+
if (_response.error.reason === "status-code") {
|
|
231
|
+
switch (_response.error.statusCode) {
|
|
232
|
+
case 422:
|
|
233
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
234
|
+
default:
|
|
235
|
+
throw new errors.ChrtError({
|
|
236
|
+
statusCode: _response.error.statusCode,
|
|
237
|
+
body: _response.error.body,
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
switch (_response.error.reason) {
|
|
243
|
+
case "non-json":
|
|
244
|
+
throw new errors.ChrtError({
|
|
245
|
+
statusCode: _response.error.statusCode,
|
|
246
|
+
body: _response.error.rawBody,
|
|
247
|
+
rawResponse: _response.rawResponse,
|
|
248
|
+
});
|
|
249
|
+
case "timeout":
|
|
250
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /oort/directory_entries/update/v1/{directory_entry_id}.");
|
|
251
|
+
case "unknown":
|
|
252
|
+
throw new errors.ChrtError({
|
|
253
|
+
message: _response.error.errorMessage,
|
|
254
|
+
rawResponse: _response.rawResponse,
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Deletes directory entry owned by the caller's organization. | authz: min_org_role=operator | () -> (bool)
|
|
261
|
+
*
|
|
262
|
+
* @param {string} directoryEntryId
|
|
263
|
+
* @param {DirectoryEntries.RequestOptions} requestOptions - Request-specific configuration.
|
|
264
|
+
*
|
|
265
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* await client.directoryEntries.deleteV1("directory_entry_id")
|
|
269
|
+
*/
|
|
270
|
+
deleteV1(directoryEntryId, requestOptions) {
|
|
271
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(directoryEntryId, requestOptions));
|
|
272
|
+
}
|
|
273
|
+
__deleteV1(directoryEntryId, requestOptions) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
var _a, _b, _c, _d;
|
|
276
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
277
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
278
|
+
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)}`),
|
|
279
|
+
method: "DELETE",
|
|
280
|
+
headers: _headers,
|
|
281
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
282
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
283
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
284
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
285
|
+
});
|
|
286
|
+
if (_response.ok) {
|
|
287
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
288
|
+
}
|
|
289
|
+
if (_response.error.reason === "status-code") {
|
|
290
|
+
switch (_response.error.statusCode) {
|
|
291
|
+
case 422:
|
|
292
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
293
|
+
default:
|
|
294
|
+
throw new errors.ChrtError({
|
|
295
|
+
statusCode: _response.error.statusCode,
|
|
296
|
+
body: _response.error.body,
|
|
297
|
+
rawResponse: _response.rawResponse,
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
switch (_response.error.reason) {
|
|
302
|
+
case "non-json":
|
|
303
|
+
throw new errors.ChrtError({
|
|
304
|
+
statusCode: _response.error.statusCode,
|
|
305
|
+
body: _response.error.rawBody,
|
|
306
|
+
rawResponse: _response.rawResponse,
|
|
307
|
+
});
|
|
308
|
+
case "timeout":
|
|
309
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /oort/directory_entries/delete/v1/{directory_entry_id}.");
|
|
310
|
+
case "unknown":
|
|
311
|
+
throw new errors.ChrtError({
|
|
312
|
+
message: _response.error.errorMessage,
|
|
313
|
+
rawResponse: _response.rawResponse,
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
_getAuthorizationHeader() {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
321
|
+
if (bearer != null) {
|
|
322
|
+
return `Bearer ${bearer}`;
|
|
323
|
+
}
|
|
324
|
+
return undefined;
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
}
|