@chrt-inc/typescript-sdk 1.449.1 → 1.449.3
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 +19 -19
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +52 -52
- 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 +19 -19
- package/dist/cjs/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.js +52 -52
- 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 +19 -19
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.js +52 -52
- 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/GeometryCollection.d.ts +1 -1
- package/dist/cjs/api/types/{GeometryCollectionInputGeometriesItem.d.ts → GeometryCollectionGeometriesItem.d.ts} +2 -2
- 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/api/types/index.d.ts +1 -2
- package/dist/cjs/api/types/index.js +1 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/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 +19 -19
- package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +52 -52
- 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 +19 -19
- package/dist/esm/api/resources/shipping/resources/taskArtifacts/resources/s3Object/client/Client.mjs +52 -52
- 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 +19 -19
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/s3Object/client/Client.mjs +52 -52
- 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/GeometryCollection.d.mts +1 -1
- package/dist/esm/api/types/{GeometryCollectionInputGeometriesItem.d.mts → GeometryCollectionGeometriesItem.d.mts} +2 -2
- 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/api/types/index.d.mts +1 -2
- package/dist/esm/api/types/index.mjs +1 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1572 -1572
- package/dist/cjs/api/types/GeometryCollectionOutputGeometriesItem.d.ts +0 -28
- package/dist/cjs/api/types/GeometryCollectionOutputGeometriesItem.js +0 -5
- package/dist/esm/api/types/GeometryCollectionOutputGeometriesItem.d.mts +0 -28
- package/dist/esm/api/types/GeometryCollectionOutputGeometriesItem.mjs +0 -4
- /package/dist/cjs/api/types/{GeometryCollectionInputGeometriesItem.js → GeometryCollectionGeometriesItem.js} +0 -0
- /package/dist/esm/api/types/{GeometryCollectionInputGeometriesItem.mjs → GeometryCollectionGeometriesItem.mjs} +0 -0
|
@@ -56,28 +56,23 @@ class Groups {
|
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Lists all notification groups for the caller's organization. | authz: min_org_role=operator | () -> (list[NotificationGroup1])
|
|
60
60
|
*
|
|
61
|
-
* @param {string} groupId
|
|
62
|
-
* @param {Chrt.NotificationChannelsEnum} channel
|
|
63
|
-
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
64
61
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
62
|
*
|
|
66
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
67
|
-
*
|
|
68
63
|
* @example
|
|
69
|
-
* await client.notifications.groups.
|
|
64
|
+
* await client.notifications.groups.listByOrgV1()
|
|
70
65
|
*/
|
|
71
|
-
|
|
72
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
66
|
+
listByOrgV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__listByOrgV1(requestOptions));
|
|
73
68
|
}
|
|
74
|
-
|
|
69
|
+
__listByOrgV1(requestOptions) {
|
|
75
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
71
|
var _a, _b, _c, _d;
|
|
77
72
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
78
73
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
79
|
-
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,
|
|
80
|
-
method: "
|
|
74
|
+
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"),
|
|
75
|
+
method: "GET",
|
|
81
76
|
headers: _headers,
|
|
82
77
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
83
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -88,16 +83,11 @@ class Groups {
|
|
|
88
83
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
89
84
|
}
|
|
90
85
|
if (_response.error.reason === "status-code") {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
statusCode: _response.error.statusCode,
|
|
97
|
-
body: _response.error.body,
|
|
98
|
-
rawResponse: _response.rawResponse,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
86
|
+
throw new errors.ChrtError({
|
|
87
|
+
statusCode: _response.error.statusCode,
|
|
88
|
+
body: _response.error.body,
|
|
89
|
+
rawResponse: _response.rawResponse,
|
|
90
|
+
});
|
|
101
91
|
}
|
|
102
92
|
switch (_response.error.reason) {
|
|
103
93
|
case "non-json":
|
|
@@ -107,7 +97,7 @@ class Groups {
|
|
|
107
97
|
rawResponse: _response.rawResponse,
|
|
108
98
|
});
|
|
109
99
|
case "timeout":
|
|
110
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/list_by_org/v1.");
|
|
111
101
|
case "unknown":
|
|
112
102
|
throw new errors.ChrtError({
|
|
113
103
|
message: _response.error.errorMessage,
|
|
@@ -117,27 +107,26 @@ class Groups {
|
|
|
117
107
|
});
|
|
118
108
|
}
|
|
119
109
|
/**
|
|
120
|
-
*
|
|
110
|
+
* Retrieves full notification group details including user membership. | authz: min_org_role=operator | () -> (NotificationGroup1)
|
|
121
111
|
*
|
|
122
112
|
* @param {string} groupId
|
|
123
|
-
* @param {string} userId
|
|
124
113
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
114
|
*
|
|
126
115
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
127
116
|
*
|
|
128
117
|
* @example
|
|
129
|
-
* await client.notifications.groups.
|
|
118
|
+
* await client.notifications.groups.getForAdministratorV1("group_id")
|
|
130
119
|
*/
|
|
131
|
-
|
|
132
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
120
|
+
getForAdministratorV1(groupId, requestOptions) {
|
|
121
|
+
return core.HttpResponsePromise.fromPromise(this.__getForAdministratorV1(groupId, requestOptions));
|
|
133
122
|
}
|
|
134
|
-
|
|
123
|
+
__getForAdministratorV1(groupId, requestOptions) {
|
|
135
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
125
|
var _a, _b, _c, _d;
|
|
137
126
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
138
127
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
139
|
-
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/
|
|
140
|
-
method: "
|
|
128
|
+
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)}`),
|
|
129
|
+
method: "GET",
|
|
141
130
|
headers: _headers,
|
|
142
131
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
143
132
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -167,7 +156,7 @@ class Groups {
|
|
|
167
156
|
rawResponse: _response.rawResponse,
|
|
168
157
|
});
|
|
169
158
|
case "timeout":
|
|
170
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
159
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/get_for_administrator/v1/{group_id}.");
|
|
171
160
|
case "unknown":
|
|
172
161
|
throw new errors.ChrtError({
|
|
173
162
|
message: _response.error.errorMessage,
|
|
@@ -177,52 +166,41 @@ class Groups {
|
|
|
177
166
|
});
|
|
178
167
|
}
|
|
179
168
|
/**
|
|
180
|
-
*
|
|
169
|
+
* Lists notification groups the caller is a member of. | () -> (list[NotificationGroupLimitedForDriver1])
|
|
181
170
|
*
|
|
182
|
-
* @param {Chrt.notifications.NotificationGroupClientCreate1} request
|
|
183
171
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
172
|
*
|
|
185
|
-
* @throws {@link Chrt.UnprocessableEntityError}
|
|
186
|
-
*
|
|
187
173
|
* @example
|
|
188
|
-
* await client.notifications.groups.
|
|
189
|
-
* group_name: "group_name",
|
|
190
|
-
* schema_version: 1
|
|
191
|
-
* })
|
|
174
|
+
* await client.notifications.groups.listByUserV1()
|
|
192
175
|
*/
|
|
193
|
-
|
|
194
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
176
|
+
listByUserV1(requestOptions) {
|
|
177
|
+
return core.HttpResponsePromise.fromPromise(this.__listByUserV1(requestOptions));
|
|
195
178
|
}
|
|
196
|
-
|
|
179
|
+
__listByUserV1(requestOptions) {
|
|
197
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
181
|
var _a, _b, _c, _d;
|
|
199
182
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
200
183
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
201
|
-
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/
|
|
202
|
-
method: "
|
|
184
|
+
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"),
|
|
185
|
+
method: "GET",
|
|
203
186
|
headers: _headers,
|
|
204
|
-
contentType: "application/json",
|
|
205
187
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
206
|
-
requestType: "json",
|
|
207
|
-
body: request,
|
|
208
188
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
209
189
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
210
190
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
211
191
|
});
|
|
212
192
|
if (_response.ok) {
|
|
213
|
-
return {
|
|
193
|
+
return {
|
|
194
|
+
data: _response.body,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
196
|
+
};
|
|
214
197
|
}
|
|
215
198
|
if (_response.error.reason === "status-code") {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
statusCode: _response.error.statusCode,
|
|
222
|
-
body: _response.error.body,
|
|
223
|
-
rawResponse: _response.rawResponse,
|
|
224
|
-
});
|
|
225
|
-
}
|
|
199
|
+
throw new errors.ChrtError({
|
|
200
|
+
statusCode: _response.error.statusCode,
|
|
201
|
+
body: _response.error.body,
|
|
202
|
+
rawResponse: _response.rawResponse,
|
|
203
|
+
});
|
|
226
204
|
}
|
|
227
205
|
switch (_response.error.reason) {
|
|
228
206
|
case "non-json":
|
|
@@ -232,7 +210,7 @@ class Groups {
|
|
|
232
210
|
rawResponse: _response.rawResponse,
|
|
233
211
|
});
|
|
234
212
|
case "timeout":
|
|
235
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
213
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/list_by_user/v1.");
|
|
236
214
|
case "unknown":
|
|
237
215
|
throw new errors.ChrtError({
|
|
238
216
|
message: _response.error.errorMessage,
|
|
@@ -242,7 +220,7 @@ class Groups {
|
|
|
242
220
|
});
|
|
243
221
|
}
|
|
244
222
|
/**
|
|
245
|
-
*
|
|
223
|
+
* Retrieves limited notification group details for a group the caller is a member of. | () -> (NotificationGroupLimitedForDriver1)
|
|
246
224
|
*
|
|
247
225
|
* @param {string} groupId
|
|
248
226
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -250,18 +228,18 @@ class Groups {
|
|
|
250
228
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
251
229
|
*
|
|
252
230
|
* @example
|
|
253
|
-
* await client.notifications.groups.
|
|
231
|
+
* await client.notifications.groups.getForMemberV1("group_id")
|
|
254
232
|
*/
|
|
255
|
-
|
|
256
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
233
|
+
getForMemberV1(groupId, requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__getForMemberV1(groupId, requestOptions));
|
|
257
235
|
}
|
|
258
|
-
|
|
236
|
+
__getForMemberV1(groupId, requestOptions) {
|
|
259
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
260
238
|
var _a, _b, _c, _d;
|
|
261
239
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
262
240
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
263
|
-
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/
|
|
264
|
-
method: "
|
|
241
|
+
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)}`),
|
|
242
|
+
method: "GET",
|
|
265
243
|
headers: _headers,
|
|
266
244
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
267
245
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -269,7 +247,10 @@ class Groups {
|
|
|
269
247
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
270
248
|
});
|
|
271
249
|
if (_response.ok) {
|
|
272
|
-
return {
|
|
250
|
+
return {
|
|
251
|
+
data: _response.body,
|
|
252
|
+
rawResponse: _response.rawResponse,
|
|
253
|
+
};
|
|
273
254
|
}
|
|
274
255
|
if (_response.error.reason === "status-code") {
|
|
275
256
|
switch (_response.error.statusCode) {
|
|
@@ -291,7 +272,7 @@ class Groups {
|
|
|
291
272
|
rawResponse: _response.rawResponse,
|
|
292
273
|
});
|
|
293
274
|
case "timeout":
|
|
294
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
275
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /notifications/groups/get_for_member/v1/{group_id}.");
|
|
295
276
|
case "unknown":
|
|
296
277
|
throw new errors.ChrtError({
|
|
297
278
|
message: _response.error.errorMessage,
|
|
@@ -301,28 +282,34 @@ class Groups {
|
|
|
301
282
|
});
|
|
302
283
|
}
|
|
303
284
|
/**
|
|
304
|
-
*
|
|
285
|
+
* Creates a new notification group for the organization. | authz: min_org_role=administrator | (NotificationGroupClientCreate1) -> (PydanticObjectId)
|
|
305
286
|
*
|
|
306
|
-
* @param {
|
|
287
|
+
* @param {Chrt.notifications.NotificationGroupClientCreate1} request
|
|
307
288
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
308
289
|
*
|
|
309
290
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
310
291
|
*
|
|
311
292
|
* @example
|
|
312
|
-
* await client.notifications.groups.
|
|
293
|
+
* await client.notifications.groups.createV1({
|
|
294
|
+
* schema_version: 1,
|
|
295
|
+
* group_name: "group_name"
|
|
296
|
+
* })
|
|
313
297
|
*/
|
|
314
|
-
|
|
315
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
298
|
+
createV1(request, requestOptions) {
|
|
299
|
+
return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
|
|
316
300
|
}
|
|
317
|
-
|
|
301
|
+
__createV1(request, requestOptions) {
|
|
318
302
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
303
|
var _a, _b, _c, _d;
|
|
320
304
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
321
305
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
322
|
-
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,
|
|
323
|
-
method: "
|
|
306
|
+
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"),
|
|
307
|
+
method: "POST",
|
|
324
308
|
headers: _headers,
|
|
309
|
+
contentType: "application/json",
|
|
325
310
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
311
|
+
requestType: "json",
|
|
312
|
+
body: request,
|
|
326
313
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
327
314
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
328
315
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -350,7 +337,7 @@ class Groups {
|
|
|
350
337
|
rawResponse: _response.rawResponse,
|
|
351
338
|
});
|
|
352
339
|
case "timeout":
|
|
353
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
340
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/create/v1.");
|
|
354
341
|
case "unknown":
|
|
355
342
|
throw new errors.ChrtError({
|
|
356
343
|
message: _response.error.errorMessage,
|
|
@@ -360,37 +347,40 @@ class Groups {
|
|
|
360
347
|
});
|
|
361
348
|
}
|
|
362
349
|
/**
|
|
363
|
-
*
|
|
350
|
+
* Updates the name of a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
364
351
|
*
|
|
365
352
|
* @param {string} groupId
|
|
353
|
+
* @param {Chrt.notifications.GroupsUpdateNameV1Request} request
|
|
366
354
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
367
355
|
*
|
|
368
356
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
369
357
|
*
|
|
370
358
|
* @example
|
|
371
|
-
* await client.notifications.groups.
|
|
359
|
+
* await client.notifications.groups.updateNameV1("group_id", {
|
|
360
|
+
* group_name: "group_name"
|
|
361
|
+
* })
|
|
372
362
|
*/
|
|
373
|
-
|
|
374
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
363
|
+
updateNameV1(groupId, request, requestOptions) {
|
|
364
|
+
return core.HttpResponsePromise.fromPromise(this.__updateNameV1(groupId, request, requestOptions));
|
|
375
365
|
}
|
|
376
|
-
|
|
366
|
+
__updateNameV1(groupId, request, requestOptions) {
|
|
377
367
|
return __awaiter(this, void 0, void 0, function* () {
|
|
378
368
|
var _a, _b, _c, _d;
|
|
369
|
+
const { group_name: groupName } = request;
|
|
370
|
+
const _queryParams = {};
|
|
371
|
+
_queryParams["group_name"] = groupName;
|
|
379
372
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
380
373
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
381
|
-
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/
|
|
382
|
-
method: "
|
|
374
|
+
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)}`),
|
|
375
|
+
method: "PATCH",
|
|
383
376
|
headers: _headers,
|
|
384
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
377
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
385
378
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
386
379
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
387
380
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
388
381
|
});
|
|
389
382
|
if (_response.ok) {
|
|
390
|
-
return {
|
|
391
|
-
data: _response.body,
|
|
392
|
-
rawResponse: _response.rawResponse,
|
|
393
|
-
};
|
|
383
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
394
384
|
}
|
|
395
385
|
if (_response.error.reason === "status-code") {
|
|
396
386
|
switch (_response.error.statusCode) {
|
|
@@ -412,7 +402,7 @@ class Groups {
|
|
|
412
402
|
rawResponse: _response.rawResponse,
|
|
413
403
|
});
|
|
414
404
|
case "timeout":
|
|
415
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
405
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /notifications/groups/update_name/v1/{group_id}.");
|
|
416
406
|
case "unknown":
|
|
417
407
|
throw new errors.ChrtError({
|
|
418
408
|
message: _response.error.errorMessage,
|
|
@@ -422,23 +412,28 @@ class Groups {
|
|
|
422
412
|
});
|
|
423
413
|
}
|
|
424
414
|
/**
|
|
425
|
-
*
|
|
415
|
+
* Adds a notification event to a channel for a group. | authz: min_org_role=administrator | () -> (bool)
|
|
426
416
|
*
|
|
417
|
+
* @param {string} groupId
|
|
418
|
+
* @param {Chrt.NotificationChannelsEnum} channel
|
|
419
|
+
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
427
420
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
428
421
|
*
|
|
422
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
423
|
+
*
|
|
429
424
|
* @example
|
|
430
|
-
* await client.notifications.groups.
|
|
425
|
+
* await client.notifications.groups.addEventV1("group_id", "email", "shipping.order.staged")
|
|
431
426
|
*/
|
|
432
|
-
|
|
433
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
427
|
+
addEventV1(groupId, channel, event, requestOptions) {
|
|
428
|
+
return core.HttpResponsePromise.fromPromise(this.__addEventV1(groupId, channel, event, requestOptions));
|
|
434
429
|
}
|
|
435
|
-
|
|
430
|
+
__addEventV1(groupId, channel, event, requestOptions) {
|
|
436
431
|
return __awaiter(this, void 0, void 0, function* () {
|
|
437
432
|
var _a, _b, _c, _d;
|
|
438
433
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
439
434
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
440
|
-
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,
|
|
441
|
-
method: "
|
|
435
|
+
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)}`),
|
|
436
|
+
method: "POST",
|
|
442
437
|
headers: _headers,
|
|
443
438
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
444
439
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -449,11 +444,16 @@ class Groups {
|
|
|
449
444
|
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
450
445
|
}
|
|
451
446
|
if (_response.error.reason === "status-code") {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
447
|
+
switch (_response.error.statusCode) {
|
|
448
|
+
case 422:
|
|
449
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
450
|
+
default:
|
|
451
|
+
throw new errors.ChrtError({
|
|
452
|
+
statusCode: _response.error.statusCode,
|
|
453
|
+
body: _response.error.body,
|
|
454
|
+
rawResponse: _response.rawResponse,
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
457
|
}
|
|
458
458
|
switch (_response.error.reason) {
|
|
459
459
|
case "non-json":
|
|
@@ -463,7 +463,7 @@ class Groups {
|
|
|
463
463
|
rawResponse: _response.rawResponse,
|
|
464
464
|
});
|
|
465
465
|
case "timeout":
|
|
466
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
466
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/add_event/v1/{group_id}/{channel}/{event}.");
|
|
467
467
|
case "unknown":
|
|
468
468
|
throw new errors.ChrtError({
|
|
469
469
|
message: _response.error.errorMessage,
|
|
@@ -473,23 +473,28 @@ class Groups {
|
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
/**
|
|
476
|
-
*
|
|
476
|
+
* Removes a notification event from a channel for a group. | authz: min_org_role=administrator | () -> (bool)
|
|
477
477
|
*
|
|
478
|
+
* @param {string} groupId
|
|
479
|
+
* @param {Chrt.NotificationChannelsEnum} channel
|
|
480
|
+
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
478
481
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
479
482
|
*
|
|
483
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
484
|
+
*
|
|
480
485
|
* @example
|
|
481
|
-
* await client.notifications.groups.
|
|
486
|
+
* await client.notifications.groups.removeEventV1("group_id", "email", "shipping.order.staged")
|
|
482
487
|
*/
|
|
483
|
-
|
|
484
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
488
|
+
removeEventV1(groupId, channel, event, requestOptions) {
|
|
489
|
+
return core.HttpResponsePromise.fromPromise(this.__removeEventV1(groupId, channel, event, requestOptions));
|
|
485
490
|
}
|
|
486
|
-
|
|
491
|
+
__removeEventV1(groupId, channel, event, requestOptions) {
|
|
487
492
|
return __awaiter(this, void 0, void 0, function* () {
|
|
488
493
|
var _a, _b, _c, _d;
|
|
489
494
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
490
495
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
491
|
-
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,
|
|
492
|
-
method: "
|
|
496
|
+
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)}`),
|
|
497
|
+
method: "DELETE",
|
|
493
498
|
headers: _headers,
|
|
494
499
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
495
500
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -497,17 +502,19 @@ class Groups {
|
|
|
497
502
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
498
503
|
});
|
|
499
504
|
if (_response.ok) {
|
|
500
|
-
return {
|
|
501
|
-
data: _response.body,
|
|
502
|
-
rawResponse: _response.rawResponse,
|
|
503
|
-
};
|
|
505
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
504
506
|
}
|
|
505
507
|
if (_response.error.reason === "status-code") {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
switch (_response.error.statusCode) {
|
|
509
|
+
case 422:
|
|
510
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
511
|
+
default:
|
|
512
|
+
throw new errors.ChrtError({
|
|
513
|
+
statusCode: _response.error.statusCode,
|
|
514
|
+
body: _response.error.body,
|
|
515
|
+
rawResponse: _response.rawResponse,
|
|
516
|
+
});
|
|
517
|
+
}
|
|
511
518
|
}
|
|
512
519
|
switch (_response.error.reason) {
|
|
513
520
|
case "non-json":
|
|
@@ -517,7 +524,7 @@ class Groups {
|
|
|
517
524
|
rawResponse: _response.rawResponse,
|
|
518
525
|
});
|
|
519
526
|
case "timeout":
|
|
520
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
527
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/remove_event/v1/{group_id}/{channel}/{event}.");
|
|
521
528
|
case "unknown":
|
|
522
529
|
throw new errors.ChrtError({
|
|
523
530
|
message: _response.error.errorMessage,
|
|
@@ -527,28 +534,27 @@ class Groups {
|
|
|
527
534
|
});
|
|
528
535
|
}
|
|
529
536
|
/**
|
|
530
|
-
*
|
|
537
|
+
* Adds a user to a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
531
538
|
*
|
|
532
539
|
* @param {string} groupId
|
|
533
|
-
* @param {
|
|
534
|
-
* @param {Chrt.NotificationEventsForOrgsEnum} event
|
|
540
|
+
* @param {string} userId
|
|
535
541
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
536
542
|
*
|
|
537
543
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
538
544
|
*
|
|
539
545
|
* @example
|
|
540
|
-
* await client.notifications.groups.
|
|
546
|
+
* await client.notifications.groups.addUserV1("group_id", "user_id")
|
|
541
547
|
*/
|
|
542
|
-
|
|
543
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
548
|
+
addUserV1(groupId, userId, requestOptions) {
|
|
549
|
+
return core.HttpResponsePromise.fromPromise(this.__addUserV1(groupId, userId, requestOptions));
|
|
544
550
|
}
|
|
545
|
-
|
|
551
|
+
__addUserV1(groupId, userId, requestOptions) {
|
|
546
552
|
return __awaiter(this, void 0, void 0, function* () {
|
|
547
553
|
var _a, _b, _c, _d;
|
|
548
554
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
549
555
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
550
|
-
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/
|
|
551
|
-
method: "
|
|
556
|
+
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)}`),
|
|
557
|
+
method: "POST",
|
|
552
558
|
headers: _headers,
|
|
553
559
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
554
560
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -578,7 +584,7 @@ class Groups {
|
|
|
578
584
|
rawResponse: _response.rawResponse,
|
|
579
585
|
});
|
|
580
586
|
case "timeout":
|
|
581
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
587
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /notifications/groups/add_user/v1/{group_id}/{user_id}.");
|
|
582
588
|
case "unknown":
|
|
583
589
|
throw new errors.ChrtError({
|
|
584
590
|
message: _response.error.errorMessage,
|
|
@@ -648,34 +654,28 @@ class Groups {
|
|
|
648
654
|
});
|
|
649
655
|
}
|
|
650
656
|
/**
|
|
651
|
-
*
|
|
657
|
+
* Deletes a notification group. | authz: min_org_role=administrator | () -> (bool)
|
|
652
658
|
*
|
|
653
659
|
* @param {string} groupId
|
|
654
|
-
* @param {Chrt.notifications.GroupsUpdateNameV1Request} request
|
|
655
660
|
* @param {Groups.RequestOptions} requestOptions - Request-specific configuration.
|
|
656
661
|
*
|
|
657
662
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
658
663
|
*
|
|
659
664
|
* @example
|
|
660
|
-
* await client.notifications.groups.
|
|
661
|
-
* group_name: "group_name"
|
|
662
|
-
* })
|
|
665
|
+
* await client.notifications.groups.deleteV1("group_id")
|
|
663
666
|
*/
|
|
664
|
-
|
|
665
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
667
|
+
deleteV1(groupId, requestOptions) {
|
|
668
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(groupId, requestOptions));
|
|
666
669
|
}
|
|
667
|
-
|
|
670
|
+
__deleteV1(groupId, requestOptions) {
|
|
668
671
|
return __awaiter(this, void 0, void 0, function* () {
|
|
669
672
|
var _a, _b, _c, _d;
|
|
670
|
-
const { group_name: groupName } = request;
|
|
671
|
-
const _queryParams = {};
|
|
672
|
-
_queryParams["group_name"] = groupName;
|
|
673
673
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
674
674
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
675
|
-
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/
|
|
676
|
-
method: "
|
|
675
|
+
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)}`),
|
|
676
|
+
method: "DELETE",
|
|
677
677
|
headers: _headers,
|
|
678
|
-
queryParameters:
|
|
678
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
679
679
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
680
680
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
681
681
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -703,7 +703,7 @@ class Groups {
|
|
|
703
703
|
rawResponse: _response.rawResponse,
|
|
704
704
|
});
|
|
705
705
|
case "timeout":
|
|
706
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling
|
|
706
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /notifications/groups/delete/v1/{group_id}.");
|
|
707
707
|
case "unknown":
|
|
708
708
|
throw new errors.ChrtError({
|
|
709
709
|
message: _response.error.errorMessage,
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* schema_version: 1,
|
|
8
|
+
* group_name: "group_name"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface NotificationGroupClientCreate1 {
|
|
12
|
-
group_name: string;
|
|
13
12
|
schema_version: number;
|
|
13
|
+
group_name: string;
|
|
14
14
|
}
|