@chrt-inc/typescript-sdk 1.772.0 → 1.788.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.
Files changed (52) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +18 -0
  3. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +67 -0
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.ts +23 -0
  5. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +46 -9
  7. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +148 -16
  8. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
  9. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
  10. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
  11. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +2 -0
  12. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  13. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  14. package/dist/cjs/api/types/LineItem1.d.ts +1 -0
  15. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
  16. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
  17. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
  18. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  19. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  20. package/dist/cjs/api/types/index.d.ts +1 -0
  21. package/dist/cjs/api/types/index.js +1 -0
  22. package/dist/cjs/version.d.ts +1 -1
  23. package/dist/cjs/version.js +1 -1
  24. package/dist/esm/Client.mjs +2 -2
  25. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +18 -0
  26. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +67 -0
  27. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.mts +23 -0
  28. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +1 -0
  29. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +46 -9
  30. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +148 -16
  31. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
  32. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
  33. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
  34. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +2 -0
  35. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  36. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  37. package/dist/esm/api/types/LineItem1.d.mts +1 -0
  38. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
  39. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
  40. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
  41. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  42. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  43. package/dist/esm/api/types/index.d.mts +1 -0
  44. package/dist/esm/api/types/index.mjs +1 -0
  45. package/dist/esm/version.d.mts +1 -1
  46. package/dist/esm/version.mjs +1 -1
  47. package/package.json +1 -1
  48. package/reference.md +233 -7
  49. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
  50. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
  51. /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.js} +0 -0
  52. /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.mjs} +0 -0
