@chrt-inc/typescript-sdk 1.984.0 → 1.990.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 (142) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.d.ts +6 -6
  3. package/dist/cjs/api/resources/listing/resources/bidThreads/client/Client.js +6 -6
  4. package/dist/cjs/api/resources/listing/resources/driverBiddingGroups/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/listing/resources/driverBiddingGroups/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/listing/resources/orgBiddingGroups/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/operations/resources/departments/client/Client.d.ts +2 -1
  9. package/dist/cjs/api/resources/operations/resources/departments/client/Client.js +6 -2
  10. package/dist/cjs/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.ts +3 -0
  11. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +5 -3
  12. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +13 -5
  13. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToOrderV1Request.d.ts +4 -1
  14. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.ts +3 -0
  15. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.d.ts +19 -2
  16. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/Client.js +79 -4
  17. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.ts +1 -0
  18. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.ts +3 -0
  19. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.ts +3 -0
  20. package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.d.ts → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.d.ts} +5 -2
  21. package/dist/cjs/api/resources/operations/resources/operationsTasks/client/requests/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/orgs/client/Client.d.ts +2 -1
  23. package/dist/cjs/api/resources/orgs/client/Client.js +11 -2
  24. package/dist/cjs/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.ts +3 -0
  25. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.d.ts +29 -0
  26. package/dist/cjs/api/resources/shipping/resources/drivers/client/Client.js +146 -16
  27. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.ts +3 -0
  28. package/dist/cjs/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.ts +6 -0
  29. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.ts +1 -1
  30. package/dist/cjs/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.ts +1 -2
  31. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.d.ts +7 -6
  32. package/dist/cjs/api/resources/shipping/resources/orders/client/Client.js +14 -10
  33. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.ts +3 -0
  34. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.d.ts +10 -0
  35. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.js +5 -0
  36. package/dist/cjs/api/resources/shipping/resources/orders/client/requests/index.d.ts +1 -1
  37. package/dist/cjs/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.ts +1 -1
  38. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.ts +2 -2
  39. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/Client.js +17 -7
  40. package/dist/cjs/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.ts +6 -5
  41. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.ts +3 -5
  42. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.js +5 -7
  43. package/dist/cjs/api/resources/shipping/resources/orders/resources/taskGroup/client/requests/OrdersSetTaskGroupVehicleTypeReq.d.ts +3 -4
  44. package/dist/cjs/api/types/Driver1.d.ts +1 -0
  45. package/dist/cjs/api/types/DriverBiddingGroupListItemRes.d.ts +17 -0
  46. package/dist/cjs/api/types/DriverBiddingGroupListItemRes.js +5 -0
  47. package/dist/cjs/api/types/DriverBiddingGroupListRes.d.ts +1 -1
  48. package/dist/cjs/api/types/DriverWithActiveTaskGroupIds1.d.ts +1 -0
  49. package/dist/cjs/api/types/OperationsTask1.d.ts +1 -0
  50. package/dist/cjs/api/types/OperationsTasksUpdateDepartmentManyRes.d.ts +7 -0
  51. package/dist/cjs/api/types/OperationsTasksUpdateDepartmentManyRes.js +5 -0
  52. package/dist/cjs/api/types/Order1.d.ts +1 -1
  53. package/dist/cjs/api/types/OrderAndTaskGroupExpandedReq.d.ts +2 -2
  54. package/dist/cjs/api/types/OrderExpandedForProvider.d.ts +1 -1
  55. package/dist/cjs/api/types/OrderLimitedForProvider1.d.ts +1 -1
  56. package/dist/cjs/api/types/OrderTaskGroupExecutorDetails1.d.ts +1 -1
  57. package/dist/cjs/api/types/OrderTemplateNew1.d.ts +1 -1
  58. package/dist/cjs/api/types/OrderTemplateNewCore1.d.ts +1 -1
  59. package/dist/cjs/api/types/OrderTemplateNewExpanded1.d.ts +1 -1
  60. package/dist/cjs/api/types/OrgBiddingGroupListItemRes.d.ts +17 -0
  61. package/dist/cjs/api/types/OrgBiddingGroupListItemRes.js +5 -0
  62. package/dist/cjs/api/types/OrgBiddingGroupListRes.d.ts +1 -1
  63. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -1
  64. package/dist/cjs/api/types/TaskGroupExpanded.d.ts +1 -1
  65. package/dist/cjs/api/types/TaskListToApplyToOrder1.d.ts +1 -0
  66. package/dist/cjs/api/types/index.d.ts +3 -0
  67. package/dist/cjs/api/types/index.js +3 -0
  68. package/dist/cjs/version.d.ts +1 -1
  69. package/dist/cjs/version.js +1 -1
  70. package/dist/esm/Client.mjs +2 -2
  71. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.d.mts +6 -6
  72. package/dist/esm/api/resources/listing/resources/bidThreads/client/Client.mjs +6 -6
  73. package/dist/esm/api/resources/listing/resources/driverBiddingGroups/client/Client.d.mts +1 -1
  74. package/dist/esm/api/resources/listing/resources/driverBiddingGroups/client/Client.mjs +1 -1
  75. package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.d.mts +1 -1
  76. package/dist/esm/api/resources/listing/resources/orgBiddingGroups/client/Client.mjs +1 -1
  77. package/dist/esm/api/resources/operations/resources/departments/client/Client.d.mts +2 -1
  78. package/dist/esm/api/resources/operations/resources/departments/client/Client.mjs +6 -2
  79. package/dist/esm/api/resources/operations/resources/departments/client/requests/DepartmentsListV1Request.d.mts +3 -0
  80. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +5 -3
  81. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +13 -5
  82. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsApplyToOrderV1Request.d.mts +4 -1
  83. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListsListV1Request.d.mts +3 -0
  84. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.d.mts +19 -2
  85. package/dist/esm/api/resources/operations/resources/operationsTasks/client/Client.mjs +79 -4
  86. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTaskClientCreate1.d.mts +1 -0
  87. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksExpandedListV1Request.d.mts +3 -0
  88. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/OperationsTasksListV1Request.d.mts +3 -0
  89. package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.d.mts → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.d.mts} +5 -2
  90. package/dist/esm/api/resources/operations/resources/operationsTasks/client/requests/index.d.mts +1 -0
  91. package/dist/esm/api/resources/orgs/client/Client.d.mts +2 -1
  92. package/dist/esm/api/resources/orgs/client/Client.mjs +11 -2
  93. package/dist/esm/api/resources/orgs/client/requests/OrgsListMembersV1Request.d.mts +3 -0
  94. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.d.mts +29 -0
  95. package/dist/esm/api/resources/shipping/resources/drivers/client/Client.mjs +146 -16
  96. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListOrgMembersAndDriversV1Request.d.mts +3 -0
  97. package/dist/esm/api/resources/shipping/resources/drivers/client/requests/DriversListV1Request.d.mts +6 -0
  98. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientCreate1.d.mts +1 -1
  99. package/dist/esm/api/resources/shipping/resources/orderTemplatesNew/client/requests/OrderTemplateNewClientUpdate1.d.mts +1 -2
  100. package/dist/esm/api/resources/shipping/resources/orders/client/Client.d.mts +7 -6
  101. package/dist/esm/api/resources/shipping/resources/orders/client/Client.mjs +14 -10
  102. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersAddCoordinatorTaskListToApplyAtOrderStagingV1Request.d.mts +3 -0
  103. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.d.mts +10 -0
  104. package/dist/esm/api/resources/shipping/resources/orders/client/requests/OrdersUpdateDepartmentsReq.mjs +4 -0
  105. package/dist/esm/api/resources/shipping/resources/orders/client/requests/index.d.mts +1 -1
  106. package/dist/esm/api/resources/shipping/resources/orders/resources/drafts/client/requests/OrdersOpenDraftReq.d.mts +1 -1
  107. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.d.mts +2 -2
  108. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/Client.mjs +17 -7
  109. package/dist/esm/api/resources/shipping/resources/orders/resources/expanded/client/requests/ExpandedListForProviderOperatorsV1Request.d.mts +6 -5
  110. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.d.mts +3 -5
  111. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/Client.mjs +5 -7
  112. package/dist/esm/api/resources/shipping/resources/orders/resources/taskGroup/client/requests/OrdersSetTaskGroupVehicleTypeReq.d.mts +3 -4
  113. package/dist/esm/api/types/Driver1.d.mts +1 -0
  114. package/dist/esm/api/types/DriverBiddingGroupListItemRes.d.mts +17 -0
  115. package/dist/esm/api/types/DriverBiddingGroupListItemRes.mjs +4 -0
  116. package/dist/esm/api/types/DriverBiddingGroupListRes.d.mts +1 -1
  117. package/dist/esm/api/types/DriverWithActiveTaskGroupIds1.d.mts +1 -0
  118. package/dist/esm/api/types/OperationsTask1.d.mts +1 -0
  119. package/dist/esm/api/types/OperationsTasksUpdateDepartmentManyRes.d.mts +7 -0
  120. package/dist/esm/api/types/OperationsTasksUpdateDepartmentManyRes.mjs +4 -0
  121. package/dist/esm/api/types/Order1.d.mts +1 -1
  122. package/dist/esm/api/types/OrderAndTaskGroupExpandedReq.d.mts +2 -2
  123. package/dist/esm/api/types/OrderExpandedForProvider.d.mts +1 -1
  124. package/dist/esm/api/types/OrderLimitedForProvider1.d.mts +1 -1
  125. package/dist/esm/api/types/OrderTaskGroupExecutorDetails1.d.mts +1 -1
  126. package/dist/esm/api/types/OrderTemplateNew1.d.mts +1 -1
  127. package/dist/esm/api/types/OrderTemplateNewCore1.d.mts +1 -1
  128. package/dist/esm/api/types/OrderTemplateNewExpanded1.d.mts +1 -1
  129. package/dist/esm/api/types/OrgBiddingGroupListItemRes.d.mts +17 -0
  130. package/dist/esm/api/types/OrgBiddingGroupListItemRes.mjs +4 -0
  131. package/dist/esm/api/types/OrgBiddingGroupListRes.d.mts +1 -1
  132. package/dist/esm/api/types/TaskGroup1.d.mts +1 -1
  133. package/dist/esm/api/types/TaskGroupExpanded.d.mts +1 -1
  134. package/dist/esm/api/types/TaskListToApplyToOrder1.d.mts +1 -0
  135. package/dist/esm/api/types/index.d.mts +3 -0
  136. package/dist/esm/api/types/index.mjs +3 -0
  137. package/dist/esm/version.d.mts +1 -1
  138. package/dist/esm/version.mjs +1 -1
  139. package/package.json +1 -1
  140. package/reference.md +225 -26
  141. /package/dist/cjs/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.js → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.js} +0 -0
  142. /package/dist/esm/api/resources/{shipping/resources/orders/client/requests/OrdersUpdateDepartmentReq.mjs → operations/resources/operationsTasks/client/requests/OperationsTasksUpdateDepartmentManyReq.mjs} +0 -0
