@axivoy/api 2.13.0 → 2.23.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/generated/schema.d.ts +1609 -320
- package/package.json +1 -1
|
@@ -6493,6 +6493,28 @@ export interface paths {
|
|
|
6493
6493
|
patch?: never;
|
|
6494
6494
|
trace?: never;
|
|
6495
6495
|
};
|
|
6496
|
+
"/ops/inbox.conversations.split_message": {
|
|
6497
|
+
parameters: {
|
|
6498
|
+
query?: never;
|
|
6499
|
+
header?: never;
|
|
6500
|
+
path?: never;
|
|
6501
|
+
cookie?: never;
|
|
6502
|
+
};
|
|
6503
|
+
get?: never;
|
|
6504
|
+
put?: never;
|
|
6505
|
+
/**
|
|
6506
|
+
* Move an email to its own conversation
|
|
6507
|
+
* @description Takes one received email out of a conversation it was threaded into by mistake and starts a new conversation for it in the same teams. Loads, owners and everything else stay on the original.
|
|
6508
|
+
*
|
|
6509
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
6510
|
+
*/
|
|
6511
|
+
post: operations["ops.inbox.conversations.split_message"];
|
|
6512
|
+
delete?: never;
|
|
6513
|
+
options?: never;
|
|
6514
|
+
head?: never;
|
|
6515
|
+
patch?: never;
|
|
6516
|
+
trace?: never;
|
|
6517
|
+
};
|
|
6496
6518
|
"/ops/inbox.conversations.transfer_queue": {
|
|
6497
6519
|
parameters: {
|
|
6498
6520
|
query?: never;
|
|
@@ -8627,6 +8649,28 @@ export interface paths {
|
|
|
8627
8649
|
patch?: never;
|
|
8628
8650
|
trace?: never;
|
|
8629
8651
|
};
|
|
8652
|
+
"/ops/loads.trip_stops.save": {
|
|
8653
|
+
parameters: {
|
|
8654
|
+
query?: never;
|
|
8655
|
+
header?: never;
|
|
8656
|
+
path?: never;
|
|
8657
|
+
cookie?: never;
|
|
8658
|
+
};
|
|
8659
|
+
get?: never;
|
|
8660
|
+
put?: never;
|
|
8661
|
+
/**
|
|
8662
|
+
* Save a stop
|
|
8663
|
+
* @description Saves a stop's type, site, schedule, references and times in one step, or adds a new stop with them; nothing is saved if any part is refused.
|
|
8664
|
+
*
|
|
8665
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
8666
|
+
*/
|
|
8667
|
+
post: operations["ops.loads.trip_stops.save"];
|
|
8668
|
+
delete?: never;
|
|
8669
|
+
options?: never;
|
|
8670
|
+
head?: never;
|
|
8671
|
+
patch?: never;
|
|
8672
|
+
trace?: never;
|
|
8673
|
+
};
|
|
8630
8674
|
"/ops/loads.trip_stops.schedule.update": {
|
|
8631
8675
|
parameters: {
|
|
8632
8676
|
query?: never;
|
|
@@ -9903,6 +9947,28 @@ export interface paths {
|
|
|
9903
9947
|
patch?: never;
|
|
9904
9948
|
trace?: never;
|
|
9905
9949
|
};
|
|
9950
|
+
"/ops/maintenance.repairs.due_service_matches": {
|
|
9951
|
+
parameters: {
|
|
9952
|
+
query?: never;
|
|
9953
|
+
header?: never;
|
|
9954
|
+
path?: never;
|
|
9955
|
+
cookie?: never;
|
|
9956
|
+
};
|
|
9957
|
+
get?: never;
|
|
9958
|
+
put?: never;
|
|
9959
|
+
/**
|
|
9960
|
+
* Due services a repair would count as
|
|
9961
|
+
* @description For a unit and the jobs picked for a repair, the scheduled services fixing it would restart, on the unit or the reefer unit installed on it, with each one's due, where the report would be filed, and warnings for reefer services that would not count.
|
|
9962
|
+
*
|
|
9963
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
9964
|
+
*/
|
|
9965
|
+
post: operations["ops.maintenance.repairs.due_service_matches"];
|
|
9966
|
+
delete?: never;
|
|
9967
|
+
options?: never;
|
|
9968
|
+
head?: never;
|
|
9969
|
+
patch?: never;
|
|
9970
|
+
trace?: never;
|
|
9971
|
+
};
|
|
9906
9972
|
"/ops/maintenance.repairs.mark_paid": {
|
|
9907
9973
|
parameters: {
|
|
9908
9974
|
query?: never;
|
|
@@ -10013,6 +10079,28 @@ export interface paths {
|
|
|
10013
10079
|
patch?: never;
|
|
10014
10080
|
trace?: never;
|
|
10015
10081
|
};
|
|
10082
|
+
"/ops/maintenance.repairs.unit.move": {
|
|
10083
|
+
parameters: {
|
|
10084
|
+
query?: never;
|
|
10085
|
+
header?: never;
|
|
10086
|
+
path?: never;
|
|
10087
|
+
cookie?: never;
|
|
10088
|
+
};
|
|
10089
|
+
get?: never;
|
|
10090
|
+
put?: never;
|
|
10091
|
+
/**
|
|
10092
|
+
* Move a finished repair to its reefer unit or trailer
|
|
10093
|
+
* @description Move a finished repair between a trailer and the reefer unit installed on it when the repair was fixed, both directions, with its service history entry, and optionally count it for scheduled services on the new unit. Its cost reads under the new unit; no order, bill or payment changes.
|
|
10094
|
+
*
|
|
10095
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
10096
|
+
*/
|
|
10097
|
+
post: operations["ops.maintenance.repairs.unit.move"];
|
|
10098
|
+
delete?: never;
|
|
10099
|
+
options?: never;
|
|
10100
|
+
head?: never;
|
|
10101
|
+
patch?: never;
|
|
10102
|
+
trace?: never;
|
|
10103
|
+
};
|
|
10016
10104
|
"/ops/maintenance.repairs.unit.update": {
|
|
10017
10105
|
parameters: {
|
|
10018
10106
|
query?: never;
|
|
@@ -12927,8 +13015,8 @@ export interface paths {
|
|
|
12927
13015
|
get?: never;
|
|
12928
13016
|
put?: never;
|
|
12929
13017
|
/**
|
|
12930
|
-
* Choose a different
|
|
12931
|
-
* @description Switches a draft video to another of its suggested
|
|
13018
|
+
* Choose a different idea for a draft video
|
|
13019
|
+
* @description Switches a draft video to another of its suggested ideas and rewrites the script for it.
|
|
12932
13020
|
*
|
|
12933
13021
|
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
12934
13022
|
*/
|
|
@@ -16657,6 +16745,28 @@ export interface paths {
|
|
|
16657
16745
|
patch?: never;
|
|
16658
16746
|
trace?: never;
|
|
16659
16747
|
};
|
|
16748
|
+
"/ops/system.settings.company_clock.preview": {
|
|
16749
|
+
parameters: {
|
|
16750
|
+
query?: never;
|
|
16751
|
+
header?: never;
|
|
16752
|
+
path?: never;
|
|
16753
|
+
cookie?: never;
|
|
16754
|
+
};
|
|
16755
|
+
get?: never;
|
|
16756
|
+
put?: never;
|
|
16757
|
+
/**
|
|
16758
|
+
* Preview a company timezone switch
|
|
16759
|
+
* @description Shows what switching the company timezone from a chosen Sunday would change: when the first new day starts, how much longer or shorter the day before it runs, which pay period and scorecard week stretch, loads due to deliver in the moved hours, and why the switch would be refused. Changes nothing.
|
|
16760
|
+
*
|
|
16761
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
16762
|
+
*/
|
|
16763
|
+
post: operations["ops.system.settings.company_clock.preview"];
|
|
16764
|
+
delete?: never;
|
|
16765
|
+
options?: never;
|
|
16766
|
+
head?: never;
|
|
16767
|
+
patch?: never;
|
|
16768
|
+
trace?: never;
|
|
16769
|
+
};
|
|
16660
16770
|
"/ops/system.settings.planned_mileage.list": {
|
|
16661
16771
|
parameters: {
|
|
16662
16772
|
query?: never;
|
|
@@ -21368,9 +21478,9 @@ export interface operations {
|
|
|
21368
21478
|
* @enum {string}
|
|
21369
21479
|
*/
|
|
21370
21480
|
scope?: "live" | "recent";
|
|
21371
|
-
/** @description recent scope only: start of the departure window (YYYY-MM-DD,
|
|
21481
|
+
/** @description recent scope only: start of the departure window (YYYY-MM-DD, a company date). Default 14 days ago. */
|
|
21372
21482
|
date_from?: string;
|
|
21373
|
-
/** @description recent scope only: end of the departure window (YYYY-MM-DD,
|
|
21483
|
+
/** @description recent scope only: end of the departure window (YYYY-MM-DD, a company date, inclusive). Default today. */
|
|
21374
21484
|
date_to?: string;
|
|
21375
21485
|
/** @description Customer name or part of it (case-insensitive). */
|
|
21376
21486
|
customer?: string;
|
|
@@ -21537,9 +21647,9 @@ export interface operations {
|
|
|
21537
21647
|
"application/json": {
|
|
21538
21648
|
/** @description One driver's user id (users.id). Omit to list drivers by what they are doing on date_from. */
|
|
21539
21649
|
driver_user_id?: number;
|
|
21540
|
-
/** @description Start of the window, or the day to look at when listing drivers (YYYY-MM-DD,
|
|
21650
|
+
/** @description Start of the window, or the day to look at when listing drivers (YYYY-MM-DD, a company date). Default today. */
|
|
21541
21651
|
date_from?: string;
|
|
21542
|
-
/** @description End of the window (YYYY-MM-DD,
|
|
21652
|
+
/** @description End of the window (YYYY-MM-DD, a company date, inclusive). Default 14 days after date_from. Ignored when listing drivers. */
|
|
21543
21653
|
date_to?: string;
|
|
21544
21654
|
/**
|
|
21545
21655
|
* @description List filter: only drivers whose segment on date_from has this type (otr, home, exception) or who have no segment that day (unscheduled).
|
|
@@ -21720,9 +21830,9 @@ export interface operations {
|
|
|
21720
21830
|
customer?: string;
|
|
21721
21831
|
/** @description The driver's user id (users.id) from an earlier result. */
|
|
21722
21832
|
driver_user_id?: number;
|
|
21723
|
-
/** @description Start of the window (YYYY-MM-DD,
|
|
21833
|
+
/** @description Start of the window (YYYY-MM-DD, a company date). Matches loads whose scheduled pickup or delivery falls in the window. */
|
|
21724
21834
|
date_from?: string;
|
|
21725
|
-
/** @description End of the window (YYYY-MM-DD,
|
|
21835
|
+
/** @description End of the window (YYYY-MM-DD, a company date, inclusive). */
|
|
21726
21836
|
date_to?: string;
|
|
21727
21837
|
/** @description Rows to return (default and maximum 25). */
|
|
21728
21838
|
limit?: number;
|
|
@@ -22349,9 +22459,9 @@ export interface operations {
|
|
|
22349
22459
|
* @enum {string}
|
|
22350
22460
|
*/
|
|
22351
22461
|
subject?: "driver" | "dispatcher";
|
|
22352
|
-
/** @description Start of the delivered-at window (YYYY-MM-DD,
|
|
22462
|
+
/** @description Start of the delivered-at window (YYYY-MM-DD, a company date). Default 7 days ago. */
|
|
22353
22463
|
date_from?: string;
|
|
22354
|
-
/** @description End of the window (YYYY-MM-DD,
|
|
22464
|
+
/** @description End of the window (YYYY-MM-DD, a company date, inclusive). Default yesterday. */
|
|
22355
22465
|
date_to?: string;
|
|
22356
22466
|
/**
|
|
22357
22467
|
* @description Order rows by the first measure: desc (default, highest first) or asc.
|
|
@@ -26962,6 +27072,11 @@ export interface operations {
|
|
|
26962
27072
|
};
|
|
26963
27073
|
requestBody?: {
|
|
26964
27074
|
content: {
|
|
27075
|
+
/**
|
|
27076
|
+
* @example {
|
|
27077
|
+
* "team_key": "claims"
|
|
27078
|
+
* }
|
|
27079
|
+
*/
|
|
26965
27080
|
"application/json": {
|
|
26966
27081
|
/** @description A custom team, or a built-in team other than Dispatch whose module is off */
|
|
26967
27082
|
team_key: string;
|
|
@@ -26977,6 +27092,16 @@ export interface operations {
|
|
|
26977
27092
|
[name: string]: unknown;
|
|
26978
27093
|
};
|
|
26979
27094
|
content: {
|
|
27095
|
+
/**
|
|
27096
|
+
* @example {
|
|
27097
|
+
* "result": {
|
|
27098
|
+
* "team_key": "claims",
|
|
27099
|
+
* "state": "archived",
|
|
27100
|
+
* "moved_conversations": 0,
|
|
27101
|
+
* "message": "Claims archived."
|
|
27102
|
+
* }
|
|
27103
|
+
* }
|
|
27104
|
+
*/
|
|
26980
27105
|
"application/json": {
|
|
26981
27106
|
result: {
|
|
26982
27107
|
/** @description The team */
|
|
@@ -27215,6 +27340,12 @@ export interface operations {
|
|
|
27215
27340
|
};
|
|
27216
27341
|
requestBody?: {
|
|
27217
27342
|
content: {
|
|
27343
|
+
/**
|
|
27344
|
+
* @example {
|
|
27345
|
+
* "name": " Brokerage desk ",
|
|
27346
|
+
* "email_local_part": "Brokerage"
|
|
27347
|
+
* }
|
|
27348
|
+
*/
|
|
27218
27349
|
"application/json": {
|
|
27219
27350
|
/** @description Required for a custom team, for example "Claims"; unique in the company, and never a built-in team's name, ignoring case and spacing */
|
|
27220
27351
|
name?: string;
|
|
@@ -27232,6 +27363,15 @@ export interface operations {
|
|
|
27232
27363
|
[name: string]: unknown;
|
|
27233
27364
|
};
|
|
27234
27365
|
content: {
|
|
27366
|
+
/**
|
|
27367
|
+
* @example {
|
|
27368
|
+
* "result": {
|
|
27369
|
+
* "team_key": "brokerage_desk",
|
|
27370
|
+
* "email_address": null,
|
|
27371
|
+
* "message": "Brokerage desk created. Add its people next."
|
|
27372
|
+
* }
|
|
27373
|
+
* }
|
|
27374
|
+
*/
|
|
27235
27375
|
"application/json": {
|
|
27236
27376
|
result: {
|
|
27237
27377
|
/** @description The new team (or the built-in team added) */
|
|
@@ -27324,6 +27464,11 @@ export interface operations {
|
|
|
27324
27464
|
};
|
|
27325
27465
|
requestBody?: {
|
|
27326
27466
|
content: {
|
|
27467
|
+
/**
|
|
27468
|
+
* @example {
|
|
27469
|
+
* "team_key": "receivables"
|
|
27470
|
+
* }
|
|
27471
|
+
*/
|
|
27327
27472
|
"application/json": {
|
|
27328
27473
|
/** @description An active team key (from communication_teams.list); Recruiting is refused because candidates' texts already go there */
|
|
27329
27474
|
team_key: string;
|
|
@@ -27337,6 +27482,15 @@ export interface operations {
|
|
|
27337
27482
|
[name: string]: unknown;
|
|
27338
27483
|
};
|
|
27339
27484
|
content: {
|
|
27485
|
+
/**
|
|
27486
|
+
* @example {
|
|
27487
|
+
* "result": {
|
|
27488
|
+
* "team_key": "receivables",
|
|
27489
|
+
* "previous_team_key": "dispatch",
|
|
27490
|
+
* "message": "New texts to numbers not set to a team, and calls that reach no team, now go to Receivables."
|
|
27491
|
+
* }
|
|
27492
|
+
* }
|
|
27493
|
+
*/
|
|
27340
27494
|
"application/json": {
|
|
27341
27495
|
result: {
|
|
27342
27496
|
/** @description The default team now */
|
|
@@ -28440,6 +28594,15 @@ export interface operations {
|
|
|
28440
28594
|
};
|
|
28441
28595
|
requestBody?: {
|
|
28442
28596
|
content: {
|
|
28597
|
+
/**
|
|
28598
|
+
* @example {
|
|
28599
|
+
* "team_key": "safety",
|
|
28600
|
+
* "number_id": 1,
|
|
28601
|
+
* "calls": true,
|
|
28602
|
+
* "texts": true,
|
|
28603
|
+
* "confirm_move": true
|
|
28604
|
+
* }
|
|
28605
|
+
*/
|
|
28443
28606
|
"application/json": {
|
|
28444
28607
|
/** @description An active team (from communication_teams.list) */
|
|
28445
28608
|
team_key: string;
|
|
@@ -28461,6 +28624,18 @@ export interface operations {
|
|
|
28461
28624
|
[name: string]: unknown;
|
|
28462
28625
|
};
|
|
28463
28626
|
content: {
|
|
28627
|
+
/**
|
|
28628
|
+
* @example {
|
|
28629
|
+
* "result": {
|
|
28630
|
+
* "number_id": 1,
|
|
28631
|
+
* "team_key": "safety",
|
|
28632
|
+
* "calls": true,
|
|
28633
|
+
* "texts": true,
|
|
28634
|
+
* "moved_from": "Texts to (713) 555-0142 go to Dispatch today.",
|
|
28635
|
+
* "message": "Calls to (713) 555-0142 now ring Safety & compliance. Texts to (713) 555-0142 now come to Safety & compliance."
|
|
28636
|
+
* }
|
|
28637
|
+
* }
|
|
28638
|
+
*/
|
|
28464
28639
|
"application/json": {
|
|
28465
28640
|
result: {
|
|
28466
28641
|
/** @description The phone number */
|
|
@@ -28910,6 +29085,11 @@ export interface operations {
|
|
|
28910
29085
|
};
|
|
28911
29086
|
requestBody?: {
|
|
28912
29087
|
content: {
|
|
29088
|
+
/**
|
|
29089
|
+
* @example {
|
|
29090
|
+
* "team_key": "dispatch"
|
|
29091
|
+
* }
|
|
29092
|
+
*/
|
|
28913
29093
|
"application/json": {
|
|
28914
29094
|
/** @description The team (from communication_teams.list) */
|
|
28915
29095
|
team_key: string;
|
|
@@ -28923,6 +29103,15 @@ export interface operations {
|
|
|
28923
29103
|
[name: string]: unknown;
|
|
28924
29104
|
};
|
|
28925
29105
|
content: {
|
|
29106
|
+
/**
|
|
29107
|
+
* @example {
|
|
29108
|
+
* "result": {
|
|
29109
|
+
* "identity_id": 1,
|
|
29110
|
+
* "forwarding_test_sent_at": "2026-10-29T19:28:52Z",
|
|
29111
|
+
* "message": "We sent a test to ops@carrier.example.com."
|
|
29112
|
+
* }
|
|
29113
|
+
* }
|
|
29114
|
+
*/
|
|
28926
29115
|
"application/json": {
|
|
28927
29116
|
result: {
|
|
28928
29117
|
/** @description The team's own address */
|
|
@@ -66635,7 +66824,11 @@ export interface operations {
|
|
|
66635
66824
|
* "at": "2026-10-20T14:00:00Z"
|
|
66636
66825
|
* }
|
|
66637
66826
|
* ],
|
|
66638
|
-
* "has_older_messages": false
|
|
66827
|
+
* "has_older_messages": false,
|
|
66828
|
+
* "candidate_id": null,
|
|
66829
|
+
* "agents": [],
|
|
66830
|
+
* "send_takes_over": null,
|
|
66831
|
+
* "text_feed": null
|
|
66639
66832
|
* }
|
|
66640
66833
|
* }
|
|
66641
66834
|
*/
|
|
@@ -68450,6 +68643,192 @@ export interface operations {
|
|
|
68450
68643
|
};
|
|
68451
68644
|
};
|
|
68452
68645
|
};
|
|
68646
|
+
"ops.inbox.conversations.split_message": {
|
|
68647
|
+
parameters: {
|
|
68648
|
+
query?: never;
|
|
68649
|
+
header?: {
|
|
68650
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
68651
|
+
"Idempotency-Key"?: string;
|
|
68652
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
68653
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
68654
|
+
};
|
|
68655
|
+
path?: never;
|
|
68656
|
+
cookie?: never;
|
|
68657
|
+
};
|
|
68658
|
+
requestBody?: {
|
|
68659
|
+
content: {
|
|
68660
|
+
/**
|
|
68661
|
+
* @example {
|
|
68662
|
+
* "thread_id": 1,
|
|
68663
|
+
* "inbound_message_id": 9
|
|
68664
|
+
* }
|
|
68665
|
+
*/
|
|
68666
|
+
"application/json": {
|
|
68667
|
+
/** @description The conversation */
|
|
68668
|
+
thread_id: number;
|
|
68669
|
+
/** @description A received email on the conversation (from inbox.conversations.get) */
|
|
68670
|
+
inbound_message_id: number;
|
|
68671
|
+
};
|
|
68672
|
+
};
|
|
68673
|
+
};
|
|
68674
|
+
responses: {
|
|
68675
|
+
/** @description The operation ran. */
|
|
68676
|
+
200: {
|
|
68677
|
+
headers: {
|
|
68678
|
+
[name: string]: unknown;
|
|
68679
|
+
};
|
|
68680
|
+
content: {
|
|
68681
|
+
/**
|
|
68682
|
+
* @example {
|
|
68683
|
+
* "result": {
|
|
68684
|
+
* "ok": true,
|
|
68685
|
+
* "message": "Moved the email to its own conversation.",
|
|
68686
|
+
* "conversation": {
|
|
68687
|
+
* "id": 1,
|
|
68688
|
+
* "channel": "email",
|
|
68689
|
+
* "subject": "Invoice INV-9",
|
|
68690
|
+
* "queue_key": "receivables",
|
|
68691
|
+
* "queue_keys": [
|
|
68692
|
+
* "receivables"
|
|
68693
|
+
* ],
|
|
68694
|
+
* "state": "awaiting_reply",
|
|
68695
|
+
* "assigned_user_id": null,
|
|
68696
|
+
* "member_user_ids": [],
|
|
68697
|
+
* "screened_category": null,
|
|
68698
|
+
* "related_type": null,
|
|
68699
|
+
* "related_id": null,
|
|
68700
|
+
* "awaiting_reply_since": "2026-10-20T14:00:00Z",
|
|
68701
|
+
* "last_inbound_at": "2026-10-20T14:00:00Z",
|
|
68702
|
+
* "last_outbound_at": null,
|
|
68703
|
+
* "closed_at": null
|
|
68704
|
+
* },
|
|
68705
|
+
* "new_thread_id": 9
|
|
68706
|
+
* }
|
|
68707
|
+
* }
|
|
68708
|
+
*/
|
|
68709
|
+
"application/json": {
|
|
68710
|
+
result: {
|
|
68711
|
+
/** @description True when the change was made */
|
|
68712
|
+
ok: boolean;
|
|
68713
|
+
/** @description What happened, ready to show a person */
|
|
68714
|
+
message: string;
|
|
68715
|
+
/** @description The conversation as it now stands */
|
|
68716
|
+
conversation: {
|
|
68717
|
+
/** @description Conversation id (thread_id on every conversation operation) */
|
|
68718
|
+
id: number;
|
|
68719
|
+
/** @description email or sms */
|
|
68720
|
+
channel?: string | null;
|
|
68721
|
+
/** @description Subject as the outside party wrote it */
|
|
68722
|
+
subject?: string | null;
|
|
68723
|
+
/** @description Home team */
|
|
68724
|
+
queue_key?: string | null;
|
|
68725
|
+
/** @description Home team first, then the teams it is also in */
|
|
68726
|
+
queue_keys: unknown[];
|
|
68727
|
+
/** @description open, awaiting_reply or closed */
|
|
68728
|
+
state: string;
|
|
68729
|
+
/** @description Owner */
|
|
68730
|
+
assigned_user_id?: number | null;
|
|
68731
|
+
/** @description Owner and everyone it is shared with */
|
|
68732
|
+
member_user_ids: unknown[];
|
|
68733
|
+
/** @description Why it is out of the main inbox (promotions, spam_suspect, auto_reply); empty when not screened */
|
|
68734
|
+
screened_category?: string | null;
|
|
68735
|
+
/** @description Linked record type, for example load or customer_invoice */
|
|
68736
|
+
related_type?: string | null;
|
|
68737
|
+
/** @description Linked record id */
|
|
68738
|
+
related_id?: number | null;
|
|
68739
|
+
/**
|
|
68740
|
+
* Format: date-time
|
|
68741
|
+
* @description When the outside party started waiting on us
|
|
68742
|
+
*/
|
|
68743
|
+
awaiting_reply_since?: string | null;
|
|
68744
|
+
/**
|
|
68745
|
+
* Format: date-time
|
|
68746
|
+
* @description Last message received
|
|
68747
|
+
*/
|
|
68748
|
+
last_inbound_at?: string | null;
|
|
68749
|
+
/**
|
|
68750
|
+
* Format: date-time
|
|
68751
|
+
* @description Last message sent
|
|
68752
|
+
*/
|
|
68753
|
+
last_outbound_at?: string | null;
|
|
68754
|
+
/**
|
|
68755
|
+
* Format: date-time
|
|
68756
|
+
* @description When it was closed
|
|
68757
|
+
*/
|
|
68758
|
+
closed_at?: string | null;
|
|
68759
|
+
};
|
|
68760
|
+
/** @description The new conversation that now holds the email */
|
|
68761
|
+
new_thread_id: number;
|
|
68762
|
+
};
|
|
68763
|
+
};
|
|
68764
|
+
};
|
|
68765
|
+
};
|
|
68766
|
+
202: components["responses"]["Proposal"];
|
|
68767
|
+
/** @description Refused: credits_exhausted. */
|
|
68768
|
+
402: {
|
|
68769
|
+
headers: {
|
|
68770
|
+
[name: string]: unknown;
|
|
68771
|
+
};
|
|
68772
|
+
content: {
|
|
68773
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68774
|
+
};
|
|
68775
|
+
};
|
|
68776
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
68777
|
+
403: {
|
|
68778
|
+
headers: {
|
|
68779
|
+
[name: string]: unknown;
|
|
68780
|
+
};
|
|
68781
|
+
content: {
|
|
68782
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68783
|
+
};
|
|
68784
|
+
};
|
|
68785
|
+
/** @description Refused: not_found. */
|
|
68786
|
+
404: {
|
|
68787
|
+
headers: {
|
|
68788
|
+
[name: string]: unknown;
|
|
68789
|
+
};
|
|
68790
|
+
content: {
|
|
68791
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68792
|
+
};
|
|
68793
|
+
};
|
|
68794
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
68795
|
+
409: {
|
|
68796
|
+
headers: {
|
|
68797
|
+
[name: string]: unknown;
|
|
68798
|
+
};
|
|
68799
|
+
content: {
|
|
68800
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68801
|
+
};
|
|
68802
|
+
};
|
|
68803
|
+
/** @description Refused: operation_retired. */
|
|
68804
|
+
410: {
|
|
68805
|
+
headers: {
|
|
68806
|
+
[name: string]: unknown;
|
|
68807
|
+
};
|
|
68808
|
+
content: {
|
|
68809
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68810
|
+
};
|
|
68811
|
+
};
|
|
68812
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
68813
|
+
422: {
|
|
68814
|
+
headers: {
|
|
68815
|
+
[name: string]: unknown;
|
|
68816
|
+
};
|
|
68817
|
+
content: {
|
|
68818
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68819
|
+
};
|
|
68820
|
+
};
|
|
68821
|
+
/** @description Refused: rate_limited. */
|
|
68822
|
+
429: {
|
|
68823
|
+
headers: {
|
|
68824
|
+
[name: string]: unknown;
|
|
68825
|
+
};
|
|
68826
|
+
content: {
|
|
68827
|
+
"application/json": components["schemas"]["OperationError"];
|
|
68828
|
+
};
|
|
68829
|
+
};
|
|
68830
|
+
};
|
|
68831
|
+
};
|
|
68453
68832
|
"ops.inbox.conversations.transfer_queue": {
|
|
68454
68833
|
parameters: {
|
|
68455
68834
|
query?: never;
|
|
@@ -85133,7 +85512,145 @@ export interface operations {
|
|
|
85133
85512
|
};
|
|
85134
85513
|
};
|
|
85135
85514
|
};
|
|
85136
|
-
"ops.loads.trip_stops.references.update": {
|
|
85515
|
+
"ops.loads.trip_stops.references.update": {
|
|
85516
|
+
parameters: {
|
|
85517
|
+
query?: never;
|
|
85518
|
+
header?: {
|
|
85519
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
85520
|
+
"Idempotency-Key"?: string;
|
|
85521
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
85522
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
85523
|
+
};
|
|
85524
|
+
path?: never;
|
|
85525
|
+
cookie?: never;
|
|
85526
|
+
};
|
|
85527
|
+
requestBody?: {
|
|
85528
|
+
content: {
|
|
85529
|
+
/**
|
|
85530
|
+
* @example {
|
|
85531
|
+
* "load_id": 1,
|
|
85532
|
+
* "stop_id": 1,
|
|
85533
|
+
* "reference_values": {
|
|
85534
|
+
* "pickup_number": "PU-123"
|
|
85535
|
+
* }
|
|
85536
|
+
* }
|
|
85537
|
+
*/
|
|
85538
|
+
"application/json": {
|
|
85539
|
+
/** @description Load id */
|
|
85540
|
+
load_id: number;
|
|
85541
|
+
/** @description Stop id on a trip segment of the load */
|
|
85542
|
+
stop_id: number;
|
|
85543
|
+
/** @description Reference numbers keyed by reference type (or existing row id), each up to 128 characters */
|
|
85544
|
+
reference_values?: Record<string, never>;
|
|
85545
|
+
/** @description Custom labels keyed the same way as reference_values */
|
|
85546
|
+
reference_labels?: Record<string, never>;
|
|
85547
|
+
};
|
|
85548
|
+
};
|
|
85549
|
+
};
|
|
85550
|
+
responses: {
|
|
85551
|
+
/** @description The operation ran. */
|
|
85552
|
+
200: {
|
|
85553
|
+
headers: {
|
|
85554
|
+
[name: string]: unknown;
|
|
85555
|
+
};
|
|
85556
|
+
content: {
|
|
85557
|
+
/**
|
|
85558
|
+
* @example {
|
|
85559
|
+
* "result": {
|
|
85560
|
+
* "load_id": 1,
|
|
85561
|
+
* "load_number": "AX-API-0001",
|
|
85562
|
+
* "operational_status": "open",
|
|
85563
|
+
* "updated_at": "2026-10-19T06:53:21Z",
|
|
85564
|
+
* "stop_id": 1
|
|
85565
|
+
* }
|
|
85566
|
+
* }
|
|
85567
|
+
*/
|
|
85568
|
+
"application/json": {
|
|
85569
|
+
result: {
|
|
85570
|
+
/** @description Load id */
|
|
85571
|
+
load_id: number;
|
|
85572
|
+
/** @description Load number shown to people */
|
|
85573
|
+
load_number?: string | null;
|
|
85574
|
+
/** @description Execution status after the change */
|
|
85575
|
+
operational_status?: string | null;
|
|
85576
|
+
/**
|
|
85577
|
+
* Format: date-time
|
|
85578
|
+
* @description When the load row last changed
|
|
85579
|
+
*/
|
|
85580
|
+
updated_at?: string | null;
|
|
85581
|
+
/** @description Stop id */
|
|
85582
|
+
stop_id: number;
|
|
85583
|
+
};
|
|
85584
|
+
};
|
|
85585
|
+
};
|
|
85586
|
+
};
|
|
85587
|
+
202: components["responses"]["Proposal"];
|
|
85588
|
+
/** @description Refused: credits_exhausted. */
|
|
85589
|
+
402: {
|
|
85590
|
+
headers: {
|
|
85591
|
+
[name: string]: unknown;
|
|
85592
|
+
};
|
|
85593
|
+
content: {
|
|
85594
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85595
|
+
};
|
|
85596
|
+
};
|
|
85597
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
85598
|
+
403: {
|
|
85599
|
+
headers: {
|
|
85600
|
+
[name: string]: unknown;
|
|
85601
|
+
};
|
|
85602
|
+
content: {
|
|
85603
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85604
|
+
};
|
|
85605
|
+
};
|
|
85606
|
+
/** @description Refused: not_found. */
|
|
85607
|
+
404: {
|
|
85608
|
+
headers: {
|
|
85609
|
+
[name: string]: unknown;
|
|
85610
|
+
};
|
|
85611
|
+
content: {
|
|
85612
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85613
|
+
};
|
|
85614
|
+
};
|
|
85615
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
85616
|
+
409: {
|
|
85617
|
+
headers: {
|
|
85618
|
+
[name: string]: unknown;
|
|
85619
|
+
};
|
|
85620
|
+
content: {
|
|
85621
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85622
|
+
};
|
|
85623
|
+
};
|
|
85624
|
+
/** @description Refused: operation_retired. */
|
|
85625
|
+
410: {
|
|
85626
|
+
headers: {
|
|
85627
|
+
[name: string]: unknown;
|
|
85628
|
+
};
|
|
85629
|
+
content: {
|
|
85630
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85631
|
+
};
|
|
85632
|
+
};
|
|
85633
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
85634
|
+
422: {
|
|
85635
|
+
headers: {
|
|
85636
|
+
[name: string]: unknown;
|
|
85637
|
+
};
|
|
85638
|
+
content: {
|
|
85639
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85640
|
+
};
|
|
85641
|
+
};
|
|
85642
|
+
/** @description Refused: rate_limited. */
|
|
85643
|
+
429: {
|
|
85644
|
+
headers: {
|
|
85645
|
+
[name: string]: unknown;
|
|
85646
|
+
};
|
|
85647
|
+
content: {
|
|
85648
|
+
"application/json": components["schemas"]["OperationError"];
|
|
85649
|
+
};
|
|
85650
|
+
};
|
|
85651
|
+
};
|
|
85652
|
+
};
|
|
85653
|
+
"ops.loads.trip_stops.reorder": {
|
|
85137
85654
|
parameters: {
|
|
85138
85655
|
query?: never;
|
|
85139
85656
|
header?: {
|
|
@@ -85150,21 +85667,29 @@ export interface operations {
|
|
|
85150
85667
|
/**
|
|
85151
85668
|
* @example {
|
|
85152
85669
|
* "load_id": 1,
|
|
85153
|
-
* "
|
|
85154
|
-
* "
|
|
85155
|
-
*
|
|
85156
|
-
*
|
|
85670
|
+
* "route_structure_version": 0,
|
|
85671
|
+
* "ordered_stop_ids": [
|
|
85672
|
+
* 2,
|
|
85673
|
+
* 1
|
|
85674
|
+
* ]
|
|
85157
85675
|
* }
|
|
85158
85676
|
*/
|
|
85159
85677
|
"application/json": {
|
|
85160
85678
|
/** @description Load id */
|
|
85161
85679
|
load_id: number;
|
|
85162
|
-
/** @description
|
|
85163
|
-
|
|
85164
|
-
/** @description
|
|
85165
|
-
|
|
85166
|
-
/** @description
|
|
85167
|
-
|
|
85680
|
+
/** @description Route version the change was made against, from the last read or write */
|
|
85681
|
+
route_structure_version: number;
|
|
85682
|
+
/** @description Save even when stop times would be out of order */
|
|
85683
|
+
acknowledge_schedule_conflict?: boolean;
|
|
85684
|
+
/** @description Every active stop id, in the new order */
|
|
85685
|
+
ordered_stop_ids: number[];
|
|
85686
|
+
/** @description Stops that move to another trip segment */
|
|
85687
|
+
segment_assignments?: {
|
|
85688
|
+
/** @description Stop id */
|
|
85689
|
+
stop_id: number;
|
|
85690
|
+
/** @description Trip segment the stop moves to */
|
|
85691
|
+
trip_id: number;
|
|
85692
|
+
}[] | null;
|
|
85168
85693
|
};
|
|
85169
85694
|
};
|
|
85170
85695
|
};
|
|
@@ -85182,7 +85707,22 @@ export interface operations {
|
|
|
85182
85707
|
* "load_number": "AX-API-0001",
|
|
85183
85708
|
* "operational_status": "open",
|
|
85184
85709
|
* "updated_at": "2026-10-19T06:53:21Z",
|
|
85185
|
-
* "
|
|
85710
|
+
* "route_structure_version": 1,
|
|
85711
|
+
* "schedule_conflicts": [],
|
|
85712
|
+
* "affected_trip_ids": [
|
|
85713
|
+
* {
|
|
85714
|
+
* "trip_id": 1
|
|
85715
|
+
* }
|
|
85716
|
+
* ],
|
|
85717
|
+
* "created_stop_ids": [],
|
|
85718
|
+
* "changed_stop_ids": [
|
|
85719
|
+
* {
|
|
85720
|
+
* "stop_id": 2
|
|
85721
|
+
* },
|
|
85722
|
+
* {
|
|
85723
|
+
* "stop_id": 1
|
|
85724
|
+
* }
|
|
85725
|
+
* ]
|
|
85186
85726
|
* }
|
|
85187
85727
|
* }
|
|
85188
85728
|
*/
|
|
@@ -85199,8 +85739,32 @@ export interface operations {
|
|
|
85199
85739
|
* @description When the load row last changed
|
|
85200
85740
|
*/
|
|
85201
85741
|
updated_at?: string | null;
|
|
85202
|
-
/** @description
|
|
85203
|
-
|
|
85742
|
+
/** @description Route version after the change */
|
|
85743
|
+
route_structure_version: number;
|
|
85744
|
+
/** @description Stop times now out of order */
|
|
85745
|
+
schedule_conflicts: {
|
|
85746
|
+
/** @description Earlier stop */
|
|
85747
|
+
before_stop_id: number;
|
|
85748
|
+
/** @description Later stop scheduled before it */
|
|
85749
|
+
after_stop_id: number;
|
|
85750
|
+
/** @description What is out of order */
|
|
85751
|
+
message: string;
|
|
85752
|
+
}[];
|
|
85753
|
+
/** @description Trip segments the change touched */
|
|
85754
|
+
affected_trip_ids: {
|
|
85755
|
+
/** @description Trip segment id */
|
|
85756
|
+
trip_id: number;
|
|
85757
|
+
}[];
|
|
85758
|
+
/** @description Stops added */
|
|
85759
|
+
created_stop_ids: {
|
|
85760
|
+
/** @description Stop id */
|
|
85761
|
+
stop_id: number;
|
|
85762
|
+
}[];
|
|
85763
|
+
/** @description Stops changed */
|
|
85764
|
+
changed_stop_ids: {
|
|
85765
|
+
/** @description Stop id */
|
|
85766
|
+
stop_id: number;
|
|
85767
|
+
}[];
|
|
85204
85768
|
};
|
|
85205
85769
|
};
|
|
85206
85770
|
};
|
|
@@ -85271,7 +85835,7 @@ export interface operations {
|
|
|
85271
85835
|
};
|
|
85272
85836
|
};
|
|
85273
85837
|
};
|
|
85274
|
-
"ops.loads.trip_stops.
|
|
85838
|
+
"ops.loads.trip_stops.save": {
|
|
85275
85839
|
parameters: {
|
|
85276
85840
|
query?: never;
|
|
85277
85841
|
header?: {
|
|
@@ -85289,28 +85853,103 @@ export interface operations {
|
|
|
85289
85853
|
* @example {
|
|
85290
85854
|
* "load_id": 1,
|
|
85291
85855
|
* "route_structure_version": 0,
|
|
85292
|
-
* "
|
|
85293
|
-
*
|
|
85294
|
-
*
|
|
85295
|
-
*
|
|
85856
|
+
* "insert_after_stop_id": 1,
|
|
85857
|
+
* "facility": {
|
|
85858
|
+
* "facility_mode": "link",
|
|
85859
|
+
* "location_id": 1
|
|
85860
|
+
* },
|
|
85861
|
+
* "schedule": {
|
|
85862
|
+
* "scheduling_mode": "appointment",
|
|
85863
|
+
* "appointment_at": "2026-10-21T09:00"
|
|
85864
|
+
* },
|
|
85865
|
+
* "references": {
|
|
85866
|
+
* "reference_values": {
|
|
85867
|
+
* "pickup_number": "PU-456"
|
|
85868
|
+
* }
|
|
85869
|
+
* }
|
|
85296
85870
|
* }
|
|
85297
85871
|
*/
|
|
85298
85872
|
"application/json": {
|
|
85299
85873
|
/** @description Load id */
|
|
85300
85874
|
load_id: number;
|
|
85301
|
-
/** @description
|
|
85302
|
-
|
|
85875
|
+
/** @description Stop to save; leave out to add a new stop */
|
|
85876
|
+
stop_id?: number | null;
|
|
85877
|
+
/** @description Route version the change was made against; required when adding a stop or changing its type */
|
|
85878
|
+
route_structure_version?: number | null;
|
|
85879
|
+
/** @description Trip segment for a new stop; defaults to the main trip */
|
|
85880
|
+
trip_id?: number | null;
|
|
85881
|
+
/** @description Add the new stop right after this stop */
|
|
85882
|
+
insert_after_stop_id?: number | null;
|
|
85883
|
+
/** @description Add the new stop right before this stop; with neither, it goes after the last upcoming stop */
|
|
85884
|
+
insert_before_stop_id?: number | null;
|
|
85885
|
+
/**
|
|
85886
|
+
* @description Stop type; a new stop defaults to delivery
|
|
85887
|
+
* @enum {string|null}
|
|
85888
|
+
*/
|
|
85889
|
+
stop_type?: "pickup" | "delivery" | "waypoint" | null;
|
|
85890
|
+
/** @description The site: the inputs of loads.trip_stops.facility.update */
|
|
85891
|
+
facility?: {
|
|
85892
|
+
/**
|
|
85893
|
+
* @description link a saved site or create a new one; defaults to link when location_id is given
|
|
85894
|
+
* @enum {string|null}
|
|
85895
|
+
*/
|
|
85896
|
+
facility_mode?: "link" | "new" | null;
|
|
85897
|
+
/** @description Saved customer site id (link mode) */
|
|
85898
|
+
location_id?: number | null;
|
|
85899
|
+
/** @description Company the new site belongs to (new mode) */
|
|
85900
|
+
parent_organization_id?: string | null;
|
|
85901
|
+
/** @description Confirm creating a new company for the site (new mode) */
|
|
85902
|
+
confirm_mint_parent?: boolean;
|
|
85903
|
+
/** @description The new site (new mode) */
|
|
85904
|
+
new_site?: {
|
|
85905
|
+
/** @description Facility name */
|
|
85906
|
+
company_name?: string | null;
|
|
85907
|
+
/** @description Street address */
|
|
85908
|
+
address_line1?: string | null;
|
|
85909
|
+
/** @description Suite or unit */
|
|
85910
|
+
address_line2?: string | null;
|
|
85911
|
+
/** @description City */
|
|
85912
|
+
city?: string | null;
|
|
85913
|
+
/** @description State */
|
|
85914
|
+
state?: string | null;
|
|
85915
|
+
/** @description ZIP or postal code */
|
|
85916
|
+
postal_code?: string | null;
|
|
85917
|
+
/** @description Existing company id for the site */
|
|
85918
|
+
organization_id?: number | null;
|
|
85919
|
+
} | null;
|
|
85920
|
+
} | null;
|
|
85921
|
+
/** @description scheduling_mode, appointment_at, window_begin_at, window_end_at, facility local */
|
|
85922
|
+
schedule?: {
|
|
85923
|
+
/**
|
|
85924
|
+
* @description appointment for a set time, fcfs for a window
|
|
85925
|
+
* @enum {string}
|
|
85926
|
+
*/
|
|
85927
|
+
scheduling_mode: "appointment" | "fcfs";
|
|
85928
|
+
/** @description Appointment time, facility local (appointment mode) */
|
|
85929
|
+
appointment_at?: string | null;
|
|
85930
|
+
/** @description Window start, facility local (fcfs mode) */
|
|
85931
|
+
window_begin_at?: string | null;
|
|
85932
|
+
/** @description Window end, facility local (fcfs mode) */
|
|
85933
|
+
window_end_at?: string | null;
|
|
85934
|
+
} | null;
|
|
85935
|
+
/** @description reference_values and reference_labels, as in loads.trip_stops.references.update */
|
|
85936
|
+
references?: {
|
|
85937
|
+
/** @description Reference numbers keyed by reference type (or existing row id), each up to 128 characters */
|
|
85938
|
+
reference_values?: Record<string, never>;
|
|
85939
|
+
/** @description Custom labels keyed the same way as reference_values */
|
|
85940
|
+
reference_labels?: Record<string, never>;
|
|
85941
|
+
} | null;
|
|
85942
|
+
/** @description eta_at, arrived_at, departed_at, facility local */
|
|
85943
|
+
times?: {
|
|
85944
|
+
/** @description ETA, facility local; blank leaves it as it is */
|
|
85945
|
+
eta_at?: string | null;
|
|
85946
|
+
/** @description Arrival time, facility local; blank leaves it as it is */
|
|
85947
|
+
arrived_at?: string | null;
|
|
85948
|
+
/** @description Departure time, facility local; blank leaves it as it is */
|
|
85949
|
+
departed_at?: string | null;
|
|
85950
|
+
} | null;
|
|
85303
85951
|
/** @description Save even when stop times would be out of order */
|
|
85304
85952
|
acknowledge_schedule_conflict?: boolean;
|
|
85305
|
-
/** @description Every active stop id, in the new order */
|
|
85306
|
-
ordered_stop_ids: number[];
|
|
85307
|
-
/** @description Stops that move to another trip segment */
|
|
85308
|
-
segment_assignments?: {
|
|
85309
|
-
/** @description Stop id */
|
|
85310
|
-
stop_id: number;
|
|
85311
|
-
/** @description Trip segment the stop moves to */
|
|
85312
|
-
trip_id: number;
|
|
85313
|
-
}[] | null;
|
|
85314
85953
|
};
|
|
85315
85954
|
};
|
|
85316
85955
|
};
|
|
@@ -85327,23 +85966,13 @@ export interface operations {
|
|
|
85327
85966
|
* "load_id": 1,
|
|
85328
85967
|
* "load_number": "AX-API-0001",
|
|
85329
85968
|
* "operational_status": "open",
|
|
85330
|
-
* "updated_at": "2026-10-
|
|
85969
|
+
* "updated_at": "2026-10-29T10:02:40Z",
|
|
85970
|
+
* "stop_id": 3,
|
|
85971
|
+
* "created": true,
|
|
85972
|
+
* "location_id": 1,
|
|
85331
85973
|
* "route_structure_version": 1,
|
|
85332
85974
|
* "schedule_conflicts": [],
|
|
85333
|
-
* "
|
|
85334
|
-
* {
|
|
85335
|
-
* "trip_id": 1
|
|
85336
|
-
* }
|
|
85337
|
-
* ],
|
|
85338
|
-
* "created_stop_ids": [],
|
|
85339
|
-
* "changed_stop_ids": [
|
|
85340
|
-
* {
|
|
85341
|
-
* "stop_id": 2
|
|
85342
|
-
* },
|
|
85343
|
-
* {
|
|
85344
|
-
* "stop_id": 1
|
|
85345
|
-
* }
|
|
85346
|
-
* ]
|
|
85975
|
+
* "warnings": []
|
|
85347
85976
|
* }
|
|
85348
85977
|
* }
|
|
85349
85978
|
*/
|
|
@@ -85360,9 +85989,15 @@ export interface operations {
|
|
|
85360
85989
|
* @description When the load row last changed
|
|
85361
85990
|
*/
|
|
85362
85991
|
updated_at?: string | null;
|
|
85363
|
-
/** @description
|
|
85992
|
+
/** @description The saved stop */
|
|
85993
|
+
stop_id: number;
|
|
85994
|
+
/** @description True when the save added the stop */
|
|
85995
|
+
created: boolean;
|
|
85996
|
+
/** @description Customer site the stop is linked to after the save */
|
|
85997
|
+
location_id?: number | null;
|
|
85998
|
+
/** @description Route version after the save */
|
|
85364
85999
|
route_structure_version: number;
|
|
85365
|
-
/** @description
|
|
86000
|
+
/** @description Acknowledged stop times now out of order */
|
|
85366
86001
|
schedule_conflicts: {
|
|
85367
86002
|
/** @description Earlier stop */
|
|
85368
86003
|
before_stop_id: number;
|
|
@@ -85371,20 +86006,10 @@ export interface operations {
|
|
|
85371
86006
|
/** @description What is out of order */
|
|
85372
86007
|
message: string;
|
|
85373
86008
|
}[];
|
|
85374
|
-
/** @description
|
|
85375
|
-
|
|
85376
|
-
/** @description
|
|
85377
|
-
|
|
85378
|
-
}[];
|
|
85379
|
-
/** @description Stops added */
|
|
85380
|
-
created_stop_ids: {
|
|
85381
|
-
/** @description Stop id */
|
|
85382
|
-
stop_id: number;
|
|
85383
|
-
}[];
|
|
85384
|
-
/** @description Stops changed */
|
|
85385
|
-
changed_stop_ids: {
|
|
85386
|
-
/** @description Stop id */
|
|
85387
|
-
stop_id: number;
|
|
86009
|
+
/** @description Things still missing to complete the stop, such as documents */
|
|
86010
|
+
warnings: {
|
|
86011
|
+
/** @description Warning text */
|
|
86012
|
+
message: string;
|
|
85388
86013
|
}[];
|
|
85389
86014
|
};
|
|
85390
86015
|
};
|
|
@@ -92688,7 +93313,138 @@ export interface operations {
|
|
|
92688
93313
|
};
|
|
92689
93314
|
};
|
|
92690
93315
|
};
|
|
92691
|
-
"ops.maintenance.reconciliations.reattach": {
|
|
93316
|
+
"ops.maintenance.reconciliations.reattach": {
|
|
93317
|
+
parameters: {
|
|
93318
|
+
query?: never;
|
|
93319
|
+
header?: {
|
|
93320
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
93321
|
+
"Idempotency-Key"?: string;
|
|
93322
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
93323
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
93324
|
+
};
|
|
93325
|
+
path?: never;
|
|
93326
|
+
cookie?: never;
|
|
93327
|
+
};
|
|
93328
|
+
requestBody?: {
|
|
93329
|
+
content: {
|
|
93330
|
+
/**
|
|
93331
|
+
* @example {
|
|
93332
|
+
* "reconciliation_id": 1,
|
|
93333
|
+
* "purchase_order_id": 2
|
|
93334
|
+
* }
|
|
93335
|
+
*/
|
|
93336
|
+
"application/json": {
|
|
93337
|
+
/** @description The bill review (reconciliation) id */
|
|
93338
|
+
reconciliation_id: number;
|
|
93339
|
+
/** @description The purchase order the bill belongs to */
|
|
93340
|
+
purchase_order_id: number | string | null;
|
|
93341
|
+
};
|
|
93342
|
+
};
|
|
93343
|
+
};
|
|
93344
|
+
responses: {
|
|
93345
|
+
/** @description The operation ran. */
|
|
93346
|
+
200: {
|
|
93347
|
+
headers: {
|
|
93348
|
+
[name: string]: unknown;
|
|
93349
|
+
};
|
|
93350
|
+
content: {
|
|
93351
|
+
/**
|
|
93352
|
+
* @example {
|
|
93353
|
+
* "result": {
|
|
93354
|
+
* "id": 2,
|
|
93355
|
+
* "message": "Bill attached to PO-184694. Review it below.",
|
|
93356
|
+
* "pending": true,
|
|
93357
|
+
* "resolution": null,
|
|
93358
|
+
* "purchase_order_id": 2,
|
|
93359
|
+
* "work_order_id": 1
|
|
93360
|
+
* }
|
|
93361
|
+
* }
|
|
93362
|
+
*/
|
|
93363
|
+
"application/json": {
|
|
93364
|
+
result: {
|
|
93365
|
+
/** @description The bill review id */
|
|
93366
|
+
id?: number | null;
|
|
93367
|
+
/** @description What happened, in the operator's words */
|
|
93368
|
+
message: string;
|
|
93369
|
+
/** @description The bill still needs an answer */
|
|
93370
|
+
pending: boolean;
|
|
93371
|
+
/** @description How the bill was settled, once it is */
|
|
93372
|
+
resolution?: string | null;
|
|
93373
|
+
/** @description The purchase order the bill is on now */
|
|
93374
|
+
purchase_order_id?: number | null;
|
|
93375
|
+
/** @description The repair the bill is for */
|
|
93376
|
+
work_order_id?: number | null;
|
|
93377
|
+
};
|
|
93378
|
+
};
|
|
93379
|
+
};
|
|
93380
|
+
};
|
|
93381
|
+
202: components["responses"]["Proposal"];
|
|
93382
|
+
/** @description Refused: credits_exhausted. */
|
|
93383
|
+
402: {
|
|
93384
|
+
headers: {
|
|
93385
|
+
[name: string]: unknown;
|
|
93386
|
+
};
|
|
93387
|
+
content: {
|
|
93388
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93389
|
+
};
|
|
93390
|
+
};
|
|
93391
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
93392
|
+
403: {
|
|
93393
|
+
headers: {
|
|
93394
|
+
[name: string]: unknown;
|
|
93395
|
+
};
|
|
93396
|
+
content: {
|
|
93397
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93398
|
+
};
|
|
93399
|
+
};
|
|
93400
|
+
/** @description Refused: not_found. */
|
|
93401
|
+
404: {
|
|
93402
|
+
headers: {
|
|
93403
|
+
[name: string]: unknown;
|
|
93404
|
+
};
|
|
93405
|
+
content: {
|
|
93406
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93407
|
+
};
|
|
93408
|
+
};
|
|
93409
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
93410
|
+
409: {
|
|
93411
|
+
headers: {
|
|
93412
|
+
[name: string]: unknown;
|
|
93413
|
+
};
|
|
93414
|
+
content: {
|
|
93415
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93416
|
+
};
|
|
93417
|
+
};
|
|
93418
|
+
/** @description Refused: operation_retired. */
|
|
93419
|
+
410: {
|
|
93420
|
+
headers: {
|
|
93421
|
+
[name: string]: unknown;
|
|
93422
|
+
};
|
|
93423
|
+
content: {
|
|
93424
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93425
|
+
};
|
|
93426
|
+
};
|
|
93427
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
93428
|
+
422: {
|
|
93429
|
+
headers: {
|
|
93430
|
+
[name: string]: unknown;
|
|
93431
|
+
};
|
|
93432
|
+
content: {
|
|
93433
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93434
|
+
};
|
|
93435
|
+
};
|
|
93436
|
+
/** @description Refused: rate_limited. */
|
|
93437
|
+
429: {
|
|
93438
|
+
headers: {
|
|
93439
|
+
[name: string]: unknown;
|
|
93440
|
+
};
|
|
93441
|
+
content: {
|
|
93442
|
+
"application/json": components["schemas"]["OperationError"];
|
|
93443
|
+
};
|
|
93444
|
+
};
|
|
93445
|
+
};
|
|
93446
|
+
};
|
|
93447
|
+
"ops.maintenance.reconciliations.receive_close": {
|
|
92692
93448
|
parameters: {
|
|
92693
93449
|
query?: never;
|
|
92694
93450
|
header?: {
|
|
@@ -92704,15 +93460,12 @@ export interface operations {
|
|
|
92704
93460
|
content: {
|
|
92705
93461
|
/**
|
|
92706
93462
|
* @example {
|
|
92707
|
-
* "reconciliation_id": 1
|
|
92708
|
-
* "purchase_order_id": 2
|
|
93463
|
+
* "reconciliation_id": 1
|
|
92709
93464
|
* }
|
|
92710
93465
|
*/
|
|
92711
93466
|
"application/json": {
|
|
92712
93467
|
/** @description The bill review (reconciliation) id */
|
|
92713
93468
|
reconciliation_id: number;
|
|
92714
|
-
/** @description The purchase order the bill belongs to */
|
|
92715
|
-
purchase_order_id: number | string | null;
|
|
92716
93469
|
};
|
|
92717
93470
|
};
|
|
92718
93471
|
};
|
|
@@ -92726,12 +93479,12 @@ export interface operations {
|
|
|
92726
93479
|
/**
|
|
92727
93480
|
* @example {
|
|
92728
93481
|
* "result": {
|
|
92729
|
-
* "id":
|
|
92730
|
-
* "message": "
|
|
92731
|
-
* "pending":
|
|
92732
|
-
* "resolution":
|
|
92733
|
-
* "purchase_order_id":
|
|
92734
|
-
* "work_order_id":
|
|
93482
|
+
* "id": 1,
|
|
93483
|
+
* "message": "Done. The bill is closed out at what they charged.",
|
|
93484
|
+
* "pending": false,
|
|
93485
|
+
* "resolution": "closed",
|
|
93486
|
+
* "purchase_order_id": 5,
|
|
93487
|
+
* "work_order_id": 5
|
|
92735
93488
|
* }
|
|
92736
93489
|
* }
|
|
92737
93490
|
*/
|
|
@@ -92819,7 +93572,7 @@ export interface operations {
|
|
|
92819
93572
|
};
|
|
92820
93573
|
};
|
|
92821
93574
|
};
|
|
92822
|
-
"ops.maintenance.reconciliations.
|
|
93575
|
+
"ops.maintenance.reconciliations.second_ok": {
|
|
92823
93576
|
parameters: {
|
|
92824
93577
|
query?: never;
|
|
92825
93578
|
header?: {
|
|
@@ -92855,7 +93608,7 @@ export interface operations {
|
|
|
92855
93608
|
* @example {
|
|
92856
93609
|
* "result": {
|
|
92857
93610
|
* "id": 1,
|
|
92858
|
-
* "message": "Done.
|
|
93611
|
+
* "message": "Done. You gave the second OK. The bill can be paid now.",
|
|
92859
93612
|
* "pending": false,
|
|
92860
93613
|
* "resolution": "closed",
|
|
92861
93614
|
* "purchase_order_id": 5,
|
|
@@ -92947,7 +93700,7 @@ export interface operations {
|
|
|
92947
93700
|
};
|
|
92948
93701
|
};
|
|
92949
93702
|
};
|
|
92950
|
-
"ops.maintenance.reconciliations.
|
|
93703
|
+
"ops.maintenance.reconciliations.split": {
|
|
92951
93704
|
parameters: {
|
|
92952
93705
|
query?: never;
|
|
92953
93706
|
header?: {
|
|
@@ -92963,12 +93716,24 @@ export interface operations {
|
|
|
92963
93716
|
content: {
|
|
92964
93717
|
/**
|
|
92965
93718
|
* @example {
|
|
92966
|
-
* "reconciliation_id": 1
|
|
93719
|
+
* "reconciliation_id": 1,
|
|
93720
|
+
* "allocations": {
|
|
93721
|
+
* "1": 2,
|
|
93722
|
+
* "2": 2,
|
|
93723
|
+
* "3": 1,
|
|
93724
|
+
* "4": 1
|
|
93725
|
+
* }
|
|
92967
93726
|
* }
|
|
92968
93727
|
*/
|
|
92969
93728
|
"application/json": {
|
|
92970
93729
|
/** @description The bill review (reconciliation) id */
|
|
92971
93730
|
reconciliation_id: number;
|
|
93731
|
+
/** @description Per bill line id: a work order id, or {work order id: amount} */
|
|
93732
|
+
allocations: {
|
|
93733
|
+
[key: string]: number | string | {
|
|
93734
|
+
[key: string]: number | string | null;
|
|
93735
|
+
};
|
|
93736
|
+
} | unknown[] | null;
|
|
92972
93737
|
};
|
|
92973
93738
|
};
|
|
92974
93739
|
};
|
|
@@ -92983,11 +93748,11 @@ export interface operations {
|
|
|
92983
93748
|
* @example {
|
|
92984
93749
|
* "result": {
|
|
92985
93750
|
* "id": 1,
|
|
92986
|
-
* "message": "
|
|
93751
|
+
* "message": "Split: T-1043 $425.00, TR-55 $275.00",
|
|
92987
93752
|
* "pending": false,
|
|
92988
|
-
* "resolution": "
|
|
92989
|
-
* "purchase_order_id":
|
|
92990
|
-
* "work_order_id":
|
|
93753
|
+
* "resolution": "accepted",
|
|
93754
|
+
* "purchase_order_id": 3,
|
|
93755
|
+
* "work_order_id": 1
|
|
92991
93756
|
* }
|
|
92992
93757
|
* }
|
|
92993
93758
|
*/
|
|
@@ -93075,7 +93840,7 @@ export interface operations {
|
|
|
93075
93840
|
};
|
|
93076
93841
|
};
|
|
93077
93842
|
};
|
|
93078
|
-
"ops.maintenance.
|
|
93843
|
+
"ops.maintenance.repair_trips.orders.pdf": {
|
|
93079
93844
|
parameters: {
|
|
93080
93845
|
query?: never;
|
|
93081
93846
|
header?: {
|
|
@@ -93091,24 +93856,12 @@ export interface operations {
|
|
|
93091
93856
|
content: {
|
|
93092
93857
|
/**
|
|
93093
93858
|
* @example {
|
|
93094
|
-
* "
|
|
93095
|
-
* "allocations": {
|
|
93096
|
-
* "1": 2,
|
|
93097
|
-
* "2": 2,
|
|
93098
|
-
* "3": 1,
|
|
93099
|
-
* "4": 1
|
|
93100
|
-
* }
|
|
93859
|
+
* "repair_trip_id": 1
|
|
93101
93860
|
* }
|
|
93102
93861
|
*/
|
|
93103
93862
|
"application/json": {
|
|
93104
|
-
/** @description The
|
|
93105
|
-
|
|
93106
|
-
/** @description Per bill line id: a work order id, or {work order id: amount} */
|
|
93107
|
-
allocations: {
|
|
93108
|
-
[key: string]: number | string | {
|
|
93109
|
-
[key: string]: number | string | null;
|
|
93110
|
-
};
|
|
93111
|
-
} | unknown[] | null;
|
|
93863
|
+
/** @description The repair trip id */
|
|
93864
|
+
repair_trip_id: number;
|
|
93112
93865
|
};
|
|
93113
93866
|
};
|
|
93114
93867
|
};
|
|
@@ -93122,29 +93875,23 @@ export interface operations {
|
|
|
93122
93875
|
/**
|
|
93123
93876
|
* @example {
|
|
93124
93877
|
* "result": {
|
|
93125
|
-
* "
|
|
93126
|
-
* "
|
|
93127
|
-
* "
|
|
93128
|
-
* "resolution": "accepted",
|
|
93129
|
-
* "purchase_order_id": 3,
|
|
93130
|
-
* "work_order_id": 1
|
|
93878
|
+
* "file_url": "http://localhost/api/v1/files/ZXlKcGRpSTZJa0pyUVVaeFdrdHFUbm9yUldnMlIySkNUbXhQVEZFOVBTSXNJblpoYkhWbElqb2lUUzlsWlRaaU5qSTVjRGhSYjI5dVRXcFhNekpCTW1oRlNHSktTbUZ5YW5JMmJrTnlWVGhTWkRsdlFqaDJURmhDU1RaQmRtMWxTRXR0V0d3MVJEbGpXakpXV1N0dFNsWk1ORk5vZDI1NFFUWkJUekp0TTNCNFlWUnBNek15Wm1vNE5rSjZkWFJTYW05amVYWXhVMXBuZFhsaVJHcHJWV3BsUkU5V2VtdHRjM2RhVkdWNU16VTBNR3RqT0doWFRtRkllVXRGTTBsU1NFOXZNV2RGVDNGRVoxZEhkM2hQUXl0V05sQnJkbTlwU0VSUVJuQXdWbXhrWTJObmMxVnlZV2xCSWl3aWJXRmpJam9pTWpnek5UUTJabVJqTW1RMk9UQTVNREptWVRRMU1ETTRNRFZqTlRjNFpqazNNVEV3TmpjeFptVm1ZV0ZqT0dKbFlqYzFOemd6TTJSaFl6UmtPVFZqTlNJc0luUmhaeUk2SWlKOQ?expires=1790867400&signature=52f3bcec57421d2cfd5d718b526d571533cb48b32f59cfa163ea5444163acc5c",
|
|
93879
|
+
* "expires_at": "2026-10-01T15:10:00Z",
|
|
93880
|
+
* "pages": 1
|
|
93131
93881
|
* }
|
|
93132
93882
|
* }
|
|
93133
93883
|
*/
|
|
93134
93884
|
"application/json": {
|
|
93135
93885
|
result: {
|
|
93136
|
-
/** @description
|
|
93137
|
-
|
|
93138
|
-
/**
|
|
93139
|
-
|
|
93140
|
-
|
|
93141
|
-
|
|
93142
|
-
|
|
93143
|
-
|
|
93144
|
-
|
|
93145
|
-
purchase_order_id?: number | null;
|
|
93146
|
-
/** @description The repair the bill is for */
|
|
93147
|
-
work_order_id?: number | null;
|
|
93886
|
+
/** @description Short-lived download link */
|
|
93887
|
+
file_url: string;
|
|
93888
|
+
/**
|
|
93889
|
+
* Format: date-time
|
|
93890
|
+
* @description When the link stops working
|
|
93891
|
+
*/
|
|
93892
|
+
expires_at: string;
|
|
93893
|
+
/** @description How many pages the PDF has */
|
|
93894
|
+
pages: number;
|
|
93148
93895
|
};
|
|
93149
93896
|
};
|
|
93150
93897
|
};
|
|
@@ -93215,7 +93962,7 @@ export interface operations {
|
|
|
93215
93962
|
};
|
|
93216
93963
|
};
|
|
93217
93964
|
};
|
|
93218
|
-
"ops.maintenance.
|
|
93965
|
+
"ops.maintenance.repairs.attention.dismiss": {
|
|
93219
93966
|
parameters: {
|
|
93220
93967
|
query?: never;
|
|
93221
93968
|
header?: {
|
|
@@ -93231,12 +93978,18 @@ export interface operations {
|
|
|
93231
93978
|
content: {
|
|
93232
93979
|
/**
|
|
93233
93980
|
* @example {
|
|
93234
|
-
* "
|
|
93981
|
+
* "work_order_id": 3,
|
|
93982
|
+
* "rule": "no_shop"
|
|
93235
93983
|
* }
|
|
93236
93984
|
*/
|
|
93237
93985
|
"application/json": {
|
|
93238
|
-
/** @description The repair
|
|
93239
|
-
|
|
93986
|
+
/** @description The repair (work order) id */
|
|
93987
|
+
work_order_id: number;
|
|
93988
|
+
/**
|
|
93989
|
+
* @description The Needs you rule to snooze, as the repair shows it
|
|
93990
|
+
* @enum {string|null}
|
|
93991
|
+
*/
|
|
93992
|
+
rule: "no_shop" | "at_shop_no_bill" | "back_no_bill" | "unpaid" | "late_back" | null;
|
|
93240
93993
|
};
|
|
93241
93994
|
};
|
|
93242
93995
|
};
|
|
@@ -93250,23 +94003,40 @@ export interface operations {
|
|
|
93250
94003
|
/**
|
|
93251
94004
|
* @example {
|
|
93252
94005
|
* "result": {
|
|
93253
|
-
* "
|
|
93254
|
-
*
|
|
93255
|
-
*
|
|
94006
|
+
* "work_order": {
|
|
94007
|
+
* "id": 3,
|
|
94008
|
+
* "number": "WO-65003",
|
|
94009
|
+
* "status": "open"
|
|
94010
|
+
* },
|
|
94011
|
+
* "message": "Snoozed until Oct 8.",
|
|
94012
|
+
* "warnings": [],
|
|
94013
|
+
* "snoozed_until": "2026-10-08T15:00:00+00:00"
|
|
93256
94014
|
* }
|
|
93257
94015
|
* }
|
|
93258
94016
|
*/
|
|
93259
94017
|
"application/json": {
|
|
93260
94018
|
result: {
|
|
93261
|
-
/** @description
|
|
93262
|
-
|
|
94019
|
+
/** @description The repair after the change */
|
|
94020
|
+
work_order: {
|
|
94021
|
+
/** @description Work order id */
|
|
94022
|
+
id: number;
|
|
94023
|
+
/** @description Work order number as people see it (WO-1042) */
|
|
94024
|
+
number: string;
|
|
94025
|
+
/** @description Work order status after the change */
|
|
94026
|
+
status: string;
|
|
94027
|
+
};
|
|
94028
|
+
/** @description What happened, in the operator's words */
|
|
94029
|
+
message: string;
|
|
94030
|
+
/** @description What did not go through; empty when everything did */
|
|
94031
|
+
warnings: {
|
|
94032
|
+
/** @description One thing that did not go through */
|
|
94033
|
+
message: string;
|
|
94034
|
+
}[];
|
|
93263
94035
|
/**
|
|
93264
94036
|
* Format: date-time
|
|
93265
|
-
* @description When the
|
|
94037
|
+
* @description When the item can show again
|
|
93266
94038
|
*/
|
|
93267
|
-
|
|
93268
|
-
/** @description How many pages the PDF has */
|
|
93269
|
-
pages: number;
|
|
94039
|
+
snoozed_until?: string | null;
|
|
93270
94040
|
};
|
|
93271
94041
|
};
|
|
93272
94042
|
};
|
|
@@ -93337,7 +94107,7 @@ export interface operations {
|
|
|
93337
94107
|
};
|
|
93338
94108
|
};
|
|
93339
94109
|
};
|
|
93340
|
-
"ops.maintenance.repairs.
|
|
94110
|
+
"ops.maintenance.repairs.close_bill": {
|
|
93341
94111
|
parameters: {
|
|
93342
94112
|
query?: never;
|
|
93343
94113
|
header?: {
|
|
@@ -93353,18 +94123,15 @@ export interface operations {
|
|
|
93353
94123
|
content: {
|
|
93354
94124
|
/**
|
|
93355
94125
|
* @example {
|
|
93356
|
-
* "work_order_id":
|
|
93357
|
-
* "
|
|
94126
|
+
* "work_order_id": 8,
|
|
94127
|
+
* "actual_total": 1310.38
|
|
93358
94128
|
* }
|
|
93359
94129
|
*/
|
|
93360
94130
|
"application/json": {
|
|
93361
94131
|
/** @description The repair (work order) id */
|
|
93362
94132
|
work_order_id: number;
|
|
93363
|
-
/**
|
|
93364
|
-
|
|
93365
|
-
* @enum {string|null}
|
|
93366
|
-
*/
|
|
93367
|
-
rule: "no_shop" | "at_shop_no_bill" | "back_no_bill" | "unpaid" | "late_back" | null;
|
|
94133
|
+
/** @description What the shop charged, in dollars */
|
|
94134
|
+
actual_total: number | null;
|
|
93368
94135
|
};
|
|
93369
94136
|
};
|
|
93370
94137
|
};
|
|
@@ -93379,13 +94146,12 @@ export interface operations {
|
|
|
93379
94146
|
* @example {
|
|
93380
94147
|
* "result": {
|
|
93381
94148
|
* "work_order": {
|
|
93382
|
-
* "id":
|
|
93383
|
-
* "number": "WO-
|
|
93384
|
-
* "status": "
|
|
94149
|
+
* "id": 8,
|
|
94150
|
+
* "number": "WO-65008",
|
|
94151
|
+
* "status": "completed"
|
|
93385
94152
|
* },
|
|
93386
|
-
* "message": "
|
|
93387
|
-
* "warnings": []
|
|
93388
|
-
* "snoozed_until": "2026-10-08T15:00:00+00:00"
|
|
94153
|
+
* "message": "Bill closed out at $1,310.38. Mark it paid once you pay.",
|
|
94154
|
+
* "warnings": []
|
|
93389
94155
|
* }
|
|
93390
94156
|
* }
|
|
93391
94157
|
*/
|
|
@@ -93407,11 +94173,6 @@ export interface operations {
|
|
|
93407
94173
|
/** @description One thing that did not go through */
|
|
93408
94174
|
message: string;
|
|
93409
94175
|
}[];
|
|
93410
|
-
/**
|
|
93411
|
-
* Format: date-time
|
|
93412
|
-
* @description When the item can show again
|
|
93413
|
-
*/
|
|
93414
|
-
snoozed_until?: string | null;
|
|
93415
94176
|
};
|
|
93416
94177
|
};
|
|
93417
94178
|
};
|
|
@@ -93482,7 +94243,7 @@ export interface operations {
|
|
|
93482
94243
|
};
|
|
93483
94244
|
};
|
|
93484
94245
|
};
|
|
93485
|
-
"ops.maintenance.repairs.
|
|
94246
|
+
"ops.maintenance.repairs.create": {
|
|
93486
94247
|
parameters: {
|
|
93487
94248
|
query?: never;
|
|
93488
94249
|
header?: {
|
|
@@ -93498,15 +94259,72 @@ export interface operations {
|
|
|
93498
94259
|
content: {
|
|
93499
94260
|
/**
|
|
93500
94261
|
* @example {
|
|
93501
|
-
* "
|
|
93502
|
-
* "
|
|
94262
|
+
* "unit_type": "truck",
|
|
94263
|
+
* "unit_id": 2,
|
|
94264
|
+
* "problem_note": "Windshield cracked across the driver side.",
|
|
94265
|
+
* "going_along": "only"
|
|
93503
94266
|
* }
|
|
93504
94267
|
*/
|
|
93505
94268
|
"application/json": {
|
|
93506
|
-
/** @description
|
|
93507
|
-
|
|
93508
|
-
/** @description
|
|
93509
|
-
|
|
94269
|
+
/** @description truck or trailer */
|
|
94270
|
+
unit_type: string | null;
|
|
94271
|
+
/** @description The truck or trailer id */
|
|
94272
|
+
unit_id: number | string | null;
|
|
94273
|
+
/** @description What is wrong, in your words */
|
|
94274
|
+
problem_note?: string | null;
|
|
94275
|
+
/** @description What it sounds like, when known */
|
|
94276
|
+
suspected_cause?: string | null;
|
|
94277
|
+
/** @description Where the suspected cause came from: suggested or edited */
|
|
94278
|
+
suspected_cause_source?: string | null;
|
|
94279
|
+
/** @description The unit cannot run */
|
|
94280
|
+
emergency?: boolean | null;
|
|
94281
|
+
/** @description The jobs, in order; each is a job or a code, never both */
|
|
94282
|
+
tasks?: {
|
|
94283
|
+
/** @description A job from the task catalog */
|
|
94284
|
+
task_id?: number | null;
|
|
94285
|
+
/** @description A bare maintenance code instead of a job */
|
|
94286
|
+
maintenance_code?: string | null;
|
|
94287
|
+
/** @description Free text on a diagnose line */
|
|
94288
|
+
qualifier?: string | null;
|
|
94289
|
+
/** @description How the job was picked: manual or suggested */
|
|
94290
|
+
source?: string | null;
|
|
94291
|
+
/** @description The suggestion confidence, 0 to 1 */
|
|
94292
|
+
confidence?: number | null;
|
|
94293
|
+
}[] | null;
|
|
94294
|
+
/** @description The due service this report starts from */
|
|
94295
|
+
schedule_asset_state_id?: number | null;
|
|
94296
|
+
/** @description Who noticed: me or driver; blank infers it */
|
|
94297
|
+
reported_by?: string | null;
|
|
94298
|
+
/** @description shop (the unit goes in) or on_site (they come to it) */
|
|
94299
|
+
service_location?: string | null;
|
|
94300
|
+
/** @description The shop (partner) id; blank picks the shop next */
|
|
94301
|
+
organization_id?: number | string | null;
|
|
94302
|
+
/** @description The shop location, when the shop has more than one */
|
|
94303
|
+
organization_location_id?: number | string | null;
|
|
94304
|
+
/** @description now, appointment or window */
|
|
94305
|
+
when?: string | null;
|
|
94306
|
+
/** @description Appointment or window start, on the shop's clock (YYYY-MM-DDTHH:MM) */
|
|
94307
|
+
scheduled_for?: string | null;
|
|
94308
|
+
/** @description Window end, on the shop's clock (YYYY-MM-DDTHH:MM) */
|
|
94309
|
+
scheduled_until?: string | null;
|
|
94310
|
+
/** @description The driver taking the unit in */
|
|
94311
|
+
assigned_driver_user_id?: number | null;
|
|
94312
|
+
/** @description Rough cost, in dollars */
|
|
94313
|
+
expected_amount?: number | null;
|
|
94314
|
+
/** @description Where the rough cost came from */
|
|
94315
|
+
expected_amount_source?: string | null;
|
|
94316
|
+
/** @description Email the order to the shop */
|
|
94317
|
+
email_shop?: boolean | null;
|
|
94318
|
+
/** @description only (just this unit) or with (other units go along) */
|
|
94319
|
+
going_along: string | null;
|
|
94320
|
+
/** @description Scheduled services on the unit to do on the same visit (state ids) */
|
|
94321
|
+
same_visit_schedule_ids?: number[] | null;
|
|
94322
|
+
/** @description Open repairs on the unit to do on the same visit */
|
|
94323
|
+
same_visit_work_order_ids?: number[] | null;
|
|
94324
|
+
/** @description Repairs on other units that travel with a picked open repair */
|
|
94325
|
+
same_visit_companion_ids?: number[] | null;
|
|
94326
|
+
/** @description The due services this report counts toward (state ids from maintenance.repairs.due_service_matches). Leave it out to count every match; an empty list counts none */
|
|
94327
|
+
counts_for_state_ids?: number[] | null;
|
|
93510
94328
|
};
|
|
93511
94329
|
};
|
|
93512
94330
|
};
|
|
@@ -93521,12 +94339,16 @@ export interface operations {
|
|
|
93521
94339
|
* @example {
|
|
93522
94340
|
* "result": {
|
|
93523
94341
|
* "work_order": {
|
|
93524
|
-
* "id":
|
|
93525
|
-
* "number": "WO-
|
|
93526
|
-
* "status": "
|
|
94342
|
+
* "id": 11,
|
|
94343
|
+
* "number": "WO-00001",
|
|
94344
|
+
* "status": "open"
|
|
93527
94345
|
* },
|
|
93528
|
-
* "message": "
|
|
93529
|
-
* "warnings": []
|
|
94346
|
+
* "message": "Reported.",
|
|
94347
|
+
* "warnings": [],
|
|
94348
|
+
* "shop_picked": false,
|
|
94349
|
+
* "paperwork_failed": false,
|
|
94350
|
+
* "counts_for": [],
|
|
94351
|
+
* "routed_from": null
|
|
93530
94352
|
* }
|
|
93531
94353
|
* }
|
|
93532
94354
|
*/
|
|
@@ -93548,6 +94370,23 @@ export interface operations {
|
|
|
93548
94370
|
/** @description One thing that did not go through */
|
|
93549
94371
|
message: string;
|
|
93550
94372
|
}[];
|
|
94373
|
+
/** @description Whether a shop was picked; without one the shop is picked next */
|
|
94374
|
+
shop_picked: boolean;
|
|
94375
|
+
/** @description The repair was reported but the shop order did not go out; message says why */
|
|
94376
|
+
paperwork_failed: boolean;
|
|
94377
|
+
/** @description The due services this repair counts toward */
|
|
94378
|
+
counts_for: {
|
|
94379
|
+
/** @description Due state id of the service counted */
|
|
94380
|
+
state_id: number;
|
|
94381
|
+
/** @description PM schedule */
|
|
94382
|
+
schedule_id: number;
|
|
94383
|
+
/** @description Schedule name */
|
|
94384
|
+
title: string;
|
|
94385
|
+
/** @description The unit number the service is on */
|
|
94386
|
+
unit_label: string;
|
|
94387
|
+
}[];
|
|
94388
|
+
/** @description The unit picked, when the repair was filed on the reefer unit installed on it */
|
|
94389
|
+
routed_from?: string | null;
|
|
93551
94390
|
};
|
|
93552
94391
|
};
|
|
93553
94392
|
};
|
|
@@ -93618,7 +94457,7 @@ export interface operations {
|
|
|
93618
94457
|
};
|
|
93619
94458
|
};
|
|
93620
94459
|
};
|
|
93621
|
-
"ops.maintenance.repairs.
|
|
94460
|
+
"ops.maintenance.repairs.due_service_matches": {
|
|
93622
94461
|
parameters: {
|
|
93623
94462
|
query?: never;
|
|
93624
94463
|
header?: {
|
|
@@ -93635,69 +94474,26 @@ export interface operations {
|
|
|
93635
94474
|
/**
|
|
93636
94475
|
* @example {
|
|
93637
94476
|
* "unit_type": "truck",
|
|
93638
|
-
* "unit_id":
|
|
93639
|
-
* "
|
|
93640
|
-
*
|
|
94477
|
+
* "unit_id": 1,
|
|
94478
|
+
* "task_ids": [
|
|
94479
|
+
* 2
|
|
94480
|
+
* ]
|
|
93641
94481
|
* }
|
|
93642
94482
|
*/
|
|
93643
94483
|
"application/json": {
|
|
93644
|
-
/**
|
|
93645
|
-
|
|
93646
|
-
|
|
93647
|
-
|
|
93648
|
-
|
|
93649
|
-
|
|
93650
|
-
|
|
93651
|
-
|
|
93652
|
-
|
|
93653
|
-
|
|
93654
|
-
|
|
93655
|
-
|
|
93656
|
-
|
|
93657
|
-
tasks?: {
|
|
93658
|
-
/** @description A job from the task catalog */
|
|
93659
|
-
task_id?: number | null;
|
|
93660
|
-
/** @description A bare maintenance code instead of a job */
|
|
93661
|
-
maintenance_code?: string | null;
|
|
93662
|
-
/** @description Free text on a diagnose line */
|
|
93663
|
-
qualifier?: string | null;
|
|
93664
|
-
/** @description How the job was picked: manual or suggested */
|
|
93665
|
-
source?: string | null;
|
|
93666
|
-
/** @description The suggestion confidence, 0 to 1 */
|
|
93667
|
-
confidence?: number | null;
|
|
93668
|
-
}[] | null;
|
|
93669
|
-
/** @description The due service this report starts from */
|
|
93670
|
-
schedule_asset_state_id?: number | null;
|
|
93671
|
-
/** @description Who noticed: me or driver; blank infers it */
|
|
93672
|
-
reported_by?: string | null;
|
|
93673
|
-
/** @description shop (the unit goes in) or on_site (they come to it) */
|
|
93674
|
-
service_location?: string | null;
|
|
93675
|
-
/** @description The shop (partner) id; blank picks the shop next */
|
|
93676
|
-
organization_id?: number | string | null;
|
|
93677
|
-
/** @description The shop location, when the shop has more than one */
|
|
93678
|
-
organization_location_id?: number | string | null;
|
|
93679
|
-
/** @description now, appointment or window */
|
|
93680
|
-
when?: string | null;
|
|
93681
|
-
/** @description Appointment or window start, on the shop's clock (YYYY-MM-DDTHH:MM) */
|
|
93682
|
-
scheduled_for?: string | null;
|
|
93683
|
-
/** @description Window end, on the shop's clock (YYYY-MM-DDTHH:MM) */
|
|
93684
|
-
scheduled_until?: string | null;
|
|
93685
|
-
/** @description The driver taking the unit in */
|
|
93686
|
-
assigned_driver_user_id?: number | null;
|
|
93687
|
-
/** @description Rough cost, in dollars */
|
|
93688
|
-
expected_amount?: number | null;
|
|
93689
|
-
/** @description Where the rough cost came from */
|
|
93690
|
-
expected_amount_source?: string | null;
|
|
93691
|
-
/** @description Email the order to the shop */
|
|
93692
|
-
email_shop?: boolean | null;
|
|
93693
|
-
/** @description only (just this unit) or with (other units go along) */
|
|
93694
|
-
going_along: string | null;
|
|
93695
|
-
/** @description Scheduled services on the unit to do on the same visit (state ids) */
|
|
93696
|
-
same_visit_schedule_ids?: number[] | null;
|
|
93697
|
-
/** @description Open repairs on the unit to do on the same visit */
|
|
93698
|
-
same_visit_work_order_ids?: number[] | null;
|
|
93699
|
-
/** @description Repairs on other units that travel with a picked open repair */
|
|
93700
|
-
same_visit_companion_ids?: number[] | null;
|
|
94484
|
+
/**
|
|
94485
|
+
* @description truck, trailer or a reefer unit (equipment_component)
|
|
94486
|
+
* @enum {string}
|
|
94487
|
+
*/
|
|
94488
|
+
unit_type: "truck" | "trailer" | "equipment_component";
|
|
94489
|
+
/** @description The unit the problem was reported on */
|
|
94490
|
+
unit_id: number;
|
|
94491
|
+
/** @description The picked jobs (up to 3) */
|
|
94492
|
+
task_ids?: number[] | null;
|
|
94493
|
+
/** @description Jobs picked by code only (up to 3) */
|
|
94494
|
+
maintenance_codes?: string[] | null;
|
|
94495
|
+
/** @description The repair being edited, so the services it already counts still show */
|
|
94496
|
+
work_order_id?: number | null;
|
|
93701
94497
|
};
|
|
93702
94498
|
};
|
|
93703
94499
|
};
|
|
@@ -93711,40 +94507,65 @@ export interface operations {
|
|
|
93711
94507
|
/**
|
|
93712
94508
|
* @example {
|
|
93713
94509
|
* "result": {
|
|
93714
|
-
* "
|
|
93715
|
-
*
|
|
93716
|
-
*
|
|
93717
|
-
* "status": "open"
|
|
93718
|
-
* },
|
|
93719
|
-
* "message": "Reported.",
|
|
93720
|
-
* "warnings": [],
|
|
93721
|
-
* "shop_picked": false,
|
|
93722
|
-
* "paperwork_failed": false
|
|
94510
|
+
* "matches": [],
|
|
94511
|
+
* "file_on": null,
|
|
94512
|
+
* "warnings": []
|
|
93723
94513
|
* }
|
|
93724
94514
|
* }
|
|
93725
94515
|
*/
|
|
93726
94516
|
"application/json": {
|
|
93727
94517
|
result: {
|
|
93728
|
-
/** @description
|
|
93729
|
-
|
|
93730
|
-
/** @description
|
|
93731
|
-
|
|
93732
|
-
/** @description
|
|
93733
|
-
|
|
93734
|
-
/** @description
|
|
94518
|
+
/** @description Due services on the unit (or its installed reefer unit) that the picked jobs would count toward */
|
|
94519
|
+
matches: {
|
|
94520
|
+
/** @description Pass in counts_for_state_ids to count it */
|
|
94521
|
+
state_id: number;
|
|
94522
|
+
/** @description PM schedule */
|
|
94523
|
+
schedule_id: number;
|
|
94524
|
+
/** @description Schedule name */
|
|
94525
|
+
title: string;
|
|
94526
|
+
/** @description The unit the service is on */
|
|
94527
|
+
unit: {
|
|
94528
|
+
/** @description truck, trailer or equipment_component (a reefer unit) */
|
|
94529
|
+
type: string;
|
|
94530
|
+
/** @description The unit id */
|
|
94531
|
+
id: number;
|
|
94532
|
+
/** @description The unit number */
|
|
94533
|
+
label: string;
|
|
94534
|
+
};
|
|
94535
|
+
/** @description The service is on the reefer unit installed on the unit asked about */
|
|
94536
|
+
on_installed_unit: boolean;
|
|
94537
|
+
/** @description Which picked job the service would count for */
|
|
94538
|
+
claimed_by: {
|
|
94539
|
+
/** @description The picked job that matches the service; null when a bare code does */
|
|
94540
|
+
task_id?: number | null;
|
|
94541
|
+
/** @description The picked code that matches the service; null when a job does */
|
|
94542
|
+
maintenance_code?: string | null;
|
|
94543
|
+
};
|
|
94544
|
+
/** @description ok, due_soon, overdue, meter_unknown or never_serviced */
|
|
93735
94545
|
status: string;
|
|
93736
|
-
|
|
93737
|
-
|
|
93738
|
-
|
|
93739
|
-
|
|
94546
|
+
/** @description The due state in words */
|
|
94547
|
+
status_label: string;
|
|
94548
|
+
/** @description Status tone for the due state */
|
|
94549
|
+
tone: string;
|
|
94550
|
+
/** @description How far from due (for example Due in 53 hr); blank when nothing is measurable */
|
|
94551
|
+
due_line: string;
|
|
94552
|
+
}[];
|
|
94553
|
+
/** @description The reefer unit the repair is filed on when every job is that unit's service; null otherwise */
|
|
94554
|
+
file_on?: {
|
|
94555
|
+
/** @description equipment_component (a reefer unit) */
|
|
94556
|
+
type: string;
|
|
94557
|
+
/** @description The reefer unit id */
|
|
94558
|
+
id: number;
|
|
94559
|
+
/** @description The reefer unit number */
|
|
94560
|
+
label: string;
|
|
94561
|
+
/** @description The reefer unit number and the unit it is installed on, as one label */
|
|
94562
|
+
full_label: string;
|
|
94563
|
+
} | null;
|
|
94564
|
+
/** @description Reefer unit services that would not count on this unit */
|
|
93740
94565
|
warnings: {
|
|
93741
|
-
/** @description
|
|
94566
|
+
/** @description Why a reefer unit service would not count, as a sentence */
|
|
93742
94567
|
message: string;
|
|
93743
94568
|
}[];
|
|
93744
|
-
/** @description Whether a shop was picked; without one the shop is picked next */
|
|
93745
|
-
shop_picked: boolean;
|
|
93746
|
-
/** @description The repair was reported but the shop order did not go out; message says why */
|
|
93747
|
-
paperwork_failed: boolean;
|
|
93748
94569
|
};
|
|
93749
94570
|
};
|
|
93750
94571
|
};
|
|
@@ -93996,6 +94817,8 @@ export interface operations {
|
|
|
93996
94817
|
"application/json": {
|
|
93997
94818
|
/** @description The repair (work order) id */
|
|
93998
94819
|
work_order_id: number;
|
|
94820
|
+
/** @description The due services this report counts toward (state ids from maintenance.repairs.due_service_matches). Leave it out to count every match; an empty list counts none */
|
|
94821
|
+
counts_for_state_ids?: number[] | null;
|
|
93999
94822
|
/** @description What is wrong, in your words */
|
|
94000
94823
|
problem_note: string | null;
|
|
94001
94824
|
/** @description The unit cannot run */
|
|
@@ -94033,7 +94856,8 @@ export interface operations {
|
|
|
94033
94856
|
* },
|
|
94034
94857
|
* "message": "Saved.",
|
|
94035
94858
|
* "warnings": [],
|
|
94036
|
-
* "order_reissued": false
|
|
94859
|
+
* "order_reissued": false,
|
|
94860
|
+
* "counts_for": []
|
|
94037
94861
|
* }
|
|
94038
94862
|
* }
|
|
94039
94863
|
*/
|
|
@@ -94057,6 +94881,17 @@ export interface operations {
|
|
|
94057
94881
|
}[];
|
|
94058
94882
|
/** @description The shop got a new order for the changed jobs */
|
|
94059
94883
|
order_reissued: boolean;
|
|
94884
|
+
/** @description The due services this repair counts toward after the save */
|
|
94885
|
+
counts_for: {
|
|
94886
|
+
/** @description Due state id of the service counted */
|
|
94887
|
+
state_id: number;
|
|
94888
|
+
/** @description PM schedule */
|
|
94889
|
+
schedule_id: number;
|
|
94890
|
+
/** @description Schedule name */
|
|
94891
|
+
title: string;
|
|
94892
|
+
/** @description The unit number the service is on */
|
|
94893
|
+
unit_label: string;
|
|
94894
|
+
}[];
|
|
94060
94895
|
};
|
|
94061
94896
|
};
|
|
94062
94897
|
};
|
|
@@ -94451,7 +95286,193 @@ export interface operations {
|
|
|
94451
95286
|
};
|
|
94452
95287
|
};
|
|
94453
95288
|
};
|
|
94454
|
-
"ops.maintenance.repairs.trip_units.create": {
|
|
95289
|
+
"ops.maintenance.repairs.trip_units.create": {
|
|
95290
|
+
parameters: {
|
|
95291
|
+
query?: never;
|
|
95292
|
+
header?: {
|
|
95293
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
95294
|
+
"Idempotency-Key"?: string;
|
|
95295
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
95296
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
95297
|
+
};
|
|
95298
|
+
path?: never;
|
|
95299
|
+
cookie?: never;
|
|
95300
|
+
};
|
|
95301
|
+
requestBody?: {
|
|
95302
|
+
content: {
|
|
95303
|
+
/**
|
|
95304
|
+
* @example {
|
|
95305
|
+
* "work_order_id": 3,
|
|
95306
|
+
* "unit_type": "trailer",
|
|
95307
|
+
* "unit_id": 1,
|
|
95308
|
+
* "problem_note": "Trailer lights out"
|
|
95309
|
+
* }
|
|
95310
|
+
*/
|
|
95311
|
+
"application/json": {
|
|
95312
|
+
/** @description The repair (work order) id */
|
|
95313
|
+
work_order_id: number;
|
|
95314
|
+
/** @description The due services this report counts toward (state ids from maintenance.repairs.due_service_matches). Leave it out to count every match; an empty list counts none */
|
|
95315
|
+
counts_for_state_ids?: number[] | null;
|
|
95316
|
+
/** @description truck or trailer */
|
|
95317
|
+
unit_type: string | null;
|
|
95318
|
+
/** @description The truck or trailer going along */
|
|
95319
|
+
unit_id: number | string | null;
|
|
95320
|
+
/** @description What is wrong with it, in your words */
|
|
95321
|
+
problem_note?: string | null;
|
|
95322
|
+
/** @description Its jobs, in order; blank takes this repair's jobs */
|
|
95323
|
+
chips?: {
|
|
95324
|
+
/** @description A job from the task catalog */
|
|
95325
|
+
task_id?: number | null;
|
|
95326
|
+
/** @description A bare maintenance code instead of a job */
|
|
95327
|
+
maintenance_code?: string | null;
|
|
95328
|
+
/** @description Free text on a diagnose line */
|
|
95329
|
+
qualifier?: string | null;
|
|
95330
|
+
/** @description How the job was picked: manual or suggested */
|
|
95331
|
+
source?: string | null;
|
|
95332
|
+
/** @description The suggestion confidence, 0 to 1 */
|
|
95333
|
+
confidence?: number | null;
|
|
95334
|
+
}[] | null;
|
|
95335
|
+
};
|
|
95336
|
+
};
|
|
95337
|
+
};
|
|
95338
|
+
responses: {
|
|
95339
|
+
/** @description The operation ran. */
|
|
95340
|
+
200: {
|
|
95341
|
+
headers: {
|
|
95342
|
+
[name: string]: unknown;
|
|
95343
|
+
};
|
|
95344
|
+
content: {
|
|
95345
|
+
/**
|
|
95346
|
+
* @example {
|
|
95347
|
+
* "result": {
|
|
95348
|
+
* "work_order": {
|
|
95349
|
+
* "id": 3,
|
|
95350
|
+
* "number": "WO-65003",
|
|
95351
|
+
* "status": "open"
|
|
95352
|
+
* },
|
|
95353
|
+
* "message": "Trailer #TR-API is going along as (WO 1).",
|
|
95354
|
+
* "warnings": [],
|
|
95355
|
+
* "companion": {
|
|
95356
|
+
* "id": 11,
|
|
95357
|
+
* "number": "WO-00001"
|
|
95358
|
+
* },
|
|
95359
|
+
* "paperwork_failed": false,
|
|
95360
|
+
* "counts_for": [],
|
|
95361
|
+
* "routed_from": null
|
|
95362
|
+
* }
|
|
95363
|
+
* }
|
|
95364
|
+
*/
|
|
95365
|
+
"application/json": {
|
|
95366
|
+
result: {
|
|
95367
|
+
/** @description The repair after the change */
|
|
95368
|
+
work_order: {
|
|
95369
|
+
/** @description Work order id */
|
|
95370
|
+
id: number;
|
|
95371
|
+
/** @description Work order number as people see it (WO-1042) */
|
|
95372
|
+
number: string;
|
|
95373
|
+
/** @description Work order status after the change */
|
|
95374
|
+
status: string;
|
|
95375
|
+
};
|
|
95376
|
+
/** @description What happened, in the operator's words */
|
|
95377
|
+
message: string;
|
|
95378
|
+
/** @description What did not go through; empty when everything did */
|
|
95379
|
+
warnings: {
|
|
95380
|
+
/** @description One thing that did not go through */
|
|
95381
|
+
message: string;
|
|
95382
|
+
}[];
|
|
95383
|
+
/** @description The new repair for the unit going along */
|
|
95384
|
+
companion: {
|
|
95385
|
+
/** @description Work order id */
|
|
95386
|
+
id: number;
|
|
95387
|
+
/** @description Work order number as people see it */
|
|
95388
|
+
number: string;
|
|
95389
|
+
};
|
|
95390
|
+
/** @description The unit is going along but its order did not go out; message says why */
|
|
95391
|
+
paperwork_failed: boolean;
|
|
95392
|
+
/** @description The due services this repair counts toward */
|
|
95393
|
+
counts_for: {
|
|
95394
|
+
/** @description Due state id of the service counted */
|
|
95395
|
+
state_id: number;
|
|
95396
|
+
/** @description PM schedule */
|
|
95397
|
+
schedule_id: number;
|
|
95398
|
+
/** @description Schedule name */
|
|
95399
|
+
title: string;
|
|
95400
|
+
/** @description The unit number the service is on */
|
|
95401
|
+
unit_label: string;
|
|
95402
|
+
}[];
|
|
95403
|
+
/** @description The unit picked, when the repair was filed on the reefer unit installed on it */
|
|
95404
|
+
routed_from?: string | null;
|
|
95405
|
+
};
|
|
95406
|
+
};
|
|
95407
|
+
};
|
|
95408
|
+
};
|
|
95409
|
+
202: components["responses"]["Proposal"];
|
|
95410
|
+
/** @description Refused: credits_exhausted. */
|
|
95411
|
+
402: {
|
|
95412
|
+
headers: {
|
|
95413
|
+
[name: string]: unknown;
|
|
95414
|
+
};
|
|
95415
|
+
content: {
|
|
95416
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95417
|
+
};
|
|
95418
|
+
};
|
|
95419
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
95420
|
+
403: {
|
|
95421
|
+
headers: {
|
|
95422
|
+
[name: string]: unknown;
|
|
95423
|
+
};
|
|
95424
|
+
content: {
|
|
95425
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95426
|
+
};
|
|
95427
|
+
};
|
|
95428
|
+
/** @description Refused: not_found. */
|
|
95429
|
+
404: {
|
|
95430
|
+
headers: {
|
|
95431
|
+
[name: string]: unknown;
|
|
95432
|
+
};
|
|
95433
|
+
content: {
|
|
95434
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95435
|
+
};
|
|
95436
|
+
};
|
|
95437
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
95438
|
+
409: {
|
|
95439
|
+
headers: {
|
|
95440
|
+
[name: string]: unknown;
|
|
95441
|
+
};
|
|
95442
|
+
content: {
|
|
95443
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95444
|
+
};
|
|
95445
|
+
};
|
|
95446
|
+
/** @description Refused: operation_retired. */
|
|
95447
|
+
410: {
|
|
95448
|
+
headers: {
|
|
95449
|
+
[name: string]: unknown;
|
|
95450
|
+
};
|
|
95451
|
+
content: {
|
|
95452
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95453
|
+
};
|
|
95454
|
+
};
|
|
95455
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
95456
|
+
422: {
|
|
95457
|
+
headers: {
|
|
95458
|
+
[name: string]: unknown;
|
|
95459
|
+
};
|
|
95460
|
+
content: {
|
|
95461
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95462
|
+
};
|
|
95463
|
+
};
|
|
95464
|
+
/** @description Refused: rate_limited. */
|
|
95465
|
+
429: {
|
|
95466
|
+
headers: {
|
|
95467
|
+
[name: string]: unknown;
|
|
95468
|
+
};
|
|
95469
|
+
content: {
|
|
95470
|
+
"application/json": components["schemas"]["OperationError"];
|
|
95471
|
+
};
|
|
95472
|
+
};
|
|
95473
|
+
};
|
|
95474
|
+
};
|
|
95475
|
+
"ops.maintenance.repairs.unit.move": {
|
|
94455
95476
|
parameters: {
|
|
94456
95477
|
query?: never;
|
|
94457
95478
|
header?: {
|
|
@@ -94465,36 +95486,17 @@ export interface operations {
|
|
|
94465
95486
|
};
|
|
94466
95487
|
requestBody?: {
|
|
94467
95488
|
content: {
|
|
94468
|
-
/**
|
|
94469
|
-
* @example {
|
|
94470
|
-
* "work_order_id": 3,
|
|
94471
|
-
* "unit_type": "trailer",
|
|
94472
|
-
* "unit_id": 1,
|
|
94473
|
-
* "problem_note": "Trailer lights out"
|
|
94474
|
-
* }
|
|
94475
|
-
*/
|
|
94476
95489
|
"application/json": {
|
|
94477
95490
|
/** @description The repair (work order) id */
|
|
94478
95491
|
work_order_id: number;
|
|
94479
|
-
/** @description
|
|
95492
|
+
/** @description trailer or a reefer unit (equipment_component) */
|
|
94480
95493
|
unit_type: string | null;
|
|
94481
|
-
/** @description The
|
|
95494
|
+
/** @description The trailer, or the reefer unit installed on it when the repair was fixed */
|
|
94482
95495
|
unit_id: number | string | null;
|
|
94483
|
-
/** @description
|
|
94484
|
-
|
|
94485
|
-
/** @description
|
|
94486
|
-
|
|
94487
|
-
/** @description A job from the task catalog */
|
|
94488
|
-
task_id?: number | null;
|
|
94489
|
-
/** @description A bare maintenance code instead of a job */
|
|
94490
|
-
maintenance_code?: string | null;
|
|
94491
|
-
/** @description Free text on a diagnose line */
|
|
94492
|
-
qualifier?: string | null;
|
|
94493
|
-
/** @description How the job was picked: manual or suggested */
|
|
94494
|
-
source?: string | null;
|
|
94495
|
-
/** @description The suggestion confidence, 0 to 1 */
|
|
94496
|
-
confidence?: number | null;
|
|
94497
|
-
}[] | null;
|
|
95496
|
+
/** @description Reefer hours at the repair when it has none; blank uses the latest reading within 48 hours before it was fixed */
|
|
95497
|
+
engine_hours?: number | string | null;
|
|
95498
|
+
/** @description Scheduled services on the new unit to count it for */
|
|
95499
|
+
count_for_schedule_ids?: number[] | null;
|
|
94498
95500
|
};
|
|
94499
95501
|
};
|
|
94500
95502
|
};
|
|
@@ -94505,35 +95507,35 @@ export interface operations {
|
|
|
94505
95507
|
[name: string]: unknown;
|
|
94506
95508
|
};
|
|
94507
95509
|
content: {
|
|
94508
|
-
/**
|
|
94509
|
-
* @example {
|
|
94510
|
-
* "result": {
|
|
94511
|
-
* "work_order": {
|
|
94512
|
-
* "id": 3,
|
|
94513
|
-
* "number": "WO-65003",
|
|
94514
|
-
* "status": "open"
|
|
94515
|
-
* },
|
|
94516
|
-
* "message": "Trailer #TR-API is going along as (WO 1).",
|
|
94517
|
-
* "warnings": [],
|
|
94518
|
-
* "companion": {
|
|
94519
|
-
* "id": 11,
|
|
94520
|
-
* "number": "WO-00001"
|
|
94521
|
-
* },
|
|
94522
|
-
* "paperwork_failed": false
|
|
94523
|
-
* }
|
|
94524
|
-
* }
|
|
94525
|
-
*/
|
|
94526
95510
|
"application/json": {
|
|
94527
95511
|
result: {
|
|
94528
|
-
/** @description The repair after the
|
|
95512
|
+
/** @description The repair after the move */
|
|
94529
95513
|
work_order: {
|
|
94530
95514
|
/** @description Work order id */
|
|
94531
95515
|
id: number;
|
|
94532
95516
|
/** @description Work order number as people see it (WO-1042) */
|
|
94533
95517
|
number: string;
|
|
94534
|
-
/** @description Work order status after the
|
|
95518
|
+
/** @description Work order status after the move */
|
|
94535
95519
|
status: string;
|
|
95520
|
+
/** @description The unit the repair is on now */
|
|
95521
|
+
unit_label: string;
|
|
94536
95522
|
};
|
|
95523
|
+
/** @description The unit the repair was on */
|
|
95524
|
+
moved_from: string;
|
|
95525
|
+
/** @description Scheduled service ids the repair now counts for */
|
|
95526
|
+
counted: unknown[];
|
|
95527
|
+
/** @description The hours the repair carries on the new unit; null when it carries none */
|
|
95528
|
+
hours_filled?: {
|
|
95529
|
+
/** @description The hours written to the repair */
|
|
95530
|
+
engine_hours: number;
|
|
95531
|
+
/** @description Where the reading came from: manual when given, else the meter log source (samsara_daily, work_order, receipt or shop_arrival) */
|
|
95532
|
+
source: string;
|
|
95533
|
+
/**
|
|
95534
|
+
* Format: date-time
|
|
95535
|
+
* @description When the reading was taken
|
|
95536
|
+
*/
|
|
95537
|
+
as_of: string;
|
|
95538
|
+
} | null;
|
|
94537
95539
|
/** @description What happened, in the operator's words */
|
|
94538
95540
|
message: string;
|
|
94539
95541
|
/** @description What did not go through; empty when everything did */
|
|
@@ -94541,15 +95543,6 @@ export interface operations {
|
|
|
94541
95543
|
/** @description One thing that did not go through */
|
|
94542
95544
|
message: string;
|
|
94543
95545
|
}[];
|
|
94544
|
-
/** @description The new repair for the unit going along */
|
|
94545
|
-
companion: {
|
|
94546
|
-
/** @description Work order id */
|
|
94547
|
-
id: number;
|
|
94548
|
-
/** @description Work order number as people see it */
|
|
94549
|
-
number: string;
|
|
94550
|
-
};
|
|
94551
|
-
/** @description The unit is going along but its order did not go out; message says why */
|
|
94552
|
-
paperwork_failed: boolean;
|
|
94553
95546
|
};
|
|
94554
95547
|
};
|
|
94555
95548
|
};
|
|
@@ -95874,6 +96867,8 @@ export interface operations {
|
|
|
95874
96867
|
schedule_ids: number[] | null;
|
|
95875
96868
|
/** @description Odometer at the repair, in miles, when the repair has none */
|
|
95876
96869
|
odometer_miles?: number | string | null;
|
|
96870
|
+
/** @description Engine or reefer hours at the repair, when the repair has none. Blank on a reefer unit uses the meter log reading from up to 48 hours before it was fixed. */
|
|
96871
|
+
engine_hours?: number | string | null;
|
|
95877
96872
|
};
|
|
95878
96873
|
};
|
|
95879
96874
|
};
|
|
@@ -97165,6 +98160,18 @@ export interface operations {
|
|
|
97165
98160
|
trip?: Record<string, never> | null;
|
|
97166
98161
|
trip_propagation?: Record<string, never> | null;
|
|
97167
98162
|
};
|
|
98163
|
+
/** @description Reefer hours taken from the meter log because none were given: the repair counts toward a service with an hours interval and a reading was on file in the 48 hours before it finished. Null when nothing was filled. */
|
|
98164
|
+
meter_filled?: {
|
|
98165
|
+
/** @description The reefer hours written to the repair */
|
|
98166
|
+
engine_hours: number;
|
|
98167
|
+
/** @description Where the reading came from: samsara_daily, manual, work_order, receipt or shop_arrival */
|
|
98168
|
+
source: string;
|
|
98169
|
+
/**
|
|
98170
|
+
* Format: date-time
|
|
98171
|
+
* @description When the reading was taken
|
|
98172
|
+
*/
|
|
98173
|
+
as_of: string;
|
|
98174
|
+
} | null;
|
|
97168
98175
|
};
|
|
97169
98176
|
};
|
|
97170
98177
|
};
|
|
@@ -102032,6 +103039,18 @@ export interface operations {
|
|
|
102032
103039
|
}[];
|
|
102033
103040
|
/** @description How many other repairs on the trip were marked fixed */
|
|
102034
103041
|
siblings_completed: number;
|
|
103042
|
+
/** @description Reefer hours taken from the meter log because none were given: the repair counts toward a service with an hours interval and a reading was on file in the 48 hours before it finished. Null when nothing was filled. */
|
|
103043
|
+
meter_filled?: {
|
|
103044
|
+
/** @description The reefer hours written to the repair */
|
|
103045
|
+
engine_hours: number;
|
|
103046
|
+
/** @description Where the reading came from: samsara_daily, manual, work_order, receipt or shop_arrival */
|
|
103047
|
+
source: string;
|
|
103048
|
+
/**
|
|
103049
|
+
* Format: date-time
|
|
103050
|
+
* @description When the reading was taken
|
|
103051
|
+
*/
|
|
103052
|
+
as_of: string;
|
|
103053
|
+
} | null;
|
|
102035
103054
|
};
|
|
102036
103055
|
};
|
|
102037
103056
|
};
|
|
@@ -116519,7 +117538,7 @@ export interface operations {
|
|
|
116519
117538
|
run_id: number;
|
|
116520
117539
|
/** @description The draft ad */
|
|
116521
117540
|
creative_id: number;
|
|
116522
|
-
/** @description Which suggested
|
|
117541
|
+
/** @description Which suggested idea (0 to 11) */
|
|
116523
117542
|
hook_index: number | string | null;
|
|
116524
117543
|
};
|
|
116525
117544
|
};
|
|
@@ -117136,7 +118155,7 @@ export interface operations {
|
|
|
117136
118155
|
run_id: number;
|
|
117137
118156
|
/** @description The draft ad */
|
|
117138
118157
|
creative_id: number;
|
|
117139
|
-
/** @description The part, from 1 */
|
|
118158
|
+
/** @description The part, or the moment in a one-take video, from 1 */
|
|
117140
118159
|
index: number | string | null;
|
|
117141
118160
|
/** @description Words on screen (60 characters at most); left out keeps them */
|
|
117142
118161
|
on_screen_text?: string | null;
|
|
@@ -139244,15 +140263,25 @@ export interface operations {
|
|
|
139244
140263
|
*/
|
|
139245
140264
|
"application/json": {
|
|
139246
140265
|
result: {
|
|
140266
|
+
/** @description Whose scorecard the focus is on: driver or dispatcher. */
|
|
139247
140267
|
audience: string;
|
|
139248
|
-
/**
|
|
140268
|
+
/**
|
|
140269
|
+
* Format: date
|
|
140270
|
+
* @description Operational Sunday that starts the week.
|
|
140271
|
+
*/
|
|
139249
140272
|
week_start: string;
|
|
140273
|
+
/** @description The week as people read it, such as "Oct 11 to 17, 2026". */
|
|
139250
140274
|
week_label: string;
|
|
139251
140275
|
/** @description The score you picked; null once cleared. */
|
|
139252
140276
|
focus_pick?: {
|
|
140277
|
+
/** @description The score's metric slug. */
|
|
139253
140278
|
slug: string;
|
|
140279
|
+
/** @description The score's name. */
|
|
139254
140280
|
name: string;
|
|
139255
|
-
/**
|
|
140281
|
+
/**
|
|
140282
|
+
* Format: date-time
|
|
140283
|
+
* @description When the focus was picked.
|
|
140284
|
+
*/
|
|
139256
140285
|
picked_at: string;
|
|
139257
140286
|
} | null;
|
|
139258
140287
|
};
|
|
@@ -140029,12 +141058,12 @@ export interface operations {
|
|
|
140029
141058
|
pay_period_id?: number | null;
|
|
140030
141059
|
/**
|
|
140031
141060
|
* Format: date
|
|
140032
|
-
* @description Range start (
|
|
141061
|
+
* @description Range start (a company date); defaults to the first of this month
|
|
140033
141062
|
*/
|
|
140034
141063
|
from?: string | null;
|
|
140035
141064
|
/**
|
|
140036
141065
|
* Format: date
|
|
140037
|
-
* @description Range end (
|
|
141066
|
+
* @description Range end (a company date); defaults to today
|
|
140038
141067
|
*/
|
|
140039
141068
|
to?: string | null;
|
|
140040
141069
|
};
|
|
@@ -140086,12 +141115,12 @@ export interface operations {
|
|
|
140086
141115
|
driver_name: string;
|
|
140087
141116
|
/**
|
|
140088
141117
|
* Format: date
|
|
140089
|
-
* @description Range start (
|
|
141118
|
+
* @description Range start (a company date)
|
|
140090
141119
|
*/
|
|
140091
141120
|
from: string;
|
|
140092
141121
|
/**
|
|
140093
141122
|
* Format: date
|
|
140094
|
-
* @description Range end (
|
|
141123
|
+
* @description Range end (a company date)
|
|
140095
141124
|
*/
|
|
140096
141125
|
to: string;
|
|
140097
141126
|
/** @description Pay ready to settle */
|
|
@@ -141791,7 +142820,15 @@ export interface operations {
|
|
|
141791
142820
|
* "active": false,
|
|
141792
142821
|
* "from_email": "hello@axivoy.test",
|
|
141793
142822
|
* "from_is_platform_default": true,
|
|
141794
|
-
* "delivery_mode": "sandbox"
|
|
142823
|
+
* "delivery_mode": "sandbox",
|
|
142824
|
+
* "sending_domain": {
|
|
142825
|
+
* "domain": null,
|
|
142826
|
+
* "state": "not_set_up"
|
|
142827
|
+
* },
|
|
142828
|
+
* "reply_domain": {
|
|
142829
|
+
* "domain": null,
|
|
142830
|
+
* "state": "not_set_up"
|
|
142831
|
+
* }
|
|
141795
142832
|
* }
|
|
141796
142833
|
* }
|
|
141797
142834
|
*/
|
|
@@ -145757,6 +146794,209 @@ export interface operations {
|
|
|
145757
146794
|
};
|
|
145758
146795
|
};
|
|
145759
146796
|
};
|
|
146797
|
+
"ops.system.settings.company_clock.preview": {
|
|
146798
|
+
parameters: {
|
|
146799
|
+
query?: never;
|
|
146800
|
+
header?: {
|
|
146801
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
146802
|
+
"Idempotency-Key"?: string;
|
|
146803
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
146804
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
146805
|
+
};
|
|
146806
|
+
path?: never;
|
|
146807
|
+
cookie?: never;
|
|
146808
|
+
};
|
|
146809
|
+
requestBody?: {
|
|
146810
|
+
content: {
|
|
146811
|
+
/**
|
|
146812
|
+
* @example {
|
|
146813
|
+
* "timezone": "America/Chicago",
|
|
146814
|
+
* "starts_on": "2026-11-01"
|
|
146815
|
+
* }
|
|
146816
|
+
*/
|
|
146817
|
+
"application/json": {
|
|
146818
|
+
/** @description IANA zone id, for example America/Chicago */
|
|
146819
|
+
timezone: string;
|
|
146820
|
+
/** @description A Sunday after today (Y-m-d), or beginning when nothing has been counted yet; days count in the new zone from its midnight on this date */
|
|
146821
|
+
starts_on: string;
|
|
146822
|
+
};
|
|
146823
|
+
};
|
|
146824
|
+
};
|
|
146825
|
+
responses: {
|
|
146826
|
+
/** @description The operation ran. */
|
|
146827
|
+
200: {
|
|
146828
|
+
headers: {
|
|
146829
|
+
[name: string]: unknown;
|
|
146830
|
+
};
|
|
146831
|
+
content: {
|
|
146832
|
+
/**
|
|
146833
|
+
* @example {
|
|
146834
|
+
* "result": {
|
|
146835
|
+
* "timezone": "America/Chicago",
|
|
146836
|
+
* "previous_timezone": "UTC",
|
|
146837
|
+
* "starts_on": "2026-11-01",
|
|
146838
|
+
* "starts_at": "2026-11-01T05:00:00Z",
|
|
146839
|
+
* "previous_day": "2026-10-31",
|
|
146840
|
+
* "previous_day_change_minutes": 300,
|
|
146841
|
+
* "pay_period": null,
|
|
146842
|
+
* "scorecard_week": null,
|
|
146843
|
+
* "warnings": [],
|
|
146844
|
+
* "affected_loads": [],
|
|
146845
|
+
* "refusal": null,
|
|
146846
|
+
* "message": "Sunday, Nov 1 starts at 12:00 AM Central Time. Saturday, Oct 31 runs 5 hours longer, until midnight Central Time."
|
|
146847
|
+
* }
|
|
146848
|
+
* }
|
|
146849
|
+
*/
|
|
146850
|
+
"application/json": {
|
|
146851
|
+
result: {
|
|
146852
|
+
/** @description The zone days would count in (IANA) */
|
|
146853
|
+
timezone: string;
|
|
146854
|
+
/** @description The zone days count in now on that date (IANA) */
|
|
146855
|
+
previous_timezone: string;
|
|
146856
|
+
/**
|
|
146857
|
+
* Format: date
|
|
146858
|
+
* @description The Sunday the switch starts; null from the beginning
|
|
146859
|
+
*/
|
|
146860
|
+
starts_on?: string | null;
|
|
146861
|
+
/**
|
|
146862
|
+
* Format: date-time
|
|
146863
|
+
* @description That Sunday's midnight in the new zone; null from the beginning
|
|
146864
|
+
*/
|
|
146865
|
+
starts_at?: string | null;
|
|
146866
|
+
/**
|
|
146867
|
+
* Format: date
|
|
146868
|
+
* @description The Saturday before the start, which runs longer or shorter; null from the beginning
|
|
146869
|
+
*/
|
|
146870
|
+
previous_day?: string | null;
|
|
146871
|
+
/** @description How many minutes longer (positive) or shorter (negative) that Saturday runs */
|
|
146872
|
+
previous_day_change_minutes: number;
|
|
146873
|
+
/** @description The pay period that holds the Saturday; null when none is set up */
|
|
146874
|
+
pay_period?: {
|
|
146875
|
+
/** @description The pay period */
|
|
146876
|
+
id: number;
|
|
146877
|
+
/**
|
|
146878
|
+
* Format: date
|
|
146879
|
+
* @description First day
|
|
146880
|
+
*/
|
|
146881
|
+
start_date: string;
|
|
146882
|
+
/**
|
|
146883
|
+
* Format: date
|
|
146884
|
+
* @description Last day
|
|
146885
|
+
*/
|
|
146886
|
+
end_date: string;
|
|
146887
|
+
/** @description Whether a payroll run for it is calculated or later */
|
|
146888
|
+
processed: boolean;
|
|
146889
|
+
} | null;
|
|
146890
|
+
/** @description The scorecard week that holds the Saturday; null when the workspace has no scorecards yet */
|
|
146891
|
+
scorecard_week?: {
|
|
146892
|
+
/**
|
|
146893
|
+
* Format: date
|
|
146894
|
+
* @description The Sunday the week starts
|
|
146895
|
+
*/
|
|
146896
|
+
start_date: string;
|
|
146897
|
+
/**
|
|
146898
|
+
* Format: date
|
|
146899
|
+
* @description The Saturday it ends
|
|
146900
|
+
*/
|
|
146901
|
+
end_date: string;
|
|
146902
|
+
/** @description Whether the week is locked */
|
|
146903
|
+
locked: boolean;
|
|
146904
|
+
} | null;
|
|
146905
|
+
/** @description What to know before switching; none block it */
|
|
146906
|
+
warnings: unknown[];
|
|
146907
|
+
/** @description Loads not delivered yet that are due to deliver in the moved hours, when that pay period is already processed */
|
|
146908
|
+
affected_loads: {
|
|
146909
|
+
/** @description The load */
|
|
146910
|
+
load_id: number;
|
|
146911
|
+
/** @description The load number */
|
|
146912
|
+
load_number: string;
|
|
146913
|
+
/** @description The driver on the trip */
|
|
146914
|
+
driver_name?: string | null;
|
|
146915
|
+
/**
|
|
146916
|
+
* Format: date-time
|
|
146917
|
+
* @description When the delivery is due
|
|
146918
|
+
*/
|
|
146919
|
+
delivery_at: string;
|
|
146920
|
+
}[];
|
|
146921
|
+
/** @description Why the switch would be refused; null when it may switch */
|
|
146922
|
+
refusal?: {
|
|
146923
|
+
/** @description not_a_sunday, not_after_today, already_counts, already_counted, switch_waiting, pay_line_moves or scorecard_week_locked */
|
|
146924
|
+
reason: string;
|
|
146925
|
+
/** @description Why, in the operator's words */
|
|
146926
|
+
message: string;
|
|
146927
|
+
} | null;
|
|
146928
|
+
/** @description What the switch would do, in the operator's words */
|
|
146929
|
+
message: string;
|
|
146930
|
+
};
|
|
146931
|
+
};
|
|
146932
|
+
};
|
|
146933
|
+
};
|
|
146934
|
+
202: components["responses"]["Proposal"];
|
|
146935
|
+
/** @description Refused: credits_exhausted. */
|
|
146936
|
+
402: {
|
|
146937
|
+
headers: {
|
|
146938
|
+
[name: string]: unknown;
|
|
146939
|
+
};
|
|
146940
|
+
content: {
|
|
146941
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146942
|
+
};
|
|
146943
|
+
};
|
|
146944
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
146945
|
+
403: {
|
|
146946
|
+
headers: {
|
|
146947
|
+
[name: string]: unknown;
|
|
146948
|
+
};
|
|
146949
|
+
content: {
|
|
146950
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146951
|
+
};
|
|
146952
|
+
};
|
|
146953
|
+
/** @description Refused: not_found. */
|
|
146954
|
+
404: {
|
|
146955
|
+
headers: {
|
|
146956
|
+
[name: string]: unknown;
|
|
146957
|
+
};
|
|
146958
|
+
content: {
|
|
146959
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146960
|
+
};
|
|
146961
|
+
};
|
|
146962
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
146963
|
+
409: {
|
|
146964
|
+
headers: {
|
|
146965
|
+
[name: string]: unknown;
|
|
146966
|
+
};
|
|
146967
|
+
content: {
|
|
146968
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146969
|
+
};
|
|
146970
|
+
};
|
|
146971
|
+
/** @description Refused: operation_retired. */
|
|
146972
|
+
410: {
|
|
146973
|
+
headers: {
|
|
146974
|
+
[name: string]: unknown;
|
|
146975
|
+
};
|
|
146976
|
+
content: {
|
|
146977
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146978
|
+
};
|
|
146979
|
+
};
|
|
146980
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
146981
|
+
422: {
|
|
146982
|
+
headers: {
|
|
146983
|
+
[name: string]: unknown;
|
|
146984
|
+
};
|
|
146985
|
+
content: {
|
|
146986
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146987
|
+
};
|
|
146988
|
+
};
|
|
146989
|
+
/** @description Refused: rate_limited. */
|
|
146990
|
+
429: {
|
|
146991
|
+
headers: {
|
|
146992
|
+
[name: string]: unknown;
|
|
146993
|
+
};
|
|
146994
|
+
content: {
|
|
146995
|
+
"application/json": components["schemas"]["OperationError"];
|
|
146996
|
+
};
|
|
146997
|
+
};
|
|
146998
|
+
};
|
|
146999
|
+
};
|
|
145760
147000
|
"ops.system.settings.planned_mileage.list": {
|
|
145761
147001
|
parameters: {
|
|
145762
147002
|
query?: never;
|
|
@@ -155531,6 +156771,15 @@ export interface operations {
|
|
|
155531
156771
|
};
|
|
155532
156772
|
requestBody?: {
|
|
155533
156773
|
content: {
|
|
156774
|
+
/**
|
|
156775
|
+
* @example {
|
|
156776
|
+
* "team_keys": [
|
|
156777
|
+
* "safety",
|
|
156778
|
+
* "dispatch",
|
|
156779
|
+
* "claims"
|
|
156780
|
+
* ]
|
|
156781
|
+
* }
|
|
156782
|
+
*/
|
|
155534
156783
|
"application/json": {
|
|
155535
156784
|
/** @description Active team keys in the order callers hear them (0 to 8; from communication_teams.list) */
|
|
155536
156785
|
team_keys: string[] | null;
|
|
@@ -155544,6 +156793,31 @@ export interface operations {
|
|
|
155544
156793
|
[name: string]: unknown;
|
|
155545
156794
|
};
|
|
155546
156795
|
content: {
|
|
156796
|
+
/**
|
|
156797
|
+
* @example {
|
|
156798
|
+
* "result": {
|
|
156799
|
+
* "options": [
|
|
156800
|
+
* {
|
|
156801
|
+
* "digit": 1,
|
|
156802
|
+
* "team_key": "safety",
|
|
156803
|
+
* "name": "Safety & compliance"
|
|
156804
|
+
* },
|
|
156805
|
+
* {
|
|
156806
|
+
* "digit": 2,
|
|
156807
|
+
* "team_key": "dispatch",
|
|
156808
|
+
* "name": "Dispatch"
|
|
156809
|
+
* },
|
|
156810
|
+
* {
|
|
156811
|
+
* "digit": 3,
|
|
156812
|
+
* "team_key": "claims",
|
|
156813
|
+
* "name": "Claims"
|
|
156814
|
+
* }
|
|
156815
|
+
* ],
|
|
156816
|
+
* "prompt": "For safety and compliance, press 1. For dispatch, press 2. For claims, press 3. To repeat these options, press 9.",
|
|
156817
|
+
* "message": "Main phone menu saved."
|
|
156818
|
+
* }
|
|
156819
|
+
* }
|
|
156820
|
+
*/
|
|
155547
156821
|
"application/json": {
|
|
155548
156822
|
result: {
|
|
155549
156823
|
/** @description The menu in the order callers hear it */
|
|
@@ -158384,6 +159658,12 @@ export interface operations {
|
|
|
158384
159658
|
};
|
|
158385
159659
|
requestBody?: {
|
|
158386
159660
|
content: {
|
|
159661
|
+
/**
|
|
159662
|
+
* @example {
|
|
159663
|
+
* "number_id": 1,
|
|
159664
|
+
* "team_key": "safety"
|
|
159665
|
+
* }
|
|
159666
|
+
*/
|
|
158387
159667
|
"application/json": {
|
|
158388
159668
|
/** @description A number the company holds, active, with texts on or receive only (from voice.numbers.list) */
|
|
158389
159669
|
number_id: number;
|
|
@@ -158399,6 +159679,15 @@ export interface operations {
|
|
|
158399
159679
|
[name: string]: unknown;
|
|
158400
159680
|
};
|
|
158401
159681
|
content: {
|
|
159682
|
+
/**
|
|
159683
|
+
* @example {
|
|
159684
|
+
* "result": {
|
|
159685
|
+
* "number_id": 1,
|
|
159686
|
+
* "team_key": "safety",
|
|
159687
|
+
* "message": "Texts to (713) 555-0142 now go to Safety & compliance."
|
|
159688
|
+
* }
|
|
159689
|
+
* }
|
|
159690
|
+
*/
|
|
158402
159691
|
"application/json": {
|
|
158403
159692
|
result: {
|
|
158404
159693
|
/** @description The phone number */
|