@chrt-inc/typescript-sdk 1.723.0 → 1.733.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 (194) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.d.ts +3 -3
  3. package/dist/cjs/api/resources/analytics/resources/shipping/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.ts → AnalyticsTimePeriodReq.d.ts} +1 -1
  5. package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/index.d.ts +1 -1
  6. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +8 -8
  7. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +22 -14
  8. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +3 -5
  9. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.ts +14 -0
  10. package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +12 -12
  12. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +21 -21
  13. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.ts → OperationsTaskListReorderEntries1.d.ts} +1 -1
  14. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.ts → OperationsTaskListSetEntries1.d.ts} +1 -1
  15. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +3 -3
  16. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +2 -2
  17. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
  18. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
  19. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
  20. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.js +5 -0
  21. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +31 -0
  23. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +129 -0
  24. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts +12 -0
  25. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js +5 -0
  26. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts +13 -0
  27. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.js +5 -0
  28. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +2 -0
  29. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +17 -0
  30. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +66 -0
  31. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.ts +16 -0
  32. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.js +5 -0
  33. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +1 -0
  34. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +57 -1
  35. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
  36. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
  37. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js +5 -0
  38. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
  39. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js +5 -0
  40. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
  41. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
  42. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
  43. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts +12 -0
  44. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js +5 -0
  45. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -6
  47. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
  48. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
  49. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
  50. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
  51. package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
  52. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
  53. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
  54. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
  55. package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
  56. package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
  57. package/dist/cjs/api/types/AnalyticsTimeBucketRes.js +5 -0
  58. package/dist/cjs/api/types/Cargo1.d.ts +1 -0
  59. package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
  60. package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
  61. package/dist/cjs/api/types/DeadlineAnchorEnum.d.ts +13 -0
  62. package/dist/cjs/api/types/DeadlineAnchorEnum.js +10 -0
  63. package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +3 -3
  64. package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
  65. package/dist/cjs/api/types/DriverStatsRes.js +5 -0
  66. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +9 -7
  67. package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +16 -8
  68. package/dist/cjs/api/types/OperationsTaskTypeEnum.js +6 -7
  69. package/dist/cjs/api/types/Order1.d.ts +1 -2
  70. package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
  71. package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
  72. package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
  73. package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
  74. package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
  75. package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
  76. package/dist/cjs/api/types/Task1.d.ts +1 -1
  77. package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
  78. package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
  79. package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
  80. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
  81. package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
  82. package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
  83. package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
  84. package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
  85. package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
  86. package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
  87. package/dist/cjs/api/types/index.d.ts +3 -2
  88. package/dist/cjs/api/types/index.js +3 -2
  89. package/dist/cjs/version.d.ts +1 -1
  90. package/dist/cjs/version.js +1 -1
  91. package/dist/esm/Client.mjs +2 -2
  92. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.d.mts +3 -3
  93. package/dist/esm/api/resources/analytics/resources/shipping/client/Client.mjs +2 -2
  94. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.d.mts → AnalyticsTimePeriodReq.d.mts} +1 -1
  95. package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
  96. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +8 -8
  97. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +22 -14
  98. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +3 -5
  99. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.mts +14 -0
  100. package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
  101. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +12 -12
  102. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +21 -21
  103. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.mts → OperationsTaskListReorderEntries1.d.mts} +1 -1
  104. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.mts → OperationsTaskListSetEntries1.d.mts} +1 -1
  105. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +3 -3
  106. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +2 -2
  107. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
  108. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
  109. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
  110. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.mjs +4 -0
  111. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
  112. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +31 -0
  113. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +129 -0
  114. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts +12 -0
  115. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs +4 -0
  116. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts +13 -0
  117. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +4 -0
  118. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +2 -0
  119. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +17 -0
  120. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +66 -0
  121. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +16 -0
  122. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +4 -0
  123. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +1 -0
  124. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
  125. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
  126. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
  127. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs +4 -0
  128. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
  129. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs +4 -0
  130. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
  131. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
  132. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
  133. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts +12 -0
  134. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs +4 -0
  135. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
  136. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
  137. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
  138. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
  139. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
  140. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
  141. package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
  142. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
  143. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
  144. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
  145. package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
  146. package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
  147. package/dist/esm/api/types/AnalyticsTimeBucketRes.mjs +4 -0
  148. package/dist/esm/api/types/Cargo1.d.mts +1 -0
  149. package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
  150. package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
  151. package/dist/esm/api/types/DeadlineAnchorEnum.d.mts +13 -0
  152. package/dist/esm/api/types/DeadlineAnchorEnum.mjs +7 -0
  153. package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +3 -3
  154. package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
  155. package/dist/esm/api/types/DriverStatsRes.mjs +4 -0
  156. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +9 -7
  157. package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +16 -8
  158. package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +6 -7
  159. package/dist/esm/api/types/Order1.d.mts +1 -2
  160. package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
  161. package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
  162. package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
  163. package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
  164. package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
  165. package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
  166. package/dist/esm/api/types/Task1.d.mts +1 -1
  167. package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
  168. package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
  169. package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
  170. package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
  171. package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
  172. package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
  173. package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
  174. package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
  175. package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
  176. package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
  177. package/dist/esm/api/types/index.d.mts +3 -2
  178. package/dist/esm/api/types/index.mjs +3 -2
  179. package/dist/esm/version.d.mts +1 -1
  180. package/dist/esm/version.mjs +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +736 -129
  183. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +0 -8
  184. package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +0 -10
  185. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +0 -8
  186. package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +0 -7
  187. /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
  188. /package/dist/cjs/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.js} +0 -0
  189. /package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.js → OperationsTaskListReorderEntries1.js} +0 -0
  190. /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js} +0 -0
  191. /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
  192. /package/dist/esm/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.mjs} +0 -0
  193. /package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.mjs → OperationsTaskListReorderEntries1.mjs} +0 -0
  194. /package/dist/esm/api/{types/AnalyticsTimeBucketResponse.mjs → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs} +0 -0
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskGroupSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "skipped_at_timestamp" | "exception_at_timestamp";
4
+ export type TaskGroupSortByEnum = "draft_started_at_timestamp" | "staged_at_timestamp" | "in_progress_at_timestamp" | "completed_at_timestamp" | "skipped_at_timestamp" | "cancelled_at_timestamp" | "exception_at_timestamp";
5
5
  export declare const TaskGroupSortByEnum: {
6
6
  readonly DraftStartedAtTimestamp: "draft_started_at_timestamp";
7
7
  readonly StagedAtTimestamp: "staged_at_timestamp";
8
8
  readonly InProgressAtTimestamp: "in_progress_at_timestamp";
9
9
  readonly CompletedAtTimestamp: "completed_at_timestamp";
10
10
  readonly SkippedAtTimestamp: "skipped_at_timestamp";
11
+ readonly CancelledAtTimestamp: "cancelled_at_timestamp";
11
12
  readonly ExceptionAtTimestamp: "exception_at_timestamp";
12
13
  };
