@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,209 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments.js";
|
|
5
|
+
import * as core from "../../../../../../core/index.js";
|
|
6
|
+
import * as Chrt from "../../../../../index.js";
|
|
7
|
+
export declare namespace Groups {
|
|
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 Groups {
|
|
31
|
+
protected readonly _options: Groups.Options;
|
|
32
|
+
constructor(_options?: Groups.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (list[NotificationGroup1])
|
|
35
|
+
*
|
|
36
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.notifications.groups.listByOrgV1()
|
|
40
|
+
*/
|
|
41
|
+
listByOrgV1(requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroup1[]>;
|
|
42
|
+
private __listByOrgV1;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves full notification group details including user membership. | authz: min_org_role=operator | () -> (NotificationGroup1)
|
|
45
|
+
*
|
|
46
|
+
* @param {string} groupId
|
|
47
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.notifications.groups.getForAdministratorV1("group_id")
|
|
53
|
+
*/
|
|
54
|
+
getForAdministratorV1(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroup1>;
|
|
55
|
+
private __getForAdministratorV1;
|
|
56
|
+
/**
|
|
57
|
+
* Lists notification groups the caller is a member of. | () -> (list[NotificationGroupLimitedForDriver1])
|
|
58
|
+
*
|
|
59
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* await client.notifications.groups.listByUserV1()
|
|
63
|
+
*/
|
|
64
|
+
listByUserV1(requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroupLimitedForDriver1[]>;
|
|
65
|
+
private __listByUserV1;
|
|
66
|
+
/**
|
|
67
|
+
* Retrieves limited notification group details for a group the caller is a member of. | () -> (NotificationGroupLimitedForDriver1)
|
|
68
|
+
*
|
|
69
|
+
* @param {string} groupId
|
|
70
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* await client.notifications.groups.getForMemberV1("group_id")
|
|
76
|
+
*/
|
|
77
|
+
getForMemberV1(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<Chrt.NotificationGroupLimitedForDriver1>;
|
|
78
|
+
private __getForMemberV1;
|
|
79
|
+
/**
|
|
80
|
+
* Creates a new notification group for the organization. | authz: min_org_role=administrator | (NotificationGroupClientCreate1) -> (PydanticObjectId)
|
|
81
|
+
*
|
|
82
|
+
* @param {Chrt.notifications.NotificationGroupClientCreate1} request
|
|
83
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.notifications.groups.createV1({
|
|
89
|
+
* schema_version: 1,
|
|
90
|
+
* group_name: "group_name"
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
createV1(request: Chrt.notifications.NotificationGroupClientCreate1, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<string>;
|
|
94
|
+
private __createV1;
|
|
95
|
+
/**
|
|
96
|
+
* Updates the name of a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
97
|
+
*
|
|
98
|
+
* @param {string} groupId
|
|
99
|
+
* @param {Chrt.notifications.GroupsUpdateNameV1Request} request
|
|
100
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* await client.notifications.groups.updateNameV1("group_id", {
|
|
106
|
+
* group_name: "group_name"
|
|
107
|
+
* })
|
|
108
|
+
*/
|
|
109
|
+
updateNameV1(groupId: string, request: Chrt.notifications.GroupsUpdateNameV1Request, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
110
|
+
private __updateNameV1;
|
|
111
|
+
/**
|
|
112
|
+
* Adds a notification event to a channel for a group. | authz: min_org_role=administrator | () -> (bool)
|
|
113
|
+
*
|
|
114
|
+
* @param {string} groupId
|
|
115
|
+
* @param {Chrt.NotificationChannelsEnum} channel
|
|
116
|
+
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
117
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* await client.notifications.groups.addEventV1("group_id", "email", "shipping.order.staged")
|
|
123
|
+
*/
|
|
124
|
+
addEventV1(groupId: string, channel: Chrt.NotificationChannelsEnum, event: Chrt.NotificationEventsForOrgsEnum, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
125
|
+
private __addEventV1;
|
|
126
|
+
/**
|
|
127
|
+
* Removes a notification event from a channel for a group. | authz: min_org_role=administrator | () -> (bool)
|
|
128
|
+
*
|
|
129
|
+
* @param {string} groupId
|
|
130
|
+
* @param {Chrt.NotificationChannelsEnum} channel
|
|
131
|
+
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
132
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.notifications.groups.removeEventV1("group_id", "email", "shipping.order.staged")
|
|
138
|
+
*/
|
|
139
|
+
removeEventV1(groupId: string, channel: Chrt.NotificationChannelsEnum, event: Chrt.NotificationEventsForOrgsEnum, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
140
|
+
private __removeEventV1;
|
|
141
|
+
/**
|
|
142
|
+
* Adds a user to a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
143
|
+
*
|
|
144
|
+
* @param {string} groupId
|
|
145
|
+
* @param {string} userId
|
|
146
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
|
+
*
|
|
148
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* await client.notifications.groups.addUserV1("group_id", "user_id")
|
|
152
|
+
*/
|
|
153
|
+
addUserV1(groupId: string, userId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
154
|
+
private __addUserV1;
|
|
155
|
+
/**
|
|
156
|
+
* Removes a user from a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
157
|
+
*
|
|
158
|
+
* @param {string} groupId
|
|
159
|
+
* @param {string} userId
|
|
160
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* await client.notifications.groups.removeUserV1("group_id", "user_id")
|
|
166
|
+
*/
|
|
167
|
+
removeUserV1(groupId: string, userId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
168
|
+
private __removeUserV1;
|
|
169
|
+
/**
|
|
170
|
+
* Deletes a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
171
|
+
*
|
|
172
|
+
* @param {string} groupId
|
|
173
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* await client.notifications.groups.deleteV1("group_id")
|
|
179
|
+
*/
|
|
180
|
+
deleteV1(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
181
|
+
private __deleteV1;
|
|
182
|
+
/**
|
|
183
|
+
* Opts the caller back into notifications for a group they were opted out of. | () -> (bool)
|
|
184
|
+
*
|
|
185
|
+
* @param {string} groupId
|
|
186
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
187
|
+
*
|
|
188
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* await client.notifications.groups.userOptInV1("group_id")
|
|
192
|
+
*/
|
|
193
|
+
userOptInV1(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
194
|
+
private __userOptInV1;
|
|
195
|
+
/**
|
|
196
|
+
* Opts the caller out of notifications for a group. | () -> (bool)
|
|
197
|
+
*
|
|
198
|
+
* @param {string} groupId
|
|
199
|
+
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
200
|
+
*
|
|
201
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* await client.notifications.groups.userOptOutV1("group_id")
|
|
205
|
+
*/
|
|
206
|
+
userOptOutV1(groupId: string, requestOptions?: Groups.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
207
|
+
private __userOptOutV1;
|
|
208
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
209
|
+
}
|