@axivoy/api 1.65.0 → 1.71.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 +1235 -47
- package/package.json +1 -1
|
@@ -1301,6 +1301,28 @@ export interface paths {
|
|
|
1301
1301
|
patch?: never;
|
|
1302
1302
|
trace?: never;
|
|
1303
1303
|
};
|
|
1304
|
+
"/ops/compensation_plans.pay_outlook": {
|
|
1305
|
+
parameters: {
|
|
1306
|
+
query?: never;
|
|
1307
|
+
header?: never;
|
|
1308
|
+
path?: never;
|
|
1309
|
+
cookie?: never;
|
|
1310
|
+
};
|
|
1311
|
+
get?: never;
|
|
1312
|
+
put?: never;
|
|
1313
|
+
/**
|
|
1314
|
+
* My pay steps and next raise
|
|
1315
|
+
* @description A driver's current pay plan and its rates, the next pay step payroll will apply automatically (new rates, start date, time served toward it and, for a per-mile raise, about how much more a week at the driver's usual miles), up to three later steps, and recent raises. Default you.
|
|
1316
|
+
*
|
|
1317
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1318
|
+
*/
|
|
1319
|
+
post: operations["ops.compensation_plans.pay_outlook"];
|
|
1320
|
+
delete?: never;
|
|
1321
|
+
options?: never;
|
|
1322
|
+
head?: never;
|
|
1323
|
+
patch?: never;
|
|
1324
|
+
trace?: never;
|
|
1325
|
+
};
|
|
1304
1326
|
"/ops/compensation_plans.progression_events.approve": {
|
|
1305
1327
|
parameters: {
|
|
1306
1328
|
query?: never;
|
|
@@ -1510,7 +1532,7 @@ export interface paths {
|
|
|
1510
1532
|
put?: never;
|
|
1511
1533
|
/**
|
|
1512
1534
|
* Get a pay statement
|
|
1513
|
-
* @description One finalized compensation statement: period, settlement detail, pay stub and
|
|
1535
|
+
* @description One finalized compensation statement: period, settlement detail, pay stub, net pay and a breakdown of where the gross pay went. Set include_pdf for a download link.
|
|
1514
1536
|
*
|
|
1515
1537
|
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
1516
1538
|
*/
|
|
@@ -15623,6 +15645,28 @@ export interface paths {
|
|
|
15623
15645
|
patch?: never;
|
|
15624
15646
|
trace?: never;
|
|
15625
15647
|
};
|
|
15648
|
+
"/ops/scorecards.bonus_history": {
|
|
15649
|
+
parameters: {
|
|
15650
|
+
query?: never;
|
|
15651
|
+
header?: never;
|
|
15652
|
+
path?: never;
|
|
15653
|
+
cookie?: never;
|
|
15654
|
+
};
|
|
15655
|
+
get?: never;
|
|
15656
|
+
put?: never;
|
|
15657
|
+
/**
|
|
15658
|
+
* Bonus history
|
|
15659
|
+
* @description The scorecard bonuses a driver or dispatcher earned in recent final weeks: each week's total and, per bonus, the amount and whether it is waiting for payroll, on a pay statement, not paid, or paid outside Axivoy payroll (dispatcher bonuses). Default you, your portal's scorecard and the 8 most recent weeks with bonus results.
|
|
15660
|
+
*
|
|
15661
|
+
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15662
|
+
*/
|
|
15663
|
+
post: operations["ops.scorecards.bonus_history"];
|
|
15664
|
+
delete?: never;
|
|
15665
|
+
options?: never;
|
|
15666
|
+
head?: never;
|
|
15667
|
+
patch?: never;
|
|
15668
|
+
trace?: never;
|
|
15669
|
+
};
|
|
15626
15670
|
"/ops/scorecards.bonus_previews": {
|
|
15627
15671
|
parameters: {
|
|
15628
15672
|
query?: never;
|
|
@@ -15634,7 +15678,7 @@ export interface paths {
|
|
|
15634
15678
|
put?: never;
|
|
15635
15679
|
/**
|
|
15636
15680
|
* Preview scorecard bonuses
|
|
15637
|
-
* @description What each bonus scheme would pay a driver for the week as it stands,
|
|
15681
|
+
* @description What each bonus scheme would pay a driver or dispatcher for the week as it stands: its standing, the targets it checks, how it pays, and the week's total. A preview, not pay; "earned" only for a final week's persisted payout.
|
|
15638
15682
|
*
|
|
15639
15683
|
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15640
15684
|
*/
|
|
@@ -15645,6 +15689,28 @@ export interface paths {
|
|
|
15645
15689
|
patch?: never;
|
|
15646
15690
|
trace?: never;
|
|
15647
15691
|
};
|
|
15692
|
+
"/ops/scorecards.focus.set": {
|
|
15693
|
+
parameters: {
|
|
15694
|
+
query?: never;
|
|
15695
|
+
header?: never;
|
|
15696
|
+
path?: never;
|
|
15697
|
+
cookie?: never;
|
|
15698
|
+
};
|
|
15699
|
+
get?: never;
|
|
15700
|
+
put?: never;
|
|
15701
|
+
/**
|
|
15702
|
+
* Set my scorecard focus
|
|
15703
|
+
* @description Pick one score on your own scorecard to focus on for the current open week, or clear it. The picked score shows first in What to work on, and the week reports how it went. Self only; only the current open week.
|
|
15704
|
+
*
|
|
15705
|
+
* Kind: `mutate`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15706
|
+
*/
|
|
15707
|
+
post: operations["ops.scorecards.focus.set"];
|
|
15708
|
+
delete?: never;
|
|
15709
|
+
options?: never;
|
|
15710
|
+
head?: never;
|
|
15711
|
+
patch?: never;
|
|
15712
|
+
trace?: never;
|
|
15713
|
+
};
|
|
15648
15714
|
"/ops/scorecards.get": {
|
|
15649
15715
|
parameters: {
|
|
15650
15716
|
query?: never;
|
|
@@ -15655,8 +15721,8 @@ export interface paths {
|
|
|
15655
15721
|
get?: never;
|
|
15656
15722
|
put?: never;
|
|
15657
15723
|
/**
|
|
15658
|
-
* Get a
|
|
15659
|
-
* @description A driver weekly scorecard: each metric with its value,
|
|
15724
|
+
* Get a scorecard
|
|
15725
|
+
* @description A driver's or dispatcher's weekly scorecard: each metric with its value, score level, change, tip, bonus targets and next step, plus the week's state, what to work on, wins and the person's weekly focus pick. Never amounts. Default you, your portal's scorecard and the most recent week with scores.
|
|
15660
15726
|
*
|
|
15661
15727
|
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15662
15728
|
*/
|
|
@@ -15678,7 +15744,7 @@ export interface paths {
|
|
|
15678
15744
|
put?: never;
|
|
15679
15745
|
/**
|
|
15680
15746
|
* Get scorecard trends
|
|
15681
|
-
* @description Weekly trend series behind a driver scorecard, for one metric slug or all of them.
|
|
15747
|
+
* @description Weekly trend series behind a driver or dispatcher scorecard, for one metric slug or all of them, with each week's value in words, bonus target lines and the best week in the last 8.
|
|
15682
15748
|
*
|
|
15683
15749
|
* Kind: `read`. Errors use the envelope `{error: {code, reason, message, fields}}`.
|
|
15684
15750
|
*/
|
|
@@ -28673,6 +28739,335 @@ export interface operations {
|
|
|
28673
28739
|
};
|
|
28674
28740
|
};
|
|
28675
28741
|
};
|
|
28742
|
+
"ops.compensation_plans.pay_outlook": {
|
|
28743
|
+
parameters: {
|
|
28744
|
+
query?: never;
|
|
28745
|
+
header?: {
|
|
28746
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
28747
|
+
"Idempotency-Key"?: string;
|
|
28748
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
28749
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
28750
|
+
};
|
|
28751
|
+
path?: never;
|
|
28752
|
+
cookie?: never;
|
|
28753
|
+
};
|
|
28754
|
+
requestBody?: {
|
|
28755
|
+
content: {
|
|
28756
|
+
/** @example {} */
|
|
28757
|
+
"application/json": {
|
|
28758
|
+
/** @description Another driver; default you. */
|
|
28759
|
+
user_id?: number | null;
|
|
28760
|
+
};
|
|
28761
|
+
};
|
|
28762
|
+
};
|
|
28763
|
+
responses: {
|
|
28764
|
+
/** @description The operation ran. */
|
|
28765
|
+
200: {
|
|
28766
|
+
headers: {
|
|
28767
|
+
[name: string]: unknown;
|
|
28768
|
+
};
|
|
28769
|
+
content: {
|
|
28770
|
+
/**
|
|
28771
|
+
* @example {
|
|
28772
|
+
* "result": {
|
|
28773
|
+
* "current_plan": {
|
|
28774
|
+
* "name": "Solo Driver II",
|
|
28775
|
+
* "since": "2026-05-19",
|
|
28776
|
+
* "since_label": "May 19",
|
|
28777
|
+
* "rates": [
|
|
28778
|
+
* {
|
|
28779
|
+
* "label": "Miles",
|
|
28780
|
+
* "text": "55¢ a mile"
|
|
28781
|
+
* },
|
|
28782
|
+
* {
|
|
28783
|
+
* "label": "Stops",
|
|
28784
|
+
* "text": "$25 a stop after the first"
|
|
28785
|
+
* },
|
|
28786
|
+
* {
|
|
28787
|
+
* "label": "Detention",
|
|
28788
|
+
* "text": "$20 an hour after 2 hours"
|
|
28789
|
+
* },
|
|
28790
|
+
* {
|
|
28791
|
+
* "label": "Layover",
|
|
28792
|
+
* "text": "$100 a day"
|
|
28793
|
+
* }
|
|
28794
|
+
* ]
|
|
28795
|
+
* },
|
|
28796
|
+
* "next_step": {
|
|
28797
|
+
* "kind": "raise",
|
|
28798
|
+
* "plan_name": "Solo Driver III",
|
|
28799
|
+
* "starts_on": "2026-11-03",
|
|
28800
|
+
* "starts_on_label": "Nov 3",
|
|
28801
|
+
* "days_until": 13,
|
|
28802
|
+
* "headline": "Your raise to 60¢ a mile starts Nov 3",
|
|
28803
|
+
* "figure_text": "60¢ a mile",
|
|
28804
|
+
* "tile_text": "Raise to 60¢ a mile Nov 3",
|
|
28805
|
+
* "effective_note": "Loads you deliver on or after Nov 3 pay the new rates.",
|
|
28806
|
+
* "progress": {
|
|
28807
|
+
* "elapsed": 22,
|
|
28808
|
+
* "total": 24,
|
|
28809
|
+
* "unit": "weeks",
|
|
28810
|
+
* "text": "22 of 24 weeks",
|
|
28811
|
+
* "anchor_text": "Counted from May 19, the day you started on Solo Driver II. After 24 weeks on that plan, you move to Solo Driver III."
|
|
28812
|
+
* },
|
|
28813
|
+
* "changes": [
|
|
28814
|
+
* {
|
|
28815
|
+
* "label": "Miles",
|
|
28816
|
+
* "direction": "up",
|
|
28817
|
+
* "from_text": "55¢ a mile",
|
|
28818
|
+
* "to_text": "60¢ a mile",
|
|
28819
|
+
* "delta_text": "5¢ more a mile"
|
|
28820
|
+
* },
|
|
28821
|
+
* {
|
|
28822
|
+
* "label": "Layover",
|
|
28823
|
+
* "direction": "up",
|
|
28824
|
+
* "from_text": "$100 a day",
|
|
28825
|
+
* "to_text": "$125 a day",
|
|
28826
|
+
* "delta_text": "$25 more a day"
|
|
28827
|
+
* }
|
|
28828
|
+
* ],
|
|
28829
|
+
* "estimate": {
|
|
28830
|
+
* "amount": 121,
|
|
28831
|
+
* "text": "About $120 more a week at your usual miles",
|
|
28832
|
+
* "calculation_text": "2,410 paid miles a week × 5¢ more a mile ≈ $121",
|
|
28833
|
+
* "basis_text": "Based on your paid miles over the last 9 weeks"
|
|
28834
|
+
* }
|
|
28835
|
+
* },
|
|
28836
|
+
* "later_steps": [
|
|
28837
|
+
* {
|
|
28838
|
+
* "kind": "raise",
|
|
28839
|
+
* "plan_name": "Solo Driver IV",
|
|
28840
|
+
* "starts_on": "2027-05-04",
|
|
28841
|
+
* "starts_on_label": "May 4, 2027",
|
|
28842
|
+
* "headline": "Raise to 63¢ a mile on May 4, 2027",
|
|
28843
|
+
* "figure_text": "63¢ a mile"
|
|
28844
|
+
* }
|
|
28845
|
+
* ],
|
|
28846
|
+
* "recent_raise": null,
|
|
28847
|
+
* "history": [
|
|
28848
|
+
* {
|
|
28849
|
+
* "event_id": 1,
|
|
28850
|
+
* "kind": "raise",
|
|
28851
|
+
* "plan_name": "Solo Driver II",
|
|
28852
|
+
* "started_on": "2026-05-19",
|
|
28853
|
+
* "started_on_label": "May 19",
|
|
28854
|
+
* "summary_text": "Raise to 55¢ a mile, up from 50¢ a mile"
|
|
28855
|
+
* }
|
|
28856
|
+
* ],
|
|
28857
|
+
* "team_note": null
|
|
28858
|
+
* }
|
|
28859
|
+
* }
|
|
28860
|
+
*/
|
|
28861
|
+
"application/json": {
|
|
28862
|
+
result: {
|
|
28863
|
+
/** @description The pay plan the driver is on today; null when the driver has no pay plan. */
|
|
28864
|
+
current_plan?: {
|
|
28865
|
+
/** @description Name of the pay plan the driver is on today. */
|
|
28866
|
+
name: string;
|
|
28867
|
+
/**
|
|
28868
|
+
* Format: date
|
|
28869
|
+
* @description Date the driver started on this plan.
|
|
28870
|
+
*/
|
|
28871
|
+
since?: string | null;
|
|
28872
|
+
/** @description That date as people read it, such as "May 19". */
|
|
28873
|
+
since_label?: string | null;
|
|
28874
|
+
/** @description The plan's rates, base pay first; empty when the plan cannot be resolved today. */
|
|
28875
|
+
rates: {
|
|
28876
|
+
/** @description What the rate pays for, such as "Miles" or "Stops". */
|
|
28877
|
+
label: string;
|
|
28878
|
+
/** @description The rate in plain words, such as "55¢ a mile" or "$25 a stop after the first". */
|
|
28879
|
+
text: string;
|
|
28880
|
+
}[];
|
|
28881
|
+
} | null;
|
|
28882
|
+
/** @description The next pay step payroll will apply automatically; null when none is coming. */
|
|
28883
|
+
next_step?: {
|
|
28884
|
+
/** @description raise when at least one rate goes up or is added and none goes down, ends or changes; otherwise change. */
|
|
28885
|
+
kind: string;
|
|
28886
|
+
/** @description Name of the plan the driver moves to. */
|
|
28887
|
+
plan_name: string;
|
|
28888
|
+
/**
|
|
28889
|
+
* Format: date
|
|
28890
|
+
* @description Date the new plan starts; loads delivered on or after it pay the new rates.
|
|
28891
|
+
*/
|
|
28892
|
+
starts_on: string;
|
|
28893
|
+
/** @description That date as people read it, such as "Nov 3". */
|
|
28894
|
+
starts_on_label: string;
|
|
28895
|
+
/** @description Days from the driver's today to the start date; 0 when it starts today. */
|
|
28896
|
+
days_until: number;
|
|
28897
|
+
/** @description One sentence for the step, such as "Your raise to 60¢ a mile starts Nov 3" or "Your pay plan changes to Regional Dedicated on Nov 3". */
|
|
28898
|
+
headline: string;
|
|
28899
|
+
/** @description The new rate that stands for the step, base pay first, such as "60¢ a mile"; null when no rate is known. */
|
|
28900
|
+
figure_text?: string | null;
|
|
28901
|
+
/** @description Short form for a dashboard tile, such as "Raise to 60¢ a mile Nov 3" or "Plan changes Nov 3". */
|
|
28902
|
+
tile_text: string;
|
|
28903
|
+
/** @description When the new rates apply, or "Your rates stay the same." when nothing changes. */
|
|
28904
|
+
effective_note: string;
|
|
28905
|
+
/** @description Time served toward the step; null when the count has no start date. */
|
|
28906
|
+
progress?: {
|
|
28907
|
+
/** @description Whole periods served so far, capped at total. */
|
|
28908
|
+
elapsed: number;
|
|
28909
|
+
/** @description Periods the rule requires. */
|
|
28910
|
+
total: number;
|
|
28911
|
+
/** @description Period unit: days, weeks or months. */
|
|
28912
|
+
unit: string;
|
|
28913
|
+
/** @description Progress in words, such as "18 of 24 weeks". */
|
|
28914
|
+
text: string;
|
|
28915
|
+
/** @description What the time is counted from and what happens at the end. */
|
|
28916
|
+
anchor_text?: string | null;
|
|
28917
|
+
} | null;
|
|
28918
|
+
/** @description Rates that differ between today and the new plan; a change lists rates that go down or end first. Empty when the rates are the same or cannot be resolved. */
|
|
28919
|
+
changes: {
|
|
28920
|
+
/** @description What the rate pays for, such as "Miles". */
|
|
28921
|
+
label: string;
|
|
28922
|
+
/** @description up, down, new (added), ends (removed) or changed (paid a different way). */
|
|
28923
|
+
direction: string;
|
|
28924
|
+
/** @description The rate today; null for a new rate. */
|
|
28925
|
+
from_text?: string | null;
|
|
28926
|
+
/** @description The rate on the new plan; null for a rate that ends. */
|
|
28927
|
+
to_text?: string | null;
|
|
28928
|
+
/** @description The difference, such as "5¢ more a mile", "New" or "Ends"; null when several parts of the rate change. */
|
|
28929
|
+
delta_text?: string | null;
|
|
28930
|
+
}[];
|
|
28931
|
+
/** @description About how much more a week a per-mile raise pays at the driver's usual paid miles; null for other steps or with under four weeks of finalized pay. */
|
|
28932
|
+
estimate?: {
|
|
28933
|
+
/** @description Estimated extra pay a week, in whole dollars. */
|
|
28934
|
+
amount: number;
|
|
28935
|
+
/** @description The estimate in words, rounded, such as "About $120 more a week at your usual miles". */
|
|
28936
|
+
text: string;
|
|
28937
|
+
/** @description How it was worked out, such as "2,410 paid miles a week × 5¢ more a mile ≈ $121". */
|
|
28938
|
+
calculation_text: string;
|
|
28939
|
+
/** @description Which pay it is based on, such as "Based on your paid miles over the last 12 weeks". */
|
|
28940
|
+
basis_text: string;
|
|
28941
|
+
} | null;
|
|
28942
|
+
} | null;
|
|
28943
|
+
/** @description Up to three automatic steps after the next one, in order; stops at a step that needs office approval. */
|
|
28944
|
+
later_steps: {
|
|
28945
|
+
/** @description raise or change, as for next_step. */
|
|
28946
|
+
kind: string;
|
|
28947
|
+
/** @description Name of the plan the driver moves to. */
|
|
28948
|
+
plan_name: string;
|
|
28949
|
+
/**
|
|
28950
|
+
* Format: date
|
|
28951
|
+
* @description Projected start date.
|
|
28952
|
+
*/
|
|
28953
|
+
starts_on: string;
|
|
28954
|
+
/** @description That date as people read it, such as "May 4, 2027". */
|
|
28955
|
+
starts_on_label: string;
|
|
28956
|
+
/** @description One sentence for the step, such as "Raise to 63¢ a mile on May 4, 2027". */
|
|
28957
|
+
headline: string;
|
|
28958
|
+
/** @description The new rate that stands for the step; null when no rate is known. */
|
|
28959
|
+
figure_text?: string | null;
|
|
28960
|
+
}[];
|
|
28961
|
+
/** @description The newest pay step, when it was a raise that started in the last 30 days; else null. */
|
|
28962
|
+
recent_raise?: {
|
|
28963
|
+
/** @description Pay progression event id. */
|
|
28964
|
+
event_id: number;
|
|
28965
|
+
/** @description Name of the plan the raise moved the driver to. */
|
|
28966
|
+
plan_name: string;
|
|
28967
|
+
/**
|
|
28968
|
+
* Format: date
|
|
28969
|
+
* @description Date the raise started.
|
|
28970
|
+
*/
|
|
28971
|
+
started_on: string;
|
|
28972
|
+
/** @description That date as people read it, such as "Oct 20". */
|
|
28973
|
+
started_on_label: string;
|
|
28974
|
+
/** @description Such as "Your raise started Oct 20". */
|
|
28975
|
+
headline: string;
|
|
28976
|
+
/** @description The new rate, such as "60¢ a mile". */
|
|
28977
|
+
figure_text?: string | null;
|
|
28978
|
+
/** @description The old rate, such as "Up from 55¢ a mile"; null for a rate that is new. */
|
|
28979
|
+
from_figure_text?: string | null;
|
|
28980
|
+
} | null;
|
|
28981
|
+
/** @description Up to five pay steps already applied, newest first. */
|
|
28982
|
+
history: {
|
|
28983
|
+
/** @description Pay progression event id. */
|
|
28984
|
+
event_id: number;
|
|
28985
|
+
/** @description raise or change. */
|
|
28986
|
+
kind: string;
|
|
28987
|
+
/** @description Name of the plan the step moved the driver to. */
|
|
28988
|
+
plan_name: string;
|
|
28989
|
+
/**
|
|
28990
|
+
* Format: date
|
|
28991
|
+
* @description Date the step started.
|
|
28992
|
+
*/
|
|
28993
|
+
started_on: string;
|
|
28994
|
+
/** @description That date as people read it. */
|
|
28995
|
+
started_on_label: string;
|
|
28996
|
+
/** @description Such as "Raise to 55¢ a mile, up from 50¢ a mile" or "Pay plan changed to Regional Dedicated". */
|
|
28997
|
+
summary_text: string;
|
|
28998
|
+
}[];
|
|
28999
|
+
/** @description A note when the driver's plans pay team loads differently; null otherwise. */
|
|
29000
|
+
team_note?: string | null;
|
|
29001
|
+
};
|
|
29002
|
+
};
|
|
29003
|
+
};
|
|
29004
|
+
};
|
|
29005
|
+
202: components["responses"]["Proposal"];
|
|
29006
|
+
/** @description Refused: credits_exhausted. */
|
|
29007
|
+
402: {
|
|
29008
|
+
headers: {
|
|
29009
|
+
[name: string]: unknown;
|
|
29010
|
+
};
|
|
29011
|
+
content: {
|
|
29012
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29013
|
+
};
|
|
29014
|
+
};
|
|
29015
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
29016
|
+
403: {
|
|
29017
|
+
headers: {
|
|
29018
|
+
[name: string]: unknown;
|
|
29019
|
+
};
|
|
29020
|
+
content: {
|
|
29021
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29022
|
+
};
|
|
29023
|
+
};
|
|
29024
|
+
/** @description Refused: not_found. */
|
|
29025
|
+
404: {
|
|
29026
|
+
headers: {
|
|
29027
|
+
[name: string]: unknown;
|
|
29028
|
+
};
|
|
29029
|
+
content: {
|
|
29030
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29031
|
+
};
|
|
29032
|
+
};
|
|
29033
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
29034
|
+
409: {
|
|
29035
|
+
headers: {
|
|
29036
|
+
[name: string]: unknown;
|
|
29037
|
+
};
|
|
29038
|
+
content: {
|
|
29039
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29040
|
+
};
|
|
29041
|
+
};
|
|
29042
|
+
/** @description Refused: operation_retired. */
|
|
29043
|
+
410: {
|
|
29044
|
+
headers: {
|
|
29045
|
+
[name: string]: unknown;
|
|
29046
|
+
};
|
|
29047
|
+
content: {
|
|
29048
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29049
|
+
};
|
|
29050
|
+
};
|
|
29051
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
29052
|
+
422: {
|
|
29053
|
+
headers: {
|
|
29054
|
+
[name: string]: unknown;
|
|
29055
|
+
};
|
|
29056
|
+
content: {
|
|
29057
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29058
|
+
};
|
|
29059
|
+
};
|
|
29060
|
+
/** @description Refused: rate_limited. */
|
|
29061
|
+
429: {
|
|
29062
|
+
headers: {
|
|
29063
|
+
[name: string]: unknown;
|
|
29064
|
+
};
|
|
29065
|
+
content: {
|
|
29066
|
+
"application/json": components["schemas"]["OperationError"];
|
|
29067
|
+
};
|
|
29068
|
+
};
|
|
29069
|
+
};
|
|
29070
|
+
};
|
|
28676
29071
|
"ops.compensation_plans.progression_events.approve": {
|
|
28677
29072
|
parameters: {
|
|
28678
29073
|
query?: never;
|
|
@@ -30147,7 +30542,7 @@ export interface operations {
|
|
|
30147
30542
|
* "period_end": "2026-06-30",
|
|
30148
30543
|
* "pay_date": null
|
|
30149
30544
|
* },
|
|
30150
|
-
* "finalized_at": "2026-10-
|
|
30545
|
+
* "finalized_at": "2026-10-25T21:01:10+00:00",
|
|
30151
30546
|
* "section_order": [
|
|
30152
30547
|
* "letterhead",
|
|
30153
30548
|
* "meta",
|
|
@@ -30432,6 +30827,12 @@ export interface operations {
|
|
|
30432
30827
|
* ]
|
|
30433
30828
|
* },
|
|
30434
30829
|
* "has_net_pay_detail": true,
|
|
30830
|
+
* "breakdown": {
|
|
30831
|
+
* "gross_pay": "500.00",
|
|
30832
|
+
* "taxes": "50.00",
|
|
30833
|
+
* "deductions": "10.00",
|
|
30834
|
+
* "net_pay": "440.00"
|
|
30835
|
+
* },
|
|
30435
30836
|
* "pdf_url": null,
|
|
30436
30837
|
* "pdf_expires_at": null
|
|
30437
30838
|
* }
|
|
@@ -30463,6 +30864,17 @@ export interface operations {
|
|
|
30463
30864
|
pay_stub: Record<string, never>;
|
|
30464
30865
|
net_pay_footer: Record<string, never>;
|
|
30465
30866
|
has_net_pay_detail: boolean;
|
|
30867
|
+
/** @description Where the gross pay went, as numbers for a graphic; each amount matches its driver summary row. */
|
|
30868
|
+
breakdown: {
|
|
30869
|
+
/** @description Gross pay, the same amount as the Gross Pay summary row. */
|
|
30870
|
+
gross_pay?: string | null;
|
|
30871
|
+
/** @description Total taxes taken out; null without net pay detail. */
|
|
30872
|
+
taxes?: string | null;
|
|
30873
|
+
/** @description Total deductions taken out; null without net pay detail. */
|
|
30874
|
+
deductions?: string | null;
|
|
30875
|
+
/** @description Net pay; null without net pay detail. */
|
|
30876
|
+
net_pay?: string | null;
|
|
30877
|
+
};
|
|
30466
30878
|
pdf_url?: string | null;
|
|
30467
30879
|
/** Format: date-time */
|
|
30468
30880
|
pdf_expires_at?: string | null;
|
|
@@ -134894,7 +135306,7 @@ export interface operations {
|
|
|
134894
135306
|
};
|
|
134895
135307
|
};
|
|
134896
135308
|
};
|
|
134897
|
-
"ops.scorecards.
|
|
135309
|
+
"ops.scorecards.bonus_history": {
|
|
134898
135310
|
parameters: {
|
|
134899
135311
|
query?: never;
|
|
134900
135312
|
header?: {
|
|
@@ -134908,19 +135320,22 @@ export interface operations {
|
|
|
134908
135320
|
};
|
|
134909
135321
|
requestBody?: {
|
|
134910
135322
|
content: {
|
|
134911
|
-
/**
|
|
134912
|
-
* @example {
|
|
134913
|
-
* "week_start": "2026-04-12"
|
|
134914
|
-
* }
|
|
134915
|
-
*/
|
|
135323
|
+
/** @example {} */
|
|
134916
135324
|
"application/json": {
|
|
134917
|
-
/** @description Another driver to preview; default you. */
|
|
135325
|
+
/** @description Another driver or dispatcher to preview; default you. */
|
|
134918
135326
|
user_id?: number | null;
|
|
135327
|
+
/**
|
|
135328
|
+
* @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
|
|
135329
|
+
* @enum {string|null}
|
|
135330
|
+
*/
|
|
135331
|
+
audience?: "driver" | "dispatcher" | null;
|
|
135332
|
+
/** @description How many weeks with bonus results, newest first; 1 to 26, default 8. */
|
|
135333
|
+
week_count?: number | null;
|
|
134919
135334
|
/**
|
|
134920
135335
|
* Format: date
|
|
134921
|
-
* @description
|
|
135336
|
+
* @description Only weeks before this operational Sunday (Y-m-d), for the next page.
|
|
134922
135337
|
*/
|
|
134923
|
-
|
|
135338
|
+
before_week_start?: string | null;
|
|
134924
135339
|
};
|
|
134925
135340
|
};
|
|
134926
135341
|
};
|
|
@@ -134934,35 +135349,483 @@ export interface operations {
|
|
|
134934
135349
|
/**
|
|
134935
135350
|
* @example {
|
|
134936
135351
|
* "result": {
|
|
134937
|
-
* "
|
|
134938
|
-
* "
|
|
134939
|
-
*
|
|
134940
|
-
*
|
|
134941
|
-
*
|
|
134942
|
-
*
|
|
135352
|
+
* "audience": "driver",
|
|
135353
|
+
* "weeks": [
|
|
135354
|
+
* {
|
|
135355
|
+
* "week_start": "2026-10-11",
|
|
135356
|
+
* "iso_year": 2026,
|
|
135357
|
+
* "iso_week": 42,
|
|
135358
|
+
* "week_label": "Oct 11 to 17, 2026",
|
|
135359
|
+
* "total_amount": "40.85",
|
|
135360
|
+
* "bonuses": [
|
|
135361
|
+
* {
|
|
135362
|
+
* "scheme_id": 1,
|
|
135363
|
+
* "scheme_name": "Scorecard bonus",
|
|
135364
|
+
* "amount": "20.85",
|
|
135365
|
+
* "earned": true,
|
|
135366
|
+
* "pay_state": "on_statement",
|
|
135367
|
+
* "payroll_run_id": 1
|
|
135368
|
+
* },
|
|
135369
|
+
* {
|
|
135370
|
+
* "scheme_id": 2,
|
|
135371
|
+
* "scheme_name": "On-time arrival bonus",
|
|
135372
|
+
* "amount": "20.00",
|
|
135373
|
+
* "earned": true,
|
|
135374
|
+
* "pay_state": "pending",
|
|
135375
|
+
* "payroll_run_id": null
|
|
135376
|
+
* }
|
|
135377
|
+
* ]
|
|
135378
|
+
* },
|
|
135379
|
+
* {
|
|
135380
|
+
* "week_start": "2026-10-04",
|
|
135381
|
+
* "iso_year": 2026,
|
|
135382
|
+
* "iso_week": 41,
|
|
135383
|
+
* "week_label": "Oct 4 to 10, 2026",
|
|
135384
|
+
* "total_amount": "0.00",
|
|
135385
|
+
* "bonuses": [
|
|
135386
|
+
* {
|
|
135387
|
+
* "scheme_id": 1,
|
|
135388
|
+
* "scheme_name": "Scorecard bonus",
|
|
135389
|
+
* "amount": "0.00",
|
|
135390
|
+
* "earned": false,
|
|
135391
|
+
* "pay_state": "none",
|
|
135392
|
+
* "payroll_run_id": null
|
|
135393
|
+
* }
|
|
135394
|
+
* ]
|
|
135395
|
+
* },
|
|
135396
|
+
* {
|
|
135397
|
+
* "week_start": "2026-09-27",
|
|
135398
|
+
* "iso_year": 2026,
|
|
135399
|
+
* "iso_week": 40,
|
|
135400
|
+
* "week_label": "Sep 27 to Oct 3, 2026",
|
|
135401
|
+
* "total_amount": "35.00",
|
|
135402
|
+
* "bonuses": [
|
|
135403
|
+
* {
|
|
135404
|
+
* "scheme_id": 2,
|
|
135405
|
+
* "scheme_name": "On-time arrival bonus",
|
|
135406
|
+
* "amount": "20.00",
|
|
135407
|
+
* "earned": true,
|
|
135408
|
+
* "pay_state": "pending",
|
|
135409
|
+
* "payroll_run_id": null
|
|
135410
|
+
* },
|
|
135411
|
+
* {
|
|
135412
|
+
* "scheme_id": 1,
|
|
135413
|
+
* "scheme_name": "Scorecard bonus",
|
|
135414
|
+
* "amount": "15.00",
|
|
135415
|
+
* "earned": true,
|
|
135416
|
+
* "pay_state": "not_paid",
|
|
135417
|
+
* "payroll_run_id": null
|
|
135418
|
+
* }
|
|
135419
|
+
* ]
|
|
135420
|
+
* }
|
|
135421
|
+
* ],
|
|
135422
|
+
* "total_amount": "75.85",
|
|
135423
|
+
* "weeks_earned": 2,
|
|
135424
|
+
* "next_before_week_start": null,
|
|
135425
|
+
* "streak_weeks": 1,
|
|
135426
|
+
* "streak_text": null,
|
|
135427
|
+
* "year_label": "This year",
|
|
135428
|
+
* "year_total_amount": "75.85"
|
|
134943
135429
|
* }
|
|
134944
135430
|
* }
|
|
134945
135431
|
*/
|
|
134946
135432
|
"application/json": {
|
|
134947
135433
|
result: {
|
|
134948
|
-
/**
|
|
134949
|
-
|
|
134950
|
-
|
|
134951
|
-
|
|
134952
|
-
|
|
134953
|
-
|
|
134954
|
-
|
|
134955
|
-
|
|
134956
|
-
|
|
134957
|
-
|
|
134958
|
-
|
|
134959
|
-
|
|
134960
|
-
|
|
134961
|
-
|
|
134962
|
-
|
|
134963
|
-
/**
|
|
134964
|
-
|
|
135434
|
+
/** @description Whose scorecard the history is for: driver or dispatcher; null when the person holds neither portal. */
|
|
135435
|
+
audience?: string | null;
|
|
135436
|
+
/** @description Weeks with persisted bonus results, newest first. */
|
|
135437
|
+
weeks: {
|
|
135438
|
+
/**
|
|
135439
|
+
* Format: date
|
|
135440
|
+
* @description Operational Sunday that starts the week.
|
|
135441
|
+
*/
|
|
135442
|
+
week_start: string;
|
|
135443
|
+
/** @description ISO year of the week. */
|
|
135444
|
+
iso_year: number;
|
|
135445
|
+
/** @description ISO week number. */
|
|
135446
|
+
iso_week: number;
|
|
135447
|
+
/** @description The week as people read it, such as "Oct 11 to 17, 2026". */
|
|
135448
|
+
week_label: string;
|
|
135449
|
+
/** @description Bonus earned that week, in dollars. */
|
|
135450
|
+
total_amount: string;
|
|
135451
|
+
/** @description Bonus results this week, earned first. */
|
|
135452
|
+
bonuses: {
|
|
135453
|
+
/** @description Bonus scheme id. */
|
|
135454
|
+
scheme_id: number;
|
|
135455
|
+
/** @description Bonus scheme name. */
|
|
135456
|
+
scheme_name: string;
|
|
135457
|
+
/** @description Amount earned, in dollars; 0.00 when not earned. */
|
|
135458
|
+
amount: string;
|
|
135459
|
+
/** @description True when the bonus paid more than $0. */
|
|
135460
|
+
earned: boolean;
|
|
135461
|
+
/** @description pending (waiting for payroll), on_statement (on a pay statement), not_paid (voided), outside_payroll (dispatcher bonuses, paid outside Axivoy payroll) or none (not earned). */
|
|
135462
|
+
pay_state: string;
|
|
135463
|
+
/** @description Payroll run whose compensation statement carries it, when on_statement. */
|
|
135464
|
+
payroll_run_id?: number | null;
|
|
135465
|
+
}[];
|
|
134965
135466
|
}[];
|
|
135467
|
+
/** @description Bonus earned across the weeks on this page, in dollars. */
|
|
135468
|
+
total_amount: string;
|
|
135469
|
+
/** @description Weeks on this page with at least one earned bonus. */
|
|
135470
|
+
weeks_earned: number;
|
|
135471
|
+
/**
|
|
135472
|
+
* Format: date
|
|
135473
|
+
* @description Pass as before_week_start for the next page; null at the end.
|
|
135474
|
+
*/
|
|
135475
|
+
next_before_week_start?: string | null;
|
|
135476
|
+
/** @description Final weeks in a row with an earned bonus, newest first, up to 26; null after the first page. */
|
|
135477
|
+
streak_weeks?: number | null;
|
|
135478
|
+
/** @description "4 weeks in a row" from two weeks up, "Start a new streak this week" when the latest week broke a streak of two or more, else null. */
|
|
135479
|
+
streak_text?: string | null;
|
|
135480
|
+
/** @description Label for the year total, such as "This year"; null after the first page. */
|
|
135481
|
+
year_label?: string | null;
|
|
135482
|
+
/** @description Bonus earned this ISO year, in dollars; null after the first page. */
|
|
135483
|
+
year_total_amount?: string | null;
|
|
135484
|
+
};
|
|
135485
|
+
};
|
|
135486
|
+
};
|
|
135487
|
+
};
|
|
135488
|
+
202: components["responses"]["Proposal"];
|
|
135489
|
+
/** @description Refused: credits_exhausted. */
|
|
135490
|
+
402: {
|
|
135491
|
+
headers: {
|
|
135492
|
+
[name: string]: unknown;
|
|
135493
|
+
};
|
|
135494
|
+
content: {
|
|
135495
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135496
|
+
};
|
|
135497
|
+
};
|
|
135498
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
135499
|
+
403: {
|
|
135500
|
+
headers: {
|
|
135501
|
+
[name: string]: unknown;
|
|
135502
|
+
};
|
|
135503
|
+
content: {
|
|
135504
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135505
|
+
};
|
|
135506
|
+
};
|
|
135507
|
+
/** @description Refused: not_found. */
|
|
135508
|
+
404: {
|
|
135509
|
+
headers: {
|
|
135510
|
+
[name: string]: unknown;
|
|
135511
|
+
};
|
|
135512
|
+
content: {
|
|
135513
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135514
|
+
};
|
|
135515
|
+
};
|
|
135516
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
135517
|
+
409: {
|
|
135518
|
+
headers: {
|
|
135519
|
+
[name: string]: unknown;
|
|
135520
|
+
};
|
|
135521
|
+
content: {
|
|
135522
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135523
|
+
};
|
|
135524
|
+
};
|
|
135525
|
+
/** @description Refused: operation_retired. */
|
|
135526
|
+
410: {
|
|
135527
|
+
headers: {
|
|
135528
|
+
[name: string]: unknown;
|
|
135529
|
+
};
|
|
135530
|
+
content: {
|
|
135531
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135532
|
+
};
|
|
135533
|
+
};
|
|
135534
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
135535
|
+
422: {
|
|
135536
|
+
headers: {
|
|
135537
|
+
[name: string]: unknown;
|
|
135538
|
+
};
|
|
135539
|
+
content: {
|
|
135540
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135541
|
+
};
|
|
135542
|
+
};
|
|
135543
|
+
/** @description Refused: rate_limited. */
|
|
135544
|
+
429: {
|
|
135545
|
+
headers: {
|
|
135546
|
+
[name: string]: unknown;
|
|
135547
|
+
};
|
|
135548
|
+
content: {
|
|
135549
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135550
|
+
};
|
|
135551
|
+
};
|
|
135552
|
+
};
|
|
135553
|
+
};
|
|
135554
|
+
"ops.scorecards.bonus_previews": {
|
|
135555
|
+
parameters: {
|
|
135556
|
+
query?: never;
|
|
135557
|
+
header?: {
|
|
135558
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
135559
|
+
"Idempotency-Key"?: string;
|
|
135560
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
135561
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
135562
|
+
};
|
|
135563
|
+
path?: never;
|
|
135564
|
+
cookie?: never;
|
|
135565
|
+
};
|
|
135566
|
+
requestBody?: {
|
|
135567
|
+
content: {
|
|
135568
|
+
/**
|
|
135569
|
+
* @example {
|
|
135570
|
+
* "week_start": "2026-04-12"
|
|
135571
|
+
* }
|
|
135572
|
+
*/
|
|
135573
|
+
"application/json": {
|
|
135574
|
+
/** @description Another driver or dispatcher to preview; default you. */
|
|
135575
|
+
user_id?: number | null;
|
|
135576
|
+
/**
|
|
135577
|
+
* @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
|
|
135578
|
+
* @enum {string|null}
|
|
135579
|
+
*/
|
|
135580
|
+
audience?: "driver" | "dispatcher" | null;
|
|
135581
|
+
/**
|
|
135582
|
+
* Format: date
|
|
135583
|
+
* @description Operational Sunday of the week (Y-m-d); default the most recent week with scores.
|
|
135584
|
+
*/
|
|
135585
|
+
week_start?: string | null;
|
|
135586
|
+
};
|
|
135587
|
+
};
|
|
135588
|
+
};
|
|
135589
|
+
responses: {
|
|
135590
|
+
/** @description The operation ran. */
|
|
135591
|
+
200: {
|
|
135592
|
+
headers: {
|
|
135593
|
+
[name: string]: unknown;
|
|
135594
|
+
};
|
|
135595
|
+
content: {
|
|
135596
|
+
/**
|
|
135597
|
+
* @example {
|
|
135598
|
+
* "result": {
|
|
135599
|
+
* "audience": "driver",
|
|
135600
|
+
* "week_start": "2026-04-12",
|
|
135601
|
+
* "iso_year": 2026,
|
|
135602
|
+
* "iso_week": 16,
|
|
135603
|
+
* "context_line": "Aligned to week starting 2026-04-12 (week ending 2026-04-18).",
|
|
135604
|
+
* "has_weekly_snapshot": false,
|
|
135605
|
+
* "week_state": "ended",
|
|
135606
|
+
* "week_state_label": "Not final yet",
|
|
135607
|
+
* "week_state_tone": "info",
|
|
135608
|
+
* "week_label": "Apr 12 to 18, 2026",
|
|
135609
|
+
* "total_amount": "0.00",
|
|
135610
|
+
* "total_label": "$0 expected",
|
|
135611
|
+
* "available_amount": "0.00",
|
|
135612
|
+
* "summary": "No bonus this week",
|
|
135613
|
+
* "previews": []
|
|
135614
|
+
* }
|
|
135615
|
+
* }
|
|
135616
|
+
*/
|
|
135617
|
+
"application/json": {
|
|
135618
|
+
result: {
|
|
135619
|
+
audience?: string | null;
|
|
135620
|
+
/** Format: date */
|
|
135621
|
+
week_start?: string | null;
|
|
135622
|
+
iso_year?: number | null;
|
|
135623
|
+
iso_week?: number | null;
|
|
135624
|
+
context_line?: string | null;
|
|
135625
|
+
has_weekly_snapshot: boolean;
|
|
135626
|
+
/** @description in_progress while the week is open, ended until it is final, final once frozen or locked. */
|
|
135627
|
+
week_state: string;
|
|
135628
|
+
week_state_label: string;
|
|
135629
|
+
week_state_tone: string;
|
|
135630
|
+
week_label?: string | null;
|
|
135631
|
+
/** @description Earned (final), expected (ended) or on track (open) this week, in dollars. */
|
|
135632
|
+
total_amount: string;
|
|
135633
|
+
/** @description The total in words, for example "$20 on track" or "New week". */
|
|
135634
|
+
total_label: string;
|
|
135635
|
+
/** @description Still open this week: the potential of bonuses not yet met and not out of reach. 0.00 once the week ends. */
|
|
135636
|
+
available_amount: string;
|
|
135637
|
+
/** @description One sentence under the total; names amounts. */
|
|
135638
|
+
summary: string;
|
|
135639
|
+
previews: {
|
|
135640
|
+
scheme_id: number;
|
|
135641
|
+
scheme_name: string;
|
|
135642
|
+
scheme_slug?: string | null;
|
|
135643
|
+
mode: string;
|
|
135644
|
+
eligible: boolean;
|
|
135645
|
+
amount?: string | null;
|
|
135646
|
+
reason?: string | null;
|
|
135647
|
+
/** @description Why, in words. */
|
|
135648
|
+
reason_display?: string | null;
|
|
135649
|
+
/** Format: date */
|
|
135650
|
+
week_end_date?: string | null;
|
|
135651
|
+
/** @description earned, on_track, expected, not_yet, not_earned, out_of_reach, waiting or unavailable. */
|
|
135652
|
+
standing?: string | null;
|
|
135653
|
+
standing_label?: string | null;
|
|
135654
|
+
standing_tone?: string | null;
|
|
135655
|
+
/** @description The scheme's portal description. */
|
|
135656
|
+
about?: string | null;
|
|
135657
|
+
headline?: string | null;
|
|
135658
|
+
/** @description What the bonus is worth this week; conditional, never pay. */
|
|
135659
|
+
potential_amount?: string | null;
|
|
135660
|
+
/** @description Bonus detail line: "Worth $X if ..." while open, "Was worth $X with all N targets met" once ended. */
|
|
135661
|
+
worth_text?: string | null;
|
|
135662
|
+
conditions_met?: number | null;
|
|
135663
|
+
conditions_total?: number | null;
|
|
135664
|
+
conditions?: {
|
|
135665
|
+
label: string;
|
|
135666
|
+
metric_slug?: string | null;
|
|
135667
|
+
actual_display?: string | null;
|
|
135668
|
+
target_text: string;
|
|
135669
|
+
gap_text?: string | null;
|
|
135670
|
+
met: boolean;
|
|
135671
|
+
reachable: boolean;
|
|
135672
|
+
/** @description all, or any for one choice of an any-of group. */
|
|
135673
|
+
group: string;
|
|
135674
|
+
}[] | null;
|
|
135675
|
+
payout?: {
|
|
135676
|
+
/** @description tiered, flat, per_unit or qualifying_week_cap. */
|
|
135677
|
+
basis: string;
|
|
135678
|
+
text: string;
|
|
135679
|
+
metric_slug?: string | null;
|
|
135680
|
+
calculation_text?: string | null;
|
|
135681
|
+
tiers: {
|
|
135682
|
+
label: string;
|
|
135683
|
+
range_text?: string | null;
|
|
135684
|
+
current: boolean;
|
|
135685
|
+
amount: string;
|
|
135686
|
+
}[];
|
|
135687
|
+
} | null;
|
|
135688
|
+
}[];
|
|
135689
|
+
};
|
|
135690
|
+
};
|
|
135691
|
+
};
|
|
135692
|
+
};
|
|
135693
|
+
202: components["responses"]["Proposal"];
|
|
135694
|
+
/** @description Refused: credits_exhausted. */
|
|
135695
|
+
402: {
|
|
135696
|
+
headers: {
|
|
135697
|
+
[name: string]: unknown;
|
|
135698
|
+
};
|
|
135699
|
+
content: {
|
|
135700
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135701
|
+
};
|
|
135702
|
+
};
|
|
135703
|
+
/** @description Refused: not_permitted, not_available, authority_off, data_class_blocked. */
|
|
135704
|
+
403: {
|
|
135705
|
+
headers: {
|
|
135706
|
+
[name: string]: unknown;
|
|
135707
|
+
};
|
|
135708
|
+
content: {
|
|
135709
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135710
|
+
};
|
|
135711
|
+
};
|
|
135712
|
+
/** @description Refused: not_found. */
|
|
135713
|
+
404: {
|
|
135714
|
+
headers: {
|
|
135715
|
+
[name: string]: unknown;
|
|
135716
|
+
};
|
|
135717
|
+
content: {
|
|
135718
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135719
|
+
};
|
|
135720
|
+
};
|
|
135721
|
+
/** @description Refused: idempotency_conflict, stale_state. */
|
|
135722
|
+
409: {
|
|
135723
|
+
headers: {
|
|
135724
|
+
[name: string]: unknown;
|
|
135725
|
+
};
|
|
135726
|
+
content: {
|
|
135727
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135728
|
+
};
|
|
135729
|
+
};
|
|
135730
|
+
/** @description Refused: operation_retired. */
|
|
135731
|
+
410: {
|
|
135732
|
+
headers: {
|
|
135733
|
+
[name: string]: unknown;
|
|
135734
|
+
};
|
|
135735
|
+
content: {
|
|
135736
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135737
|
+
};
|
|
135738
|
+
};
|
|
135739
|
+
/** @description Refused: invalid_input, domain_rule. */
|
|
135740
|
+
422: {
|
|
135741
|
+
headers: {
|
|
135742
|
+
[name: string]: unknown;
|
|
135743
|
+
};
|
|
135744
|
+
content: {
|
|
135745
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135746
|
+
};
|
|
135747
|
+
};
|
|
135748
|
+
/** @description Refused: rate_limited. */
|
|
135749
|
+
429: {
|
|
135750
|
+
headers: {
|
|
135751
|
+
[name: string]: unknown;
|
|
135752
|
+
};
|
|
135753
|
+
content: {
|
|
135754
|
+
"application/json": components["schemas"]["OperationError"];
|
|
135755
|
+
};
|
|
135756
|
+
};
|
|
135757
|
+
};
|
|
135758
|
+
};
|
|
135759
|
+
"ops.scorecards.focus.set": {
|
|
135760
|
+
parameters: {
|
|
135761
|
+
query?: never;
|
|
135762
|
+
header?: {
|
|
135763
|
+
/** @description Replays the first result when the same call is retried. Send one per user intent on writes. */
|
|
135764
|
+
"Idempotency-Key"?: string;
|
|
135765
|
+
/** @description Send `true` to run every check without changing anything. The answer is `{"dry_run": {"outcome": "would_run" | "would_propose", "input": {...}}}`. */
|
|
135766
|
+
"Axivoy-Dry-Run"?: "true" | "false";
|
|
135767
|
+
};
|
|
135768
|
+
path?: never;
|
|
135769
|
+
cookie?: never;
|
|
135770
|
+
};
|
|
135771
|
+
requestBody?: {
|
|
135772
|
+
content: {
|
|
135773
|
+
/**
|
|
135774
|
+
* @example {
|
|
135775
|
+
* "metric_slug": "safety_score",
|
|
135776
|
+
* "week_start": "2026-10-18"
|
|
135777
|
+
* }
|
|
135778
|
+
*/
|
|
135779
|
+
"application/json": {
|
|
135780
|
+
/**
|
|
135781
|
+
* @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
|
|
135782
|
+
* @enum {string|null}
|
|
135783
|
+
*/
|
|
135784
|
+
audience?: "driver" | "dispatcher" | null;
|
|
135785
|
+
/** @description A score on your scorecard this open week (a headline metric or a part); null or omitted clears the focus. */
|
|
135786
|
+
metric_slug?: string | null;
|
|
135787
|
+
/**
|
|
135788
|
+
* Format: date
|
|
135789
|
+
* @description The week the screen shows (Y-m-d operational Sunday); refused once it is no longer the current open week.
|
|
135790
|
+
*/
|
|
135791
|
+
week_start?: string | null;
|
|
135792
|
+
};
|
|
135793
|
+
};
|
|
135794
|
+
};
|
|
135795
|
+
responses: {
|
|
135796
|
+
/** @description The operation ran. */
|
|
135797
|
+
200: {
|
|
135798
|
+
headers: {
|
|
135799
|
+
[name: string]: unknown;
|
|
135800
|
+
};
|
|
135801
|
+
content: {
|
|
135802
|
+
/**
|
|
135803
|
+
* @example {
|
|
135804
|
+
* "result": {
|
|
135805
|
+
* "audience": "driver",
|
|
135806
|
+
* "week_start": "2026-10-18",
|
|
135807
|
+
* "week_label": "Oct 18 to 24, 2026",
|
|
135808
|
+
* "focus_pick": {
|
|
135809
|
+
* "slug": "safety_score",
|
|
135810
|
+
* "name": "Safety",
|
|
135811
|
+
* "picked_at": "2026-10-21T15:00:00Z"
|
|
135812
|
+
* }
|
|
135813
|
+
* }
|
|
135814
|
+
* }
|
|
135815
|
+
*/
|
|
135816
|
+
"application/json": {
|
|
135817
|
+
result: {
|
|
135818
|
+
audience: string;
|
|
135819
|
+
/** Format: date */
|
|
135820
|
+
week_start: string;
|
|
135821
|
+
week_label: string;
|
|
135822
|
+
/** @description The score you picked; null once cleared. */
|
|
135823
|
+
focus_pick?: {
|
|
135824
|
+
slug: string;
|
|
135825
|
+
name: string;
|
|
135826
|
+
/** Format: date-time */
|
|
135827
|
+
picked_at: string;
|
|
135828
|
+
} | null;
|
|
134966
135829
|
};
|
|
134967
135830
|
};
|
|
134968
135831
|
};
|
|
@@ -135053,11 +135916,16 @@ export interface operations {
|
|
|
135053
135916
|
* }
|
|
135054
135917
|
*/
|
|
135055
135918
|
"application/json": {
|
|
135056
|
-
/** @description Another driver to preview; default you. */
|
|
135919
|
+
/** @description Another driver or dispatcher to preview; default you. */
|
|
135057
135920
|
user_id?: number | null;
|
|
135921
|
+
/**
|
|
135922
|
+
* @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
|
|
135923
|
+
* @enum {string|null}
|
|
135924
|
+
*/
|
|
135925
|
+
audience?: "driver" | "dispatcher" | null;
|
|
135058
135926
|
/**
|
|
135059
135927
|
* Format: date
|
|
135060
|
-
* @description Operational Sunday of the week (Y-m-d); default the
|
|
135928
|
+
* @description Operational Sunday of the week (Y-m-d); default the most recent week with scores.
|
|
135061
135929
|
*/
|
|
135062
135930
|
week_start?: string | null;
|
|
135063
135931
|
};
|
|
@@ -135073,6 +135941,7 @@ export interface operations {
|
|
|
135073
135941
|
/**
|
|
135074
135942
|
* @example {
|
|
135075
135943
|
* "result": {
|
|
135944
|
+
* "audience": "driver",
|
|
135076
135945
|
* "week_start": "2026-04-12",
|
|
135077
135946
|
* "iso_year": 2026,
|
|
135078
135947
|
* "iso_week": 16,
|
|
@@ -135089,7 +135958,63 @@ export interface operations {
|
|
|
135089
135958
|
* "prior_value": null,
|
|
135090
135959
|
* "format": "decimal",
|
|
135091
135960
|
* "decimals": 2,
|
|
135092
|
-
* "direction": "higher_is_better"
|
|
135961
|
+
* "direction": "higher_is_better",
|
|
135962
|
+
* "value_display": "70.25",
|
|
135963
|
+
* "hint": null,
|
|
135964
|
+
* "band_palette": "blue",
|
|
135965
|
+
* "band_position": 3,
|
|
135966
|
+
* "band_count": 5,
|
|
135967
|
+
* "needs_work": false,
|
|
135968
|
+
* "tip": null,
|
|
135969
|
+
* "change": null,
|
|
135970
|
+
* "next_step": {
|
|
135971
|
+
* "kind": "next_level",
|
|
135972
|
+
* "text": "9.75 to go for Fantastic"
|
|
135973
|
+
* },
|
|
135974
|
+
* "bands": [
|
|
135975
|
+
* {
|
|
135976
|
+
* "label": "Poor",
|
|
135977
|
+
* "palette": "red",
|
|
135978
|
+
* "range_text": "0 to 50",
|
|
135979
|
+
* "min": 0,
|
|
135980
|
+
* "max": 50,
|
|
135981
|
+
* "current": false
|
|
135982
|
+
* },
|
|
135983
|
+
* {
|
|
135984
|
+
* "label": "Fair",
|
|
135985
|
+
* "palette": "amber",
|
|
135986
|
+
* "range_text": "50 to 65",
|
|
135987
|
+
* "min": 50,
|
|
135988
|
+
* "max": 65,
|
|
135989
|
+
* "current": false
|
|
135990
|
+
* },
|
|
135991
|
+
* {
|
|
135992
|
+
* "label": "Great",
|
|
135993
|
+
* "palette": "blue",
|
|
135994
|
+
* "range_text": "65 to 80",
|
|
135995
|
+
* "min": 65,
|
|
135996
|
+
* "max": 80,
|
|
135997
|
+
* "current": true
|
|
135998
|
+
* },
|
|
135999
|
+
* {
|
|
136000
|
+
* "label": "Fantastic",
|
|
136001
|
+
* "palette": "green",
|
|
136002
|
+
* "range_text": "80 to 90",
|
|
136003
|
+
* "min": 80,
|
|
136004
|
+
* "max": 90,
|
|
136005
|
+
* "current": false
|
|
136006
|
+
* },
|
|
136007
|
+
* {
|
|
136008
|
+
* "label": "Fantastic Plus",
|
|
136009
|
+
* "palette": "violet",
|
|
136010
|
+
* "range_text": "90 or more",
|
|
136011
|
+
* "min": 90,
|
|
136012
|
+
* "max": null,
|
|
136013
|
+
* "current": false
|
|
136014
|
+
* }
|
|
136015
|
+
* ],
|
|
136016
|
+
* "targets": [],
|
|
136017
|
+
* "components_needing_work": null
|
|
135093
136018
|
* },
|
|
135094
136019
|
* {
|
|
135095
136020
|
* "kind": "single",
|
|
@@ -135102,7 +136027,63 @@ export interface operations {
|
|
|
135102
136027
|
* "prior_value": null,
|
|
135103
136028
|
* "format": "decimal",
|
|
135104
136029
|
* "decimals": 2,
|
|
135105
|
-
* "direction": "higher_is_better"
|
|
136030
|
+
* "direction": "higher_is_better",
|
|
136031
|
+
* "value_display": "85.75",
|
|
136032
|
+
* "hint": null,
|
|
136033
|
+
* "band_palette": "green",
|
|
136034
|
+
* "band_position": 4,
|
|
136035
|
+
* "band_count": 5,
|
|
136036
|
+
* "needs_work": false,
|
|
136037
|
+
* "tip": null,
|
|
136038
|
+
* "change": null,
|
|
136039
|
+
* "next_step": {
|
|
136040
|
+
* "kind": "next_level",
|
|
136041
|
+
* "text": "4.25 to go for Fantastic Plus"
|
|
136042
|
+
* },
|
|
136043
|
+
* "bands": [
|
|
136044
|
+
* {
|
|
136045
|
+
* "label": "Poor",
|
|
136046
|
+
* "palette": "red",
|
|
136047
|
+
* "range_text": "0 to 50",
|
|
136048
|
+
* "min": 0,
|
|
136049
|
+
* "max": 50,
|
|
136050
|
+
* "current": false
|
|
136051
|
+
* },
|
|
136052
|
+
* {
|
|
136053
|
+
* "label": "Fair",
|
|
136054
|
+
* "palette": "amber",
|
|
136055
|
+
* "range_text": "50 to 65",
|
|
136056
|
+
* "min": 50,
|
|
136057
|
+
* "max": 65,
|
|
136058
|
+
* "current": false
|
|
136059
|
+
* },
|
|
136060
|
+
* {
|
|
136061
|
+
* "label": "Great",
|
|
136062
|
+
* "palette": "blue",
|
|
136063
|
+
* "range_text": "65 to 80",
|
|
136064
|
+
* "min": 65,
|
|
136065
|
+
* "max": 80,
|
|
136066
|
+
* "current": false
|
|
136067
|
+
* },
|
|
136068
|
+
* {
|
|
136069
|
+
* "label": "Fantastic",
|
|
136070
|
+
* "palette": "green",
|
|
136071
|
+
* "range_text": "80 to 90",
|
|
136072
|
+
* "min": 80,
|
|
136073
|
+
* "max": 90,
|
|
136074
|
+
* "current": true
|
|
136075
|
+
* },
|
|
136076
|
+
* {
|
|
136077
|
+
* "label": "Fantastic Plus",
|
|
136078
|
+
* "palette": "violet",
|
|
136079
|
+
* "range_text": "90 or more",
|
|
136080
|
+
* "min": 90,
|
|
136081
|
+
* "max": null,
|
|
136082
|
+
* "current": false
|
|
136083
|
+
* }
|
|
136084
|
+
* ],
|
|
136085
|
+
* "targets": [],
|
|
136086
|
+
* "components_needing_work": null
|
|
135106
136087
|
* },
|
|
135107
136088
|
* {
|
|
135108
136089
|
* "kind": "single",
|
|
@@ -135115,20 +136096,120 @@ export interface operations {
|
|
|
135115
136096
|
* "prior_value": null,
|
|
135116
136097
|
* "format": "decimal",
|
|
135117
136098
|
* "decimals": 2,
|
|
135118
|
-
* "direction": "higher_is_better"
|
|
136099
|
+
* "direction": "higher_is_better",
|
|
136100
|
+
* "value_display": "92.50",
|
|
136101
|
+
* "hint": null,
|
|
136102
|
+
* "band_palette": "violet",
|
|
136103
|
+
* "band_position": 5,
|
|
136104
|
+
* "band_count": 5,
|
|
136105
|
+
* "needs_work": false,
|
|
136106
|
+
* "tip": null,
|
|
136107
|
+
* "change": null,
|
|
136108
|
+
* "next_step": {
|
|
136109
|
+
* "kind": "top_level",
|
|
136110
|
+
* "text": "Top level"
|
|
136111
|
+
* },
|
|
136112
|
+
* "bands": [
|
|
136113
|
+
* {
|
|
136114
|
+
* "label": "Poor",
|
|
136115
|
+
* "palette": "red",
|
|
136116
|
+
* "range_text": "0 to 50",
|
|
136117
|
+
* "min": 0,
|
|
136118
|
+
* "max": 50,
|
|
136119
|
+
* "current": false
|
|
136120
|
+
* },
|
|
136121
|
+
* {
|
|
136122
|
+
* "label": "Fair",
|
|
136123
|
+
* "palette": "amber",
|
|
136124
|
+
* "range_text": "50 to 65",
|
|
136125
|
+
* "min": 50,
|
|
136126
|
+
* "max": 65,
|
|
136127
|
+
* "current": false
|
|
136128
|
+
* },
|
|
136129
|
+
* {
|
|
136130
|
+
* "label": "Great",
|
|
136131
|
+
* "palette": "blue",
|
|
136132
|
+
* "range_text": "65 to 80",
|
|
136133
|
+
* "min": 65,
|
|
136134
|
+
* "max": 80,
|
|
136135
|
+
* "current": false
|
|
136136
|
+
* },
|
|
136137
|
+
* {
|
|
136138
|
+
* "label": "Fantastic",
|
|
136139
|
+
* "palette": "green",
|
|
136140
|
+
* "range_text": "80 to 90",
|
|
136141
|
+
* "min": 80,
|
|
136142
|
+
* "max": 90,
|
|
136143
|
+
* "current": false
|
|
136144
|
+
* },
|
|
136145
|
+
* {
|
|
136146
|
+
* "label": "Fantastic Plus",
|
|
136147
|
+
* "palette": "violet",
|
|
136148
|
+
* "range_text": "90 or more",
|
|
136149
|
+
* "min": 90,
|
|
136150
|
+
* "max": null,
|
|
136151
|
+
* "current": true
|
|
136152
|
+
* }
|
|
136153
|
+
* ],
|
|
136154
|
+
* "targets": [],
|
|
136155
|
+
* "components_needing_work": null
|
|
135119
136156
|
* }
|
|
135120
|
-
* ]
|
|
136157
|
+
* ],
|
|
136158
|
+
* "week_state": "ended",
|
|
136159
|
+
* "week_state_label": "Not final yet",
|
|
136160
|
+
* "week_state_tone": "info",
|
|
136161
|
+
* "week_label": "Apr 12 to 18, 2026",
|
|
136162
|
+
* "focus": [],
|
|
136163
|
+
* "wins": []
|
|
135121
136164
|
* }
|
|
135122
136165
|
* }
|
|
135123
136166
|
*/
|
|
135124
136167
|
"application/json": {
|
|
135125
136168
|
result: {
|
|
136169
|
+
audience?: string | null;
|
|
135126
136170
|
/** Format: date */
|
|
135127
136171
|
week_start?: string | null;
|
|
135128
136172
|
iso_year?: number | null;
|
|
135129
136173
|
iso_week?: number | null;
|
|
135130
136174
|
/** Format: date */
|
|
135131
136175
|
week_end?: string | null;
|
|
136176
|
+
/** @description in_progress while the week is open, ended until it is final, final once frozen or locked. */
|
|
136177
|
+
week_state: string;
|
|
136178
|
+
week_state_label: string;
|
|
136179
|
+
week_state_tone: string;
|
|
136180
|
+
/** @description The week in words, for example "Oct 11 to 17, 2026". */
|
|
136181
|
+
week_label?: string | null;
|
|
136182
|
+
/** @description What to work on: at most three items, the person's focus pick first, then the bonus closest to paying. Never names an amount. */
|
|
136183
|
+
focus: {
|
|
136184
|
+
slug: string;
|
|
136185
|
+
name: string;
|
|
136186
|
+
/** @description bonus_target or needs_work. */
|
|
136187
|
+
kind: string;
|
|
136188
|
+
text: string;
|
|
136189
|
+
gap_text?: string | null;
|
|
136190
|
+
tip?: string | null;
|
|
136191
|
+
scheme_id?: number | null;
|
|
136192
|
+
component_slugs: unknown[];
|
|
136193
|
+
/** @description The person's weekly focus pick ("Your focus"). */
|
|
136194
|
+
picked: boolean;
|
|
136195
|
+
}[];
|
|
136196
|
+
/** @description Wins this week: at most three, from this week and the week before. */
|
|
136197
|
+
wins: {
|
|
136198
|
+
slug: string;
|
|
136199
|
+
name: string;
|
|
136200
|
+
/** @description focus_improved, target_met, level_up or top_level_held. */
|
|
136201
|
+
kind: string;
|
|
136202
|
+
text: string;
|
|
136203
|
+
}[];
|
|
136204
|
+
/** @description The score the person picked to focus on this week; null when none. */
|
|
136205
|
+
focus_pick?: {
|
|
136206
|
+
slug: string;
|
|
136207
|
+
name: string;
|
|
136208
|
+
/** Format: date-time */
|
|
136209
|
+
picked_at: string;
|
|
136210
|
+
/** @description How the focus went, once the week has ended; null while it is open. */
|
|
136211
|
+
result_text?: string | null;
|
|
136212
|
+
} | null;
|
|
135132
136213
|
metrics: {
|
|
135133
136214
|
kind: string;
|
|
135134
136215
|
slug: string;
|
|
@@ -135141,7 +136222,108 @@ export interface operations {
|
|
|
135141
136222
|
format?: string | null;
|
|
135142
136223
|
decimals?: number | null;
|
|
135143
136224
|
direction?: string | null;
|
|
135144
|
-
|
|
136225
|
+
/** @description The value in the metric's format, or "No score". */
|
|
136226
|
+
value_display: string;
|
|
136227
|
+
hint?: string | null;
|
|
136228
|
+
/** @description red, amber, green, blue, violet or gray. */
|
|
136229
|
+
band_palette?: string | null;
|
|
136230
|
+
/** @description Level from the worst, 1-based. */
|
|
136231
|
+
band_position?: number | null;
|
|
136232
|
+
band_count?: number | null;
|
|
136233
|
+
needs_work: boolean;
|
|
136234
|
+
tip?: string | null;
|
|
136235
|
+
change?: {
|
|
136236
|
+
direction: string;
|
|
136237
|
+
better?: boolean | null;
|
|
136238
|
+
text: string;
|
|
136239
|
+
} | null;
|
|
136240
|
+
next_step?: {
|
|
136241
|
+
/** @description bonus_target, next_level or top_level. */
|
|
136242
|
+
kind: string;
|
|
136243
|
+
text: string;
|
|
136244
|
+
} | null;
|
|
136245
|
+
/** @description Score levels, worst first. */
|
|
136246
|
+
bands: {
|
|
136247
|
+
label: string;
|
|
136248
|
+
palette: string;
|
|
136249
|
+
range_text: string;
|
|
136250
|
+
min?: number | null;
|
|
136251
|
+
max?: number | null;
|
|
136252
|
+
current: boolean;
|
|
136253
|
+
}[];
|
|
136254
|
+
/** @description Bonus targets on this score. */
|
|
136255
|
+
targets: {
|
|
136256
|
+
scheme_id: number;
|
|
136257
|
+
scheme_name: string;
|
|
136258
|
+
text: string;
|
|
136259
|
+
gap_text?: string | null;
|
|
136260
|
+
met: boolean;
|
|
136261
|
+
reachable: boolean;
|
|
136262
|
+
}[];
|
|
136263
|
+
/** @description On a composite: its parts in the bottom half of their ladders. */
|
|
136264
|
+
components_needing_work?: {
|
|
136265
|
+
count: number;
|
|
136266
|
+
total: number;
|
|
136267
|
+
text: string;
|
|
136268
|
+
slugs: unknown[];
|
|
136269
|
+
} | null;
|
|
136270
|
+
components?: {
|
|
136271
|
+
slug: string;
|
|
136272
|
+
name: string;
|
|
136273
|
+
value?: number | null;
|
|
136274
|
+
band_slug?: string | null;
|
|
136275
|
+
band_label?: string | null;
|
|
136276
|
+
band_color?: string | null;
|
|
136277
|
+
prior_value?: number | null;
|
|
136278
|
+
format?: string | null;
|
|
136279
|
+
decimals?: number | null;
|
|
136280
|
+
direction?: string | null;
|
|
136281
|
+
/** @description The value in the metric's format, or "No score". */
|
|
136282
|
+
value_display: string;
|
|
136283
|
+
hint?: string | null;
|
|
136284
|
+
/** @description red, amber, green, blue, violet or gray. */
|
|
136285
|
+
band_palette?: string | null;
|
|
136286
|
+
/** @description Level from the worst, 1-based. */
|
|
136287
|
+
band_position?: number | null;
|
|
136288
|
+
band_count?: number | null;
|
|
136289
|
+
needs_work: boolean;
|
|
136290
|
+
tip?: string | null;
|
|
136291
|
+
change?: {
|
|
136292
|
+
direction: string;
|
|
136293
|
+
better?: boolean | null;
|
|
136294
|
+
text: string;
|
|
136295
|
+
} | null;
|
|
136296
|
+
next_step?: {
|
|
136297
|
+
/** @description bonus_target, next_level or top_level. */
|
|
136298
|
+
kind: string;
|
|
136299
|
+
text: string;
|
|
136300
|
+
} | null;
|
|
136301
|
+
/** @description Score levels, worst first. */
|
|
136302
|
+
bands: {
|
|
136303
|
+
label: string;
|
|
136304
|
+
palette: string;
|
|
136305
|
+
range_text: string;
|
|
136306
|
+
min?: number | null;
|
|
136307
|
+
max?: number | null;
|
|
136308
|
+
current: boolean;
|
|
136309
|
+
}[];
|
|
136310
|
+
/** @description Bonus targets on this score. */
|
|
136311
|
+
targets: {
|
|
136312
|
+
scheme_id: number;
|
|
136313
|
+
scheme_name: string;
|
|
136314
|
+
text: string;
|
|
136315
|
+
gap_text?: string | null;
|
|
136316
|
+
met: boolean;
|
|
136317
|
+
reachable: boolean;
|
|
136318
|
+
}[];
|
|
136319
|
+
/** @description On a composite: its parts in the bottom half of their ladders. */
|
|
136320
|
+
components_needing_work?: {
|
|
136321
|
+
count: number;
|
|
136322
|
+
total: number;
|
|
136323
|
+
text: string;
|
|
136324
|
+
slugs: unknown[];
|
|
136325
|
+
} | null;
|
|
136326
|
+
}[] | null;
|
|
135145
136327
|
}[];
|
|
135146
136328
|
};
|
|
135147
136329
|
};
|
|
@@ -135233,11 +136415,16 @@ export interface operations {
|
|
|
135233
136415
|
* }
|
|
135234
136416
|
*/
|
|
135235
136417
|
"application/json": {
|
|
135236
|
-
/** @description Another driver to preview; default you. */
|
|
136418
|
+
/** @description Another driver or dispatcher to preview; default you. */
|
|
135237
136419
|
user_id?: number | null;
|
|
136420
|
+
/**
|
|
136421
|
+
* @description Whose scorecard: driver or dispatcher; default the person's portal, driver first.
|
|
136422
|
+
* @enum {string|null}
|
|
136423
|
+
*/
|
|
136424
|
+
audience?: "driver" | "dispatcher" | null;
|
|
135238
136425
|
/**
|
|
135239
136426
|
* Format: date
|
|
135240
|
-
* @description Operational Sunday of the week (Y-m-d); default the
|
|
136427
|
+
* @description Operational Sunday of the week (Y-m-d); default the most recent week with scores.
|
|
135241
136428
|
*/
|
|
135242
136429
|
week_start?: string | null;
|
|
135243
136430
|
/** @description Metric slug; default all. */
|
|
@@ -135309,6 +136496,7 @@ export interface operations {
|
|
|
135309
136496
|
*/
|
|
135310
136497
|
"application/json": {
|
|
135311
136498
|
result: {
|
|
136499
|
+
audience?: string | null;
|
|
135312
136500
|
/** Format: date */
|
|
135313
136501
|
week_start?: string | null;
|
|
135314
136502
|
iso_year?: number | null;
|