@chrt-inc/typescript-sdk 1.723.0 → 1.732.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/analytics/resources/shipping/client/Client.d.ts +3 -3
- 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 → AnalyticsTimePeriodReq.d.ts} +1 -1
- package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/Client.js +22 -14
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.ts +3 -5
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +12 -12
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +21 -21
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.ts → OperationsTaskListReorderEntries1.d.ts} +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.ts → OperationsTaskListSetEntries1.d.ts} +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.ts +3 -3
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +66 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.ts +15 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.d.ts +31 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/Client.js +129 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.ts +17 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.js +66 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.ts +16 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.ts +57 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.js +247 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.ts +13 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +16 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +65 -1
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.ts +12 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.js +5 -0
- package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +26 -34
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.ts +4 -6
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/client/Client.js +1 -1
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.js +26 -18
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.ts +4 -2
- package/dist/cjs/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.ts +4 -2
- package/dist/cjs/api/types/{AnalyticsTimeBucketResponse.d.ts → AnalyticsTimeBucketRes.d.ts} +1 -1
- package/dist/cjs/api/types/AnalyticsTimeBucketRes.js +5 -0
- package/dist/cjs/api/types/Cargo1.d.ts +1 -0
- package/dist/cjs/api/types/CargoStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/CargoStatusEnum1.js +1 -0
- package/dist/cjs/api/types/DeadlineAnchorEnum.d.ts +13 -0
- package/dist/cjs/api/types/DeadlineAnchorEnum.js +10 -0
- package/dist/cjs/api/types/DepartmentRoutingRule1.d.ts +3 -3
- package/dist/cjs/api/types/DriverStatsRes.d.ts +11 -0
- package/dist/cjs/api/types/DriverStatsRes.js +5 -0
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +9 -7
- package/dist/cjs/api/types/OperationsTaskTypeEnum.d.ts +16 -8
- package/dist/cjs/api/types/OperationsTaskTypeEnum.js +6 -7
- package/dist/cjs/api/types/Order1.d.ts +1 -2
- package/dist/cjs/api/types/OrderDraftValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderDraftValidationResult.d.ts +1 -0
- package/dist/cjs/api/types/OrderManifestValidationRequirements.d.ts +1 -0
- package/dist/cjs/api/types/OrderSortByEnum.d.ts +2 -2
- package/dist/cjs/api/types/OrderSortByEnum.js +1 -1
- package/dist/cjs/api/types/OrderStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/OrderStatusEnum1.js +1 -0
- package/dist/cjs/api/types/Task1.d.ts +1 -1
- package/dist/cjs/api/types/TaskArtifact1.d.ts +1 -0
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskArtifactStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupSortByEnum.js +1 -0
- package/dist/cjs/api/types/TaskGroupStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskGroupStatusEnum1.js +1 -0
- package/dist/cjs/api/types/TaskStatusEnum1.d.ts +2 -1
- package/dist/cjs/api/types/TaskStatusEnum1.js +1 -0
- package/dist/cjs/api/types/ValidationIssue.d.ts +8 -0
- package/dist/cjs/api/types/ValidationIssue.js +5 -0
- package/dist/cjs/api/types/ValidationIssueScope.d.ts +8 -0
- package/dist/cjs/api/types/ValidationIssueScope.js +5 -0
- package/dist/cjs/api/types/index.d.ts +5 -2
- package/dist/cjs/api/types/index.js +5 -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 +3 -3
- 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 → AnalyticsTimePeriodReq.d.mts} +1 -1
- package/dist/esm/api/resources/analytics/resources/shipping/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs +22 -14
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRuleClientCreate1.d.mts +3 -5
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.d.mts +14 -0
- package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +12 -12
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +21 -21
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.d.mts → OperationsTaskListReorderEntries1.d.mts} +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesAdd1.d.mts → OperationsTaskListSetEntries1.d.mts} +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToCaseV1Request.d.mts +3 -3
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +66 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.d.mts +15 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriverStatsReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/drivers/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.d.mts +31 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/Client.mjs +129 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.d.mts +12 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersDraftDeleteManyReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/SetTaskGroupOrderingDraftReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.d.mts +17 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/Client.mjs +66 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.d.mts +16 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/OrderDraftUnassociateCargoWithTaskReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/cargo/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.d.mts +57 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/Client.mjs +247 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddExecutorReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.d.mts +13 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftUpdateDriverReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +16 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +65 -1
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.d.mts +12 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersCancelManyReq.mjs +4 -0
- package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +26 -34
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForCoordinatorOperatorsV1Request.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForShipperOperatorsV1Request.d.mts +4 -6
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/client/Client.mjs +1 -1
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/Client.mjs +26 -18
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForDriverForExecutorV1Request.d.mts +4 -2
- package/dist/esm/api/resources/shipping/resources/taskGroups/resources/expanded/client/requests/ExpandedListForExecutorOperatorsV1Request.d.mts +4 -2
- package/dist/esm/api/types/{AnalyticsTimeBucketResponse.d.mts → AnalyticsTimeBucketRes.d.mts} +1 -1
- package/dist/esm/api/types/AnalyticsTimeBucketRes.mjs +4 -0
- package/dist/esm/api/types/Cargo1.d.mts +1 -0
- package/dist/esm/api/types/CargoStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/CargoStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/DeadlineAnchorEnum.d.mts +13 -0
- package/dist/esm/api/types/DeadlineAnchorEnum.mjs +7 -0
- package/dist/esm/api/types/DepartmentRoutingRule1.d.mts +3 -3
- package/dist/esm/api/types/DriverStatsRes.d.mts +11 -0
- package/dist/esm/api/types/DriverStatsRes.mjs +4 -0
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +9 -7
- package/dist/esm/api/types/OperationsTaskTypeEnum.d.mts +16 -8
- package/dist/esm/api/types/OperationsTaskTypeEnum.mjs +6 -7
- package/dist/esm/api/types/Order1.d.mts +1 -2
- package/dist/esm/api/types/OrderDraftValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderDraftValidationResult.d.mts +1 -0
- package/dist/esm/api/types/OrderManifestValidationRequirements.d.mts +1 -0
- package/dist/esm/api/types/OrderSortByEnum.d.mts +2 -2
- package/dist/esm/api/types/OrderSortByEnum.mjs +1 -1
- package/dist/esm/api/types/OrderStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/OrderStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/Task1.d.mts +1 -1
- package/dist/esm/api/types/TaskArtifact1.d.mts +1 -0
- package/dist/esm/api/types/TaskArtifactStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskArtifactStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupSortByEnum.mjs +1 -0
- package/dist/esm/api/types/TaskGroupStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskGroupStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/TaskStatusEnum1.d.mts +2 -1
- package/dist/esm/api/types/TaskStatusEnum1.mjs +1 -0
- package/dist/esm/api/types/ValidationIssue.d.mts +8 -0
- package/dist/esm/api/types/ValidationIssue.mjs +4 -0
- package/dist/esm/api/types/ValidationIssueScope.d.mts +8 -0
- package/dist/esm/api/types/ValidationIssueScope.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +5 -2
- package/dist/esm/api/types/index.mjs +5 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +736 -129
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.d.ts +0 -8
- package/dist/cjs/api/types/RoutingCounterpartyTypeEnum.js +0 -10
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.d.mts +0 -8
- package/dist/esm/api/types/RoutingCounterpartyTypeEnum.mjs +0 -7
- /package/dist/cjs/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.js → AnalyticsTimePeriodReq.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.js → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.js} +0 -0
- /package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.js → OperationsTaskListReorderEntries1.js} +0 -0
- /package/dist/cjs/api/{types/AnalyticsTimeBucketResponse.js → resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js} +0 -0
- /package/dist/esm/api/resources/analytics/resources/shipping/client/requests/{AnalyticsTimePeriodRequest.mjs → AnalyticsTimePeriodReq.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/{operationsTaskLists/client/requests/OperationsTaskListEntriesAdd1.mjs → departmentRoutingRules/client/requests/DepartmentRoutingRulesDeleteV1Request.mjs} +0 -0
- /package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/{OperationsTaskListEntriesRemove1.mjs → OperationsTaskListReorderEntries1.mjs} +0 -0
- /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
|
};
|
|
@@ -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
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./AiImageDescription.js";
|
|
2
|
-
export * from "./
|
|
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";
|
|
@@ -375,6 +376,8 @@ export * from "./UnitsEnum.js";
|
|
|
375
376
|
export * from "./UserPrivateData1.js";
|
|
376
377
|
export * from "./UserPublicData1.js";
|
|
377
378
|
export * from "./ValidationError.js";
|
|
379
|
+
export * from "./ValidationIssue.js";
|
|
380
|
+
export * from "./ValidationIssueScope.js";
|
|
378
381
|
export * from "./Vehicle1.js";
|
|
379
382
|
export * from "./VehicleTypeEnum.js";
|
|
380
383
|
export * from "./WebcargoAccountId.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("./
|
|
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);
|
|
@@ -391,6 +392,8 @@ __exportStar(require("./UnitsEnum.js"), exports);
|
|
|
391
392
|
__exportStar(require("./UserPrivateData1.js"), exports);
|
|
392
393
|
__exportStar(require("./UserPublicData1.js"), exports);
|
|
393
394
|
__exportStar(require("./ValidationError.js"), exports);
|
|
395
|
+
__exportStar(require("./ValidationIssue.js"), exports);
|
|
396
|
+
__exportStar(require("./ValidationIssueScope.js"), exports);
|
|
394
397
|
__exportStar(require("./Vehicle1.js"), exports);
|
|
395
398
|
__exportStar(require("./VehicleTypeEnum.js"), exports);
|
|
396
399
|
__exportStar(require("./WebcargoAccountId.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.732.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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.
|
|
24
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
23
|
+
"X-Fern-SDK-Version": "1.732.0",
|
|
24
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.732.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. | (
|
|
34
|
+
* Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodReq) -> (AnalyticsTimeBucketRes)
|
|
35
35
|
*
|
|
36
|
-
* @param {Chrt.analytics.
|
|
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.
|
|
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. | (
|
|
23
|
+
* Retrieves order counts bucketed by time period. | (AnalyticsTimePeriodReq) -> (AnalyticsTimeBucketRes)
|
|
24
24
|
*
|
|
25
|
-
* @param {Chrt.analytics.
|
|
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
|
|
12
|
+
export interface AnalyticsTimePeriodReq {
|
|
13
13
|
start: string;
|
|
14
14
|
end: string;
|
|
15
15
|
granularity?: Chrt.TimeGranularity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type AnalyticsTimePeriodReq } from "./AnalyticsTimePeriodReq.mjs";
|
package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.d.mts
CHANGED
|
@@ -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
|
|
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.
|
|
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(
|
|
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(
|
|
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
|
}
|
package/dist/esm/api/resources/operations/resources/departmentRoutingRules/client/Client.mjs
CHANGED
|
@@ -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
|
|
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.
|
|
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(
|
|
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(
|
|
153
|
-
return core.HttpResponsePromise.fromPromise(this.__deleteV1(
|
|
152
|
+
deleteV1(request = {}, requestOptions) {
|
|
153
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteV1(request, requestOptions));
|
|
154
154
|
}
|
|
155
|
-
__deleteV1(
|
|
156
|
-
return __awaiter(this,
|
|
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,
|
|
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
|
|
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
|
-
|
|
17
|
-
|
|
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
|
+
}
|
|
@@ -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
|
-
*
|
|
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.
|
|
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.
|
|
105
|
+
* await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
private
|
|
107
|
+
setEntriesV1(taskListId: string, request?: Chrt.operations.OperationsTaskListSetEntries1, requestOptions?: OperationsTaskLists.RequestOptions): core.HttpResponsePromise<boolean>;
|
|
108
|
+
private __setEntriesV1;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
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.
|
|
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.
|
|
119
|
+
* await client.operations.operationsTaskLists.reorderEntriesV1("task_list_id")
|
|
120
120
|
*/
|
|
121
|
-
|
|
122
|
-
private
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|
|
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.
|
|
301
|
+
* await client.operations.operationsTaskLists.setEntriesV1("task_list_id")
|
|
302
302
|
*/
|
|
303
|
-
|
|
304
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
303
|
+
setEntriesV1(taskListId, request = {}, requestOptions) {
|
|
304
|
+
return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
|
|
305
305
|
}
|
|
306
|
-
|
|
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/
|
|
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/
|
|
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
|
-
*
|
|
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.
|
|
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.
|
|
364
|
+
* await client.operations.operationsTaskLists.reorderEntriesV1("task_list_id")
|
|
365
365
|
*/
|
|
366
|
-
|
|
367
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
366
|
+
reorderEntriesV1(taskListId, request = {}, requestOptions) {
|
|
367
|
+
return core.HttpResponsePromise.fromPromise(this.__reorderEntriesV1(taskListId, request, requestOptions));
|
|
368
368
|
}
|
|
369
|
-
|
|
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/
|
|
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/
|
|
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
|
|
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
|
-
*
|
|
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 {
|
|
556
|
+
const { initial_deadline_timestamp: initialDeadlineTimestamp } = request;
|
|
557
557
|
const _queryParams = {};
|
|
558
|
-
if (
|
|
559
|
-
_queryParams["
|
|
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)({
|