@chrt-inc/typescript-sdk 1.762.0 → 1.788.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +18 -0
  3. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +67 -0
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.ts +23 -0
  5. package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +36 -2
  7. package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
  8. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
  9. package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
  10. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +46 -9
  11. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +148 -16
  12. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
  13. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
  14. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
  15. package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +2 -0
  16. package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
  17. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
  18. package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
  19. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +2 -2
  20. package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +2 -2
  21. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -0
  22. package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
  23. package/dist/cjs/api/types/LineItem1.d.ts +1 -0
  24. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
  25. package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
  26. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
  27. package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
  28. package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
  29. package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
  30. package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
  31. package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
  32. package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
  33. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
  34. package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
  35. package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
  36. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
  37. package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
  38. package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
  39. package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
  40. package/dist/cjs/api/types/Session1.d.ts +3 -0
  41. package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
  42. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
  43. package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
  44. package/dist/cjs/api/types/index.d.ts +3 -0
  45. package/dist/cjs/api/types/index.js +3 -0
  46. package/dist/cjs/version.d.ts +1 -1
  47. package/dist/cjs/version.js +1 -1
  48. package/dist/esm/Client.mjs +2 -2
  49. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.d.mts +18 -0
  50. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +67 -0
  51. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.mts +23 -0
  52. package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +1 -0
  53. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +36 -2
  54. package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
  55. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
  56. package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
  57. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +46 -9
  58. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +148 -16
  59. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
  60. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
  61. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
  62. package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +2 -0
  63. package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
  64. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
  65. package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
  66. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +2 -2
  67. package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +2 -2
  68. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -0
  69. package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
  70. package/dist/esm/api/types/LineItem1.d.mts +1 -0
  71. package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
  72. package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
  73. package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
  74. package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
  75. package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
  76. package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
  77. package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
  78. package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
  79. package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
  80. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
  81. package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
  82. package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
  83. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
  84. package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
  85. package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
  86. package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
  87. package/dist/esm/api/types/Session1.d.mts +3 -0
  88. package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
  89. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
  90. package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
  91. package/dist/esm/api/types/index.d.mts +3 -0
  92. package/dist/esm/api/types/index.mjs +3 -0
  93. package/dist/esm/version.d.mts +1 -1
  94. package/dist/esm/version.mjs +1 -1
  95. package/package.json +1 -1
  96. package/reference.md +384 -10
  97. package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
  98. package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
  99. /package/dist/cjs/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.js} +0 -0
  100. /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.js} +0 -0
  101. /package/dist/esm/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.mjs} +0 -0
  102. /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.mjs} +0 -0
@@ -289,26 +289,30 @@ export class OperationsTaskLists {
289
289
  });
290
290
  }
291
291
  /**
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)
292
+ * Appends a new entry to an OperationsTaskList's `entries` array. The server assigns a fresh UUID and returns it. Order is load-bearing for from_previous_task-anchored deadlines. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (str)
293
293
  *
294
294
  * @param {string} taskListId
295
- * @param {Chrt.operations.OperationsTaskListSetEntries1} request
295
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} 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.setEntriesV1("task_list_id")
301
+ * await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
302
+ * task_type: "review_order_details",
303
+ * title: "title",
304
+ * description: "description"
305
+ * })
302
306
  */