@@ -179,13 +179,13 @@ export class Expanded {
179
179
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
180
180
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
181
181
  * filter_executor_org_id: "filter_executor_org_id",
182
- * filter_executor_department_id: "filter_executor_department_id",
182
+ * filter_executor_department_ids: ["filter_executor_department_ids"],
183
183
  * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
184
184
  * filter_coordinator_org_id: "filter_coordinator_org_id",
185
185
  * filter_shipper_org_id: "filter_shipper_org_id",
186
186
  * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
187
187
  * filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
188
- * filter_coordinator_department_id: "filter_coordinator_department_id",
188
+ * filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
189
189
  * filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
190
190
  * filter_coordinator_label: "filter_coordinator_label",
191
191
  * body: {}
@@ -197,7 +197,7 @@ export class Expanded {
197
197
  __listForProviderOperatorsV1(request, requestOptions) {
198
198
  return __awaiter(this, void 0, void 0, function* () {
199
199
  var _a, _b, _c, _d, _e, _f, _g;
200
- const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_id: filterExecutorDepartmentId, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_id: filterCoordinatorDepartmentId, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
200
+ const { provider_role: providerRole, sort_by: sortBy, sort_order: sortOrder, page, page_size: pageSize, search, filter_status: filterStatus, filter_service_line: filterServiceLine, filter_order_classification_by_task_group_type: filterOrderClassificationByTaskGroupType, filter_awb_number: filterAwbNumber, filter_has_invoice: filterHasInvoice, filter_draft_started_at_timestamp_lte: filterDraftStartedAtTimestampLte, filter_draft_started_at_timestamp_gte: filterDraftStartedAtTimestampGte, filter_staged_at_timestamp_lte: filterStagedAtTimestampLte, filter_staged_at_timestamp_gte: filterStagedAtTimestampGte, filter_in_progress_at_timestamp_lte: filterInProgressAtTimestampLte, filter_in_progress_at_timestamp_gte: filterInProgressAtTimestampGte, filter_completed_at_timestamp_lte: filterCompletedAtTimestampLte, filter_completed_at_timestamp_gte: filterCompletedAtTimestampGte, filter_cancelled_at_timestamp_lte: filterCancelledAtTimestampLte, filter_cancelled_at_timestamp_gte: filterCancelledAtTimestampGte, filter_exception_at_timestamp_lte: filterExceptionAtTimestampLte, filter_exception_at_timestamp_gte: filterExceptionAtTimestampGte, filter_executor_org_id: filterExecutorOrgId, filter_executor_department_ids: filterExecutorDepartmentIds, filter_off_chrt_executor_org_data_id: filterOffChrtExecutorOrgDataId, filter_coordinator_org_id: filterCoordinatorOrgId, filter_shipper_org_id: filterShipperOrgId, filter_off_chrt_shipper_org_data_id: filterOffChrtShipperOrgDataId, filter_coordinator_shipper_account_ids: filterCoordinatorShipperAccountIds, filter_coordinator_department_ids: filterCoordinatorDepartmentIds, filter_coordinator_assigned_user_ids: filterCoordinatorAssignedUserIds, filter_coordinator_label: filterCoordinatorLabel, body: _body, } = request;
201
201
  const _queryParams = {};
202
202
  if (providerRole !== undefined) {
203
203
  _queryParams["provider_role"] = providerRole;
@@ -288,8 +288,13 @@ export class Expanded {
288
288
  if (filterExecutorOrgId !== undefined) {
289
289
  _queryParams["filter_executor_org_id"] = filterExecutorOrgId;
290
290
  }
291
- if (filterExecutorDepartmentId !== undefined) {
292
- _queryParams["filter_executor_department_id"] = filterExecutorDepartmentId;
291
+ if (filterExecutorDepartmentIds !== undefined) {
292
+ if (Array.isArray(filterExecutorDepartmentIds)) {
293
+ _queryParams["filter_executor_department_ids"] = filterExecutorDepartmentIds.map((item) => item);
294
+ }
295
+ else {
296
+ _queryParams["filter_executor_department_ids"] = filterExecutorDepartmentIds;
297
+ }
293
298
  }
294
299
  if (filterOffChrtExecutorOrgDataId !== undefined) {
295
300
  _queryParams["filter_off_chrt_executor_org_data_id"] = filterOffChrtExecutorOrgDataId;
@@ -311,8 +316,13 @@ export class Expanded {
311
316
  _queryParams["filter_coordinator_shipper_account_ids"] = filterCoordinatorShipperAccountIds;
312
317
  }
313
318
  }
314
- if (filterCoordinatorDepartmentId !== undefined) {
315
- _queryParams["filter_coordinator_department_id"] = filterCoordinatorDepartmentId;
319
+ if (filterCoordinatorDepartmentIds !== undefined) {
320
+ if (Array.isArray(filterCoordinatorDepartmentIds)) {
321
+ _queryParams["filter_coordinator_department_ids"] = filterCoordinatorDepartmentIds.map((item) => item);
322
+ }
323
+ else {
324
+ _queryParams["filter_coordinator_department_ids"] = filterCoordinatorDepartmentIds;
325
+ }
316
326
  }
317
327
  if (filterCoordinatorAssignedUserIds !== undefined) {
318
328
  if (Array.isArray(filterCoordinatorAssignedUserIds)) {
@@ -29,13 +29,13 @@ import * as Chrt from "../../../../../../../../index.mjs";
29
29
  * filter_exception_at_timestamp_lte: "2024-01-15T09:30:00Z",
30
30
  * filter_exception_at_timestamp_gte: "2024-01-15T09:30:00Z",
31
31
  * filter_executor_org_id: "filter_executor_org_id",
32
- * filter_executor_department_id: "filter_executor_department_id",
32
+ * filter_executor_department_ids: ["filter_executor_department_ids"],
33
33
  * filter_off_chrt_executor_org_data_id: "filter_off_chrt_executor_org_data_id",
34
34
  * filter_coordinator_org_id: "filter_coordinator_org_id",
35
35
  * filter_shipper_org_id: "filter_shipper_org_id",
36
36
  * filter_off_chrt_shipper_org_data_id: "filter_off_chrt_shipper_org_data_id",
37
37
  * filter_coordinator_shipper_account_ids: ["filter_coordinator_shipper_account_ids"],
38
- * filter_coordinator_department_id: "filter_coordinator_department_id",
38
+ * filter_coordinator_department_ids: ["filter_coordinator_department_ids"],
39
39
  * filter_coordinator_assigned_user_ids: ["filter_coordinator_assigned_user_ids"],
40
40
  * filter_coordinator_label: "filter_coordinator_label",
41
41
  * body: {}
@@ -72,8 +72,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
72
72
  filter_exception_at_timestamp_lte?: string | null;
73
73
  filter_exception_at_timestamp_gte?: string | null;
74
74
  filter_executor_org_id?: string | null;
75
- /** Filter by executor department ID */
76
- filter_executor_department_id?: string | null;
75
+ /** Filter by executor department IDs */
76
+ filter_executor_department_ids?: (string | null) | (string | null)[];
77
77
  /** Filter by off-CHRT executor org data ID */
78
78
  filter_off_chrt_executor_org_data_id?: string | null;
79
79
  filter_coordinator_org_id?: string | null;
@@ -81,7 +81,8 @@ export interface ExpandedListForProviderOperatorsV1Request {
81
81
  filter_off_chrt_shipper_org_data_id?: string | null;
82
82
  /** Filter by coordinator shipper account IDs */
83
83
  filter_coordinator_shipper_account_ids?: (string | null) | (string | null)[];
84
- filter_coordinator_department_id?: string | null;
84
+ /** Filter by coordinator department IDs */
85
+ filter_coordinator_department_ids?: (string | null) | (string | null)[];
85
86
  filter_coordinator_assigned_user_ids?: (string | null) | (string | null)[];
86
87
  filter_coordinator_label?: string | null;
87
88
  body: Chrt.OrderAndTaskGroupExpandedReq;
@@ -140,7 +140,7 @@ export declare class TaskGroup {
140
140
  setTaskOrderingV1(taskGroupId: string, request: Chrt.shipping.orders.OrdersSetTaskGroupTaskOrderingReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
141
141
  private __setTaskOrderingV1;
142
142
  /**
143
- * Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
143
+ * Sets the task-group vehicle type in any lifecycle state; vehicle_type__set_to_None clears it. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
144
144
  *
145
145
  * @param {string} taskGroupId
146
146
  * @param {Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq} request
@@ -149,11 +149,9 @@ export declare class TaskGroup {
149
149
  * @throws {@link Chrt.UnprocessableEntityError}
150
150
  *
151
151
  * @example
152
- * await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id", {
153
- * vehicle_type: "sedan"
154
- * })
152
+ * await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id")
155
153
  */
156
- setVehicleTypeV1(taskGroupId: string, request: Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
154
+ setVehicleTypeV1(taskGroupId: string, request?: Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq, requestOptions?: TaskGroup.RequestOptions): core.HttpResponsePromise<boolean>;
157
155
  private __setVehicleTypeV1;
158
156
  /**
159
157
  * Assigns or swaps the driver on an order task group. The driver must belong to the task group's executor organization and permit direct assignment. | authz_personas=[executor_org_operators] | (OrdersUpdateTaskGroupDriverReq) -> (bool)
@@ -463,7 +463,7 @@ export class TaskGroup {
463
463
  });
464
464
  }
465
465
  /**
466
- * Sets the task-group vehicle type in any lifecycle state. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
466
+ * Sets the task-group vehicle type in any lifecycle state; vehicle_type__set_to_None clears it. | authz_personas=[draft_creator_org_operator, task_group_coordinator_operators] | (OrdersSetTaskGroupVehicleTypeReq) -> (bool)
467
467
  *
468
468
  * @param {string} taskGroupId
469
469
  * @param {Chrt.shipping.orders.OrdersSetTaskGroupVehicleTypeReq} request
@@ -472,15 +472,13 @@ export class TaskGroup {
472
472
  * @throws {@link Chrt.UnprocessableEntityError}
473
473
  *
474
474
  * @example
475
- * await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id", {
476
- * vehicle_type: "sedan"
477
- * })
475
+ * await client.shipping.orders.taskGroup.setVehicleTypeV1("task_group_id")
478
476
  */
479
- setVehicleTypeV1(taskGroupId, request, requestOptions) {
477
+ setVehicleTypeV1(taskGroupId, request = {}, requestOptions) {
480
478
  return core.HttpResponsePromise.fromPromise(this.__setVehicleTypeV1(taskGroupId, request, requestOptions));
481
479
  }
482
- __setVehicleTypeV1(taskGroupId, request, requestOptions) {
483
- return __awaiter(this, void 0, void 0, function* () {
480
+ __setVehicleTypeV1(taskGroupId_1) {
481
+ return __awaiter(this, arguments, void 0, function* (taskGroupId, request = {}, requestOptions) {
484
482
  var _a, _b, _c, _d;
485
483
  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);
486
484
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -4,10 +4,9 @@
4
4
  import * as Chrt from "../../../../../../../../index.mjs";
5
5
  /**
6
6
  * @example
7
- * {
8
- * vehicle_type: "sedan"
9
- * }
7
+ * {}
10
8
  */
11
9
  export interface OrdersSetTaskGroupVehicleTypeReq {
12
- vehicle_type: Chrt.VehicleTypeEnum;
10
+ vehicle_type?: Chrt.VehicleTypeEnum | null;
11
+ vehicle_type__set_to_None?: boolean;
13
12
  }
@@ -4,6 +4,7 @@
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface Driver1 {
6
6
  _id: string;
7
+ archived_at_timestamp?: string | null;
7
8
  auto_assign_enabled?: boolean;
8
9
  available_according_to_driver?: boolean;
9
10
  available_according_to_operators?: boolean;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface DriverBiddingGroupListItemRes {
6
+ _id: string;
7
+ created_at_timestamp: string;
8
+ /** Must be a string starting with `user_` */
9
+ created_by_user_id: string;
10
+ driver_ids?: string[];
11
+ drivers?: Chrt.Driver1[];
12
+ group_name: string;
13
+ last_edited_at_timestamp: string;
14
+ /** Must be a string starting with `org_` */
15
+ owner_org_id: string;
16
+ schema_version: number;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface DriverBiddingGroupListRes {
6
- items: Chrt.DriverBiddingGroup1[];
6
+ items: Chrt.DriverBiddingGroupListItemRes[];
7
7
  total_count: number;
8
8
  }
@@ -11,6 +11,7 @@ import * as Chrt from "../index.mjs";
11
11
  export interface DriverWithActiveTaskGroupIds1 {
12
12
  _id: string;
13
13
  active_task_group_ids?: string[];
14
+ archived_at_timestamp?: string | null;
14
15
  auto_assign_enabled?: boolean;
15
16
  available_according_to_driver?: boolean;
16
17
  available_according_to_operators?: boolean;
@@ -12,6 +12,7 @@ export interface OperationsTask1 {
12
12
  deadline_timestamp?: string;
13
13
  department_id?: string | null;
14
14
  description: string;
15
+ entry_tag?: string | null;
15
16
  order_id: string;
16
17
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
17
18
  order_off_chrt_reference_id?: string | null;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface OperationsTasksUpdateDepartmentManyRes {
5
+ /** Matched tasks in the caller's org, including unchanged assignments; missing and other-org tasks are skipped. */
6
+ updated_count: number;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -8,7 +8,7 @@ export interface Order1 {
8
8
  cancelled_at_timestamp?: string | null;
9
9
  completed_at_timestamp?: string | null;
10
10
  coordinator_assigned_user_ids?: string[];
11
- coordinator_department_id?: string | null;
11
+ coordinator_department_ids?: string[];
12
12
  coordinator_label?: string | null;
13
13
  /** Must be a string starting with `org_` */
14
14
  coordinator_org_id?: string | null;
@@ -5,12 +5,12 @@ export interface OrderAndTaskGroupExpandedReq {
5
5
  expand_accounts?: boolean;
6
6
  expand_cargos?: boolean;
7
7
  expand_contacts?: boolean;
8
- expand_coordinator_department?: boolean;
8
+ expand_coordinator_departments?: boolean;
9
9
  expand_coordinator_org_company_name?: boolean;
10
10
  expand_coordinator_org_handle?: boolean;
11
11
  expand_coordinator_task_lists_to_apply_at_order_staging?: boolean;
12
12
  expand_driver?: boolean;
13
- expand_executor_department?: boolean;
13
+ expand_executor_departments?: boolean;
14
14
  expand_executor_org_company_name?: boolean;
15
15
  expand_executor_org_handle?: boolean;
16
16
  expand_notification_intents_ad_hoc?: boolean;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface OrderExpandedForProvider {
6
- coordinator_department?: Chrt.Department1 | null;
6
+ coordinator_departments?: Chrt.Department1[];
7
7
  coordinator_org_company_name?: string | null;
8
8
  /** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
9
9
  coordinator_org_handle?: string | null;
@@ -13,7 +13,7 @@ export interface OrderLimitedForProvider1 {
13
13
  cancelled_at_timestamp?: string | null;
14
14
  completed_at_timestamp?: string | null;
15
15
  coordinator_assigned_user_ids?: string[];
16
- coordinator_department_id?: string | null;
16
+ coordinator_department_ids?: string[];
17
17
  coordinator_label?: string | null;
18
18
  /** Must be a string starting with `org_` */
19
19
  coordinator_org_id?: string | null;
@@ -4,7 +4,7 @@
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface OrderTaskGroupExecutorDetails1 {
6
6
  executor_assigned_user_ids?: string[];
7
- executor_department_id?: string | null;
7
+ executor_department_ids?: string[];
8
8
  executor_label?: string | null;
9
9
  /** Must be a string starting with `org_` */
10
10
  executor_org_id?: string | null;
@@ -7,7 +7,7 @@ export interface OrderTemplateNew1 {
7
7
  archived_at_timestamp?: string | null;
8
8
  cargos?: Chrt.OrderTemplateNewCargo1[];
9
9
  coordinator_assigned_user_ids?: string[];
10
- coordinator_department_id?: string | null;
10
+ coordinator_department_ids?: string[];
11
11
  coordinator_label?: string | null;
12
12
  /** Must be a string starting with `org_` */
13
13
  coordinator_org_id?: string | null;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface OrderTemplateNewCore1 {
6
6
  cargos?: Chrt.OrderTemplateNewCargo1[];
7
7
  coordinator_assigned_user_ids?: string[];
8
- coordinator_department_id?: string | null;
8
+ coordinator_department_ids?: string[];
9
9
  coordinator_label?: string | null;
10
10
  /** Must be a string starting with `org_` */
11
11
  coordinator_org_id?: string | null;
@@ -7,7 +7,7 @@ export interface OrderTemplateNewExpanded1 {
7
7
  archived_at_timestamp?: string | null;
8
8
  cargos?: Chrt.OrderTemplateNewCargo1[];
9
9
  coordinator_assigned_user_ids?: string[];
10
- coordinator_department_id?: string | null;
10
+ coordinator_department_ids?: string[];
11
11
  coordinator_label?: string | null;
12
12
  coordinator_org?: Chrt.OrgPublicData1 | null;
13
13
  /** Must be a string starting with `org_` */
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface OrgBiddingGroupListItemRes {
6
+ _id: string;
7
+ created_at_timestamp: string;
8
+ /** Must be a string starting with `user_` */
9
+ created_by_user_id: string;
10
+ group_name: string;
11
+ last_edited_at_timestamp: string;
12
+ /** Must be a string starting with `org_` */
13
+ owner_org_id: string;
14
+ provider_org_ids?: string[];
15
+ providers?: Chrt.OrgPublicData1[];
16
+ schema_version: number;
17
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -3,6 +3,6 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  export interface OrgBiddingGroupListRes {
6
- items: Chrt.OrgBiddingGroup1[];
6
+ items: Chrt.OrgBiddingGroupListItemRes[];
7
7
  total_count: number;
8
8
  }
@@ -38,6 +38,6 @@ export interface TaskGroup1 {
38
38
  task_group_s3_object_metadata_ids?: string[];
39
39
  task_group_type: Chrt.TaskGroupTypeEnum1;
40
40
  task_ids?: string[];
41
- vehicle_type?: Chrt.VehicleTypeEnum;
41
+ vehicle_type?: Chrt.VehicleTypeEnum | null;
42
42
  wait_time_total_minutes?: number | null;
43
43
  }
@@ -10,7 +10,7 @@ export interface TaskGroupExpanded {
10
10
  /** Must be a string starting with `org_` */
11
11
  coordinator_org_id?: string | null;
12
12
  driver?: Chrt.Driver1 | null;
13
- executor_department?: Chrt.Department1 | null;
13
+ executor_departments?: Chrt.Department1[];
14
14
  executor_org_company_name?: string | null;
15
15
  /** Must be a string starting with `@`. May only contain a-z, A-Z, 0-9, _, -. May not be longer than 30 characters. */
16
16
  executor_org_handle?: string | null;
@@ -6,6 +6,7 @@
6
6
  */
7
7
  export interface TaskListToApplyToOrder1 {
8
8
  department_id?: string | null;
9
+ entry_tag?: string | null;
9
10
  initial_deadline_timestamp?: string | null;
10
11
  task_list_id: string;
11
12
  }
@@ -202,6 +202,7 @@ export * from "./Driver1.mjs";
202
202
  export * from "./DriverAnalyticsDay.mjs";
203
203
  export * from "./DriverAnalyticsTaskGroup.mjs";
204
204
  export * from "./DriverBiddingGroup1.mjs";
205
+ export * from "./DriverBiddingGroupListItemRes.mjs";
205
206
  export * from "./DriverBiddingGroupListRes.mjs";
206
207
  export * from "./DriverBiddingGroupSortByEnum.mjs";
207
208
  export * from "./DriverComplianceDocument1.mjs";
@@ -355,6 +356,7 @@ export * from "./OperationsTaskStatusEnum.mjs";
355
356
  export * from "./OperationsTaskTypeEnum.mjs";
356
357
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
357
358
  export * from "./OperationsTasksStatusUpdateRes1.mjs";
359
+ export * from "./OperationsTasksUpdateDepartmentManyRes.mjs";
358
360
  export * from "./Order1.mjs";
359
361
  export * from "./OrderAndTaskGroupExpandedReq.mjs";
360
362
  export * from "./OrderAwbBillingAccount1.mjs";
@@ -416,6 +418,7 @@ export * from "./OrdersOpenDraftRes.mjs";
416
418
  export * from "./OrdersUpdateDraftRes.mjs";
417
419
  export * from "./OrdersUpdateOffChrtReferenceIdRes.mjs";
418
420
  export * from "./OrgBiddingGroup1.mjs";
421
+ export * from "./OrgBiddingGroupListItemRes.mjs";
419
422
  export * from "./OrgBiddingGroupListRes.mjs";
420
423
  export * from "./OrgBiddingGroupSortByEnum.mjs";
421
424
  export * from "./OrgComplianceDocument1.mjs";
@@ -202,6 +202,7 @@ export * from "./Driver1.mjs";
202
202
  export * from "./DriverAnalyticsDay.mjs";
203
203
  export * from "./DriverAnalyticsTaskGroup.mjs";
204
204
  export * from "./DriverBiddingGroup1.mjs";
205
+ export * from "./DriverBiddingGroupListItemRes.mjs";
205
206
  export * from "./DriverBiddingGroupListRes.mjs";
206
207
  export * from "./DriverBiddingGroupSortByEnum.mjs";
207
208
  export * from "./DriverComplianceDocument1.mjs";
@@ -355,6 +356,7 @@ export * from "./OperationsTaskStatusEnum.mjs";
355
356
  export * from "./OperationsTaskTypeEnum.mjs";
356
357
  export * from "./OperationsTasksDeadlineTimestampsUpdateRes1.mjs";
357
358
  export * from "./OperationsTasksStatusUpdateRes1.mjs";
359
+ export * from "./OperationsTasksUpdateDepartmentManyRes.mjs";
358
360
  export * from "./Order1.mjs";
359
361
  export * from "./OrderAndTaskGroupExpandedReq.mjs";
360
362
  export * from "./OrderAwbBillingAccount1.mjs";
@@ -416,6 +418,7 @@ export * from "./OrdersOpenDraftRes.mjs";
416
418
  export * from "./OrdersUpdateDraftRes.mjs";
417
419
  export * from "./OrdersUpdateOffChrtReferenceIdRes.mjs";
418
420
  export * from "./OrgBiddingGroup1.mjs";
421
+ export * from "./OrgBiddingGroupListItemRes.mjs";
419
422
  export * from "./OrgBiddingGroupListRes.mjs";
420
423
  export * from "./OrgBiddingGroupSortByEnum.mjs";
421
424
  export * from "./OrgComplianceDocument1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.984.0";
1
+ export declare const SDK_VERSION = "1.990.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.984.0";
1
+ export const SDK_VERSION = "1.990.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.984.0",
3
+ "version": "1.990.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",