package/reference.md CHANGED
@@ -2090,6 +2090,74 @@ await client.billing.lineItemGroups.fromRateSheetCreateForProviderPayDriverV1({
2090
2090
  </dl>
2091
2091
  </details>
2092
2092
 
2093
+ <details><summary><code>client.billing.lineItemGroups.<a href="/src/api/resources/billing/resources/lineItemGroups/client/Client.ts">sharedTaskGroupMileageCreateV1</a>({ ...params }) -> Chrt.LineItemGroup1</code></summary>
2094
+ <dl>
2095
+ <dd>
2096
+
2097
+ #### 📝 Description
2098
+
2099
+ <dl>
2100
+ <dd>
2101
+
2102
+ <dl>
2103
+ <dd>
2104
+
2105
+ Prices a single driver's combined trip across several task groups once. Recomputes route mileage from the ordered task locations (plus optional start/end legs), applies the CHRT-ground rate sheet, and atomically creates an OrderGroup-anchored LineItemGroup, its mileage LineItems, and the LineItemCalculation that records how the charges were derived. The LIG is detached on create (task_group_id is None) — attach to a Statement afterwards. | authz: allowed_org_types=[provider], min_org_role=operator | (LineItemGroupSharedTaskGroupMileageCreateClientReq) -> (LineItemGroup1)
2106
+
2107
+ </dd>
2108
+ </dl>
2109
+ </dd>
2110
+ </dl>
2111
+
2112
+ #### 🔌 Usage
2113
+
2114
+ <dl>
2115
+ <dd>
2116
+
2117
+ <dl>
2118
+ <dd>
2119
+
2120
+ ```typescript
2121
+ await client.billing.lineItemGroups.sharedTaskGroupMileageCreateV1({
2122
+ order_group_id: "order_group_id",
2123
+ rate_sheet_id: "rate_sheet_id",
2124
+ payment_destination_driver_id: "payment_destination_driver_id",
2125
+ task_ids: ["task_ids"],
2126
+ });
2127
+ ```
2128
+
2129
+ </dd>
2130
+ </dl>
2131
+ </dd>
2132
+ </dl>
2133
+
2134
+ #### ⚙️ Parameters
2135
+
2136
+ <dl>
2137
+ <dd>
2138
+
2139
+ <dl>
2140
+ <dd>
2141
+
2142
+ **request:** `Chrt.billing.LineItemGroupSharedTaskGroupMileageCreateClientReq`
2143
+
2144
+ </dd>
2145
+ </dl>
2146
+
2147
+ <dl>
2148
+ <dd>
2149
+
2150
+ **requestOptions:** `LineItemGroups.RequestOptions`
2151
+
2152
+ </dd>
2153
+ </dl>
2154
+ </dd>
2155
+ </dl>
2156
+
2157
+ </dd>
2158
+ </dl>
2159
+ </details>
2160
+
2093
2161
  ## Billing ChrtGroundProviderRateSheets
2094
2162
 
2095
2163
  <details><summary><code>client.billing.chrtGroundProviderRateSheets.<a href="/src/api/resources/billing/resources/chrtGroundProviderRateSheets/client/Client.ts">getByIdV1</a>(id) -> Chrt.ChrtGroundProviderRateSheet1</code></summary>
@@ -12921,7 +12989,165 @@ await client.operations.operationsTaskLists.createV1({
12921
12989
  </dl>
12922
12990
  </details>
12923
12991
 
12924
- <details><summary><code>client.operations.operationsTaskLists.<a href="/src/api/resources/operations/resources/operationsTaskLists/client/Client.ts">setEntriesV1</a>(taskListId, { ...params }) -> boolean</code></summary>
12992
+ <details><summary><code>client.operations.operationsTaskLists.<a href="/src/api/resources/operations/resources/operationsTaskLists/client/Client.ts">addEntryV1</a>(taskListId, { ...params }) -> string</code></summary>
12993
+ <dl>
12994
+ <dd>
12995
+
12996
+ #### 📝 Description
12997
+
12998
+ <dl>
12999
+ <dd>
13000
+
13001
+ <dl>
13002
+ <dd>
13003
+
13004
+ Appends a new entry to an OperationsTaskList's `entries` array. The server assigns a fresh UUID and returns it. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (str)
13005
+
13006
+ </dd>
13007
+ </dl>
13008
+ </dd>
13009
+ </dl>
13010
+
13011
+ #### 🔌 Usage
13012
+
13013
+ <dl>
13014
+ <dd>
13015
+
13016
+ <dl>
13017
+ <dd>
13018
+
13019
+ ```typescript
13020
+ await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
13021
+ task_type: "review_order_details",
13022
+ title: "title",
13023
+ description: "description",
13024
+ });
13025
+ ```
13026
+
13027
+ </dd>
13028
+ </dl>
13029
+ </dd>
13030
+ </dl>
13031
+
13032
+ #### ⚙️ Parameters
13033
+
13034
+ <dl>
13035
+ <dd>
13036
+
13037
+ <dl>
13038
+ <dd>
13039
+
13040
+ **taskListId:** `string`
13041
+
13042
+ </dd>
13043
+ </dl>
13044
+
13045
+ <dl>
13046
+ <dd>
13047
+
13048
+ **request:** `Chrt.OperationsTaskListEntryClientCreate1`
13049
+
13050
+ </dd>
13051
+ </dl>
13052
+
13053
+ <dl>
13054
+ <dd>
13055
+
13056
+ **requestOptions:** `OperationsTaskLists.RequestOptions`
13057
+
13058
+ </dd>
13059
+ </dl>
13060
+ </dd>
13061
+ </dl>
13062
+
13063
+ </dd>
13064
+ </dl>
13065
+ </details>
13066
+
13067
+ <details><summary><code>client.operations.operationsTaskLists.<a href="/src/api/resources/operations/resources/operationsTaskLists/client/Client.ts">editEntryV1</a>(taskListId, entryUuid, { ...params }) -> boolean</code></summary>
13068
+ <dl>
13069
+ <dd>
13070
+
13071
+ #### 📝 Description
13072
+
13073
+ <dl>
13074
+ <dd>
13075
+
13076
+ <dl>
13077
+ <dd>
13078
+
13079
+ Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)
13080
+
13081
+ </dd>
13082
+ </dl>
13083
+ </dd>
13084
+ </dl>
13085
+
13086
+ #### 🔌 Usage
13087
+
13088
+ <dl>
13089
+ <dd>
13090
+
13091
+ <dl>
13092
+ <dd>
13093
+
13094
+ ```typescript
13095
+ await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
13096
+ task_type: "review_order_details",
13097
+ title: "title",
13098
+ description: "description",
13099
+ });
13100
+ ```
13101
+
13102
+ </dd>
13103
+ </dl>
13104
+ </dd>
13105
+ </dl>
13106
+
13107
+ #### ⚙️ Parameters
13108
+
13109
+ <dl>
13110
+ <dd>
13111
+
13112
+ <dl>
13113
+ <dd>
13114
+
13115
+ **taskListId:** `string`
13116
+
13117
+ </dd>
13118
+ </dl>
13119
+
13120
+ <dl>
13121
+ <dd>
13122
+
13123
+ **entryUuid:** `string`
13124
+
13125
+ </dd>
13126
+ </dl>
13127
+
13128
+ <dl>
13129
+ <dd>
13130
+
13131
+ **request:** `Chrt.OperationsTaskListEntryClientCreate1`
13132
+
13133
+ </dd>
13134
+ </dl>
13135
+
13136
+ <dl>
13137
+ <dd>
13138
+
13139
+ **requestOptions:** `OperationsTaskLists.RequestOptions`
13140
+
13141
+ </dd>
13142
+ </dl>
13143
+ </dd>
13144
+ </dl>
13145
+
13146
+ </dd>
13147
+ </dl>
13148
+ </details>
13149
+
13150
+ <details><summary><code>client.operations.operationsTaskLists.<a href="/src/api/resources/operations/resources/operationsTaskLists/client/Client.ts">removeEntryV1</a>(taskListId, entryUuid) -> boolean</code></summary>
12925
13151
  <dl>
12926
13152
  <dd>
12927
13153
 
@@ -12933,7 +13159,7 @@ await client.operations.operationsTaskLists.createV1({
12933
13159
  <dl>
12934
13160
  <dd>
12935
13161
 
12936
- Replaces an OperationsTaskList's `entries` array wholesale — covering add, remove, reorder, and edit in one operation. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListSetEntries1) -> (bool)
13162
+ Removes the entry with the given uuid from an OperationsTaskList's `entries` array, closing the gap in order. 404 if no entry matches. | authz: min_org_role=operator | () -> (bool)
12937
13163
 
12938
13164
  </dd>
12939
13165
  </dl>
@@ -12949,7 +13175,7 @@ Replaces an OperationsTaskList's `entries` array wholesale — covering add, rem
12949
13175
  <dd>
12950
13176
 
12951
13177
  ```typescript
12952
- await client.operations.operationsTaskLists.setEntriesV1("task_list_id");
13178
+ await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid");
12953
13179
  ```
12954
13180
 
12955
13181
  </dd>
@@ -12973,7 +13199,7 @@ await client.operations.operationsTaskLists.setEntriesV1("task_list_id");
12973
13199
  <dl>
12974
13200
  <dd>
12975
13201
 
12976
- **request:** `Chrt.operations.OperationsTaskListSetEntries1`
13202
+ **entryUuid:** `string`
12977
13203
 
12978
13204
  </dd>
12979
13205
  </dl>
@@ -13004,7 +13230,7 @@ await client.operations.operationsTaskLists.setEntriesV1("task_list_id");
13004
13230
  <dl>
13005
13231
  <dd>
13006
13232
 
13007
- Reorders an OperationsTaskList's existing entries. `entry_ids` must be an exact permutation of the list's current entry ids (every id present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
13233
+ Reorders an OperationsTaskList's existing entries. `entry_uuids` must be an exact permutation of the list's current entry uuids (every uuid present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
13008
13234
 
13009
13235
  </dd>
13010
13236
  </dl>
@@ -13270,7 +13496,7 @@ await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_
13270
13496
  </dl>
13271
13497
  </details>
13272
13498
 
13273
- <details><summary><code>client.operations.operationsTaskLists.<a href="/src/api/resources/operations/resources/operationsTaskLists/client/Client.ts">removeFromCaseV1</a>(taskListId, caseId) -> Chrt.OperationsTaskListRemoveFromCaseRes1</code></summary>
13499
+ <details><summary><code>client.operations.operationsTaskLists.<a href="/src/api/resources/operations/resources/operationsTaskLists/client/Client.ts">removeNotStartedTasksFromCaseV1</a>(taskListId, caseId) -> Chrt.OperationsTaskListRemoveFromCaseRes1</code></summary>
13274
13500
  <dl>
13275
13501
  <dd>
13276
13502
 
@@ -13298,7 +13524,7 @@ Removes the OperationsTasks this OperationsTaskList added to the Case (matched b
13298
13524
  <dd>
13299
13525
 
13300
13526
  ```typescript
13301
- await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id");
13527
+ await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id");
13302
13528
  ```
13303
13529
 
13304
13530
  </dd>
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../../../../../../index.js";
5
- /**
6
- * @example
7
- * {}
8
- */
9
- export interface OperationsTaskListSetEntries1 {
10
- entries?: Chrt.OperationsTaskListEntry1[];
11
- }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Chrt from "../../../../../../index.mjs";
5
- /**
6
- * @example
7
- * {}
8
- */
9
- export interface OperationsTaskListSetEntries1 {
10
- entries?: Chrt.OperationsTaskListEntry1[];
11
- }