303
- setEntriesV1(taskListId, request = {}, requestOptions) {
304
- return core.HttpResponsePromise.fromPromise(this.__setEntriesV1(taskListId, request, requestOptions));
307
+ addEntryV1(taskListId, request, requestOptions) {
308
+ return core.HttpResponsePromise.fromPromise(this.__addEntryV1(taskListId, request, requestOptions));
305
309
  }
306
- __setEntriesV1(taskListId_1) {
307
- return __awaiter(this, arguments, void 0, function* (taskListId, request = {}, requestOptions) {
310
+ __addEntryV1(taskListId, request, requestOptions) {
311
+ return __awaiter(this, void 0, void 0, function* () {
308
312
  var _a, _b, _c, _d;
309
313
  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
314
  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/set/v1/${encodeURIComponent(taskListId)}`),
315
+ 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)}`),
312
316
  method: "POST",
313
317
  headers: _headers,
314
318
  contentType: "application/json",
@@ -342,7 +346,135 @@ export class OperationsTaskLists {
342
346
  rawResponse: _response.rawResponse,
343
347
  });
344
348
  case "timeout":
345
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/set/v1/{task_list_id}.");
349
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
350
+ case "unknown":
351
+ throw new errors.ChrtError({
352
+ message: _response.error.errorMessage,
353
+ rawResponse: _response.rawResponse,
354
+ });
355
+ }
356
+ });
357
+ }
358
+ /**
359
+ * Replaces the entry with the given uuid in an OperationsTaskList's `entries` array. The stored uuid is preserved regardless of the request body. 404 if no entry matches. | authz: min_org_role=operator | (OperationsTaskListEntryClientCreate1) -> (bool)
360
+ *
361
+ * @param {string} taskListId
362
+ * @param {string} entryUuid
363
+ * @param {Chrt.OperationsTaskListEntryClientCreate1} request
364
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
365
+ *
366
+ * @throws {@link Chrt.UnprocessableEntityError}
367
+ *
368
+ * @example
369
+ * await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
370
+ * task_type: "review_order_details",
371
+ * title: "title",
372
+ * description: "description"
373
+ * })
374
+ */
375
+ editEntryV1(taskListId, entryUuid, request, requestOptions) {
376
+ return core.HttpResponsePromise.fromPromise(this.__editEntryV1(taskListId, entryUuid, request, requestOptions));
377
+ }
378
+ __editEntryV1(taskListId, entryUuid, request, requestOptions) {
379
+ return __awaiter(this, void 0, void 0, function* () {
380
+ var _a, _b, _c, _d;
381
+ 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);
382
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
383
+ 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/edit/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(entryUuid)}`),
384
+ method: "PATCH",
385
+ headers: _headers,
386
+ contentType: "application/json",
387
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
388
+ requestType: "json",
389
+ body: request,
390
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
391
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
392
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
393
+ });
394
+ if (_response.ok) {
395
+ return { data: _response.body, rawResponse: _response.rawResponse };
396
+ }
397
+ if (_response.error.reason === "status-code") {
398
+ switch (_response.error.statusCode) {
399
+ case 422:
400
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
401
+ default:
402
+ throw new errors.ChrtError({
403
+ statusCode: _response.error.statusCode,
404
+ body: _response.error.body,
405
+ rawResponse: _response.rawResponse,
406
+ });
407
+ }
408
+ }
409
+ switch (_response.error.reason) {
410
+ case "non-json":
411
+ throw new errors.ChrtError({
412
+ statusCode: _response.error.statusCode,
413
+ body: _response.error.rawBody,
414
+ rawResponse: _response.rawResponse,
415
+ });
416
+ case "timeout":
417
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}.");
418
+ case "unknown":
419
+ throw new errors.ChrtError({
420
+ message: _response.error.errorMessage,
421
+ rawResponse: _response.rawResponse,
422
+ });
423
+ }
424
+ });
425
+ }
426
+ /**
427
+ * Removes the entry with the given uuid from an OperationsTaskList's `entries` array, closing the gap in order. 404 if no entry matches. | authz: min_org_role=operator | () -> (bool)
428
+ *
429
+ * @param {string} taskListId
430
+ * @param {string} entryUuid
431
+ * @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
432
+ *
433
+ * @throws {@link Chrt.UnprocessableEntityError}
434
+ *
435
+ * @example
436
+ * await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
437
+ */
438
+ removeEntryV1(taskListId, entryUuid, requestOptions) {
439
+ return core.HttpResponsePromise.fromPromise(this.__removeEntryV1(taskListId, entryUuid, requestOptions));
440
+ }
441
+ __removeEntryV1(taskListId, entryUuid, requestOptions) {
442
+ return __awaiter(this, void 0, void 0, function* () {
443
+ var _a, _b, _c, _d;
444
+ 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);
445
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
446
+ 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)}/${encodeURIComponent(entryUuid)}`),
447
+ method: "DELETE",
448
+ headers: _headers,
449
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
450
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
451
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
452
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
453
+ });
454
+ if (_response.ok) {
455
+ return { data: _response.body, rawResponse: _response.rawResponse };
456
+ }
457
+ if (_response.error.reason === "status-code") {
458
+ switch (_response.error.statusCode) {
459
+ case 422:
460
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
461
+ default:
462
+ throw new errors.ChrtError({
463
+ statusCode: _response.error.statusCode,
464
+ body: _response.error.body,
465
+ rawResponse: _response.rawResponse,
466
+ });
467
+ }
468
+ }
469
+ switch (_response.error.reason) {
470
+ case "non-json":
471
+ throw new errors.ChrtError({
472
+ statusCode: _response.error.statusCode,
473
+ body: _response.error.rawBody,
474
+ rawResponse: _response.rawResponse,
475
+ });
476
+ case "timeout":
477
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/operations_task_lists/entries/remove/v1/{task_list_id}/{entry_uuid}.");
346
478
  case "unknown":
347
479
  throw new errors.ChrtError({
348
480
  message: _response.error.errorMessage,
@@ -352,7 +484,7 @@ export class OperationsTaskLists {
352
484
  });
353
485
  }
354
486
  /**
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)
487
+ * Reorders an OperationsTaskList's existing entries. `entry_uuids` must be an exact permutation of the list's current entry uuids (every uuid present, no extras, no duplicates), so a reorder can never drop, add, or mutate an entry. | authz: min_org_role=operator | (OperationsTaskListReorderEntries1) -> (bool)
356
488
  *
357
489
  * @param {string} taskListId
358
490
  * @param {Chrt.operations.OperationsTaskListReorderEntries1} request
@@ -610,17 +742,17 @@ export class OperationsTaskLists {
610
742
  * @throws {@link Chrt.UnprocessableEntityError}
611
743
  *
612
744
  * @example
613
- * await client.operations.operationsTaskLists.removeFromCaseV1("task_list_id", "case_id")
745
+ * await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
614
746
  */
615
- removeFromCaseV1(taskListId, caseId, requestOptions) {
616
- return core.HttpResponsePromise.fromPromise(this.__removeFromCaseV1(taskListId, caseId, requestOptions));
747
+ removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
748
+ return core.HttpResponsePromise.fromPromise(this.__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions));
617
749
  }