@@ -10,5 +10,6 @@ exports.TaskGroupSortByEnum = {
10
10
  InProgressAtTimestamp: "in_progress_at_timestamp",
11
11
  CompletedAtTimestamp: "completed_at_timestamp",
12
12
  SkippedAtTimestamp: "skipped_at_timestamp",
13
+ CancelledAtTimestamp: "cancelled_at_timestamp",
13
14
  ExceptionAtTimestamp: "exception_at_timestamp",
14
15
  };
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskGroupStatusEnum1 = "draft" | "staged" | "in_progress" | "completed" | "skipped" | "exception";
4
+ export type TaskGroupStatusEnum1 = "draft" | "staged" | "in_progress" | "completed" | "skipped" | "cancelled" | "exception";
5
5
  export declare const TaskGroupStatusEnum1: {
6
6
  readonly Draft: "draft";
7
7
  readonly Staged: "staged";
8
8
  readonly InProgress: "in_progress";
9
9
  readonly Completed: "completed";
10
10
  readonly Skipped: "skipped";
11
+ readonly Cancelled: "cancelled";
11
12
  readonly Exception: "exception";
12
13
  };
@@ -10,5 +10,6 @@ exports.TaskGroupStatusEnum1 = {
10
10
  InProgress: "in_progress",
11
11
  Completed: "completed",
12
12
  Skipped: "skipped",
13
+ Cancelled: "cancelled",
13
14
  Exception: "exception",
14
15
  };
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type TaskStatusEnum1 = "draft" | "staged" | "completed" | "skipped" | "attempt" | "exception";
4
+ export type TaskStatusEnum1 = "draft" | "staged" | "completed" | "skipped" | "attempt" | "cancelled" | "exception";
5
5
  export declare const TaskStatusEnum1: {
6
6
  readonly Draft: "draft";
7
7
  readonly Staged: "staged";
8
8
  readonly Completed: "completed";
9
9
  readonly Skipped: "skipped";
10
10
  readonly Attempt: "attempt";
11
+ readonly Cancelled: "cancelled";
11
12
  readonly Exception: "exception";
12
13
  };
