@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.d.ts +18 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/Client.js +67 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.ts +23 -0
- package/dist/cjs/api/resources/billing/resources/lineItemGroups/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.d.ts +36 -2
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/Client.js +138 -1
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.ts +14 -0
- package/dist/cjs/api/resources/notifications/resources/adHoc/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.d.ts +46 -9
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/Client.js +148 -16
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.ts +1 -1
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts +2 -0
- package/dist/cjs/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.ts +1 -0
- package/dist/cjs/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.ts +1 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/Client.js +2 -2
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts +3 -0
- package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts +4 -0
- package/dist/cjs/api/types/LineItem1.d.ts +1 -0
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.d.ts +4 -3
- package/dist/cjs/api/types/NotificationEventsForAdHocEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForOrgsEnum.js +1 -0
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.d.ts +2 -1
- package/dist/cjs/api/types/NotificationEventsForUsersEnum.js +1 -0
- package/dist/cjs/api/types/NotificationIntentAdHoc1.d.ts +2 -1
- package/dist/cjs/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.ts +1 -8
- package/dist/cjs/api/types/NotificationIntentAdHocClientCreate1.js +5 -0
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.d.ts +1 -11
- package/dist/cjs/api/types/OnboardCourierTaskActionEnum1.js +0 -10
- package/dist/cjs/api/types/OperationsTaskListEntry1.d.ts +4 -12
- package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.d.ts +15 -0
- package/dist/cjs/api/types/OperationsTaskListEntryClientCreate1.js +5 -0
- package/dist/cjs/api/types/OrderTemplate1.d.ts +1 -0
- package/dist/cjs/api/types/OrderTemplateCore1.d.ts +1 -0
- package/dist/cjs/api/types/Session1.d.ts +3 -0
- package/dist/cjs/api/types/TaskGroup1.d.ts +1 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.ts +10 -0
- package/dist/cjs/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.js +5 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- 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/billing/resources/lineItemGroups/client/Client.d.mts +18 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/Client.mjs +67 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.d.mts +23 -0
- package/dist/esm/api/resources/billing/resources/lineItemGroups/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.d.mts +36 -2
- package/dist/esm/api/resources/notifications/resources/adHoc/client/Client.mjs +138 -1
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.d.mts +14 -0
- package/dist/esm/api/resources/notifications/resources/adHoc/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.d.mts +46 -9
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/Client.mjs +148 -16
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListClientCreate1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListReorderEntries1.d.mts +1 -1
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.mts +2 -0
- package/dist/esm/api/resources/shipping/resources/orderDrafts/resources/taskGroup/client/requests/OrderDraftAddTaskGroupReq.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientCreate1.d.mts +1 -0
- package/dist/esm/api/resources/shipping/resources/orderTemplates/client/requests/OrderTemplateClientUpdate1.d.mts +1 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.mts +3 -0
- package/dist/esm/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.mts +4 -0
- package/dist/esm/api/types/LineItem1.d.mts +1 -0
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.d.mts +4 -3
- package/dist/esm/api/types/NotificationEventsForAdHocEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForOrgsEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationEventsForUsersEnum.d.mts +2 -1
- package/dist/esm/api/types/NotificationEventsForUsersEnum.mjs +1 -0
- package/dist/esm/api/types/NotificationIntentAdHoc1.d.mts +2 -1
- package/dist/esm/api/{resources/notifications/resources/adHoc/client/requests → types}/NotificationIntentAdHocClientCreate1.d.mts +1 -8
- package/dist/esm/api/types/NotificationIntentAdHocClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.d.mts +1 -11
- package/dist/esm/api/types/OnboardCourierTaskActionEnum1.mjs +0 -10
- package/dist/esm/api/types/OperationsTaskListEntry1.d.mts +4 -12
- package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.d.mts +15 -0
- package/dist/esm/api/types/OperationsTaskListEntryClientCreate1.mjs +4 -0
- package/dist/esm/api/types/OrderTemplate1.d.mts +1 -0
- package/dist/esm/api/types/OrderTemplateCore1.d.mts +1 -0
- package/dist/esm/api/types/Session1.d.mts +3 -0
- package/dist/esm/api/types/TaskGroup1.d.mts +1 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.d.mts +10 -0
- package/dist/esm/api/types/TrackingSessionDestinationGeofenceEnteredWebhookPayload.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +384 -10
- package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.ts +0 -11
- package/dist/esm/api/resources/operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.d.mts +0 -11
- /package/dist/cjs/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.js → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.js} +0 -0
- /package/dist/cjs/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.js → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.js} +0 -0
- /package/dist/esm/api/resources/{notifications/resources/adHoc/client/requests/NotificationIntentAdHocClientCreate1.mjs → billing/resources/lineItemGroups/client/requests/LineItemGroupSharedTaskGroupMileageCreateClientReq.mjs} +0 -0
- /package/dist/esm/api/resources/{operations/resources/operationsTaskLists/client/requests/OperationsTaskListSetEntries1.mjs → notifications/resources/adHoc/client/requests/AdHocListBySessionIdV1Request.mjs} +0 -0
|
@@ -325,26 +325,30 @@ class OperationsTaskLists {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* 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)
|
|
329
329
|
*
|
|
330
330
|
* @param {string} taskListId
|
|
331
|
-
* @param {Chrt.
|
|
331
|
+
* @param {Chrt.OperationsTaskListEntryClientCreate1} request
|
|
332
332
|
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
333
|
*
|
|
334
334
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
335
335
|
*
|
|
336
336
|
* @example
|
|
337
|
-
* await client.operations.operationsTaskLists.
|
|
337
|
+
* await client.operations.operationsTaskLists.addEntryV1("task_list_id", {
|
|
338
|
+
* task_type: "review_order_details",
|
|
339
|
+
* title: "title",
|
|
340
|
+
* description: "description"
|
|
341
|
+
* })
|
|
338
342
|
*/
|
|
339
|
-
|
|
340
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
343
|
+
addEntryV1(taskListId, request, requestOptions) {
|
|
344
|
+
return core.HttpResponsePromise.fromPromise(this.__addEntryV1(taskListId, request, requestOptions));
|
|
341
345
|
}
|
|
342
|
-
|
|
343
|
-
return __awaiter(this,
|
|
346
|
+
__addEntryV1(taskListId, request, requestOptions) {
|
|
347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
344
348
|
var _a, _b, _c, _d;
|
|
345
349
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
346
350
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
347
|
-
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/
|
|
351
|
+
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)}`),
|
|
348
352
|
method: "POST",
|
|
349
353
|
headers: _headers,
|
|
350
354
|
contentType: "application/json",
|
|
@@ -378,7 +382,135 @@ class OperationsTaskLists {
|
|
|
378
382
|
rawResponse: _response.rawResponse,
|
|
379
383
|
});
|
|
380
384
|
case "timeout":
|
|
381
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/
|
|
385
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/entries/add/v1/{task_list_id}.");
|
|
386
|
+
case "unknown":
|
|
387
|
+
throw new errors.ChrtError({
|
|
388
|
+
message: _response.error.errorMessage,
|
|
389
|
+
rawResponse: _response.rawResponse,
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* 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)
|
|
396
|
+
*
|
|
397
|
+
* @param {string} taskListId
|
|
398
|
+
* @param {string} entryUuid
|
|
399
|
+
* @param {Chrt.OperationsTaskListEntryClientCreate1} request
|
|
400
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
|
+
*
|
|
402
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
403
|
+
*
|
|
404
|
+
* @example
|
|
405
|
+
* await client.operations.operationsTaskLists.editEntryV1("task_list_id", "entry_uuid", {
|
|
406
|
+
* task_type: "review_order_details",
|
|
407
|
+
* title: "title",
|
|
408
|
+
* description: "description"
|
|
409
|
+
* })
|
|
410
|
+
*/
|
|
411
|
+
editEntryV1(taskListId, entryUuid, request, requestOptions) {
|
|
412
|
+
return core.HttpResponsePromise.fromPromise(this.__editEntryV1(taskListId, entryUuid, request, requestOptions));
|
|
413
|
+
}
|
|
414
|
+
__editEntryV1(taskListId, entryUuid, request, requestOptions) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
var _a, _b, _c, _d;
|
|
417
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
418
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
419
|
+
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)}`),
|
|
420
|
+
method: "PATCH",
|
|
421
|
+
headers: _headers,
|
|
422
|
+
contentType: "application/json",
|
|
423
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
424
|
+
requestType: "json",
|
|
425
|
+
body: request,
|
|
426
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
427
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
428
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
429
|
+
});
|
|
430
|
+
if (_response.ok) {
|
|
431
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
432
|
+
}
|
|
433
|
+
if (_response.error.reason === "status-code") {
|
|
434
|
+
switch (_response.error.statusCode) {
|
|
435
|
+
case 422:
|
|
436
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
437
|
+
default:
|
|
438
|
+
throw new errors.ChrtError({
|
|
439
|
+
statusCode: _response.error.statusCode,
|
|
440
|
+
body: _response.error.body,
|
|
441
|
+
rawResponse: _response.rawResponse,
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
switch (_response.error.reason) {
|
|
446
|
+
case "non-json":
|
|
447
|
+
throw new errors.ChrtError({
|
|
448
|
+
statusCode: _response.error.statusCode,
|
|
449
|
+
body: _response.error.rawBody,
|
|
450
|
+
rawResponse: _response.rawResponse,
|
|
451
|
+
});
|
|
452
|
+
case "timeout":
|
|
453
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /operations/operations_task_lists/entries/edit/v1/{task_list_id}/{entry_uuid}.");
|
|
454
|
+
case "unknown":
|
|
455
|
+
throw new errors.ChrtError({
|
|
456
|
+
message: _response.error.errorMessage,
|
|
457
|
+
rawResponse: _response.rawResponse,
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* 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)
|
|
464
|
+
*
|
|
465
|
+
* @param {string} taskListId
|
|
466
|
+
* @param {string} entryUuid
|
|
467
|
+
* @param {OperationsTaskLists.RequestOptions} requestOptions - Request-specific configuration.
|
|
468
|
+
*
|
|
469
|
+
* @throws {@link Chrt.UnprocessableEntityError}
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* await client.operations.operationsTaskLists.removeEntryV1("task_list_id", "entry_uuid")
|
|
473
|
+
*/
|
|
474
|
+
removeEntryV1(taskListId, entryUuid, requestOptions) {
|
|
475
|
+
return core.HttpResponsePromise.fromPromise(this.__removeEntryV1(taskListId, entryUuid, requestOptions));
|
|
476
|
+
}
|
|
477
|
+
__removeEntryV1(taskListId, entryUuid, requestOptions) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
var _a, _b, _c, _d;
|
|
480
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
481
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
482
|
+
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)}`),
|
|
483
|
+
method: "DELETE",
|
|
484
|
+
headers: _headers,
|
|
485
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
486
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
487
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
488
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
489
|
+
});
|
|
490
|
+
if (_response.ok) {
|
|
491
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
492
|
+
}
|
|
493
|
+
if (_response.error.reason === "status-code") {
|
|
494
|
+
switch (_response.error.statusCode) {
|
|
495
|
+
case 422:
|
|
496
|
+
throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
497
|
+
default:
|
|
498
|
+
throw new errors.ChrtError({
|
|
499
|
+
statusCode: _response.error.statusCode,
|
|
500
|
+
body: _response.error.body,
|
|
501
|
+
rawResponse: _response.rawResponse,
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
switch (_response.error.reason) {
|
|
506
|
+
case "non-json":
|
|
507
|
+
throw new errors.ChrtError({
|
|
508
|
+
statusCode: _response.error.statusCode,
|
|
509
|
+
body: _response.error.rawBody,
|
|
510
|
+
rawResponse: _response.rawResponse,
|
|
511
|
+
});
|
|
512
|
+
case "timeout":
|
|
513
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling DELETE /operations/operations_task_lists/entries/remove/v1/{task_list_id}/{entry_uuid}.");
|
|
382
514
|
case "unknown":
|
|
383
515
|
throw new errors.ChrtError({
|
|
384
516
|
message: _response.error.errorMessage,
|
|
@@ -388,7 +520,7 @@ class OperationsTaskLists {
|
|
|
388
520
|
});
|
|
389
521
|
}
|
|
390
522
|
/**
|
|
391
|
-
* Reorders an OperationsTaskList's existing entries. `
|
|
523
|
+
* 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)
|
|
392
524
|
*
|
|
393
525
|
* @param {string} taskListId
|
|
394
526
|
* @param {Chrt.operations.OperationsTaskListReorderEntries1} request
|
|
@@ -646,17 +778,17 @@ class OperationsTaskLists {
|
|
|
646
778
|
* @throws {@link Chrt.UnprocessableEntityError}
|
|
647
779
|
*
|
|
648
780
|
* @example
|
|
649
|
-
* await client.operations.operationsTaskLists.
|
|
781
|
+
* await client.operations.operationsTaskLists.removeNotStartedTasksFromCaseV1("task_list_id", "case_id")
|
|
650
782
|
*/
|
|
651
|
-
|
|
652
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
783
|
+
removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
|
|
784
|
+
return core.HttpResponsePromise.fromPromise(this.__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions));
|
|
653
785
|
}
|
|
654
|
-
|
|
786
|
+
__removeNotStartedTasksFromCaseV1(taskListId, caseId, requestOptions) {
|
|
655
787
|
return __awaiter(this, void 0, void 0, function* () {
|
|
656
788
|
var _a, _b, _c, _d;
|
|
657
789
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
658
790
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
659
|
-
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/
|
|
791
|
+
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)}`),
|
|
660
792
|
method: "POST",
|
|
661
793
|
headers: _headers,
|
|
662
794
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -690,7 +822,7 @@ class OperationsTaskLists {
|
|
|
690
822
|
rawResponse: _response.rawResponse,
|
|
691
823
|
});
|
|
692
824
|
case "timeout":
|
|
693
|
-
throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /operations/operations_task_lists/
|
|
825
|
+
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}.");
|
|
694
826
|
case "unknown":
|
|
695
827
|
throw new errors.ChrtError({
|
|
696
828
|
message: _response.error.errorMessage,
|
package/dist/cjs/api/resources/operations/resources/operationsTaskLists/client/requests/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { type OperationsTaskListsListV1Request } from "./OperationsTaskListsListV1Request.js";
|
|
2
2
|
export { type OperationsTaskListClientUpdate1 } from "./OperationsTaskListClientUpdate1.js";
|
|
3
3
|
export { type OperationsTaskListClientCreate1 } from "./OperationsTaskListClientCreate1.js";
|
|
4
|
-
export { type OperationsTaskListSetEntries1 } from "./OperationsTaskListSetEntries1.js";
|
|
5
4
|
export { type OperationsTaskListReorderEntries1 } from "./OperationsTaskListReorderEntries1.js";
|
|
6
5
|
export { type OperationsTaskListsApplyToCaseV1Request } from "./OperationsTaskListsApplyToCaseV1Request.js";
|
package/dist/cjs/api/resources/shipping/resources/orderDrafts/client/requests/OrdersNewDraftReq.d.ts
CHANGED
|
@@ -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. */
|
|
@@ -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.
|
|
@@ -353,7 +353,7 @@ class Sessions {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
/**
|
|
356
|
-
* 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)
|
|
356
|
+
* 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)
|
|
357
357
|
*
|
|
358
358
|
* @param {Chrt.tracking.SessionClientCreate1} request
|
|
359
359
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -425,7 +425,7 @@ class Sessions {
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
|
-
* Updates a session's metadata. | auth: api_key | (SessionClientUpdate1) -> (bool)
|
|
428
|
+
* 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)
|
|
429
429
|
*
|
|
430
430
|
* @param {Chrt.tracking.SessionClientUpdate1} request
|
|
431
431
|
* @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientCreate1.d.ts
CHANGED
|
@@ -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.js";
|
|
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
|
}
|
package/dist/cjs/api/resources/tracking/resources/sessions/client/requests/SessionClientUpdate1.d.ts
CHANGED
|
@@ -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.js";
|
|
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-
|
|
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
|
};
|
|
@@ -7,4 +7,5 @@ exports.NotificationEventsForAdHocEnum = void 0;
|
|
|
7
7
|
exports.NotificationEventsForAdHocEnum = {
|
|
8
8
|
ShippingOrderStaged: "shipping.order.staged",
|
|
9
9
|
ShippingOrderCompleted: "shipping.order.completed",
|
|
10
|
+
TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
|
|
10
11
|
};
|
|
@@ -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
|
};
|
|
@@ -34,4 +34,5 @@ exports.NotificationEventsForOrgsEnum = {
|
|
|
34
34
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
35
35
|
BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
|
|
36
36
|
BillingLineItemFileAdded: "billing.line_item.file_added",
|
|
37
|
+
TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
|
|
37
38
|
};
|
|
@@ -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
|
};
|
|
@@ -21,4 +21,5 @@ exports.NotificationEventsForUsersEnum = {
|
|
|
21
21
|
OperationsCaseFileAdded: "operations.case.file_added",
|
|
22
22
|
BillingLineItemGroupMessage: "billing.line_item_group.message",
|
|
23
23
|
BillingLineItemGroupFileAdded: "billing.line_item_group.file_added",
|
|
24
|
+
TrackingSessionDestinationGeofenceEntered: "tracking.session.destination_geofence_entered",
|
|
24
25
|
};
|
|
@@ -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
|
|
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 "
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* {
|
|
8
|
-
* schema_version: 1,
|
|
9
|
-
* directory_entry_id: "directory_entry_id"
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
4
|
+
import * as Chrt from "../index.js";
|
|
12
5
|
export interface NotificationIntentAdHocClientCreate1 {
|
|
13
6
|
schema_version: number;
|
|
14
7
|
directory_entry_id: string;
|
|
@@ -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 = "
|
|
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
|
};
|
|
@@ -5,20 +5,10 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.OnboardCourierTaskActionEnum1 = void 0;
|
|
7
7
|
exports.OnboardCourierTaskActionEnum1 = {
|
|
8
|
-
ObcCourierDepartedForPickupLocation: "obc__courier_departed_for_pickup_location",
|
|
9
|
-
ObcCourierArrivedAtPickupLocation: "obc__courier_arrived_at_pickup_location",
|
|
10
8
|
ObcCargoPickedUp: "obc__cargo_picked_up",
|
|
11
|
-
ObcCourierDepartedForAirport: "obc__courier_departed_for_airport",
|
|
12
|
-
ObcCourierArrivedAtAirport: "obc__courier_arrived_at_airport",
|
|
13
9
|
ObcCourierThruSecurity: "obc__courier_thru_security",
|
|
14
|
-
ObcCargoReceivedByAirline: "obc__cargo_received_by_airline",
|
|
15
10
|
ObcCourierBoardedFlight: "obc__courier_boarded_flight",
|
|
16
|
-
ObcFlightDeparted: "obc__flight_departed",
|
|
17
|
-
ObcFlightArrived: "obc__flight_arrived",
|
|
18
11
|
ObcCourierDeboardedFlight: "obc__courier_deboarded_flight",
|
|
19
12
|
ObcCourierClearedCustoms: "obc__courier_cleared_customs",
|
|
20
|
-
ObcCourierRecoveredCargo: "obc__courier_recovered_cargo",
|
|
21
|
-
ObcCourierDepartedForDeliveryLocation: "obc__courier_departed_for_delivery_location",
|
|
22
|
-
ObcCourierArrivedAtDeliveryLocation: "obc__courier_arrived_at_delivery_location",
|
|
23
13
|
ObcCargoDelivered: "obc__cargo_delivered",
|
|
24
14
|
};
|
|
@@ -3,23 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Chrt from "../index.js";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
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.js";
|
|
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
|
+
}
|
|
@@ -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;
|
|
@@ -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;
|