@chrt-inc/typescript-sdk 1.441.2 → 1.449.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.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.ts +4 -4
- package/dist/cjs/api/resources/billing/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/billing/client/Client.js +12 -12
- package/dist/cjs/api/resources/billing/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/billing/resources/index.js +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +43 -43
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +112 -112
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.js +44 -44
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +52 -52
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost.d.ts +3 -2
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.d.ts +59 -59
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/Client.js +159 -159
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.ts +13 -13
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/resources/billing/resources/rateSheets/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.d.ts +46 -46
- package/dist/cjs/api/resources/billing/resources/statements/client/Client.js +120 -120
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/statements/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/billing/resources/stripeConnect/client/Client.js +19 -19
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +33 -33
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.d.ts +57 -57
- package/dist/cjs/api/resources/notifications/resources/groups/client/Client.js +146 -146
- package/dist/cjs/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/Client.js +16 -16
- package/dist/cjs/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.ts +2 -2
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/notifications/resources/webhookSetup/client/Client.js +28 -28
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +31 -31
- package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +98 -98
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/Client.js +2 -2
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.ts +9 -9
- package/dist/cjs/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/client/Client.js +9 -9
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/index.js +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.js +51 -51
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.ts +7 -7
- package/dist/cjs/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.d.ts +32 -32
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/Client.js +66 -66
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/orgs/resources/orgProfiles/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +13 -13
- package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +59 -59
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/shipping/client/Client.js +12 -12
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +38 -38
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +126 -126
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.ts +7 -7
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/index.js +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +49 -49
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +19 -19
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +30 -30
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.ts +14 -14
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.js +55 -55
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.d.ts +5 -5
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/index.js +6 -6
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.js +26 -26
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.js +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +34 -34
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +73 -73
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +4 -4
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +16 -16
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.d.ts +10 -10
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/Client.js +18 -18
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.ts +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +52 -52
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1ShippingTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.ts +3 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +50 -50
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +85 -85
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +44 -44
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/index.js +3 -3
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.ts +20 -20
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +52 -52
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.ts +3 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.js +14 -14
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/shipping/resources/tasks/client/Client.js +31 -31
- package/dist/cjs/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.ts +6 -6
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.d.ts +54 -54
- package/dist/cjs/api/resources/tracking/resources/devices/client/Client.js +191 -191
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/devices/client/requests/index.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/driver/client/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +80 -80
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +237 -237
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +5 -5
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.ts +4 -4
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.ts +1 -1
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/index.d.ts +7 -7
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.d.ts +30 -30
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/Client.js +52 -52
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/sharingSettings/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.ts +26 -26
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.js +64 -64
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.js +51 -51
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +25 -25
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +62 -62
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.ts +3 -3
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.ts +23 -23
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.js +51 -51
- package/dist/cjs/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +6 -6
- package/dist/cjs/api/resources/users/client/Client.js +6 -6
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.d.ts +22 -22
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/Client.js +56 -56
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.ts +8 -8
- package/dist/cjs/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.ts +4 -4
- package/dist/cjs/api/resources/users/resources/index.d.ts +3 -3
- package/dist/cjs/api/resources/users/resources/index.js +4 -4
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.d.ts +15 -15
- package/dist/cjs/api/resources/users/resources/privateData/client/Client.js +59 -59
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.ts +2 -2
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/privateData/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/utils/client/Client.js +6 -6
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +24 -24
- package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +75 -75
- package/dist/cjs/api/resources/utils/resources/index.d.ts +1 -1
- package/dist/cjs/api/resources/utils/resources/index.js +2 -2
- package/dist/cjs/api/resources/utils/resources/root/client/Client.d.ts +16 -16
- package/dist/cjs/api/resources/utils/resources/root/client/Client.js +28 -28
- package/dist/cjs/api/types/AgentRes.d.ts +1 -1
- package/dist/cjs/api/types/BillingLineItemGroupMessageWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingStatementOpenedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/BillingStatementPaidWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/Cargo1.d.ts +16 -16
- package/dist/cjs/api/types/CargoByDeviceDataPoint1.d.ts +4 -4
- package/dist/cjs/api/types/CargoByDeviceDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDeviceMarkOutliersResponse1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDeviceSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/CargoByDriverDataPoint1.d.ts +3 -3
- package/dist/cjs/api/types/CargoByDriverDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/CargoByDriverSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientCreate1.d.ts +6 -6
- package/dist/cjs/api/types/CargoClientUpdate1.d.ts +5 -5
- package/dist/cjs/api/types/CourierConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/CourierOrgInfoForConnections1.d.ts +10 -10
- package/dist/cjs/api/types/CourierOrgProfile1.d.ts +3 -3
- package/dist/cjs/api/types/CreateOrgPublicDataRes.d.ts +1 -1
- package/dist/cjs/api/types/DecodedJwtWithOrgAndUserId.d.ts +7 -7
- package/dist/cjs/api/types/DeviceExpandedRes.d.ts +3 -3
- package/dist/cjs/api/types/DeviceLimitedForList1.d.ts +11 -11
- package/dist/cjs/api/types/DirectoryEntry1.d.ts +13 -13
- package/dist/cjs/api/types/Driver1.d.ts +13 -13
- package/dist/cjs/api/types/DriverUpdateRes.d.ts +1 -1
- package/dist/cjs/api/types/FirebaseCloudMessagingTokenData1.d.ts +1 -1
- package/dist/cjs/api/types/FlightAwareAlertFlight.d.ts +3 -3
- package/dist/cjs/api/types/FlightAwareAlertPayload.d.ts +3 -3
- package/dist/cjs/api/types/FlightAwareWebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/FlightInfoForTaskRes.d.ts +1 -1
- package/dist/cjs/api/types/ForwarderConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/ForwarderCourierConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ForwarderOrgInfoForConnections1.d.ts +8 -8
- package/dist/cjs/api/types/ForwarderOrgProfile1.d.ts +3 -3
- package/dist/cjs/api/types/LineItem1.d.ts +6 -6
- package/dist/cjs/api/types/LineItemGroup1.d.ts +11 -11
- package/dist/cjs/api/types/LineItemGroupMessage1.d.ts +2 -2
- package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/LocationFeature.d.ts +2 -2
- package/dist/cjs/api/types/NotificationGroup1.d.ts +7 -7
- package/dist/cjs/api/types/NotificationGroupLimitedForDriver1.d.ts +5 -5
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +3 -3
- package/dist/cjs/api/types/NotificationUserPreferences1.d.ts +5 -5
- package/dist/cjs/api/types/OffChrtShipperOrg1.d.ts +12 -12
- package/dist/cjs/api/types/Order1.d.ts +12 -12
- package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +8 -8
- package/dist/cjs/api/types/OrderDraftExpanded.d.ts +4 -4
- package/dist/cjs/api/types/OrderExpanded.d.ts +3 -3
- package/dist/cjs/api/types/OrdersDraftUpdateRes.d.ts +3 -3
- package/dist/cjs/api/types/OrgInfoResponse.d.ts +6 -6
- package/dist/cjs/api/types/OrgMemberDetails.d.ts +2 -2
- package/dist/cjs/api/types/OrgMembersAndDrivers.d.ts +1 -1
- package/dist/cjs/api/types/OrgPrivateData1.d.ts +12 -12
- package/dist/cjs/api/types/OrgPublicData1.d.ts +5 -5
- package/dist/cjs/api/types/Quote.d.ts +2 -2
- package/dist/cjs/api/types/RateSheet1.d.ts +17 -17
- package/dist/cjs/api/types/Session1.d.ts +14 -14
- package/dist/cjs/api/types/SessionByDeviceDataPoint1.d.ts +4 -4
- package/dist/cjs/api/types/SessionByDeviceDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/SessionByDeviceMarkOutliersResponse1.d.ts +1 -1
- package/dist/cjs/api/types/SetFlightInfoReq.d.ts +2 -2
- package/dist/cjs/api/types/ShipperConnectionRes.d.ts +1 -1
- package/dist/cjs/api/types/ShipperCourierConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperForwarderConnection1.d.ts +7 -7
- package/dist/cjs/api/types/ShipperOrgInfoForConnections1.d.ts +6 -6
- package/dist/cjs/api/types/ShippingOrderCancelledWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderCompletedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingOrderStagedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskAddedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskCompletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskDeletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskGroupInProgressWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskGroupMessageWebhookPayload.d.ts +3 -3
- package/dist/cjs/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.ts +1 -1
- package/dist/cjs/api/types/ShippingTaskSkippedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.ts +5 -5
- package/dist/cjs/api/types/Statement1.d.ts +20 -20
- package/dist/cjs/api/types/StatementExpandedRes.d.ts +1 -1
- package/dist/cjs/api/types/Task1.d.ts +19 -19
- package/dist/cjs/api/types/TaskArtifact1.d.ts +16 -16
- package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/TaskClientCreate1.d.ts +4 -4
- package/dist/cjs/api/types/TaskClientUpdate1.d.ts +2 -2
- package/dist/cjs/api/types/TaskExpanded.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroup1.d.ts +25 -25
- package/dist/cjs/api/types/TaskGroupByDriverDataPoint1.d.ts +3 -3
- package/dist/cjs/api/types/TaskGroupByDriverDataPointMetadata1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupByDriverSharingSettings1.d.ts +6 -6
- package/dist/cjs/api/types/TaskGroupExpanded.d.ts +4 -4
- package/dist/cjs/api/types/TaskGroupMessage1.d.ts +2 -2
- package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +8 -8
- package/dist/cjs/api/types/TimezoneResponse.d.ts +1 -1
- package/dist/cjs/api/types/TrackingSharingSettingsRes.d.ts +1 -1
- package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +1 -1
- package/dist/cjs/api/types/UserPrivateData1.d.ts +6 -6
- package/dist/cjs/api/types/UserPublicData1.d.ts +2 -2
- package/dist/cjs/api/types/ValidationError.d.ts +2 -2
- package/dist/cjs/api/types/Vehicle1.d.ts +1 -1
- package/dist/cjs/api/types/WebhookAppPortalAccessRes.d.ts +1 -1
- package/dist/cjs/core/exports.d.ts +1 -0
- package/dist/cjs/core/exports.js +17 -0
- package/dist/cjs/core/file/exports.d.ts +1 -0
- package/dist/cjs/core/file/exports.js +2 -0
- package/dist/cjs/core/file/file.d.ts +5 -0
- package/dist/cjs/core/file/file.js +203 -0
- package/dist/cjs/core/file/index.d.ts +2 -0
- package/dist/cjs/core/file/index.js +18 -0
- package/dist/cjs/core/file/types.d.ts +66 -0
- package/dist/cjs/core/file/types.js +2 -0
- package/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +2 -1
- package/dist/cjs/exports.d.ts +1 -0
- package/dist/cjs/exports.js +17 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/AnalyticsTimePeriodRequest.d.mts +4 -4
- package/dist/esm/api/resources/billing/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/billing/client/Client.mjs +10 -10
- package/dist/esm/api/resources/billing/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/billing/resources/index.mjs +3 -3
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +43 -43
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +112 -112
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/AdjustLineItemReq.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/Client.mjs +44 -44
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/CreateAdHocLineItemGroupReq.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/LineItemClientCreate1.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +52 -52
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost.d.mts +3 -2
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.d.mts +59 -59
- package/dist/esm/api/resources/billing/resources/rateSheets/client/Client.mjs +159 -159
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientCreate1.d.mts +13 -13
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/RateSheetClientUpdate1.d.mts +2 -2
- package/dist/esm/api/resources/billing/resources/rateSheets/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/billing/resources/statements/client/Client.d.mts +46 -46
- package/dist/esm/api/resources/billing/resources/statements/client/Client.mjs +120 -120
- package/dist/esm/api/resources/billing/resources/statements/client/requests/CreateStatementReq.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/statements/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/billing/resources/stripeConnect/client/Client.mjs +19 -19
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +33 -33
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.d.mts +57 -57
- package/dist/esm/api/resources/notifications/resources/groups/client/Client.mjs +146 -146
- package/dist/esm/api/resources/notifications/resources/groups/client/requests/NotificationGroupClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/Client.mjs +16 -16
- package/dist/esm/api/resources/notifications/resources/userPreferences/client/requests/UserNotificationPreferencesUpdateRequest.d.mts +2 -2
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/notifications/resources/webhookSetup/client/Client.mjs +28 -28
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +31 -31
- package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +98 -98
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/Client.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientCreate1.d.mts +9 -9
- package/dist/esm/api/resources/orgs/resources/offChrtShipperOrg/client/requests/OffChrtShipperOrgClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/client/Client.mjs +5 -5
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/courier/client/requests/CourierOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/forwarder/client/requests/ForwarderOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/index.mjs +2 -2
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/Client.mjs +51 -51
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientCreate1.d.mts +7 -7
- package/dist/esm/api/resources/orgs/resources/orgInfoForConnections/resources/shipper/client/requests/ShipperOrgInfoForConnectionsClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.d.mts +32 -32
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/Client.mjs +66 -66
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/CourierOrgProfileClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/ForwarderOrgProfileClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/orgs/resources/orgProfiles/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +13 -13
- package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +59 -59
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/CreateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/orgs/resources/publicData/client/requests/UpdateOrgPublicDataReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/shipping/client/Client.mjs +11 -11
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +38 -38
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +126 -126
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientCreate1.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverClientUpdate1.d.mts +7 -7
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/index.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +45 -45
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftUpdateReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +19 -19
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +30 -30
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAddCargoReq.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftAssociateCargoWithTaskReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.d.mts +14 -14
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/expanded/client/Client.mjs +55 -55
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.d.mts +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/index.mjs +5 -5
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/Client.mjs +26 -26
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/task/client/requests/OrderDraftAddTaskReqV1.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/Client.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskArtifact/client/requests/OrderDraftAddTaskArtifactReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +34 -34
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +73 -73
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +4 -4
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/SetRateSheetsReq.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +16 -16
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.d.mts +10 -10
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/Client.mjs +18 -18
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/client/requests/AddTaskArtifactReq.d.mts +3 -3
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +52 -52
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1ShippingTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.mts +3 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +50 -50
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +85 -85
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +44 -44
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/types/index.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/index.mjs +2 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.d.mts +20 -20
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +52 -52
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1ShippingTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.mts +3 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/taskGroupId/client/Client.mjs +14 -14
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/shipping/resources/tasks/client/Client.mjs +31 -31
- package/dist/esm/api/resources/shipping/resources/tasks/client/requests/AddTaskToGroupReq.d.mts +6 -6
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.d.mts +54 -54
- package/dist/esm/api/resources/tracking/resources/devices/client/Client.mjs +191 -191
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientCreate1.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DeviceClientUpdate1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/DevicesUpdateSharedOrgsReq1.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/devices/client/requests/index.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/driver/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +80 -80
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +237 -237
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionAddFlightReq1.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +5 -5
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionRemoveFlightReq1.d.mts +4 -4
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionsUpdateSharedOrgsReq1.d.mts +1 -1
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/index.d.mts +7 -7
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.d.mts +30 -30
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/Client.mjs +52 -52
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDeviceSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/CargoByDriverSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/TaskGroupByDriverSharingSettingsUpdateReq.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/sharingSettings/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.d.mts +26 -26
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/Client.mjs +64 -64
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/CargoByDeviceMarkOutliersRequest1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDevice/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/Client.mjs +51 -51
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/cargoByDriver/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +25 -25
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +62 -62
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceMarkOutliersRequest1.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/index.d.mts +3 -3
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.d.mts +23 -23
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/Client.mjs +51 -51
- package/dist/esm/api/resources/tracking/resources/timeseries/resources/taskGroupByDriver/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +6 -6
- package/dist/esm/api/resources/users/client/Client.mjs +6 -6
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.d.mts +22 -22
- package/dist/esm/api/resources/users/resources/directoryEntries/client/Client.mjs +56 -56
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientCreate1.d.mts +8 -8
- package/dist/esm/api/resources/users/resources/directoryEntries/client/requests/DirectoryEntryClientUpdate1.d.mts +4 -4
- package/dist/esm/api/resources/users/resources/index.d.mts +3 -3
- package/dist/esm/api/resources/users/resources/index.mjs +3 -3
- package/dist/esm/api/resources/users/resources/privateData/client/Client.d.mts +15 -15
- package/dist/esm/api/resources/users/resources/privateData/client/Client.mjs +59 -59
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientCreate1.d.mts +2 -2
- package/dist/esm/api/resources/users/resources/privateData/client/requests/UserPrivateDataClientUpdate1.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/privateData/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/utils/client/Client.mjs +5 -5
- package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +24 -24
- package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +75 -75
- package/dist/esm/api/resources/utils/resources/index.d.mts +1 -1
- package/dist/esm/api/resources/utils/resources/index.mjs +1 -1
- package/dist/esm/api/resources/utils/resources/root/client/Client.d.mts +16 -16
- package/dist/esm/api/resources/utils/resources/root/client/Client.mjs +28 -28
- package/dist/esm/api/types/AgentRes.d.mts +1 -1
- package/dist/esm/api/types/BillingLineItemGroupMessageWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingLineItemGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingStatementOpenedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/BillingStatementPaidWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/Cargo1.d.mts +16 -16
- package/dist/esm/api/types/CargoByDeviceDataPoint1.d.mts +4 -4
- package/dist/esm/api/types/CargoByDeviceDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDeviceMarkOutliersResponse1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDeviceSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/CargoByDriverDataPoint1.d.mts +3 -3
- package/dist/esm/api/types/CargoByDriverDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/CargoByDriverSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientCreate1.d.mts +6 -6
- package/dist/esm/api/types/CargoClientUpdate1.d.mts +5 -5
- package/dist/esm/api/types/CourierConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/CourierOrgInfoForConnections1.d.mts +10 -10
- package/dist/esm/api/types/CourierOrgProfile1.d.mts +3 -3
- package/dist/esm/api/types/CreateOrgPublicDataRes.d.mts +1 -1
- package/dist/esm/api/types/DecodedJwtWithOrgAndUserId.d.mts +7 -7
- package/dist/esm/api/types/DeviceExpandedRes.d.mts +3 -3
- package/dist/esm/api/types/DeviceLimitedForList1.d.mts +11 -11
- package/dist/esm/api/types/DirectoryEntry1.d.mts +13 -13
- package/dist/esm/api/types/Driver1.d.mts +13 -13
- package/dist/esm/api/types/DriverUpdateRes.d.mts +1 -1
- package/dist/esm/api/types/FirebaseCloudMessagingTokenData1.d.mts +1 -1
- package/dist/esm/api/types/FlightAwareAlertFlight.d.mts +3 -3
- package/dist/esm/api/types/FlightAwareAlertPayload.d.mts +3 -3
- package/dist/esm/api/types/FlightAwareWebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/FlightInfoForTaskRes.d.mts +1 -1
- package/dist/esm/api/types/ForwarderConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/ForwarderCourierConnection1.d.mts +7 -7
- package/dist/esm/api/types/ForwarderOrgInfoForConnections1.d.mts +8 -8
- package/dist/esm/api/types/ForwarderOrgProfile1.d.mts +3 -3
- package/dist/esm/api/types/LineItem1.d.mts +6 -6
- package/dist/esm/api/types/LineItemGroup1.d.mts +11 -11
- package/dist/esm/api/types/LineItemGroupMessage1.d.mts +2 -2
- package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/LocationFeature.d.mts +2 -2
- package/dist/esm/api/types/NotificationGroup1.d.mts +7 -7
- package/dist/esm/api/types/NotificationGroupLimitedForDriver1.d.mts +5 -5
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +3 -3
- package/dist/esm/api/types/NotificationUserPreferences1.d.mts +5 -5
- package/dist/esm/api/types/OffChrtShipperOrg1.d.mts +12 -12
- package/dist/esm/api/types/Order1.d.mts +12 -12
- package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +8 -8
- package/dist/esm/api/types/OrderDraftExpanded.d.mts +4 -4
- package/dist/esm/api/types/OrderExpanded.d.mts +3 -3
- package/dist/esm/api/types/OrdersDraftUpdateRes.d.mts +3 -3
- package/dist/esm/api/types/OrgInfoResponse.d.mts +6 -6
- package/dist/esm/api/types/OrgMemberDetails.d.mts +2 -2
- package/dist/esm/api/types/OrgMembersAndDrivers.d.mts +1 -1
- package/dist/esm/api/types/OrgPrivateData1.d.mts +12 -12
- package/dist/esm/api/types/OrgPublicData1.d.mts +5 -5
- package/dist/esm/api/types/Quote.d.mts +2 -2
- package/dist/esm/api/types/RateSheet1.d.mts +17 -17
- package/dist/esm/api/types/Session1.d.mts +14 -14
- package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +4 -4
- package/dist/esm/api/types/SessionByDeviceDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/SessionByDeviceMarkOutliersResponse1.d.mts +1 -1
- package/dist/esm/api/types/SetFlightInfoReq.d.mts +2 -2
- package/dist/esm/api/types/ShipperConnectionRes.d.mts +1 -1
- package/dist/esm/api/types/ShipperCourierConnection1.d.mts +7 -7
- package/dist/esm/api/types/ShipperForwarderConnection1.d.mts +7 -7
- package/dist/esm/api/types/ShipperOrgInfoForConnections1.d.mts +6 -6
- package/dist/esm/api/types/ShippingOrderCancelledWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderCompletedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingOrderStagedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskAddedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskCompletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskDeletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskGroupCourierOrgAssignedWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupDriverAssignedWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupFlightInfoUpdatedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskGroupInProgressWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskGroupMessageWebhookPayload.d.mts +3 -3
- package/dist/esm/api/types/ShippingTaskGroupS3ObjectAddedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskGroupTasksOrderingUpdatedWebhookPayload.d.mts +1 -1
- package/dist/esm/api/types/ShippingTaskSkippedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/ShippingTaskTaskArtifactCompletedWebhookPayload.d.mts +5 -5
- package/dist/esm/api/types/Statement1.d.mts +20 -20
- package/dist/esm/api/types/StatementExpandedRes.d.mts +1 -1
- package/dist/esm/api/types/Task1.d.mts +19 -19
- package/dist/esm/api/types/TaskArtifact1.d.mts +16 -16
- package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/TaskClientCreate1.d.mts +4 -4
- package/dist/esm/api/types/TaskClientUpdate1.d.mts +2 -2
- package/dist/esm/api/types/TaskExpanded.d.mts +2 -2
- package/dist/esm/api/types/TaskGroup1.d.mts +25 -25
- package/dist/esm/api/types/TaskGroupByDriverDataPoint1.d.mts +3 -3
- package/dist/esm/api/types/TaskGroupByDriverDataPointMetadata1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupByDriverSharingSettings1.d.mts +6 -6
- package/dist/esm/api/types/TaskGroupExpanded.d.mts +4 -4
- package/dist/esm/api/types/TaskGroupMessage1.d.mts +2 -2
- package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +8 -8
- package/dist/esm/api/types/TimezoneResponse.d.mts +1 -1
- package/dist/esm/api/types/TrackingSharingSettingsRes.d.mts +1 -1
- package/dist/esm/api/types/TrackingWebhookResponse.d.mts +1 -1
- package/dist/esm/api/types/UserPrivateData1.d.mts +6 -6
- package/dist/esm/api/types/UserPublicData1.d.mts +2 -2
- package/dist/esm/api/types/ValidationError.d.mts +2 -2
- package/dist/esm/api/types/Vehicle1.d.mts +1 -1
- package/dist/esm/api/types/WebhookAppPortalAccessRes.d.mts +1 -1
- package/dist/esm/core/exports.d.mts +1 -0
- package/dist/esm/core/exports.mjs +1 -0
- package/dist/esm/core/file/exports.d.mts +1 -0
- package/dist/esm/core/file/exports.mjs +1 -0
- package/dist/esm/core/file/file.d.mts +5 -0
- package/dist/esm/core/file/file.mjs +167 -0
- package/dist/esm/core/file/index.d.mts +2 -0
- package/dist/esm/core/file/index.mjs +2 -0
- package/dist/esm/core/file/types.d.mts +66 -0
- package/dist/esm/core/file/types.mjs +1 -0
- package/dist/esm/core/index.d.mts +1 -0
- package/dist/esm/core/index.mjs +1 -0
- package/dist/esm/exports.d.mts +1 -0
- package/dist/esm/exports.mjs +1 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1577 -1577
|
@@ -20,23 +20,28 @@ export class Groups {
|
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Adds a notification event to a channel for a group. | authz: min_org_role=administrator | () -> (bool)
|
|
24
24
|
*
|
|
25
|
+
* @param {string} groupId
|
|
26
|
+
* @param {Chrt.NotificationChannelsEnum} channel
|
|
27
|
+
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
25
28
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
29
|
*
|
|
30
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
31
|
+
*
|
|
27
32
|
* @example
|
|
28
|
-
* await client.notifications.groups.
|
|
33
|
+
* await client.notifications.groups.addEventV1("group_id", "email", "shipping.order.staged")
|
|
29
34
|
*/
|
|
30
|
-
|
|
31
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
35
|
+
addEventV1(groupId, channel, event, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__addEventV1(groupId, channel, event, requestOptions));
|
|
32
37
|
}
|
|
33
|
-
|
|
38
|
+
__addEventV1(groupId, channel, event, requestOptions) {
|
|
34
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
40
|
var _a, _b, _c, _d;
|
|
36
41
|
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);
|
|
37
42
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
-
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,
|
|
39
|
-
method: "
|
|
43
|
+
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, `notifications/groups/add_event/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(channel)}/${encodeURIComponent(event)}`),
|
|
44
|
+
method: "POST",
|
|
40
45
|
headers: _headers,
|
|
41
46
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
42
47
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -47,11 +52,16 @@ export class Groups {
|
|
|
47
52
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
48
53
|
}
|
|
49
54
|
if (_response.error.reason === "status-code") {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
switch (_response.error.statusCode) {
|
|
56
|
+
case 422:
|
|
57
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
58
|
+
default:
|
|
59
|
+
throw new errors.ChrtError({
|
|
60
|
+
statusCode: _response.error.statusCode,
|
|
61
|
+
body: _response.error.body,
|
|
62
|
+
rawResponse: _response.rawResponse,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
55
65
|
}
|
|
56
66
|
switch (_response.error.reason) {
|
|
57
67
|
case "non-json":
|
|
@@ -61,7 +71,7 @@ export class Groups {
|
|
|
61
71
|
rawResponse: _response.rawResponse,
|
|
62
72
|
});
|
|
63
73
|
case "timeout":
|
|
64
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
74
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/add_event/v1/{group_id}/{channel}/{event}.");
|
|
65
75
|
case "unknown":
|
|
66
76
|
throw new errors.ChrtError({
|
|
67
77
|
message: _response.error.errorMessage,
|
|
@@ -71,26 +81,27 @@ export class Groups {
|
|
|
71
81
|
});
|
|
72
82
|
}
|
|
73
83
|
/**
|
|
74
|
-
*
|
|
84
|
+
* Adds a user to a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
75
85
|
*
|
|
76
86
|
* @param {string} groupId
|
|
87
|
+
* @param {string} userId
|
|
77
88
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
89
|
*
|
|
79
90
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
80
91
|
*
|
|
81
92
|
* @example
|
|
82
|
-
* await client.notifications.groups.
|
|
93
|
+
* await client.notifications.groups.addUserV1("group_id", "user_id")
|
|
83
94
|
*/
|
|
84
|
-
|
|
85
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
95
|
+
addUserV1(groupId, userId, requestOptions) {
|
|
96
|
+
return core.HttpResponsePromise.fromPromise(this.__addUserV1(groupId, userId, requestOptions));
|
|
86
97
|
}
|
|
87
|
-
|
|
98
|
+
__addUserV1(groupId, userId, requestOptions) {
|
|
88
99
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
100
|
var _a, _b, _c, _d;
|
|
90
101
|
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);
|
|
91
102
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
92
|
-
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, `notifications/groups/
|
|
93
|
-
method: "
|
|
103
|
+
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, `notifications/groups/add_user/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(userId)}`),
|
|
104
|
+
method: "POST",
|
|
94
105
|
headers: _headers,
|
|
95
106
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
96
107
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -120,7 +131,7 @@ export class Groups {
|
|
|
120
131
|
rawResponse: _response.rawResponse,
|
|
121
132
|
});
|
|
122
133
|
case "timeout":
|
|
123
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
134
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/add_user/v1/{group_id}/{user_id}.");
|
|
124
135
|
case "unknown":
|
|
125
136
|
throw new errors.ChrtError({
|
|
126
137
|
message: _response.error.errorMessage,
|
|
@@ -130,41 +141,52 @@ export class Groups {
|
|
|
130
141
|
});
|
|
131
142
|
}
|
|
132
143
|
/**
|
|
133
|
-
*
|
|
144
|
+
* Creates a new notification group for the organization. | authz: min_org_role=administrator | (NotificationGroupClientCreate1) -> (PydanticObjectId)
|
|
134
145
|
*
|
|
146
|
+
* @param {Chrt.notifications.NotificationGroupClientCreate1} request
|
|
135
147
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
136
148
|
*
|
|
149
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
150
|
+
*
|
|
137
151
|
* @example
|
|
138
|
-
* await client.notifications.groups.
|
|
152
|
+
* await client.notifications.groups.createV1({
|
|
153
|
+
* group_name: "group_name",
|
|
154
|
+
* schema_version: 1
|
|
155
|
+
* })
|
|
139
156
|
*/
|
|
140
|
-
|
|
141
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
157
|
+
createV1(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
142
159
|
}
|
|
143
|
-
|
|
160
|
+
__createV1(request, requestOptions) {
|
|
144
161
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
162
|
var _a, _b, _c, _d;
|
|
146
163
|
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);
|
|
147
164
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
148
|
-
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, "notifications/groups/
|
|
149
|
-
method: "
|
|
165
|
+
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, "notifications/groups/create/v1"),
|
|
166
|
+
method: "POST",
|
|
150
167
|
headers: _headers,
|
|
168
|
+
contentType: "application/json",
|
|
151
169
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
170
|
+
requestType: "json",
|
|
171
|
+
body: request,
|
|
152
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
153
173
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
154
174
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
155
175
|
});
|
|
156
176
|
if (_response.ok) {
|
|
157
|
-
return {
|
|
158
|
-
data: _response.body,
|
|
159
|
-
rawResponse: _response.rawResponse,
|
|
160
|
-
};
|
|
177
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
161
178
|
}
|
|
162
179
|
if (_response.error.reason === "status-code") {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
180
|
+
switch (_response.error.statusCode) {
|
|
181
|
+
case 422:
|
|
182
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
183
|
+
default:
|
|
184
|
+
throw new errors.ChrtError({
|
|
185
|
+
statusCode: _response.error.statusCode,
|
|
186
|
+
body: _response.error.body,
|
|
187
|
+
rawResponse: _response.rawResponse,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
168
190
|
}
|
|
169
191
|
switch (_response.error.reason) {
|
|
170
192
|
case "non-json":
|
|
@@ -174,7 +196,7 @@ export class Groups {
|
|
|
174
196
|
rawResponse: _response.rawResponse,
|
|
175
197
|
});
|
|
176
198
|
case "timeout":
|
|
177
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
199
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/create/v1.");
|
|
178
200
|
case "unknown":
|
|
179
201
|
throw new errors.ChrtError({
|
|
180
202
|
message: _response.error.errorMessage,
|
|
@@ -184,7 +206,7 @@ export class Groups {
|
|
|
184
206
|
});
|
|
185
207
|
}
|
|
186
208
|
/**
|
|
187
|
-
*
|
|
209
|
+
* Deletes a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
188
210
|
*
|
|
189
211
|
* @param {string} groupId
|
|
190
212
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -192,18 +214,18 @@ export class Groups {
|
|
|
192
214
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
193
215
|
*
|
|
194
216
|
* @example
|
|
195
|
-
* await client.notifications.groups.
|
|
217
|
+
* await client.notifications.groups.deleteV1("group_id")
|
|
196
218
|
*/
|
|
197
|
-
|
|
198
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
219
|
+
deleteV1(groupId, requestOptions) {
|
|
220
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(groupId, requestOptions));
|
|
199
221
|
}
|
|
200
|
-
|
|
222
|
+
__deleteV1(groupId, requestOptions) {
|
|
201
223
|
return __awaiter(this, void 0, void 0, function* () {
|
|
202
224
|
var _a, _b, _c, _d;
|
|
203
225
|
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);
|
|
204
226
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
205
|
-
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, `notifications/groups/
|
|
206
|
-
method: "
|
|
227
|
+
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, `notifications/groups/delete/v1/${encodeURIComponent(groupId)}`),
|
|
228
|
+
method: "DELETE",
|
|
207
229
|
headers: _headers,
|
|
208
230
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
209
231
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -211,10 +233,7 @@ export class Groups {
|
|
|
211
233
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
212
234
|
});
|
|
213
235
|
if (_response.ok) {
|
|
214
|
-
return {
|
|
215
|
-
data: _response.body,
|
|
216
|
-
rawResponse: _response.rawResponse,
|
|
217
|
-
};
|
|
236
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
218
237
|
}
|
|
219
238
|
if (_response.error.reason === "status-code") {
|
|
220
239
|
switch (_response.error.statusCode) {
|
|
@@ -236,7 +255,7 @@ export class Groups {
|
|
|
236
255
|
rawResponse: _response.rawResponse,
|
|
237
256
|
});
|
|
238
257
|
case "timeout":
|
|
239
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
258
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/delete/v1/{group_id}.");
|
|
240
259
|
case "unknown":
|
|
241
260
|
throw new errors.ChrtError({
|
|
242
261
|
message: _response.error.errorMessage,
|
|
@@ -246,34 +265,28 @@ export class Groups {
|
|
|
246
265
|
});
|
|
247
266
|
}
|
|
248
267
|
/**
|
|
249
|
-
*
|
|
268
|
+
* Retrieves full notification group details including user membership. | authz: min_org_role=operator | () -> (NotificationGroup1)
|
|
250
269
|
*
|
|
251
|
-
* @param {
|
|
270
|
+
* @param {string} groupId
|
|
252
271
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
253
272
|
*
|
|
254
273
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
255
274
|
*
|
|
256
275
|
* @example
|
|
257
|
-
* await client.notifications.groups.
|
|
258
|
-
* schema_version: 1,
|
|
259
|
-
* group_name: "group_name"
|
|
260
|
-
* })
|
|
276
|
+
* await client.notifications.groups.getForAdministratorV1("group_id")
|
|
261
277
|
*/
|
|
262
|
-
|
|
263
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
278
|
+
getForAdministratorV1(groupId, requestOptions) {
|
|
279
|
+
return core.HttpResponsePromise.fromPromise(this.__getForAdministratorV1(groupId, requestOptions));
|
|
264
280
|
}
|
|
265
|
-
|
|
281
|
+
__getForAdministratorV1(groupId, requestOptions) {
|
|
266
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
267
283
|
var _a, _b, _c, _d;
|
|
268
284
|
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);
|
|
269
285
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
270
|
-
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,
|
|
271
|
-
method: "
|
|
286
|
+
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, `notifications/groups/get_for_administrator/v1/${encodeURIComponent(groupId)}`),
|
|
287
|
+
method: "GET",
|
|
272
288
|
headers: _headers,
|
|
273
|
-
contentType: "application/json",
|
|
274
289
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
275
|
-
requestType: "json",
|
|
276
|
-
body: request,
|
|
277
290
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
278
291
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
279
292
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -301,7 +314,7 @@ export class Groups {
|
|
|
301
314
|
rawResponse: _response.rawResponse,
|
|
302
315
|
});
|
|
303
316
|
case "timeout":
|
|
304
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
317
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/get_for_administrator/v1/{group_id}.");
|
|
305
318
|
case "unknown":
|
|
306
319
|
throw new errors.ChrtError({
|
|
307
320
|
message: _response.error.errorMessage,
|
|
@@ -311,40 +324,37 @@ export class Groups {
|
|
|
311
324
|
});
|
|
312
325
|
}
|
|
313
326
|
/**
|
|
314
|
-
*
|
|
327
|
+
* Retrieves limited notification group details for a group the caller is a member of. | () -> (NotificationGroupLimitedForDriver1)
|
|
315
328
|
*
|
|
316
329
|
* @param {string} groupId
|
|
317
|
-
* @param {Chrt.notifications.GroupsUpdateNameV1Request} request
|
|
318
330
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
319
331
|
*
|
|
320
332
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
321
333
|
*
|
|
322
334
|
* @example
|
|
323
|
-
* await client.notifications.groups.
|
|
324
|
-
* group_name: "group_name"
|
|
325
|
-
* })
|
|
335
|
+
* await client.notifications.groups.getForMemberV1("group_id")
|
|
326
336
|
*/
|
|
327
|
-
|
|
328
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
337
|
+
getForMemberV1(groupId, requestOptions) {
|
|
338
|
+
return core.HttpResponsePromise.fromPromise(this.__getForMemberV1(groupId, requestOptions));
|
|
329
339
|
}
|
|
330
|
-
|
|
340
|
+
__getForMemberV1(groupId, requestOptions) {
|
|
331
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
332
342
|
var _a, _b, _c, _d;
|
|
333
|
-
const { group_name: groupName } = request;
|
|
334
|
-
const _queryParams = {};
|
|
335
|
-
_queryParams["group_name"] = groupName;
|
|
336
343
|
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);
|
|
337
344
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
338
|
-
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, `notifications/groups/
|
|
339
|
-
method: "
|
|
345
|
+
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, `notifications/groups/get_for_member/v1/${encodeURIComponent(groupId)}`),
|
|
346
|
+
method: "GET",
|
|
340
347
|
headers: _headers,
|
|
341
|
-
queryParameters:
|
|
348
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
342
349
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
343
350
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
344
351
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
345
352
|
});
|
|
346
353
|
if (_response.ok) {
|
|
347
|
-
return {
|
|
354
|
+
return {
|
|
355
|
+
data: _response.body,
|
|
356
|
+
rawResponse: _response.rawResponse,
|
|
357
|
+
};
|
|
348
358
|
}
|
|
349
359
|
if (_response.error.reason === "status-code") {
|
|
350
360
|
switch (_response.error.statusCode) {
|
|
@@ -366,7 +376,7 @@ export class Groups {
|
|
|
366
376
|
rawResponse: _response.rawResponse,
|
|
367
377
|
});
|
|
368
378
|
case "timeout":
|
|
369
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
379
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/get_for_member/v1/{group_id}.");
|
|
370
380
|
case "unknown":
|
|
371
381
|
throw new errors.ChrtError({
|
|
372
382
|
message: _response.error.errorMessage,
|
|
@@ -376,28 +386,23 @@ export class Groups {
|
|
|
376
386
|
});
|
|
377
387
|
}
|
|
378
388
|
/**
|
|
379
|
-
*
|
|
389
|
+
* Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (list[NotificationGroup1])
|
|
380
390
|
*
|
|
381
|
-
* @param {string} groupId
|
|
382
|
-
* @param {Chrt.NotificationChannelsEnum} channel
|
|
383
|
-
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
384
391
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
385
392
|
*
|
|
386
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
387
|
-
*
|
|
388
393
|
* @example
|
|
389
|
-
* await client.notifications.groups.
|
|
394
|
+
* await client.notifications.groups.listByOrgV1()
|
|
390
395
|
*/
|
|
391
|
-
|
|
392
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
396
|
+
listByOrgV1(requestOptions) {
|
|
397
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOrgV1(requestOptions));
|
|
393
398
|
}
|
|
394
|
-
|
|
399
|
+
__listByOrgV1(requestOptions) {
|
|
395
400
|
return __awaiter(this, void 0, void 0, function* () {
|
|
396
401
|
var _a, _b, _c, _d;
|
|
397
402
|
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);
|
|
398
403
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
399
|
-
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,
|
|
400
|
-
method: "
|
|
404
|
+
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, "notifications/groups/list_by_org/v1"),
|
|
405
|
+
method: "GET",
|
|
401
406
|
headers: _headers,
|
|
402
407
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
403
408
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -408,16 +413,11 @@ export class Groups {
|
|
|
408
413
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
409
414
|
}
|
|
410
415
|
if (_response.error.reason === "status-code") {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
statusCode: _response.error.statusCode,
|
|
417
|
-
body: _response.error.body,
|
|
418
|
-
rawResponse: _response.rawResponse,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
416
|
+
throw new errors.ChrtError({
|
|
417
|
+
statusCode: _response.error.statusCode,
|
|
418
|
+
body: _response.error.body,
|
|
419
|
+
rawResponse: _response.rawResponse,
|
|
420
|
+
});
|
|
421
421
|
}
|
|
422
422
|
switch (_response.error.reason) {
|
|
423
423
|
case "non-json":
|
|
@@ -427,7 +427,7 @@ export class Groups {
|
|
|
427
427
|
rawResponse: _response.rawResponse,
|
|
428
428
|
});
|
|
429
429
|
case "timeout":
|
|
430
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
430
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/list_by_org/v1.");
|
|
431
431
|
case "unknown":
|
|
432
432
|
throw new errors.ChrtError({
|
|
433
433
|
message: _response.error.errorMessage,
|
|
@@ -437,28 +437,23 @@ export class Groups {
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
/**
|
|
440
|
-
*
|
|
440
|
+
* Lists notification groups the caller is a member of. | () -> (list[NotificationGroupLimitedForDriver1])
|
|
441
441
|
*
|
|
442
|
-
* @param {string} groupId
|
|
443
|
-
* @param {Chrt.NotificationChannelsEnum} channel
|
|
444
|
-
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
445
442
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
446
443
|
*
|
|
447
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
448
|
-
*
|
|
449
444
|
* @example
|
|
450
|
-
* await client.notifications.groups.
|
|
445
|
+
* await client.notifications.groups.listByUserV1()
|
|
451
446
|
*/
|
|
452
|
-
|
|
453
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
447
|
+
listByUserV1(requestOptions) {
|
|
448
|
+
return core.HttpResponsePromise.fromPromise(this.__listByUserV1(requestOptions));
|
|
454
449
|
}
|
|
455
|
-
|
|
450
|
+
__listByUserV1(requestOptions) {
|
|
456
451
|
return __awaiter(this, void 0, void 0, function* () {
|
|
457
452
|
var _a, _b, _c, _d;
|
|
458
453
|
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);
|
|
459
454
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
460
|
-
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,
|
|
461
|
-
method: "
|
|
455
|
+
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, "notifications/groups/list_by_user/v1"),
|
|
456
|
+
method: "GET",
|
|
462
457
|
headers: _headers,
|
|
463
458
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
464
459
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -466,19 +461,17 @@ export class Groups {
|
|
|
466
461
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
467
462
|
});
|
|
468
463
|
if (_response.ok) {
|
|
469
|
-
return {
|
|
464
|
+
return {
|
|
465
|
+
data: _response.body,
|
|
466
|
+
rawResponse: _response.rawResponse,
|
|
467
|
+
};
|
|
470
468
|
}
|
|
471
469
|
if (_response.error.reason === "status-code") {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
statusCode: _response.error.statusCode,
|
|
478
|
-
body: _response.error.body,
|
|
479
|
-
rawResponse: _response.rawResponse,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
470
|
+
throw new errors.ChrtError({
|
|
471
|
+
statusCode: _response.error.statusCode,
|
|
472
|
+
body: _response.error.body,
|
|
473
|
+
rawResponse: _response.rawResponse,
|
|
474
|
+
});
|
|
482
475
|
}
|
|
483
476
|
switch (_response.error.reason) {
|
|
484
477
|
case "non-json":
|
|
@@ -488,7 +481,7 @@ export class Groups {
|
|
|
488
481
|
rawResponse: _response.rawResponse,
|
|
489
482
|
});
|
|
490
483
|
case "timeout":
|
|
491
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
484
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/list_by_user/v1.");
|
|
492
485
|
case "unknown":
|
|
493
486
|
throw new errors.ChrtError({
|
|
494
487
|
message: _response.error.errorMessage,
|
|
@@ -498,27 +491,28 @@ export class Groups {
|
|
|
498
491
|
});
|
|
499
492
|
}
|
|
500
493
|
/**
|
|
501
|
-
*
|
|
494
|
+
* Removes a notification event from a channel for a group. | authz: min_org_role=administrator | () -> (bool)
|
|
502
495
|
*
|
|
503
496
|
* @param {string} groupId
|
|
504
|
-
* @param {
|
|
497
|
+
* @param {Chrt.NotificationChannelsEnum} channel
|
|
498
|
+
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
505
499
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
506
500
|
*
|
|
507
501
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
508
502
|
*
|
|
509
503
|
* @example
|
|
510
|
-
* await client.notifications.groups.
|
|
504
|
+
* await client.notifications.groups.removeEventV1("group_id", "email", "shipping.order.staged")
|
|
511
505
|
*/
|
|
512
|
-
|
|
513
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
506
|
+
removeEventV1(groupId, channel, event, requestOptions) {
|
|
507
|
+
return core.HttpResponsePromise.fromPromise(this.__removeEventV1(groupId, channel, event, requestOptions));
|
|
514
508
|
}
|
|
515
|
-
|
|
509
|
+
__removeEventV1(groupId, channel, event, requestOptions) {
|
|
516
510
|
return __awaiter(this, void 0, void 0, function* () {
|
|
517
511
|
var _a, _b, _c, _d;
|
|
518
512
|
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);
|
|
519
513
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
520
|
-
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, `notifications/groups/
|
|
521
|
-
method: "
|
|
514
|
+
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, `notifications/groups/remove_event/v1/${encodeURIComponent(groupId)}/${encodeURIComponent(channel)}/${encodeURIComponent(event)}`),
|
|
515
|
+
method: "DELETE",
|
|
522
516
|
headers: _headers,
|
|
523
517
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
524
518
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -548,7 +542,7 @@ export class Groups {
|
|
|
548
542
|
rawResponse: _response.rawResponse,
|
|
549
543
|
});
|
|
550
544
|
case "timeout":
|
|
551
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
545
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/remove_event/v1/{group_id}/{channel}/{event}.");
|
|
552
546
|
case "unknown":
|
|
553
547
|
throw new errors.ChrtError({
|
|
554
548
|
message: _response.error.errorMessage,
|
|
@@ -618,28 +612,34 @@ export class Groups {
|
|
|
618
612
|
});
|
|
619
613
|
}
|
|
620
614
|
/**
|
|
621
|
-
*
|
|
615
|
+
* Updates the name of a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
622
616
|
*
|
|
623
617
|
* @param {string} groupId
|
|
618
|
+
* @param {Chrt.notifications.GroupsUpdateNameV1Request} request
|
|
624
619
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
625
620
|
*
|
|
626
621
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
627
622
|
*
|
|
628
623
|
* @example
|
|
629
|
-
* await client.notifications.groups.
|
|
624
|
+
* await client.notifications.groups.updateNameV1("group_id", {
|
|
625
|
+
* group_name: "group_name"
|
|
626
|
+
* })
|
|
630
627
|
*/
|
|
631
|
-
|
|
632
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
628
|
+
updateNameV1(groupId, request, requestOptions) {
|
|
629
|
+
return core.HttpResponsePromise.fromPromise(this.__updateNameV1(groupId, request, requestOptions));
|
|
633
630
|
}
|
|
634
|
-
|
|
631
|
+
__updateNameV1(groupId, request, requestOptions) {
|
|
635
632
|
return __awaiter(this, void 0, void 0, function* () {
|
|
636
633
|
var _a, _b, _c, _d;
|
|
634
|
+
const { group_name: groupName } = request;
|
|
635
|
+
const _queryParams = {};
|
|
636
|
+
_queryParams["group_name"] = groupName;
|
|
637
637
|
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);
|
|
638
638
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
639
|
-
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, `notifications/groups/
|
|
640
|
-
method: "
|
|
639
|
+
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, `notifications/groups/update_name/v1/${encodeURIComponent(groupId)}`),
|
|
640
|
+
method: "PATCH",
|
|
641
641
|
headers: _headers,
|
|
642
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
642
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
643
643
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
644
644
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
645
645
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -667,7 +667,7 @@ export class Groups {
|
|
|
667
667
|
rawResponse: _response.rawResponse,
|
|
668
668
|
});
|
|
669
669
|
case "timeout":
|
|
670
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
670
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /notifications/groups/update_name/v1/{group_id}.");
|
|
671
671
|
case "unknown":
|
|
672
672
|
throw new errors.ChrtError({
|
|
673
673
|
message: _response.error.errorMessage,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* group_name: "group_name",
|
|
8
|
+
* schema_version: 1
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface NotificationGroupClientCreate1 {
|
|
12
|
-
schema_version: number;
|
|
13
12
|
group_name: string;
|
|
13
|
+
schema_version: number;
|
|
14
14
|
}
|