@@ -10,5 +10,6 @@ exports.TaskStatusEnum1 = {
10
10
  Completed: "completed",
11
11
  Skipped: "skipped",
12
12
  Attempt: "attempt",
13
+ Cancelled: "cancelled",
13
14
  Exception: "exception",
14
15
  };
@@ -1,5 +1,5 @@
1
1
  export * from "./AiImageDescription.js";
2
- export * from "./AnalyticsTimeBucketResponse.js";
2
+ export * from "./AnalyticsTimeBucketRes.js";
3
3
  export * from "./AttachBillingLedgerPeriodReq.js";
4
4
  export * from "./AttachLigToVectorClientReq.js";
5
5
  export * from "./Bid.js";
@@ -107,6 +107,7 @@ export * from "./CreateLigFromRateSheetForVectorClientReq.js";
107
107
  export * from "./CreateStripeConnectAccountRes.js";
108
108
  export * from "./CredentialInfoRes.js";
109
109
  export * from "./DateTimeWindow1.js";
110
+ export * from "./DeadlineAnchorEnum.js";
110
111
  export * from "./Department1.js";
111
112
  export * from "./DepartmentListRes.js";
112
113
  export * from "./DepartmentRoutingRule1.js";
@@ -128,6 +129,7 @@ export * from "./DriverComplianceDocument1.js";
128
129
  export * from "./DriverComplianceDocumentS3ObjectMetadata1.js";
129
130
  export * from "./DriverComplianceDocumentTypeEnum1.js";
130
131
  export * from "./DriverListRes.js";
132
+ export * from "./DriverStatsRes.js";
131
133
  export * from "./DriverStatusEnum.js";
132
134
  export * from "./DriverUpdateAvailabilityReq.js";
133
135
  export * from "./DriverUpdateRes.js";
@@ -271,7 +273,6 @@ export * from "./ProviderOrgProfile1.js";
271
273
  export * from "./ProviderProviderConnection1.js";
272
274
  export * from "./RateSheetMapping1.js";
273
275
  export * from "./RateSheetMappingListRes.js";
274
- export * from "./RoutingCounterpartyTypeEnum.js";
275
276
  export * from "./ScanPayloadKindEnum.js";
276
277
  export * from "./ScheduleCalendarSpec.js";
277
278
  export * from "./ScheduleIntervalSpec.js";
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AiImageDescription.js"), exports);
18
- __exportStar(require("./AnalyticsTimeBucketResponse.js"), exports);
18
+ __exportStar(require("./AnalyticsTimeBucketRes.js"), exports);
19
19
  __exportStar(require("./AttachBillingLedgerPeriodReq.js"), exports);
20
20
  __exportStar(require("./AttachLigToVectorClientReq.js"), exports);
21
21
  __exportStar(require("./Bid.js"), exports);
@@ -123,6 +123,7 @@ __exportStar(require("./CreateLigFromRateSheetForVectorClientReq.js"), exports);
123
123
  __exportStar(require("./CreateStripeConnectAccountRes.js"), exports);
124
124
  __exportStar(require("./CredentialInfoRes.js"), exports);
125
125
  __exportStar(require("./DateTimeWindow1.js"), exports);
126
+ __exportStar(require("./DeadlineAnchorEnum.js"), exports);
126
127
  __exportStar(require("./Department1.js"), exports);
127
128
  __exportStar(require("./DepartmentListRes.js"), exports);
128
129
  __exportStar(require("./DepartmentRoutingRule1.js"), exports);
@@ -144,6 +145,7 @@ __exportStar(require("./DriverComplianceDocument1.js"), exports);
144
145
  __exportStar(require("./DriverComplianceDocumentS3ObjectMetadata1.js"), exports);
145
146
  __exportStar(require("./DriverComplianceDocumentTypeEnum1.js"), exports);
146
147
  __exportStar(require("./DriverListRes.js"), exports);
148
+ __exportStar(require("./DriverStatsRes.js"), exports);
147
149
  __exportStar(require("./DriverStatusEnum.js"), exports);
148
150
  __exportStar(require("./DriverUpdateAvailabilityReq.js"), exports);
149
151
  __exportStar(require("./DriverUpdateRes.js"), exports);
@@ -287,7 +289,6 @@ __exportStar(require("./ProviderOrgProfile1.js"), exports);
287
289
  __exportStar(require("./ProviderProviderConnection1.js"), exports);
288
290
  __exportStar(require("./RateSheetMapping1.js"), exports);
289
291
  __exportStar(require("./RateSheetMappingListRes.js"), exports);
