@chrt-inc/typescript-sdk 1.762.0 → 1.772.0
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/notifications/resources/adHoc/client/Client.d.ts +36 -2
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
- package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
- package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
- package/dist/cjs/api/types/Session1.d.ts +3 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -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/notifications/resources/adHoc/client/Client.d.mts +36 -2
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
- package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
- package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
- package/dist/esm/api/types/Session1.d.mts +3 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +151 -3
- /package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/{NotificationIntentAdHocClientCreate1.js → AdHocListBySessionIdV1Request.js} +0 -0
- /package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/{NotificationIntentAdHocClientCreate1.mjs → AdHocListBySessionIdV1Request.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -9594,6 +9594,80 @@ await client.notifications.adHoc.listByOrderIdV1("order_id", {
|
|
|
9594
9594
|
</dl>
|
|
9595
9595
|
</details>
|
|
9596
9596
|
|
|
9597
|
+
<details><summary><code>client.notifications.adHoc.<a href="/src/api/resources/notifications/resources/adHoc/client/Client.ts">listBySessionIdV1</a>(sessionId, { ...params }) -> Chrt.NotificationAdHocListRes</code></summary>
|
|
9598
|
+
<dl>
|
|
9599
|
+
<dd>
|
|
9600
|
+
|
|
9601
|
+
#### 📝 Description
|
|
9602
|
+
|
|
9603
|
+
<dl>
|
|
9604
|
+
<dd>
|
|
9605
|
+
|
|
9606
|
+
<dl>
|
|
9607
|
+
<dd>
|
|
9608
|
+
|
|
9609
|
+
Lists all ad-hoc notification intents for a tracking session. | authz: min_org_role=operator | () -> (NotificationAdHocListRes)
|
|
9610
|
+
|
|
9611
|
+
</dd>
|
|
9612
|
+
</dl>
|
|
9613
|
+
</dd>
|
|
9614
|
+
</dl>
|
|
9615
|
+
|
|
9616
|
+
#### 🔌 Usage
|
|
9617
|
+
|
|
9618
|
+
<dl>
|
|
9619
|
+
<dd>
|
|
9620
|
+
|
|
9621
|
+
<dl>
|
|
9622
|
+
<dd>
|
|
9623
|
+
|
|
9624
|
+
```typescript
|
|
9625
|
+
await client.notifications.adHoc.listBySessionIdV1("session_id", {
|
|
9626
|
+
page: 1,
|
|
9627
|
+
page_size: 1,
|
|
9628
|
+
});
|
|
9629
|
+
```
|
|
9630
|
+
|
|
9631
|
+
</dd>
|
|
9632
|
+
</dl>
|
|
9633
|
+
</dd>
|
|
9634
|
+
</dl>
|
|
9635
|
+
|
|
9636
|
+
#### ⚙️ Parameters
|
|
9637
|
+
|
|
9638
|
+
<dl>
|
|
9639
|
+
<dd>
|
|
9640
|
+
|
|
9641
|
+
<dl>
|
|
9642
|
+
<dd>
|
|
9643
|
+
|
|
9644
|
+
**sessionId:** `string`
|
|
9645
|
+
|
|
9646
|
+
</dd>
|
|
9647
|
+
</dl>
|
|
9648
|
+
|
|
9649
|
+
<dl>
|
|
9650
|
+
<dd>
|
|
9651
|
+
|
|
9652
|
+
**request:** `Chrt.notifications.AdHocListBySessionIdV1Request`
|
|
9653
|
+
|
|
9654
|
+
</dd>
|
|
9655
|
+
</dl>
|
|
9656
|
+
|
|
9657
|
+
<dl>
|
|
9658
|
+
<dd>
|
|
9659
|
+
|
|
9660
|
+
**requestOptions:** `AdHoc.RequestOptions`
|
|
9661
|
+
|
|
9662
|
+
</dd>
|
|
9663
|
+
</dl>
|
|
9664
|
+
</dd>
|
|
9665
|
+
</dl>
|
|
9666
|
+
|
|
9667
|
+
</dd>
|
|
9668
|
+
</dl>
|
|
9669
|
+
</details>
|
|
9670
|
+
|
|
9597
9671
|
<details><summary><code>client.notifications.adHoc.<a href="/src/api/resources/notifications/resources/adHoc/client/Client.ts">createV1</a>(orderId, { ...params }) -> string</code></summary>
|
|
9598
9672
|
<dl>
|
|
9599
9673
|
<dd>
|
|
@@ -9649,7 +9723,81 @@ await client.notifications.adHoc.createV1("order_id", {
|
|
|
9649
9723
|
<dl>
|
|
9650
9724
|
<dd>
|
|
9651
9725
|
|
|
9652
|
-
**request:** `Chrt.
|
|
9726
|
+
**request:** `Chrt.NotificationIntentAdHocClientCreate1`
|
|
9727
|
+
|
|
9728
|
+
</dd>
|
|
9729
|
+
</dl>
|
|
9730
|
+
|
|
9731
|
+
<dl>
|
|
9732
|
+
<dd>
|
|
9733
|
+
|
|
9734
|
+
**requestOptions:** `AdHoc.RequestOptions`
|
|
9735
|
+
|
|
9736
|
+
</dd>
|
|
9737
|
+
</dl>
|
|
9738
|
+
</dd>
|
|
9739
|
+
</dl>
|
|
9740
|
+
|
|
9741
|
+
</dd>
|
|
9742
|
+
</dl>
|
|
9743
|
+
</details>
|
|
9744
|
+
|
|
9745
|
+
<details><summary><code>client.notifications.adHoc.<a href="/src/api/resources/notifications/resources/adHoc/client/Client.ts">createForSessionV1</a>(sessionId, { ...params }) -> string</code></summary>
|
|
9746
|
+
<dl>
|
|
9747
|
+
<dd>
|
|
9748
|
+
|
|
9749
|
+
#### 📝 Description
|
|
9750
|
+
|
|
9751
|
+
<dl>
|
|
9752
|
+
<dd>
|
|
9753
|
+
|
|
9754
|
+
<dl>
|
|
9755
|
+
<dd>
|
|
9756
|
+
|
|
9757
|
+
Creates a new ad-hoc notification intent for a tracking session. | authz: min_org_role=operator | (NotificationIntentAdHocClientCreate1) -> (PydanticObjectId)
|
|
9758
|
+
|
|
9759
|
+
</dd>
|
|
9760
|
+
</dl>
|
|
9761
|
+
</dd>
|
|
9762
|
+
</dl>
|
|
9763
|
+
|
|
9764
|
+
#### 🔌 Usage
|
|
9765
|
+
|
|
9766
|
+
<dl>
|
|
9767
|
+
<dd>
|
|
9768
|
+
|
|
9769
|
+
<dl>
|
|
9770
|
+
<dd>
|
|
9771
|
+
|
|
9772
|
+
```typescript
|
|
9773
|
+
await client.notifications.adHoc.createForSessionV1("session_id", {
|
|
9774
|
+
schema_version: 1,
|
|
9775
|
+
directory_entry_id: "directory_entry_id",
|
|
9776
|
+
});
|
|
9777
|
+
```
|
|
9778
|
+
|
|
9779
|
+
</dd>
|
|
9780
|
+
</dl>
|
|
9781
|
+
</dd>
|
|
9782
|
+
</dl>
|
|
9783
|
+
|
|
9784
|
+
#### ⚙️ Parameters
|
|
9785
|
+
|
|
9786
|
+
<dl>
|
|
9787
|
+
<dd>
|
|
9788
|
+
|
|
9789
|
+
<dl>
|
|
9790
|
+
<dd>
|
|
9791
|
+
|
|
9792
|
+
**sessionId:** `string`
|
|
9793
|
+
|
|
9794
|
+
</dd>
|
|
9795
|
+
</dl>
|
|
9796
|
+
|
|
9797
|
+
<dl>
|
|
9798
|
+
<dd>
|
|
9799
|
+
|
|
9800
|
+
**request:** `Chrt.NotificationIntentAdHocClientCreate1`
|
|
9653
9801
|
|
|
9654
9802
|
</dd>
|
|
9655
9803
|
</dl>
|
|
@@ -29053,7 +29201,7 @@ await client.tracking.sessions.typeaheadV1({
|
|
|
29053
29201
|
<dl>
|
|
29054
29202
|
<dd>
|
|
29055
29203
|
|
|
29056
|
-
Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
29204
|
+
Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
|
|
29057
29205
|
|
|
29058
29206
|
</dd>
|
|
29059
29207
|
</dl>
|
|
@@ -29120,7 +29268,7 @@ await client.tracking.sessions.createSessionV1({
|
|
|
29120
29268
|
<dl>
|
|
29121
29269
|
<dd>
|
|
29122
29270
|
|
|
29123
|
-
Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
29271
|
+
Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location\_\_set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
29124
29272
|
|
|
29125
29273
|
</dd>
|
|
29126
29274
|
</dl>
|
|
File without changes
|