618
- __removeFromCaseV1(taskListId, caseId, requestOptions) {
750
+ __removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
619
751
  return __awaiter(this, void 0, void 0, function* () {
620
752
  var _a, _b, _c, _d;
621
753
  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);
622
754
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
623
- 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/remove_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
755
+ 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/remove_not_started_tasks_from_case/v1/${encodeURIComponent(taskListId)}/${encodeURIComponent(caseId)}`),
624
756
  method: "POST",
625
757
  headers: _headers,
626
758
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -654,7 +786,7 @@ export class OperationsTaskLists {
654
786
  rawResponse: _response.rawResponse,
655
787
  });
656
788
  case "timeout":
657
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_from_case/v1/{task_list_id}/{case_id}.");
789
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/remove_not_started_tasks_from_case/v1/{task_list_id}/{case_id}.");
658
790
  case "unknown":
659
791
  throw new errors.ChrtError({
660
792
  message: _response.error.errorMessage,
@@ -14,5 +14,5 @@ export interface OperationsTaskListClientCreate1 {
14
14
  name: string;
15
15
  description?: string | null;
16
16
  tags?: string[];
17
- entries?: Chrt.OperationsTaskListEntry1[];
17
+ entries?: Chrt.OperationsTaskListEntryClientCreate1[];
18
18
  }
@@ -6,5 +6,5 @@
6
6
  * {}
7
7
  */
8
8
  export interface OperationsTaskListReorderEntries1 {
9
- entry_ids?: string[];
9
+ entry_uuids?: string[];
10
10
  }
@@ -1,6 +1,5 @@
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 OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.mjs";
5
4
  export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.mjs";
6
5
  export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.mjs";
@@ -15,6 +15,8 @@ export interface OrdersNewDraftReq {
15
15
  /** Must be a URL-safe string of 1-64 characters. Allowed characters: A-Z, a-z, 0-9, '.', '_', '~', '-' (RFC 3986 unreserved). */
16
16
  off_chrt_reference_id?: string | null;
17
17
  department_id?: string | null;
18
+ /** OperationsTaskList ids to apply to the coordinator's Case at draft creation; foreign/stale ids are skipped without failing the draft. */
19
+ task_list_ids?: string[];
18
20
  /** Optional key, unique per caller org, that makes draft creation idempotent: re-sending the same key returns the already-created draft instead of creating a duplicate. */
19
21
  creation_idempotency_key?: string | null;
20
22
  /** Seed content for the OrderThread's first user turn (text + long-lived references). Agentic builds supply it; click-ops leaves it None for a blank seed turn. */
@@ -14,4 +14,5 @@ export interface OrderDraftAddTaskGroupReq {
14
14
  order_id: string;
15
15
  order_schedule_template_path_idempotency_key?: string | null;
16
16
  vehicle_type?: Chrt.VehicleTypeEnum | null;
17
+ flight_setup_notes?: string | null;
17
18
  }
@@ -20,6 +20,7 @@ export interface OrderTemplateClientCreate1 {
20
20
  /** Must be a string starting with `org_` */
21
21
  coordinator_org_id?: string | null;
22
22
  department_id?: string | null;
23
+ task_list_ids?: string[];
23
24
  name: string;
24
25
  description?: string | null;
25
26
  off_chrt_reference_id_str?: string | null;
@@ -19,6 +19,7 @@ export interface OrderTemplateClientUpdate1 {
19
19
  /** Must be a string starting with `org_` */
20
20
  coordinator_org_id?: string | null;
21
21
  department_id?: string | null;
22
+ task_list_ids?: string[];
22
23
  description__set_to_None?: boolean;
23
24
  text__set_to_None?: boolean;
24
25
  off_chrt_reference_id_str__set_to_None?: boolean;
@@ -99,7 +99,7 @@ export declare class Sessions {
99
99
  typeaheadV1(request: Chrt.tracking.SessionsTypeaheadV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.TrackingTypeaheadResult[]>;
100
100
  private __typeaheadV1;
101
101
  /**
102
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
102
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
103
103
  *
104
104
  * @param {Chrt.tracking.SessionClientCreate1} request
105
105
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -116,7 +116,7 @@ export declare class Sessions {
116
116
  createSessionV1(request: Chrt.tracking.SessionClientCreate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
117
117
  private __createSessionV1;
118
118
  /**
119
- * Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
119
+ * Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
120
120
  *
121
121
  * @param {Chrt.tracking.SessionClientUpdate1} request
122
122
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -317,7 +317,7 @@ export class Sessions {
317
317
  });
318
318
  }
319
319
  /**
320
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
320
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Optionally seed a destination geofence (location + radius) to fire a destination geofence entered notification. Auto-termination is scheduled for ~1 week out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | auth: api_key | (SessionClientCreate1) -> (PydanticObjectId)
321
321
  *
322
322
  * @param {Chrt.tracking.SessionClientCreate1} request
323
323
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -389,7 +389,7 @@ export class Sessions {
389
389
  });
390
390
  }
391
391
  /**
392
- * Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
392
+ * Updates a session's mutable metadata (off_chrt_reference_id, comments, public, termination_scheduled_for_timestamp, destination_geofence_location, destination_geofence_radius_miles). Setting or replacing the destination geofence location resets the entered latch so it can fire again; clearing it (destination_geofence_location__set_to_None) also resets the latch. | auth: api_key | (SessionClientUpdate1) -> (bool)
393
393
  *
394
394
  * @param {Chrt.tracking.SessionClientUpdate1} request
395
395
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../index.mjs";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -21,4 +22,6 @@ export interface SessionClientCreate1 {
21
22
  termination_scheduled_for_timestamp?: string | null;
22
23
  flight_numbers?: string[];
23
24
  fa_flight_ids?: string[];
25
+ destination_geofence_location?: Chrt.LocationFeature | null;
26
+ destination_geofence_radius_miles?: number;
24
27
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../../../../../../index.mjs";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -14,7 +15,10 @@ export interface SessionClientUpdate1 {
14
15
  comments?: string | null;
15
16
  public?: boolean | null;
16
17
  termination_scheduled_for_timestamp?: string | null;
18
+ destination_geofence_location?: Chrt.LocationFeature | null;
19
+ destination_geofence_radius_miles?: number | null;
17
20
  off_chrt_reference_id__set_to_None?: boolean;
18
21
  comments__set_to_None?: boolean;
19
22
  termination_scheduled_for_timestamp__set_to_None?: boolean;
23
+ destination_geofence_location__set_to_None?: boolean;
20
24
  }
@@ -26,6 +26,7 @@ export interface LineItem1 {
26
26
  ad_hoc__status?: Chrt.LineItemStatusEnum | null;
27
27
  rate_sheet_id?: string | null;
28
28
  pro_forma__bid_thread_id?: string | null;
29
+ line_item_calculation_id?: string | null;
29
30
  created_at_timestamp?: string;
30
31
  line_item_s3_object_metadata_ids?: string[];
31
32
  }
@@ -2,13 +2,14 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * Limited notification events for ad-hoc per-order notifications.
5
+ * Limited notification events for ad-hoc per-subject notifications.
6
6
  *
7
- * Set per order for any directory entry contact.
7
+ * Set per order or per tracking session for any directory entry contact.
8
8
  * Limited scope since it can go outside the org, e.g. share order completion but probably not billing events
9
9
  */
10
- export type NotificationEventsForAdHocEnum = "shipping.order.staged" | "shipping.order.completed";
10
+ export type NotificationEventsForAdHocEnum = "shipping.order.staged" | "shipping.order.completed" | "tracking.session.destination_geofence_entered";
11
11
  export declare const NotificationEventsForAdHocEnum: {
12
12
  readonly ShippingOrderStaged: "shipping.order.staged";
13
13
  readonly ShippingOrderCompleted: "shipping.order.completed";
14
+ readonly TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered";
14
15
  };
@@ -4,4 +4,5 @@
4
4
  export const NotificationEventsForAdHocEnum = {
5
5
  ShippingOrderStaged: "shipping.order.staged",
6
6
  ShippingOrderCompleted: "shipping.order.completed",
7
+ TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
7
8
  };
@@ -6,7 +6,7 @@
6
6
  * Controlled by Groups that admins configure.
7
7
  * Individual users in the group can opt out.
8
8
  */
9
- export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added" | "billing.line_item.file_added";
9
+ export type NotificationEventsForOrgsEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.provider_assigned" | "shipping.task_group.in_progress" | "shipping.task_group.file_added" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.added" | "shipping.task.attempted" | "shipping.task.completed" | "shipping.task.skipped" | "shipping.task.deleted" | "shipping.task.task_artifact_completed" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.listing.provider_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.statement.opened" | "billing.statement.paid" | "billing.line_item_group.message" | "billing.line_item_group.file_added" | "billing.line_item.file_added" | "tracking.session.destination_geofence_entered";
10
10
  export declare const NotificationEventsForOrgsEnum: {
11
11
  readonly ShippingOrderStaged: "shipping.order.staged";
12
12
  readonly ShippingOrderCompleted: "shipping.order.completed";
@@ -37,4 +37,5 @@ export declare const NotificationEventsForOrgsEnum: {
37
37
  readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
38
38
  readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
39
39
  readonly BillingLineItemFileAdded: "billing.line_item.file_added";
40
+ readonly TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered";
40
41
  };
@@ -31,4 +31,5 @@ export const NotificationEventsForOrgsEnum = {
31
31
  BillingLineItemGroupMessage: "billing.line_item_group.message",
32
32
  BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
33
33
  BillingLineItemFileAdded: "billing.line_item.file_added",
34
+ TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
34
35
  };
@@ -8,7 +8,7 @@
8
8
  * - Order events: via `order.created_by_user_id`
9
9
  * - TaskGroup events: via `task_group.driver_id`
10
10
  */
11
- export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.line_item_group.message" | "billing.line_item_group.file_added";
11
+ export type NotificationEventsForUsersEnum = "shipping.order.staged" | "shipping.order.completed" | "shipping.order.cancelled" | "shipping.task_group.driver_assigned" | "shipping.task_group.message" | "shipping.task_group.tasks_ordering_updated" | "shipping.task_group.flight_info_updated" | "shipping.task.executor_org_note_added" | "listing.listing.driver_invited_to_bid" | "listing.bid_thread.action_added" | "operations.case.operator_assigned" | "operations.case.group_assigned" | "operations.case.message" | "operations.case.file_added" | "billing.line_item_group.message" | "billing.line_item_group.file_added" | "tracking.session.destination_geofence_entered";
12
12
  export declare const NotificationEventsForUsersEnum: {
13
13
  readonly ShippingOrderStaged: "shipping.order.staged";
14
14
  readonly ShippingOrderCompleted: "shipping.order.completed";
@@ -26,4 +26,5 @@ export declare const NotificationEventsForUsersEnum: {
26
26
  readonly OperationsCaseFileAdded: "operations.case.file_added";
27
27
  readonly BillingLineItemGroupMessage: "billing.line_item_group.message";
28
28
  readonly BillingLineItemGroupFileAdded: "billing.line_item_group.file_added";
29
+ readonly TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered";
29
30
  };
@@ -18,4 +18,5 @@ export const NotificationEventsForUsersEnum = {
18
18
  OperationsCaseFileAdded: "operations.case.file_added",
19
19
  BillingLineItemGroupMessage: "billing.line_item_group.message",
20
20
  BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
21
+ TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
21
22
  };
@@ -9,7 +9,8 @@ export interface NotificationIntentAdHoc1 {
9
9
  created_by_org_id: string;
10
10
  /** Must be a string starting with `user_` */
11
11
  created_by_user_id: string;
12
- order_id: string;
12
+ order_id?: string | null;
13
+ session_id?: string | null;
13
14
  directory_entry_id: string;
14
15
  email_events?: Chrt.NotificationEventsForAdHocEnum[];
15
16
  push_events?: Chrt.NotificationEventsForAdHocEnum[];
@@ -1,14 +1,7 @@
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
- /**
6
- * @example
7
- * {
8
- * schema_version: 1,
9
- * directory_entry_id: "directory_entry_id"
10
- * }
11
- */
4
+ import * as Chrt from "../index.mjs";
12
5
  export interface NotificationIntentAdHocClientCreate1 {
13
6
  schema_version: number;
14
7
  directory_entry_id: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,22 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type OnboardCourierTaskActionEnum1 = "obc__courier_departed_for_pickup_location" | "obc__courier_arrived_at_pickup_location" | "obc__cargo_picked_up" | "obc__courier_departed_for_airport" | "obc__courier_arrived_at_airport" | "obc__courier_thru_security" | "obc__cargo_received_by_airline" | "obc__courier_boarded_flight" | "obc__flight_departed" | "obc__flight_arrived" | "obc__courier_deboarded_flight" | "obc__courier_cleared_customs" | "obc__courier_recovered_cargo" | "obc__courier_departed_for_delivery_location" | "obc__courier_arrived_at_delivery_location" | "obc__cargo_delivered";
4
+ export type OnboardCourierTaskActionEnum1 = "obc__cargo_picked_up" | "obc__courier_thru_security" | "obc__courier_boarded_flight" | "obc__courier_deboarded_flight" | "obc__courier_cleared_customs" | "obc__cargo_delivered";
5
5
  export declare const OnboardCourierTaskActionEnum1: {
6
- readonly ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location";
7
- readonly ObcCourierArrivedAtPickupLocation: "obc__courier_arrived_at_pickup_location";
8
6
  readonly ObcCargoPickedUp: "obc__cargo_picked_up";
9
- readonly ObcCourierDepartedForAirport: "obc__courier_departed_for_airport";
10
- readonly ObcCourierArrivedAtAirport: "obc__courier_arrived_at_airport";
11
7
  readonly ObcCourierThruSecurity: "obc__courier_thru_security";
12
- readonly ObcCargoReceivedByAirline: "obc__cargo_received_by_airline";
13
8
  readonly ObcCourierBoardedFlight: "obc__courier_boarded_flight";
14
- readonly ObcFlightDeparted: "obc__flight_departed";
15
- readonly ObcFlightArrived: "obc__flight_arrived";
16
9
  readonly ObcCourierDeboardedFlight: "obc__courier_deboarded_flight";
17
10
  readonly ObcCourierClearedCustoms: "obc__courier_cleared_customs";
18
- readonly ObcCourierRecoveredCargo: "obc__courier_recovered_cargo";
19
- readonly ObcCourierDepartedForDeliveryLocation: "obc__courier_departed_for_delivery_location";
20
- readonly ObcCourierArrivedAtDeliveryLocation: "obc__courier_arrived_at_delivery_location";
21
11
  readonly ObcCargoDelivered: "obc__cargo_delivered";
22
12
  };
@@ -2,20 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export const OnboardCourierTaskActionEnum1 = {
5
- ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location",
6
- ObcCourierArrivedAtPickupLocation: "obc__courier_arrived_at_pickup_location",
7
5
  ObcCargoPickedUp: "obc__cargo_picked_up",
8
- ObcCourierDepartedForAirport: "obc__courier_departed_for_airport",
9
- ObcCourierArrivedAtAirport: "obc__courier_arrived_at_airport",
10
6
  ObcCourierThruSecurity: "obc__courier_thru_security",
11
- ObcCargoReceivedByAirline: "obc__cargo_received_by_airline",
12
7
  ObcCourierBoardedFlight: "obc__courier_boarded_flight",
13
- ObcFlightDeparted: "obc__flight_departed",
14
- ObcFlightArrived: "obc__flight_arrived",
15
8
  ObcCourierDeboardedFlight: "obc__courier_deboarded_flight",
16
9
  ObcCourierClearedCustoms: "obc__courier_cleared_customs",
17
- ObcCourierRecoveredCargo: "obc__courier_recovered_cargo",
18
- ObcCourierDepartedForDeliveryLocation: "obc__courier_departed_for_delivery_location",
19
- ObcCourierArrivedAtDeliveryLocation: "obc__courier_arrived_at_delivery_location",
20
10
  ObcCargoDelivered: "obc__cargo_delivered",
21
11
  };
@@ -3,23 +3,15 @@
3
3
  */
4
4
  import * as Chrt from "../index.mjs";
5
5
  /**
6
- * One task declared in a Task List.
7
- *
8
- * Materialized into an `OperationsTask` on apply.
9
- *
10
- * The deadline is computed from (`deadline_anchor`, `deadline_offset_seconds`):
11
- * `FROM_FIRST_TASK` => the first entry's resolved deadline + offset;
12
- * `FROM_PREVIOUS_TASK` => the previous entry's resolved deadline + offset (the
13
- * first entry's "previous" is `apply_time`). The first entry itself anchors to
14
- * `apply_time` (or the apply-time `initial_deadline_timestamp` pin). Defaults to
15
- * `FROM_PREVIOUS_TASK` + 1200s, which reproduces the 20-min positional stagger.
16
- * `deadline_offset_seconds` may be negative.
6
+ * A stored Task List entry: client content plus a server-assigned stable
7
+ * `uuid`. The `uuid` keys the edit / remove / reorder routes (entries are not
8
+ * unique by `task_type` a list can repeat a type).
17
9
  */
18
10
  export interface OperationsTaskListEntry1 {
19
- id?: string;
20
11
  task_type: Chrt.OperationsTaskTypeEnum;
21
12
  title: string;
22
13
  description: string;
23
14
  deadline_anchor?: Chrt.DeadlineAnchorEnum;
24
15
  deadline_offset_seconds?: number;
16
+ uuid?: string;
25
17
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ /**
6
+ * Entry content the client supplies — at list-create time and via the add /
7
+ * edit entry routes. Carries no identity: the server assigns the `uuid`.
8
+ */
9
+ export interface OperationsTaskListEntryClientCreate1 {
10
+ task_type: Chrt.OperationsTaskTypeEnum;
11
+ title: string;
12
+ description: string;
13
+ deadline_anchor?: Chrt.DeadlineAnchorEnum;
14
+ deadline_offset_seconds?: number;
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -13,6 +13,7 @@ export interface OrderTemplate1 {
13
13
  /** Must be a string starting with `org_` */
14
14
  coordinator_org_id?: string | null;
15
15
  department_id?: string | null;
16
+ task_list_ids?: string[];
16
17
  name: string;
17
18
  description?: string | null;
18
19
  off_chrt_reference_id_str?: string | null;
@@ -18,4 +18,5 @@ export interface OrderTemplateCore1 {
18
18
  /** Must be a string starting with `org_` */
19
19
  coordinator_org_id?: string | null;
20
20
  department_id?: string | null;
21
+ task_list_ids?: string[];
21
22
  }
@@ -24,6 +24,9 @@ export interface Session1 {
24
24
  last_seen_at_timestamp?: string | null;
25
25
  last_seen_at_location_city?: string | null;
26
26
  last_seen_at_location_large_city?: string | null;
27
+ destination_geofence_location?: Chrt.LocationFeature | null;
28
+ destination_geofence_radius_miles?: number;
29
+ destination_geofence_entered?: boolean;
27
30
  fa_alert_ids?: number[];
28
31
  flight_loaded_statuses?: string[];
29
32
  fa_alert_id_by_flight_number?: Record<string, number>;
@@ -35,6 +35,7 @@ export interface TaskGroup1 {
35
35
  exception_at_timestamp?: string | null;
36
36
  task_group_type: Chrt.TaskGroupTypeEnum1;
37
37
  vehicle_type?: Chrt.VehicleTypeEnum | null;
38
+ flight_setup_notes?: string | null;
38
39
  mileage_estimated?: number | null;
39
40
  mileage_observed?: number | null;
40
41
  wait_time_total_minutes?: number | null;