290
- __exportStar(require("./RoutingCounterpartyTypeEnum.js"), exports);
291
292
  __exportStar(require("./ScanPayloadKindEnum.js"), exports);
292
293
  __exportStar(require("./ScheduleCalendarSpec.js"), exports);
293
294
  __exportStar(require("./ScheduleIntervalSpec.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.723.0";
1
+ export declare const SDK_VERSION = "1.733.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.723.0";
4
+ exports.SDK_VERSION = "1.733.0";
@@ -20,8 +20,8 @@ export class ChrtClient {
20
20
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
21
21
  "X-Fern-Language": "JavaScript",
22
22
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
23
- "X-Fern-SDK-Version": "1.723.0",
24
- "User-Agent": "@chrt-inc/typescript-sdk/1.723.0",
23
+ "X-Fern-SDK-Version": "1.733.0",
24
+ "User-Agent": "@chrt-inc/typescript-sdk/1.733.0",
25
25
  "X-Fern-Runtime": core.RUNTIME.type,
26
26
  "X-Fern-Runtime-Version": core.RUNTIME.version,
27
27
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -31,9 +31,9 @@ export declare class Shipping {
31
31
  protected readonly _options: Shipping.Options;
32
32
  constructor(_options?: Shipping.Options);
33
33
  /**
34
- * Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodRequest) -> (AnalyticsTimeBucketResponse)
34
+ * Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodReq) -> (AnalyticsTimeBucketRes)
35
35
  *
36
- * @param {Chrt.analytics.AnalyticsTimePeriodRequest} request
36
+ * @param {Chrt.analytics.AnalyticsTimePeriodReq} request
37
37
  * @param {Shipping.RequestOptions} requestOptions - Request-specific configuration.
38
38
  *
39
39
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -44,7 +44,7 @@ export declare class Shipping {
44
44
  * end: "2024-01-15T09:30:00Z"
45
45
  * })
46
46
  */
47
- retrieveOrdersCountV1(request: Chrt.analytics.AnalyticsTimePeriodRequest, requestOptions?: Shipping.RequestOptions): core.HttpResponsePromise<Chrt.AnalyticsTimeBucketResponse>;
47
+ retrieveOrdersCountV1(request: Chrt.analytics.AnalyticsTimePeriodReq, requestOptions?: Shipping.RequestOptions): core.HttpResponsePromise<Chrt.AnalyticsTimeBucketRes>;
48
48
  private __retrieveOrdersCountV1;
49
49
  protected _getAuthorizationHeader(): Promise<string | undefined>;
50
50
  }
@@ -20,9 +20,9 @@ export class Shipping {
20
20
  this._options = _options;
21
21
  }
22
22
  /**
23
- * Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodRequest) -> (AnalyticsTimeBucketResponse)
23
+ * Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodReq) -> (AnalyticsTimeBucketRes)
24
24
  *
25
- * @param {Chrt.analytics.AnalyticsTimePeriodRequest} request
25
+ * @param {Chrt.analytics.AnalyticsTimePeriodReq} request
26
26
  * @param {Shipping.RequestOptions} requestOptions - Request-specific configuration.
27
27
  *
28
28
  * @throws {@link Chrt.UnprocessableEntityError}
@@ -9,7 +9,7 @@ import * as Chrt from "../../../../../../index.mjs";
9
9
  * end: "2024-01-15T09:30:00Z"
10
10
  * }
11
11
  */
12
- export interface AnalyticsTimePeriodRequest {
12
+ export interface AnalyticsTimePeriodReq {
13
13
  start: string;
14
14
  end: string;
15
15
  granularity?: Chrt.TimeGranularity;
@@ -1 +1 @@
1
- export { type AnalyticsTimePeriodRequest } from "./AnalyticsTimePeriodRequest.mjs";
1
+ export { type AnalyticsTimePeriodReq } from "./AnalyticsTimePeriodReq.mjs";
@@ -41,7 +41,7 @@ export declare class DepartmentRoutingRules {
41
41
  listV1(requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<Chrt.DepartmentRoutingRule1[]>;
42
42
  private __listV1;
43
43
  /**
44
- * Sets the caller org's default operations desk for a counterparty (on-chrt shipper or off-chrt shipper shell). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
44
+ * Sets the caller org's default operations desk for a counterparty. The body must set exactly one of shipper_org_id (on-chrt shipper) / off_chrt_shipper_org_id (off-chrt shipper shell) (XOR). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
45
45
  *
46
46
  * @param {Chrt.operations.DepartmentRoutingRuleClientCreate1} request
47
47
  * @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
@@ -51,26 +51,26 @@ export declare class DepartmentRoutingRules {
51
51
  * @example
52
52
  * await client.operations.departmentRoutingRules.upsertV1({
53
53
  * schema_version: 1,
54
- * counterparty_type: "shipper_org",
55
- * counterparty_id: "counterparty_id",
56
54
  * department_id: "department_id"
57
55
  * })
58
56
  */
59
57
  upsertV1(request: Chrt.operations.DepartmentRoutingRuleClientCreate1, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<string>;
60
58
  private __upsertV1;
61
59
  /**
62
- * Clears the caller org's default operations desk for a counterparty. | authz: min_org_role=administrator | () -> (bool)
60
+ * Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
63
61
  *
64
- * @param {Chrt.RoutingCounterpartyTypeEnum} counterpartyType
65
- * @param {string} counterpartyId
62
+ * @param {Chrt.operations.DepartmentRoutingRulesDeleteV1Request} request
66
63
  * @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
67
64
  *
68
65
  * @throws {@link Chrt.UnprocessableEntityError}
69
66
  *
70
67
  * @example
71
- * await client.operations.departmentRoutingRules.deleteV1("shipper_org", "counterparty_id")
68
+ * await client.operations.departmentRoutingRules.deleteV1({
69
+ * shipper_org_id: "shipper_org_id",
70
+ * off_chrt_shipper_org_id: "off_chrt_shipper_org_id"
71
+ * })
72
72
  */
73
- deleteV1(counterpartyType: Chrt.RoutingCounterpartyTypeEnum, counterpartyId: string, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<boolean>;
73
+ deleteV1(request?: Chrt.operations.DepartmentRoutingRulesDeleteV1Request, requestOptions?: DepartmentRoutingRules.RequestOptions): core.HttpResponsePromise<boolean>;
74
74
  private __deleteV1;
75
75
  protected _getAuthorizationHeader(): Promise<string | undefined>;
76
76
  }
@@ -71,7 +71,7 @@ export class DepartmentRoutingRules {
71
71
  });
72
72
  }
73
73
  /**
74
- * Sets the caller org's default operations desk for a counterparty (on-chrt shipper or off-chrt shipper shell). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
74
+ * Sets the caller org's default operations desk for a counterparty. The body must set exactly one of shipper_org_id (on-chrt shipper) / off_chrt_shipper_org_id (off-chrt shipper shell) (XOR). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
75
75
  *
76
76
  * @param {Chrt.operations.DepartmentRoutingRuleClientCreate1} request
77
77
  * @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
@@ -81,8 +81,6 @@ export class DepartmentRoutingRules {
81
81
  * @example
82
82
  * await client.operations.departmentRoutingRules.upsertV1({
83
83
  * schema_version: 1,
84
- * counterparty_type: "shipper_org",
85
- * counterparty_id: "counterparty_id",
86
84
  * department_id: "department_id"
87
85
  * })
88
86
  */
@@ -138,29 +136,39 @@ export class DepartmentRoutingRules {
138
136
  });
139
137
  }
140
138
  /**
141
- * Clears the caller org's default operations desk for a counterparty. | authz: min_org_role=administrator | () -> (bool)
139
+ * Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
142
140
  *
143
- * @param {Chrt.RoutingCounterpartyTypeEnum} counterpartyType
144
- * @param {string} counterpartyId
141
+ * @param {Chrt.operations.DepartmentRoutingRulesDeleteV1Request} request
145
142
  * @param {DepartmentRoutingRules.RequestOptions} requestOptions - Request-specific configuration.
146
143
  *
147
144
  * @throws {@link Chrt.UnprocessableEntityError}
148
145
  *
149
146
  * @example
150
- * await client.operations.departmentRoutingRules.deleteV1("shipper_org", "counterparty_id")
147
+ * await client.operations.departmentRoutingRules.deleteV1({
148
+ * shipper_org_id: "shipper_org_id",
149
+ * off_chrt_shipper_org_id: "off_chrt_shipper_org_id"
150
+ * })
151
151
  */
152
- deleteV1(counterpartyType, counterpartyId, requestOptions) {
153
- return core.HttpResponsePromise.fromPromise(this.__deleteV1(counterpartyType, counterpartyId, requestOptions));
152
+ deleteV1(request = {}, requestOptions) {
153
+ return core.HttpResponsePromise.fromPromise(this.__deleteV1(request, requestOptions));
154
154
  }
155
- __deleteV1(counterpartyType, counterpartyId, requestOptions) {
156
- return __awaiter(this, void 0, void 0, function* () {
155
+ __deleteV1() {
156
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
157
157
  var _a, _b, _c, _d;
158
+ const { shipper_org_id: shipperOrgId, off_chrt_shipper_org_id: offChrtShipperOrgId } = request;
159
+ const _queryParams = {};
160
+ if (shipperOrgId !== undefined) {
161
+ _queryParams["shipper_org_id"] = shipperOrgId;
162
+ }
163
+ if (offChrtShipperOrgId !== undefined) {
164
+ _queryParams["off_chrt_shipper_org_id"] = offChrtShipperOrgId;
165
+ }
158
166
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
167
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
160
- 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, `operations/department_routing_rules/v1/${encodeURIComponent(counterpartyType)}/${encodeURIComponent(counterpartyId)}`),
168
+ 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, "operations/department_routing_rules/v1"),
161
169
  method: "DELETE",
162
170
  headers: _headers,
163
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
171
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
164
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
165
173
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
166
174
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -188,7 +196,7 @@ export class DepartmentRoutingRules {
188
196
  rawResponse: _response.rawResponse,
189
197
  });
190
198
  case "timeout":
191
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/department_routing_rules/v1/{counterparty_type}/{counterparty_id}.");
199
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/department_routing_rules/v1.");
192
200
  case "unknown":
193
201
  throw new errors.ChrtError({
194
202
  message: _response.error.errorMessage,
@@ -1,19 +1,17 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Chrt from "../../../../../../index.mjs";
5
4
  /**
6
5
  * @example
7
6
  * {
8
7
  * schema_version: 1,
9
- * counterparty_type: "shipper_org",
10
- * counterparty_id: "counterparty_id",
11
8
  * department_id: "department_id"
12
9
  * }
13
10
  */
14
11
  export interface DepartmentRoutingRuleClientCreate1 {
15
12
  schema_version: number;
16
- counterparty_type: Chrt.RoutingCounterpartyTypeEnum;
17
- counterparty_id: string;
13
+ /** Must be a string starting with `org_` */
14
+ shipper_org_id?: string | null;
15
+ off_chrt_shipper_org_id?: string | null;
18
16
  department_id: string;
19
17
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * shipper_org_id: "shipper_org_id",
8
+ * off_chrt_shipper_org_id: "off_chrt_shipper_org_id"
9
+ * }
10
+ */
11
+ export interface DepartmentRoutingRulesDeleteV1Request {
12
+ shipper_org_id?: string | null;
13
+ off_chrt_shipper_org_id?: string | null;
14
+ }
@@ -1 +1,2 @@
1
1
  export { type DepartmentRoutingRuleClientCreate1 } from "./DepartmentRoutingRuleClientCreate1.mjs";
2
+ export { type DepartmentRoutingRulesDeleteV1Request } from "./DepartmentRoutingRulesDeleteV1Request.mjs";
@@ -93,33 +93,33 @@ export declare class OperationsTaskLists {
93
93
  createV1(request: Chrt.operations.OperationsTaskListClientCreate1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string>;
94
94
  private __createV1;
95
95
  /**
96
- * Appends entries to an OperationsTaskList's `entries` array. | authz: min_org_role=operator | (OperationsTaskListEntriesAdd1) -> (bool)
96
+ * 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)
97
97
  *
98
98
  * @param {string} taskListId
99
- * @param {Chrt.operations.OperationsTaskListEntriesAdd1} request
99
+ * @param {Chrt.operations.OperationsTaskListSetEntries1} request
100
100
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
101
101
  *
102
102
  * @throws {@link Chrt.UnprocessableEntityError}
103
103
  *
104
104
  * @example
105
- * await client.operations.operationsTaskLists.addEntriesV1("task_list_id")
105
+ * await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
106
106
  */
107
- addEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListEntriesAdd1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
108
- private __addEntriesV1;
107
+ setEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListSetEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
108
+ private __setEntriesV1;
109
109
  /**
110
- * Removes entries from an OperationsTaskList by entry id. | authz: min_org_role=operator | (OperationsTaskListEntriesRemove1) -> (bool)
110
+ * 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)
111
111
  *
112
112
  * @param {string} taskListId
113
- * @param {Chrt.operations.OperationsTaskListEntriesRemove1} request
113
+ * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
114
114
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
115
115
  *
116
116
  * @throws {@link Chrt.UnprocessableEntityError}
117
117
  *
118
118
  * @example
119
- * await client.operations.operationsTaskLists.removeEntriesV1("task_list_id")
119
+ * await client.operations.operationsTaskLists.reorderEntriesV1("task_list_id")
120
120
  */
121
- removeEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListEntriesRemove1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
122
- private __removeEntriesV1;
121
+ reorderEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListReorderEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
122
+ private __reorderEntriesV1;
123
123
  /**
124
124
  * Soft-deletes an OperationsTaskList by setting `archived=True`. Tasks already applied to Cases are unaffected. | authz: min_org_role=operator | () -> (bool)
125
125
  *
@@ -147,7 +147,7 @@ export declare class OperationsTaskLists {
147
147
  unarchiveV1(taskListId: string, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
148
148
  private __unarchiveV1;
149
149
  /**
150
- * Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines: overall_deadline_timestamp wins, else the entry's deadline_offset_seconds, else a positional 20-min stagger. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
150
+ * Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
151
151
  *
152
152
  * @param {string} taskListId
153
153
  * @param {string} caseId
@@ -158,7 +158,7 @@ export declare class OperationsTaskLists {
158
158
  *
159
159
  * @example
160
160
  * await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
161
- * overall_deadline_timestamp: "2024-01-15T09:30:00Z"
161
+ * initial_deadline_timestamp: "2024-01-15T09:30:00Z"
162
162
  * })
163
163
  */
164
164
  applyToCaseV1(taskListId: string, caseId: string, request?: Chrt.operations.OperationsTaskListsApplyToCaseV1Request, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<string[]>;
@@ -289,26 +289,26 @@ export class OperationsTaskLists {
289
289
  });
290
290
  }
291
291
  /**
292
- * Appends entries to an OperationsTaskList's `entries` array. | authz: min_org_role=operator | (OperationsTaskListEntriesAdd1) -> (bool)
292
+ * 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)
293
293
  *
294
294
  * @param {string} taskListId
295
- * @param {Chrt.operations.OperationsTaskListEntriesAdd1} request
295
+ * @param {Chrt.operations.OperationsTaskListSetEntries1} request
296
296
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
297
297
  *
298
298
  * @throws {@link Chrt.UnprocessableEntityError}
299
299
  *
300
300
  * @example
301
- * await client.operations.operationsTaskLists.addEntriesV1("task_list_id")
301
+ * await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
302
302
  */
303
- addEntriesV1(taskListId, request = {}, requestOptions) {
304
- return core.HttpResponsePromise.fromPromise(this.__addEntriesV1(taskListId, request, requestOptions));
303
+ setEntriesV1(taskListId, request = {}, requestOptions) {
304
+ return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
305
305
  }
306
- __addEntriesV1(taskListId_1) {
306
+ __setEntriesV1(taskListId_1) {
307
307
  return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
308
308
  var _a, _b, _c, _d;
309
309
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
310
310
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
311
- 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, `operations/operations_task_lists/entries/add/v1/${encodeURIComponent(taskListId)}`),
311
+ 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, `operations/operations_task_lists/entries/set/v1/${encodeURIComponent(taskListId)}`),
312
312
  method: "POST",
313
313
  headers: _headers,
314
314
  contentType: "application/json",
@@ -342,7 +342,7 @@ export class OperationsTaskLists {
342
342
  rawResponse: _response.rawResponse,
343
343
  });
344
344
  case "timeout":
345
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
345
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/set/v1/{task_list_id}.");
346
346
  case "unknown":
347
347
  throw new errors.ChrtError({
348
348
  message: _response.error.errorMessage,
@@ -352,26 +352,26 @@ export class OperationsTaskLists {
352
352
  });
353
353
  }
354
354
  /**
355
- * Removes entries from an OperationsTaskList by entry id. | authz: min_org_role=operator | (OperationsTaskListEntriesRemove1) -> (bool)
355
+ * 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)
356
356
  *
357
357
  * @param {string} taskListId
358
- * @param {Chrt.operations.OperationsTaskListEntriesRemove1} request
358
+ * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
359
359
  * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
360
360
  *
361
361
  * @throws {@link Chrt.UnprocessableEntityError}
362
362
  *
363
363
  * @example
364
- * await client.operations.operationsTaskLists.removeEntriesV1("task_list_id")
364
+ * await client.operations.operationsTaskLists.reorderEntriesV1("task_list_id")
365
365
  */
366
- removeEntriesV1(taskListId, request = {}, requestOptions) {
367
- return core.HttpResponsePromise.fromPromise(this.__removeEntriesV1(taskListId, request, requestOptions));
366
+ reorderEntriesV1(taskListId, request = {}, requestOptions) {
367
+ return core.HttpResponsePromise.fromPromise(this.__reorderEntriesV1(taskListId, request, requestOptions));
368
368
  }
369
- __removeEntriesV1(taskListId_1) {
369
+ __reorderEntriesV1(taskListId_1) {
370
370
  return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
371
371
  var _a, _b, _c, _d;
372
372
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
373
373
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
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, `operations/operations_task_lists/entries/remove/v1/${encodeURIComponent(taskListId)}`),
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, `operations/operations_task_lists/entries/reorder/v1/${encodeURIComponent(taskListId)}`),
375
375
  method: "POST",
376
376
  headers: _headers,
377
377
  contentType: "application/json",
@@ -405,7 +405,7 @@ export class OperationsTaskLists {
405
405
  rawResponse: _response.rawResponse,
406
406
  });
407
407
  case "timeout":
408
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/remove/v1/{task_list_id}.");
408
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/reorder/v1/{task_list_id}.");
409
409
  case "unknown":
410
410
  throw new errors.ChrtError({
411
411
  message: _response.error.errorMessage,
@@ -533,7 +533,7 @@ export class OperationsTaskLists {
533
533
  });
534
534
  }
535
535
  /**
536
- * Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines: overall_deadline_timestamp wins, else the entry's deadline_offset_seconds, else a positional 20-min stagger. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
536
+ * Materializes each entry of an OperationsTaskList into an OperationsTask on the Case (status=not_started, source_task_list_id set). Deadlines resolve per-entry from its anchor+offset; initial_deadline_timestamp, if set, pins the first entry and the chain follows. No dedup — applying twice creates duplicate tasks. | authz: min_org_role=operator | () -> (list[PydanticObjectId])
537
537
  *
538
538
  * @param {string} taskListId
539
539
  * @param {string} caseId
@@ -544,7 +544,7 @@ export class OperationsTaskLists {
544
544
  *
545
545
  * @example
546
546
  * await client.operations.operationsTaskLists.applyToCaseV1("task_list_id", "case_id", {
547
- * overall_deadline_timestamp: "2024-01-15T09:30:00Z"
547
+ * initial_deadline_timestamp: "2024-01-15T09:30:00Z"
548
548
  * })
549
549
  */
550
550
  applyToCaseV1(taskListId, caseId, request = {}, requestOptions) {
@@ -553,10 +553,10 @@ export class OperationsTaskLists {
553
553
  __applyToCaseV1(taskListId_1, caseId_1) {
554
554
  return __awaiter(this, arguments, void 0, function* (taskListId, caseId, request = {}, requestOptions) {
555
555
  var _a, _b, _c, _d;
556
- const { overall_deadline_timestamp: overallDeadlineTimestamp } = request;
556
+ const { initial_deadline_timestamp: initialDeadlineTimestamp } = request;
557
557
  const _queryParams = {};
558
- if (overallDeadlineTimestamp !== undefined) {
559
- _queryParams["overall_deadline_timestamp"] = overallDeadlineTimestamp;
558
+ if (initialDeadlineTimestamp !== undefined) {
559
+ _queryParams["initial_deadline_timestamp"] = initialDeadlineTimestamp;
560
560
  }
561
561
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
562
562
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,6 +5,6 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface OperationsTaskListEntriesRemove1 {
8
+ export interface OperationsTaskListReorderEntries1 {
9
9
  entry_ids?: string[];
10
10
  }
@@ -6,6 +6,6 @@ import * as Chrt from "../../../../../../index.mjs";
6
6
  * @example
7
7
  * {}
8
8
  */
9
- export interface OperationsTaskListEntriesAdd1 {
9
+ export interface OperationsTaskListSetEntries1 {
10
10
  entries?: Chrt.OperationsTaskListEntry1[];
11
11
  }
@@ -4,10 +4,10 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * overall_deadline_timestamp: "2024-01-15T09:30:00Z"
7
+ * initial_deadline_timestamp: "2024-01-15T09:30:00Z"
8
8
  * }
9
9
  */
10
10
  export interface OperationsTaskListsApplyToCaseV1Request {
11
- /** If set, overrides every materialized task's deadline with this timestamp. */
12
- overall_deadline_timestamp?: string | null;
11
+ /** If set, pins the first entry's deadline; later FROM_PREVIOUS_TASK entries cascade from it. */
12
+ initial_deadline_timestamp?: string | null;
13
13
  }
@@ -1,6 +1,6 @@
1
1
  export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.mjs";
2
2
  export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.mjs";
3
3
  export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.mjs";
4
- export { type OperationsTaskListEntriesAdd1 } from "./OperationsTaskListEntriesAdd1.mjs";
5
- export { type OperationsTaskListEntriesRemove1 } from "./OperationsTaskListEntriesRemove1.mjs";
4
+ export { type OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.mjs";
5
+ export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.mjs";
6
6
  export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.mjs";