@boxa-devops/depo-shared 1.1.0 → 1.3.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/src/api.ts CHANGED
@@ -2769,6 +2769,147 @@ export interface paths {
2769
2769
  patch?: never;
2770
2770
  trace?: never;
2771
2771
  };
2772
+ "/api/v1/part-requests": {
2773
+ parameters: {
2774
+ query?: never;
2775
+ header?: never;
2776
+ path?: never;
2777
+ cookie?: never;
2778
+ };
2779
+ /**
2780
+ * List Requests
2781
+ * @description All visible requests, or with inbox=true only those waiting on the caller:
2782
+ * storekeeper — NEW/ORDERED, deputy — ESCALATED, master — his own open ones.
2783
+ */
2784
+ get: operations["list_requests_api_v1_part_requests_get"];
2785
+ put?: never;
2786
+ /** Create */
2787
+ post: operations["create_api_v1_part_requests_post"];
2788
+ delete?: never;
2789
+ options?: never;
2790
+ head?: never;
2791
+ patch?: never;
2792
+ trace?: never;
2793
+ };
2794
+ "/api/v1/part-requests/{request_id}/issue": {
2795
+ parameters: {
2796
+ query?: never;
2797
+ header?: never;
2798
+ path?: never;
2799
+ cookie?: never;
2800
+ };
2801
+ get?: never;
2802
+ put?: never;
2803
+ /**
2804
+ * Issue
2805
+ * @description Hand out from one warehouse. Partial is fine; all covered → ISSUED.
2806
+ *
2807
+ * One transaction: a shortage on any line rolls the whole call back.
2808
+ */
2809
+ post: operations["issue_api_v1_part_requests__request_id__issue_post"];
2810
+ delete?: never;
2811
+ options?: never;
2812
+ head?: never;
2813
+ patch?: never;
2814
+ trace?: never;
2815
+ };
2816
+ "/api/v1/part-requests/{request_id}/escalate": {
2817
+ parameters: {
2818
+ query?: never;
2819
+ header?: never;
2820
+ path?: never;
2821
+ cookie?: never;
2822
+ };
2823
+ get?: never;
2824
+ put?: never;
2825
+ /**
2826
+ * Escalate
2827
+ * @description Not (all) in stock: forward the remainder to the deputy head for repair.
2828
+ */
2829
+ post: operations["escalate_api_v1_part_requests__request_id__escalate_post"];
2830
+ delete?: never;
2831
+ options?: never;
2832
+ head?: never;
2833
+ patch?: never;
2834
+ trace?: never;
2835
+ };
2836
+ "/api/v1/part-requests/{request_id}/approve": {
2837
+ parameters: {
2838
+ query?: never;
2839
+ header?: never;
2840
+ path?: never;
2841
+ cookie?: never;
2842
+ };
2843
+ get?: never;
2844
+ put?: never;
2845
+ /**
2846
+ * Approve
2847
+ * @description Deputy confirms the purchase: ESCALATED → ORDERED.
2848
+ */
2849
+ post: operations["approve_api_v1_part_requests__request_id__approve_post"];
2850
+ delete?: never;
2851
+ options?: never;
2852
+ head?: never;
2853
+ patch?: never;
2854
+ trace?: never;
2855
+ };
2856
+ "/api/v1/part-requests/{request_id}/reject": {
2857
+ parameters: {
2858
+ query?: never;
2859
+ header?: never;
2860
+ path?: never;
2861
+ cookie?: never;
2862
+ };
2863
+ get?: never;
2864
+ put?: never;
2865
+ /**
2866
+ * Reject
2867
+ * @description Storekeeper rejects a NEW request, the deputy an ESCALATED one. Reason required.
2868
+ */
2869
+ post: operations["reject_api_v1_part_requests__request_id__reject_post"];
2870
+ delete?: never;
2871
+ options?: never;
2872
+ head?: never;
2873
+ patch?: never;
2874
+ trace?: never;
2875
+ };
2876
+ "/api/v1/part-requests/{request_id}/cancel": {
2877
+ parameters: {
2878
+ query?: never;
2879
+ header?: never;
2880
+ path?: never;
2881
+ cookie?: never;
2882
+ };
2883
+ get?: never;
2884
+ put?: never;
2885
+ /**
2886
+ * Cancel
2887
+ * @description The author withdraws a request nobody has acted on for good yet.
2888
+ */
2889
+ post: operations["cancel_api_v1_part_requests__request_id__cancel_post"];
2890
+ delete?: never;
2891
+ options?: never;
2892
+ head?: never;
2893
+ patch?: never;
2894
+ trace?: never;
2895
+ };
2896
+ "/api/v1/part-requests/{request_id}": {
2897
+ parameters: {
2898
+ query?: never;
2899
+ header?: never;
2900
+ path?: never;
2901
+ cookie?: never;
2902
+ };
2903
+ /** Get Request */
2904
+ get: operations["get_request_api_v1_part_requests__request_id__get"];
2905
+ put?: never;
2906
+ post?: never;
2907
+ delete?: never;
2908
+ options?: never;
2909
+ head?: never;
2910
+ patch?: never;
2911
+ trace?: never;
2912
+ };
2772
2913
  "/api/v1/plant-shipments": {
2773
2914
  parameters: {
2774
2915
  query?: never;
@@ -2927,6 +3068,30 @@ export interface paths {
2927
3068
  patch?: never;
2928
3069
  trace?: never;
2929
3070
  };
3071
+ "/api/v1/refs/loco-sections": {
3072
+ parameters: {
3073
+ query?: never;
3074
+ header?: never;
3075
+ path?: never;
3076
+ cookie?: never;
3077
+ };
3078
+ /**
3079
+ * Loco Sections
3080
+ * @description The places a part sits on the machine — what the position picker draws.
3081
+ *
3082
+ * A hint catalogue (TZ §14): nothing validates `mount_position` against it,
3083
+ * a place typed by hand stays legal, and a client that has never heard of a
3084
+ * section simply does not light it.
3085
+ */
3086
+ get: operations["loco_sections_api_v1_refs_loco_sections_get"];
3087
+ put?: never;
3088
+ post?: never;
3089
+ delete?: never;
3090
+ options?: never;
3091
+ head?: never;
3092
+ patch?: never;
3093
+ trace?: never;
3094
+ };
2930
3095
  "/api/v1/refs/loco-series-positions": {
2931
3096
  parameters: {
2932
3097
  query?: never;
@@ -3302,6 +3467,46 @@ export interface paths {
3302
3467
  patch?: never;
3303
3468
  trace?: never;
3304
3469
  };
3470
+ "/api/v1/reports/kpi-trend": {
3471
+ parameters: {
3472
+ query?: never;
3473
+ header?: never;
3474
+ path?: never;
3475
+ cookie?: never;
3476
+ };
3477
+ /**
3478
+ * Kpi Trend
3479
+ * @description Daily series behind the dashboard tiles (what the tables can answer honestly).
3480
+ */
3481
+ get: operations["kpi_trend_api_v1_reports_kpi_trend_get"];
3482
+ put?: never;
3483
+ post?: never;
3484
+ delete?: never;
3485
+ options?: never;
3486
+ head?: never;
3487
+ patch?: never;
3488
+ trace?: never;
3489
+ };
3490
+ "/api/v1/reports/nav-counters": {
3491
+ parameters: {
3492
+ query?: never;
3493
+ header?: never;
3494
+ path?: never;
3495
+ cookie?: never;
3496
+ };
3497
+ /**
3498
+ * Nav Counters
3499
+ * @description Badge counts for the admin menu — three COUNTs, scoped to what the caller sees.
3500
+ */
3501
+ get: operations["nav_counters_api_v1_reports_nav_counters_get"];
3502
+ put?: never;
3503
+ post?: never;
3504
+ delete?: never;
3505
+ options?: never;
3506
+ head?: never;
3507
+ patch?: never;
3508
+ trace?: never;
3509
+ };
3305
3510
  "/api/v1/reports/open-orders": {
3306
3511
  parameters: {
3307
3512
  query?: never;
@@ -4275,6 +4480,95 @@ export interface paths {
4275
4480
  patch?: never;
4276
4481
  trace?: never;
4277
4482
  };
4483
+ "/api/v1/work-orders/measuring": {
4484
+ parameters: {
4485
+ query?: never;
4486
+ header?: never;
4487
+ path?: never;
4488
+ cookie?: never;
4489
+ };
4490
+ get?: never;
4491
+ put?: never;
4492
+ /**
4493
+ * Open Measuring Order
4494
+ * @description The measuring order of one visit — opened on the first ask, returned on
4495
+ * every later one (invariant 3: a replayed offline tap opens nothing new).
4496
+ */
4497
+ post: operations["open_measuring_order_api_v1_work_orders_measuring_post"];
4498
+ delete?: never;
4499
+ options?: never;
4500
+ head?: never;
4501
+ patch?: never;
4502
+ trace?: never;
4503
+ };
4504
+ "/api/v1/work-orders/measuring/{wo_id}/items": {
4505
+ parameters: {
4506
+ query?: never;
4507
+ header?: never;
4508
+ path?: never;
4509
+ cookie?: never;
4510
+ };
4511
+ /**
4512
+ * Measuring Items
4513
+ * @description What stands on this machine and can be measured, with its numbers, the
4514
+ * hints those numbers fire and the verdict already signed on it.
4515
+ */
4516
+ get: operations["measuring_items_api_v1_work_orders_measuring__wo_id__items_get"];
4517
+ put?: never;
4518
+ post?: never;
4519
+ delete?: never;
4520
+ options?: never;
4521
+ head?: never;
4522
+ patch?: never;
4523
+ trace?: never;
4524
+ };
4525
+ "/api/v1/work-orders/measuring/{wo_id}/verdict": {
4526
+ parameters: {
4527
+ query?: never;
4528
+ header?: never;
4529
+ path?: never;
4530
+ cookie?: never;
4531
+ };
4532
+ get?: never;
4533
+ put?: never;
4534
+ /**
4535
+ * Measuring Verdict
4536
+ * @description «Ремонтируем» / «Не трогаем» on one measured part, under the master's PIN.
4537
+ */
4538
+ post: operations["measuring_verdict_api_v1_work_orders_measuring__wo_id__verdict_post"];
4539
+ delete?: never;
4540
+ options?: never;
4541
+ head?: never;
4542
+ patch?: never;
4543
+ trace?: never;
4544
+ };
4545
+ "/api/v1/work-orders/measuring/{wo_id}/verdicts": {
4546
+ parameters: {
4547
+ query?: never;
4548
+ header?: never;
4549
+ path?: never;
4550
+ cookie?: never;
4551
+ };
4552
+ get?: never;
4553
+ put?: never;
4554
+ /**
4555
+ * Inspection Sign
4556
+ * @description The inspection pass: several parts decided at once, signed once.
4557
+ *
4558
+ * The single-part `/verdict` above stays what the master's own screen uses.
4559
+ * This one is the shop-floor walk — the man reads a handful of units, says
4560
+ * «good» or «this one», names himself by tab_no and PIN, and signs the lot.
4561
+ * One signature whose payload_hash covers every line (invariant 6), one
4562
+ * INSPECT event per part under a derived uuid, so a replayed tap of the whole
4563
+ * pass writes nothing twice (invariant 3).
4564
+ */
4565
+ post: operations["inspection_sign_api_v1_work_orders_measuring__wo_id__verdicts_post"];
4566
+ delete?: never;
4567
+ options?: never;
4568
+ head?: never;
4569
+ patch?: never;
4570
+ trace?: never;
4571
+ };
4278
4572
  "/api/v1/work-orders/{wo_id}/accept": {
4279
4573
  parameters: {
4280
4574
  query?: never;
@@ -4445,6 +4739,26 @@ export interface paths {
4445
4739
  patch?: never;
4446
4740
  trace?: never;
4447
4741
  };
4742
+ "/api/v1/work-orders/{wo_id}/tasks/{task_id}/cosign-op": {
4743
+ parameters: {
4744
+ query?: never;
4745
+ header?: never;
4746
+ path?: never;
4747
+ cookie?: never;
4748
+ };
4749
+ get?: never;
4750
+ put?: never;
4751
+ /**
4752
+ * Cosign Task Op
4753
+ * @description Start/pause/resume/finish one operation, verified by the fitter's card + PIN.
4754
+ */
4755
+ post: operations["cosign_task_op_api_v1_work_orders__wo_id__tasks__task_id__cosign_op_post"];
4756
+ delete?: never;
4757
+ options?: never;
4758
+ head?: never;
4759
+ patch?: never;
4760
+ trace?: never;
4761
+ };
4448
4762
  "/api/v1/work-orders/{wo_id}/work-accept-sign": {
4449
4763
  parameters: {
4450
4764
  query?: never;
@@ -6447,7 +6761,7 @@ export interface components {
6447
6761
  * @description discriminator enum property added by openapi-typescript
6448
6762
  * @enum {string}
6449
6763
  */
6450
- event_type: "RECEIVE_NEW" | "ISSUE_OUT" | "SEND_TO_REPAIR" | "QC_ACCEPT" | "QC_REJECT" | "STORE_IN" | "ASSEMBLE" | "DISASSEMBLE" | "SEND_TO_PLANT" | "RETURN_FROM_PLANT" | "PLANT_REJECT" | "COUNT" | "SCRAP" | "LOST";
6764
+ event_type: "RECEIVE_NEW" | "ISSUE_OUT" | "SEND_TO_REPAIR" | "QC_ACCEPT" | "QC_REJECT" | "ASSEMBLE" | "DISASSEMBLE" | "SEND_TO_PLANT" | "RETURN_FROM_PLANT" | "PLANT_REJECT" | "COUNT" | "SCRAP" | "LOST";
6451
6765
  };
6452
6766
  /** HTTPValidationError */
6453
6767
  HTTPValidationError: {
@@ -6845,7 +7159,16 @@ export interface components {
6845
7159
  /** Reason */
6846
7160
  reason?: string | null;
6847
7161
  };
6848
- /** InspectCommand */
7162
+ /**
7163
+ * InspectCommand
7164
+ * @description Defectation — and, since B21, the measuring pass under the machine.
7165
+ *
7166
+ * From INSTALLED it is a pure record: the numbers are taken, the rules speak,
7167
+ * and nothing moves until the master signs a verdict
7168
+ * (/work-orders/measuring/{id}/verdict). `work_order_id` + `task_id` point at
7169
+ * the measuring order of the visit, so the readings belong to an operation
7170
+ * like any other work.
7171
+ */
6849
7172
  InspectCommand: {
6850
7173
  /**
6851
7174
  * Item Id
@@ -6902,14 +7225,23 @@ export interface components {
6902
7225
  event_type: "INSPECT";
6903
7226
  /** Requested Status */
6904
7227
  requested_status?: "AWAITING_DISPOSITION" | null;
7228
+ /** Measurements */
7229
+ measurements?: components["schemas"]["MeasurementValueIn"][];
6905
7230
  };
6906
- /** InstallCommand */
6907
- InstallCommand: {
6908
- /**
6909
- * Item Id
6910
- * Format: uuid
6911
- */
6912
- item_id: string;
7231
+ /**
7232
+ * InspectionSignIn
7233
+ * @description The whole inspection pass, signed once by the man who walked it.
7234
+ *
7235
+ * One signature over the list, not one per line: the pass is a single act of
7236
+ * a single person — he looked at these parts, in this order, and says this
7237
+ * about them. The payload_hash covers every line, so no line can be edited
7238
+ * out of a signed pass (invariant 6).
7239
+ *
7240
+ * He names himself the way a co-signature does (badge_uid under RFID, tab_no
7241
+ * under the TABEL pilot, PIN in both): the terminal is logged in as whoever
7242
+ * opened the shift, and the inspector is not always that man.
7243
+ */
7244
+ InspectionSignIn: {
6913
7245
  /**
6914
7246
  * Event At
6915
7247
  * Format: date-time
@@ -6920,7 +7252,52 @@ export interface components {
6920
7252
  * Format: uuid
6921
7253
  */
6922
7254
  client_event_uuid: string;
6923
- /** To Location Id */
7255
+ /** Terminal Id */
7256
+ terminal_id?: string | null;
7257
+ /** Badge Uid */
7258
+ badge_uid?: string | null;
7259
+ /** Tab No */
7260
+ tab_no?: string | null;
7261
+ /** Pin */
7262
+ pin: string;
7263
+ /** Lines */
7264
+ lines: components["schemas"]["VerdictLine"][];
7265
+ /** Comment */
7266
+ comment?: string | null;
7267
+ };
7268
+ /** InspectionSignOut */
7269
+ InspectionSignOut: {
7270
+ /**
7271
+ * Signed By Person Id
7272
+ * Format: uuid
7273
+ */
7274
+ signed_by_person_id: string;
7275
+ /**
7276
+ * Existing
7277
+ * @default false
7278
+ */
7279
+ existing: boolean;
7280
+ /** Results */
7281
+ results?: components["schemas"]["VerdictOut"][];
7282
+ };
7283
+ /** InstallCommand */
7284
+ InstallCommand: {
7285
+ /**
7286
+ * Item Id
7287
+ * Format: uuid
7288
+ */
7289
+ item_id: string;
7290
+ /**
7291
+ * Event At
7292
+ * Format: date-time
7293
+ */
7294
+ event_at: string;
7295
+ /**
7296
+ * Client Event Uuid
7297
+ * Format: uuid
7298
+ */
7299
+ client_event_uuid: string;
7300
+ /** To Location Id */
6924
7301
  to_location_id?: string | null;
6925
7302
  /**
6926
7303
  * To Locomotive Id
@@ -7060,6 +7437,24 @@ export interface components {
7060
7437
  /** Terminal Id */
7061
7438
  terminal_id?: string | null;
7062
7439
  };
7440
+ /**
7441
+ * IssueLineIn
7442
+ * @description QUANTITY line: `qty`. SERIAL line: `item_ids` (each card is one unit).
7443
+ */
7444
+ IssueLineIn: {
7445
+ /**
7446
+ * Line Id
7447
+ * Format: uuid
7448
+ */
7449
+ line_id: string;
7450
+ /** Qty */
7451
+ qty?: number | string | null;
7452
+ /**
7453
+ * Item Ids
7454
+ * @default []
7455
+ */
7456
+ item_ids: string[];
7457
+ };
7063
7458
  /**
7064
7459
  * ItemCandidate
7065
7460
  * @description One row of the search candidate list (TZ 6: selection screen card).
@@ -7220,6 +7615,10 @@ export interface components {
7220
7615
  repair_count: number | null;
7221
7616
  /** Marked No Duplicate */
7222
7617
  marked_no_duplicate: boolean;
7618
+ /** Resource Pct */
7619
+ resource_pct?: number | null;
7620
+ /** Resource Param */
7621
+ resource_param?: string | null;
7223
7622
  /** Attrs */
7224
7623
  attrs?: {
7225
7624
  [key: string]: string | null;
@@ -7282,6 +7681,22 @@ export interface components {
7282
7681
  /** Manufactured On */
7283
7682
  manufactured_on?: string | null;
7284
7683
  };
7684
+ /**
7685
+ * KpiTrend
7686
+ * @description Daily series under the dashboard tiles. Every list is `days` long.
7687
+ */
7688
+ KpiTrend: {
7689
+ /** Days */
7690
+ days: string[];
7691
+ /** Open Orders */
7692
+ open_orders: number[];
7693
+ /** Orders Opened */
7694
+ orders_opened: number[];
7695
+ /** Orders Closed */
7696
+ orders_closed: number[];
7697
+ /** Defects Found */
7698
+ defects_found: number[];
7699
+ };
7285
7700
  /** LocationContents */
7286
7701
  LocationContents: {
7287
7702
  location: components["schemas"]["RoomOut"];
@@ -7541,6 +7956,21 @@ export interface components {
7541
7956
  /** Attention Order Ids */
7542
7957
  attention_order_ids: string[];
7543
7958
  };
7959
+ /**
7960
+ * LocoSectionRef
7961
+ * @description One place on the machine, as the position picker draws it.
7962
+ *
7963
+ * Ordered by `sort`; the band a section belongs to is drawn where its
7964
+ * smallest sort puts it, so one number orders both the strip and the row.
7965
+ */
7966
+ LocoSectionRef: {
7967
+ /** Code */
7968
+ code: string;
7969
+ /** Band */
7970
+ band: string;
7971
+ /** Sort */
7972
+ sort: number;
7973
+ };
7544
7974
  /**
7545
7975
  * LocoSeriesOut
7546
7976
  * @description Series dictionary + its picture key (terminal caches both offline).
@@ -7869,6 +8299,67 @@ export interface components {
7869
8299
  /** Nomenclature Name */
7870
8300
  nomenclature_name: string | null;
7871
8301
  };
8302
+ /**
8303
+ * MeasuredItemOut
8304
+ * @description One part standing on the machine: what it reads, what the rules say
8305
+ * about it, and what the master already decided.
8306
+ */
8307
+ MeasuredItemOut: {
8308
+ /**
8309
+ * Item Id
8310
+ * Format: uuid
8311
+ */
8312
+ item_id: string;
8313
+ /** Inventory No */
8314
+ inventory_no: string;
8315
+ /** Marked No */
8316
+ marked_no: string | null;
8317
+ /**
8318
+ * Nomenclature Id
8319
+ * Format: uuid
8320
+ */
8321
+ nomenclature_id: string;
8322
+ /** Nomenclature Name */
8323
+ nomenclature_name: string | null;
8324
+ /** Mount Position */
8325
+ mount_position: string | null;
8326
+ /** Measured At */
8327
+ measured_at: string | null;
8328
+ /** Values */
8329
+ values?: components["schemas"]["MeasuredValueOut"][];
8330
+ /** Recommendations */
8331
+ recommendations?: {
8332
+ [key: string]: unknown;
8333
+ }[];
8334
+ /** Verdict */
8335
+ verdict?: string | null;
8336
+ /** Verdict Work Order Number */
8337
+ verdict_work_order_number?: string | null;
8338
+ };
8339
+ /**
8340
+ * MeasuredValueOut
8341
+ * @description The last reading of one parameter, as the master's screen shows it.
8342
+ */
8343
+ MeasuredValueOut: {
8344
+ /** Param Code */
8345
+ param_code: string;
8346
+ /** Param Name */
8347
+ param_name: string | null;
8348
+ /** Actual Value */
8349
+ actual_value: string | null;
8350
+ /** Norm Min */
8351
+ norm_min: string | null;
8352
+ /** Norm Max */
8353
+ norm_max: string | null;
8354
+ /** Uom */
8355
+ uom: string | null;
8356
+ /** Is Pass */
8357
+ is_pass: boolean | null;
8358
+ /** Measured At */
8359
+ measured_at: string | null;
8360
+ /** Stage */
8361
+ stage: string | null;
8362
+ };
7872
8363
  /**
7873
8364
  * MeasurementAddIn
7874
8365
  * @description «O'lchov qo'shish» on the card: one visit of the depot, several numbers.
@@ -7930,6 +8421,36 @@ export interface components {
7930
8421
  /** Actual Value */
7931
8422
  actual_value?: number | string | null;
7932
8423
  };
8424
+ /**
8425
+ * MeasuringOrderIn
8426
+ * @description Open (or re-fetch) the measuring order of one locomotive visit.
8427
+ *
8428
+ * The visit may be named directly, or by the machine the terminal stands at.
8429
+ * The second shape exists because nothing in the depot opens a visit today
8430
+ * (TZ 9.2): the man taps «tekshirish» on the locomotive screen, names what it
8431
+ * came in for, and the visit is born there — otherwise the button is dead
8432
+ * until somebody remembers to enter the visit at a desk.
8433
+ */
8434
+ MeasuringOrderIn: {
8435
+ /**
8436
+ * Event At
8437
+ * Format: date-time
8438
+ */
8439
+ event_at: string;
8440
+ /**
8441
+ * Client Event Uuid
8442
+ * Format: uuid
8443
+ */
8444
+ client_event_uuid: string;
8445
+ /** Terminal Id */
8446
+ terminal_id?: string | null;
8447
+ /** Locomotive Visit Id */
8448
+ locomotive_visit_id?: string | null;
8449
+ /** Locomotive Id */
8450
+ locomotive_id?: string | null;
8451
+ /** Repair Type Code */
8452
+ repair_type_code?: string | null;
8453
+ };
7933
8454
  /** MemberCloseIn */
7934
8455
  MemberCloseIn: {
7935
8456
  /**
@@ -8023,6 +8544,20 @@ export interface components {
8023
8544
  */
8024
8545
  event_type: "MOVE";
8025
8546
  };
8547
+ /**
8548
+ * NavCounters
8549
+ * @description What waits behind each menu line. None = the caller may not open it.
8550
+ */
8551
+ NavCounters: {
8552
+ /** Orders Overdue */
8553
+ orders_overdue: number | null;
8554
+ /** Disposition */
8555
+ disposition: number | null;
8556
+ /** Inventory Open */
8557
+ inventory_open: number | null;
8558
+ /** Part Requests Waiting */
8559
+ part_requests_waiting?: number | null;
8560
+ };
8026
8561
  /** NodeOut */
8027
8562
  NodeOut: {
8028
8563
  /** Key */
@@ -9027,6 +9562,171 @@ export interface components {
9027
9562
  /** Cumulative Pct */
9028
9563
  cumulative_pct: number;
9029
9564
  };
9565
+ /**
9566
+ * PartRequestApprove
9567
+ * @description POST /part-requests/{id}/approve — deputy starts the purchase.
9568
+ */
9569
+ PartRequestApprove: {
9570
+ /**
9571
+ * Client Event Uuid
9572
+ * Format: uuid
9573
+ */
9574
+ client_event_uuid: string;
9575
+ /**
9576
+ * Event At
9577
+ * Format: date-time
9578
+ */
9579
+ event_at: string;
9580
+ /** Counterparty Id */
9581
+ counterparty_id?: string | null;
9582
+ /** Order Note */
9583
+ order_note?: string | null;
9584
+ };
9585
+ /**
9586
+ * PartRequestCreate
9587
+ * @description POST /part-requests — the master asks for parts.
9588
+ */
9589
+ PartRequestCreate: {
9590
+ /**
9591
+ * Client Event Uuid
9592
+ * Format: uuid
9593
+ */
9594
+ client_event_uuid: string;
9595
+ /**
9596
+ * Event At
9597
+ * Format: date-time
9598
+ */
9599
+ event_at: string;
9600
+ /**
9601
+ * Location Id
9602
+ * Format: uuid
9603
+ */
9604
+ location_id: string;
9605
+ /** Work Order Id */
9606
+ work_order_id?: string | null;
9607
+ /** Note */
9608
+ note?: string | null;
9609
+ /** Lines */
9610
+ lines: components["schemas"]["PartRequestLineIn"][];
9611
+ };
9612
+ /**
9613
+ * PartRequestIssue
9614
+ * @description POST /part-requests/{id}/issue — storekeeper hands out from a warehouse.
9615
+ */
9616
+ PartRequestIssue: {
9617
+ /**
9618
+ * Client Event Uuid
9619
+ * Format: uuid
9620
+ */
9621
+ client_event_uuid: string;
9622
+ /**
9623
+ * Event At
9624
+ * Format: date-time
9625
+ */
9626
+ event_at: string;
9627
+ /**
9628
+ * Warehouse Id
9629
+ * Format: uuid
9630
+ */
9631
+ warehouse_id: string;
9632
+ /** Lines */
9633
+ lines: components["schemas"]["IssueLineIn"][];
9634
+ };
9635
+ /** PartRequestLineIn */
9636
+ PartRequestLineIn: {
9637
+ /**
9638
+ * Nomenclature Id
9639
+ * Format: uuid
9640
+ */
9641
+ nomenclature_id: string;
9642
+ /** Qty */
9643
+ qty: number | string;
9644
+ };
9645
+ /** PartRequestLineOut */
9646
+ PartRequestLineOut: {
9647
+ /**
9648
+ * Id
9649
+ * Format: uuid
9650
+ */
9651
+ id: string;
9652
+ /**
9653
+ * Nomenclature Id
9654
+ * Format: uuid
9655
+ */
9656
+ nomenclature_id: string;
9657
+ /** Qty */
9658
+ qty: string;
9659
+ /** Issued Qty */
9660
+ issued_qty: string;
9661
+ };
9662
+ /**
9663
+ * PartRequestNote
9664
+ * @description escalate / reject / cancel.
9665
+ */
9666
+ PartRequestNote: {
9667
+ /**
9668
+ * Client Event Uuid
9669
+ * Format: uuid
9670
+ */
9671
+ client_event_uuid: string;
9672
+ /**
9673
+ * Event At
9674
+ * Format: date-time
9675
+ */
9676
+ event_at: string;
9677
+ /** Note */
9678
+ note?: string | null;
9679
+ };
9680
+ /** PartRequestOut */
9681
+ PartRequestOut: {
9682
+ /**
9683
+ * Id
9684
+ * Format: uuid
9685
+ */
9686
+ id: string;
9687
+ /** Number */
9688
+ number: string;
9689
+ /** Status */
9690
+ status: string;
9691
+ /**
9692
+ * Location Id
9693
+ * Format: uuid
9694
+ */
9695
+ location_id: string;
9696
+ /** Work Order Id */
9697
+ work_order_id: string | null;
9698
+ /** Note */
9699
+ note: string | null;
9700
+ /**
9701
+ * Requested By
9702
+ * Format: uuid
9703
+ */
9704
+ requested_by: string;
9705
+ /**
9706
+ * Requested At
9707
+ * Format: date-time
9708
+ */
9709
+ requested_at: string;
9710
+ /** Keeper Id */
9711
+ keeper_id: string | null;
9712
+ /** Keeper At */
9713
+ keeper_at: string | null;
9714
+ /** Deputy Id */
9715
+ deputy_id: string | null;
9716
+ /** Deputy At */
9717
+ deputy_at: string | null;
9718
+ /** Counterparty Id */
9719
+ counterparty_id: string | null;
9720
+ /** Order Note */
9721
+ order_note: string | null;
9722
+ /** Decision Note */
9723
+ decision_note: string | null;
9724
+ /**
9725
+ * Lines
9726
+ * @default []
9727
+ */
9728
+ lines: components["schemas"]["PartRequestLineOut"][];
9729
+ };
9030
9730
  /**
9031
9731
  * PassportOut
9032
9732
  * @description GET /items/{id}/passport — everything the «Texpasport» tab renders.
@@ -10171,6 +10871,10 @@ export interface components {
10171
10871
  * RuleCondition
10172
10872
  * @description One comparison. `param` is a nomenclature_fields.code; for a pair field
10173
10873
  * `side` says which wheel is asked (any = either, both = both).
10874
+ *
10875
+ * `value` is a number OR one answer of a select field: the regulation picks its
10876
+ * number by a CLASS («elektrovoz», «to'liq ko'rik»), so a threshold that is not
10877
+ * a number is a class name and the only comparison it accepts is `=`.
10174
10878
  */
10175
10879
  "RuleCondition-Input": {
10176
10880
  /** Param */
@@ -10195,6 +10899,10 @@ export interface components {
10195
10899
  * RuleCondition
10196
10900
  * @description One comparison. `param` is a nomenclature_fields.code; for a pair field
10197
10901
  * `side` says which wheel is asked (any = either, both = both).
10902
+ *
10903
+ * `value` is a number OR one answer of a select field: the regulation picks its
10904
+ * number by a CLASS («elektrovoz», «to'liq ko'rik»), so a threshold that is not
10905
+ * a number is a class name and the only comparison it accepts is `=`.
10198
10906
  */
10199
10907
  "RuleCondition-Output": {
10200
10908
  /** Param */
@@ -11076,8 +11784,77 @@ export interface components {
11076
11784
  */
11077
11785
  is_offline: boolean;
11078
11786
  };
11079
- /** StornoCommand */
11080
- StornoCommand: {
11787
+ /**
11788
+ * StoreInCommand
11789
+ * @description Storekeeper puts a part on a shelf and says WHICH shelf it belongs on.
11790
+ *
11791
+ * A part removed under a planned check has no defect; filing it as
11792
+ * IN_STOCK_DEFECT made every stock report call serviceable parts defective.
11793
+ * The default keeps the old behaviour, so a silent client cannot promote one.
11794
+ */
11795
+ StoreInCommand: {
11796
+ /**
11797
+ * Item Id
11798
+ * Format: uuid
11799
+ */
11800
+ item_id: string;
11801
+ /**
11802
+ * Event At
11803
+ * Format: date-time
11804
+ */
11805
+ event_at: string;
11806
+ /**
11807
+ * Client Event Uuid
11808
+ * Format: uuid
11809
+ */
11810
+ client_event_uuid: string;
11811
+ /** To Location Id */
11812
+ to_location_id?: string | null;
11813
+ /** To Locomotive Id */
11814
+ to_locomotive_id?: string | null;
11815
+ /** To Holder Person Id */
11816
+ to_holder_person_id?: string | null;
11817
+ /** To Parent Item Id */
11818
+ to_parent_item_id?: string | null;
11819
+ /** Counterparty Person Id */
11820
+ counterparty_person_id?: string | null;
11821
+ /** Terminal Id */
11822
+ terminal_id?: string | null;
11823
+ /** Shift Instance Id */
11824
+ shift_instance_id?: string | null;
11825
+ /** Locomotive Visit Id */
11826
+ locomotive_visit_id?: string | null;
11827
+ /** Work Order Id */
11828
+ work_order_id?: string | null;
11829
+ /** Task Id */
11830
+ task_id?: string | null;
11831
+ /** Defect Code */
11832
+ defect_code?: string | null;
11833
+ /** Comment */
11834
+ comment?: string | null;
11835
+ /** Payload */
11836
+ payload?: {
11837
+ [key: string]: unknown;
11838
+ };
11839
+ /**
11840
+ * Is Offline
11841
+ * @default false
11842
+ */
11843
+ is_offline: boolean;
11844
+ /**
11845
+ * @description discriminator enum property added by openapi-typescript
11846
+ * @enum {string}
11847
+ */
11848
+ event_type: "STORE_IN";
11849
+ /**
11850
+ * Requested Status
11851
+ * @default IN_STOCK_DEFECT
11852
+ * @enum {string}
11853
+ */
11854
+ requested_status: "IN_STOCK_OK" | "IN_STOCK_DEFECT";
11855
+ };
11856
+ /** StornoCommand */
11857
+ StornoCommand: {
11081
11858
  /**
11082
11859
  * Item Id
11083
11860
  * Format: uuid
@@ -11246,6 +12023,45 @@ export interface components {
11246
12023
  /** Terminal Id */
11247
12024
  terminal_id?: string | null;
11248
12025
  };
12026
+ /**
12027
+ * TaskCosignIn
12028
+ * @description B10: the fitter moves his operation with his own card on the master's
12029
+ * screen — the counterpart of WorkSignIn for REPAIR_START/PAUSE/RESUME/FINISH.
12030
+ *
12031
+ * Identification follows the installation switch exactly as WorkSignIn does
12032
+ * (badge_uid under RFID, tab_no under the TABEL pilot, PIN in both). No
12033
+ * signature is written: repair steps are routine events (TZ 8), the second
12034
+ * card is here only so the work is journalled under the man who does it.
12035
+ */
12036
+ TaskCosignIn: {
12037
+ /**
12038
+ * Event At
12039
+ * Format: date-time
12040
+ */
12041
+ event_at: string;
12042
+ /**
12043
+ * Client Event Uuid
12044
+ * Format: uuid
12045
+ */
12046
+ client_event_uuid: string;
12047
+ /** Terminal Id */
12048
+ terminal_id?: string | null;
12049
+ /** Badge Uid */
12050
+ badge_uid?: string | null;
12051
+ /** Tab No */
12052
+ tab_no?: string | null;
12053
+ /** Pin */
12054
+ pin: string;
12055
+ /**
12056
+ * Action
12057
+ * @enum {string}
12058
+ */
12059
+ action: "start" | "pause" | "resume" | "finish";
12060
+ /** Result Note */
12061
+ result_note?: string | null;
12062
+ /** Comment */
12063
+ comment?: string | null;
12064
+ };
11249
12065
  /** TaskIn */
11250
12066
  TaskIn: {
11251
12067
  /** Title */
@@ -11486,6 +12302,84 @@ export interface components {
11486
12302
  /** Context */
11487
12303
  ctx?: Record<string, never>;
11488
12304
  };
12305
+ /**
12306
+ * VerdictIn
12307
+ * @description The master's decision on ONE measured part: repair it, or leave it.
12308
+ *
12309
+ * REPAIR opens the removal order right there — with the reason he signed for,
12310
+ * a defect or a scheduled check, exactly one of the two like every other
12311
+ * order. NO_ACTION moves nothing: it is a signed note on the part saying the
12312
+ * numbers were seen and found good enough.
12313
+ */
12314
+ VerdictIn: {
12315
+ /**
12316
+ * Event At
12317
+ * Format: date-time
12318
+ */
12319
+ event_at: string;
12320
+ /**
12321
+ * Client Event Uuid
12322
+ * Format: uuid
12323
+ */
12324
+ client_event_uuid: string;
12325
+ /** Terminal Id */
12326
+ terminal_id?: string | null;
12327
+ /**
12328
+ * Item Id
12329
+ * Format: uuid
12330
+ */
12331
+ item_id: string;
12332
+ /**
12333
+ * Decision
12334
+ * @enum {string}
12335
+ */
12336
+ decision: "REPAIR" | "NO_ACTION";
12337
+ /** Defect Code */
12338
+ defect_code?: string | null;
12339
+ /** Repair Type Code */
12340
+ repair_type_code?: string | null;
12341
+ /** Comment */
12342
+ comment?: string | null;
12343
+ };
12344
+ /**
12345
+ * VerdictLine
12346
+ * @description One part's line in an inspection pass — the same decision as VerdictIn,
12347
+ * minus the envelope, plus the operation the order should carry.
12348
+ *
12349
+ * `capability_code` is how «send it for investigation» is said: there is no
12350
+ * third reason_kind and there must not be one (a pseudo-defect «inspection»
12351
+ * would head the Pareto forever), so the order opens on its real reason and
12352
+ * carries e.g. дефектоскопия as its operation.
12353
+ */
12354
+ VerdictLine: {
12355
+ /**
12356
+ * Item Id
12357
+ * Format: uuid
12358
+ */
12359
+ item_id: string;
12360
+ /**
12361
+ * Decision
12362
+ * @enum {string}
12363
+ */
12364
+ decision: "REPAIR" | "NO_ACTION";
12365
+ /** Defect Code */
12366
+ defect_code?: string | null;
12367
+ /** Repair Type Code */
12368
+ repair_type_code?: string | null;
12369
+ /** Capability Code */
12370
+ capability_code?: string | null;
12371
+ /** Comment */
12372
+ comment?: string | null;
12373
+ };
12374
+ /** VerdictOut */
12375
+ VerdictOut: {
12376
+ /** Decision */
12377
+ decision: string;
12378
+ /** Work Order Id */
12379
+ work_order_id?: string | null;
12380
+ /** Work Order Number */
12381
+ work_order_number?: string | null;
12382
+ };
11489
12383
  /**
11490
12384
  * VisitOut
11491
12385
  * @description Current (unreleased) shop visit, when one exists in the data.
@@ -11590,6 +12484,8 @@ export interface components {
11590
12484
  returned_to_person_id: string | null;
11591
12485
  /** Closed At */
11592
12486
  closed_at: string | null;
12487
+ /** Item Status */
12488
+ item_status?: string | null;
11593
12489
  /** Tasks */
11594
12490
  tasks?: components["schemas"]["TaskOut"][];
11595
12491
  };
@@ -11709,6 +12605,8 @@ export interface components {
11709
12605
  returned_to_person_id: string | null;
11710
12606
  /** Closed At */
11711
12607
  closed_at: string | null;
12608
+ /** Item Status */
12609
+ item_status?: string | null;
11712
12610
  };
11713
12611
  /** WorkOrderStatusCount */
11714
12612
  WorkOrderStatusCount: {
@@ -15462,7 +16360,7 @@ export interface operations {
15462
16360
  };
15463
16361
  requestBody: {
15464
16362
  content: {
15465
- "application/json": components["schemas"]["InstallCommand"] | components["schemas"]["MoveCommand"] | components["schemas"]["HandoverCommand"] | components["schemas"]["RemoveCommand"] | components["schemas"]["ReceiveOpeningCommand"] | components["schemas"]["FoundCommand"] | components["schemas"]["InspectCommand"] | components["schemas"]["DispositionCommand"] | components["schemas"]["StornoCommand"] | components["schemas"]["RepairStartCommand"] | components["schemas"]["RepairPauseCommand"] | components["schemas"]["RepairResumeCommand"] | components["schemas"]["RepairFinishCommand"] | components["schemas"]["GenericCommand"];
16363
+ "application/json": components["schemas"]["InstallCommand"] | components["schemas"]["MoveCommand"] | components["schemas"]["HandoverCommand"] | components["schemas"]["RemoveCommand"] | components["schemas"]["ReceiveOpeningCommand"] | components["schemas"]["FoundCommand"] | components["schemas"]["InspectCommand"] | components["schemas"]["StoreInCommand"] | components["schemas"]["DispositionCommand"] | components["schemas"]["StornoCommand"] | components["schemas"]["RepairStartCommand"] | components["schemas"]["RepairPauseCommand"] | components["schemas"]["RepairResumeCommand"] | components["schemas"]["RepairFinishCommand"] | components["schemas"]["GenericCommand"];
15466
16364
  };
15467
16365
  };
15468
16366
  responses: {
@@ -17299,29 +18197,30 @@ export interface operations {
17299
18197
  };
17300
18198
  };
17301
18199
  };
17302
- create_shipment_api_v1_plant_shipments_post: {
18200
+ list_requests_api_v1_part_requests_get: {
17303
18201
  parameters: {
17304
- query?: never;
18202
+ query?: {
18203
+ status?: string | null;
18204
+ inbox?: boolean;
18205
+ };
17305
18206
  header?: {
17306
18207
  authorization?: string | null;
17307
18208
  "x-debug-person-id"?: string | null;
17308
18209
  };
17309
18210
  path?: never;
17310
- cookie?: never;
17311
- };
17312
- requestBody: {
17313
- content: {
17314
- "application/json": components["schemas"]["ShipmentCreate"];
18211
+ cookie?: {
18212
+ depo_admin_session?: string | null;
17315
18213
  };
17316
18214
  };
18215
+ requestBody?: never;
17317
18216
  responses: {
17318
18217
  /** @description Successful Response */
17319
- 201: {
18218
+ 200: {
17320
18219
  headers: {
17321
18220
  [name: string]: unknown;
17322
18221
  };
17323
18222
  content: {
17324
- "application/json": components["schemas"]["ShipmentOut"];
18223
+ "application/json": components["schemas"]["PartRequestOut"][];
17325
18224
  };
17326
18225
  };
17327
18226
  /** @description Validation Error */
@@ -17335,7 +18234,7 @@ export interface operations {
17335
18234
  };
17336
18235
  };
17337
18236
  };
17338
- overdue_api_v1_plant_shipments_overdue_get: {
18237
+ create_api_v1_part_requests_post: {
17339
18238
  parameters: {
17340
18239
  query?: never;
17341
18240
  header?: {
@@ -17345,15 +18244,19 @@ export interface operations {
17345
18244
  path?: never;
17346
18245
  cookie?: never;
17347
18246
  };
17348
- requestBody?: never;
18247
+ requestBody: {
18248
+ content: {
18249
+ "application/json": components["schemas"]["PartRequestCreate"];
18250
+ };
18251
+ };
17349
18252
  responses: {
17350
18253
  /** @description Successful Response */
17351
- 200: {
18254
+ 201: {
17352
18255
  headers: {
17353
18256
  [name: string]: unknown;
17354
18257
  };
17355
18258
  content: {
17356
- "application/json": components["schemas"]["OverdueRow"][];
18259
+ "application/json": components["schemas"]["PartRequestOut"];
17357
18260
  };
17358
18261
  };
17359
18262
  /** @description Validation Error */
@@ -17367,7 +18270,7 @@ export interface operations {
17367
18270
  };
17368
18271
  };
17369
18272
  };
17370
- get_shipment_api_v1_plant_shipments__shipment_id__get: {
18273
+ issue_api_v1_part_requests__request_id__issue_post: {
17371
18274
  parameters: {
17372
18275
  query?: never;
17373
18276
  header?: {
@@ -17375,11 +18278,15 @@ export interface operations {
17375
18278
  "x-debug-person-id"?: string | null;
17376
18279
  };
17377
18280
  path: {
17378
- shipment_id: string;
18281
+ request_id: string;
17379
18282
  };
17380
18283
  cookie?: never;
17381
18284
  };
17382
- requestBody?: never;
18285
+ requestBody: {
18286
+ content: {
18287
+ "application/json": components["schemas"]["PartRequestIssue"];
18288
+ };
18289
+ };
17383
18290
  responses: {
17384
18291
  /** @description Successful Response */
17385
18292
  200: {
@@ -17387,7 +18294,7 @@ export interface operations {
17387
18294
  [name: string]: unknown;
17388
18295
  };
17389
18296
  content: {
17390
- "application/json": components["schemas"]["ShipmentOut"];
18297
+ "application/json": components["schemas"]["PartRequestOut"];
17391
18298
  };
17392
18299
  };
17393
18300
  /** @description Validation Error */
@@ -17401,7 +18308,7 @@ export interface operations {
17401
18308
  };
17402
18309
  };
17403
18310
  };
17404
- list_items_api_v1_plant_shipments__shipment_id__items_get: {
18311
+ escalate_api_v1_part_requests__request_id__escalate_post: {
17405
18312
  parameters: {
17406
18313
  query?: never;
17407
18314
  header?: {
@@ -17409,11 +18316,15 @@ export interface operations {
17409
18316
  "x-debug-person-id"?: string | null;
17410
18317
  };
17411
18318
  path: {
17412
- shipment_id: string;
18319
+ request_id: string;
17413
18320
  };
17414
18321
  cookie?: never;
17415
18322
  };
17416
- requestBody?: never;
18323
+ requestBody: {
18324
+ content: {
18325
+ "application/json": components["schemas"]["PartRequestNote"];
18326
+ };
18327
+ };
17417
18328
  responses: {
17418
18329
  /** @description Successful Response */
17419
18330
  200: {
@@ -17421,7 +18332,7 @@ export interface operations {
17421
18332
  [name: string]: unknown;
17422
18333
  };
17423
18334
  content: {
17424
- "application/json": components["schemas"]["ShipmentItemOut"][];
18335
+ "application/json": components["schemas"]["PartRequestOut"];
17425
18336
  };
17426
18337
  };
17427
18338
  /** @description Validation Error */
@@ -17435,7 +18346,7 @@ export interface operations {
17435
18346
  };
17436
18347
  };
17437
18348
  };
17438
- add_item_api_v1_plant_shipments__shipment_id__items_post: {
18349
+ approve_api_v1_part_requests__request_id__approve_post: {
17439
18350
  parameters: {
17440
18351
  query?: never;
17441
18352
  header?: {
@@ -17443,23 +18354,23 @@ export interface operations {
17443
18354
  "x-debug-person-id"?: string | null;
17444
18355
  };
17445
18356
  path: {
17446
- shipment_id: string;
18357
+ request_id: string;
17447
18358
  };
17448
18359
  cookie?: never;
17449
18360
  };
17450
18361
  requestBody: {
17451
18362
  content: {
17452
- "application/json": components["schemas"]["ShipmentItemIn"];
18363
+ "application/json": components["schemas"]["PartRequestApprove"];
17453
18364
  };
17454
18365
  };
17455
18366
  responses: {
17456
18367
  /** @description Successful Response */
17457
- 201: {
18368
+ 200: {
17458
18369
  headers: {
17459
18370
  [name: string]: unknown;
17460
18371
  };
17461
18372
  content: {
17462
- "application/json": components["schemas"]["ShipmentItemOut"];
18373
+ "application/json": components["schemas"]["PartRequestOut"];
17463
18374
  };
17464
18375
  };
17465
18376
  /** @description Validation Error */
@@ -17473,7 +18384,7 @@ export interface operations {
17473
18384
  };
17474
18385
  };
17475
18386
  };
17476
- ship_api_v1_plant_shipments__shipment_id__ship_post: {
18387
+ reject_api_v1_part_requests__request_id__reject_post: {
17477
18388
  parameters: {
17478
18389
  query?: never;
17479
18390
  header?: {
@@ -17481,13 +18392,13 @@ export interface operations {
17481
18392
  "x-debug-person-id"?: string | null;
17482
18393
  };
17483
18394
  path: {
17484
- shipment_id: string;
18395
+ request_id: string;
17485
18396
  };
17486
18397
  cookie?: never;
17487
18398
  };
17488
18399
  requestBody: {
17489
18400
  content: {
17490
- "application/json": components["schemas"]["ShipIn"];
18401
+ "application/json": components["schemas"]["PartRequestNote"];
17491
18402
  };
17492
18403
  };
17493
18404
  responses: {
@@ -17497,7 +18408,7 @@ export interface operations {
17497
18408
  [name: string]: unknown;
17498
18409
  };
17499
18410
  content: {
17500
- "application/json": components["schemas"]["ShipmentOut"];
18411
+ "application/json": components["schemas"]["PartRequestOut"];
17501
18412
  };
17502
18413
  };
17503
18414
  /** @description Validation Error */
@@ -17511,7 +18422,7 @@ export interface operations {
17511
18422
  };
17512
18423
  };
17513
18424
  };
17514
- return_item_api_v1_plant_shipments__shipment_id__items__item_id__return_post: {
18425
+ cancel_api_v1_part_requests__request_id__cancel_post: {
17515
18426
  parameters: {
17516
18427
  query?: never;
17517
18428
  header?: {
@@ -17519,14 +18430,13 @@ export interface operations {
17519
18430
  "x-debug-person-id"?: string | null;
17520
18431
  };
17521
18432
  path: {
17522
- shipment_id: string;
17523
- item_id: string;
18433
+ request_id: string;
17524
18434
  };
17525
18435
  cookie?: never;
17526
18436
  };
17527
18437
  requestBody: {
17528
18438
  content: {
17529
- "application/json": components["schemas"]["ReturnIn"];
18439
+ "application/json": components["schemas"]["PartRequestNote"];
17530
18440
  };
17531
18441
  };
17532
18442
  responses: {
@@ -17536,7 +18446,7 @@ export interface operations {
17536
18446
  [name: string]: unknown;
17537
18447
  };
17538
18448
  content: {
17539
- "application/json": components["schemas"]["ShipmentItemOut"];
18449
+ "application/json": components["schemas"]["PartRequestOut"];
17540
18450
  };
17541
18451
  };
17542
18452
  /** @description Validation Error */
@@ -17550,17 +18460,16 @@ export interface operations {
17550
18460
  };
17551
18461
  };
17552
18462
  };
17553
- defect_codes_api_v1_refs_defect_codes_get: {
18463
+ get_request_api_v1_part_requests__request_id__get: {
17554
18464
  parameters: {
17555
- query?: {
17556
- /** @description substring of name */
17557
- q?: string | null;
17558
- };
18465
+ query?: never;
17559
18466
  header?: {
17560
18467
  authorization?: string | null;
17561
18468
  "x-debug-person-id"?: string | null;
17562
18469
  };
17563
- path?: never;
18470
+ path: {
18471
+ request_id: string;
18472
+ };
17564
18473
  cookie?: {
17565
18474
  depo_admin_session?: string | null;
17566
18475
  };
@@ -17573,7 +18482,7 @@ export interface operations {
17573
18482
  [name: string]: unknown;
17574
18483
  };
17575
18484
  content: {
17576
- "application/json": components["schemas"]["DefectCodeOut"][];
18485
+ "application/json": components["schemas"]["PartRequestOut"];
17577
18486
  };
17578
18487
  };
17579
18488
  /** @description Validation Error */
@@ -17587,30 +18496,29 @@ export interface operations {
17587
18496
  };
17588
18497
  };
17589
18498
  };
17590
- locomotives_api_v1_refs_locomotives_get: {
18499
+ create_shipment_api_v1_plant_shipments_post: {
17591
18500
  parameters: {
17592
- query?: {
17593
- /** @description substring of number */
17594
- q?: string | null;
17595
- };
18501
+ query?: never;
17596
18502
  header?: {
17597
18503
  authorization?: string | null;
17598
18504
  "x-debug-person-id"?: string | null;
17599
18505
  };
17600
18506
  path?: never;
17601
- cookie?: {
17602
- depo_admin_session?: string | null;
18507
+ cookie?: never;
18508
+ };
18509
+ requestBody: {
18510
+ content: {
18511
+ "application/json": components["schemas"]["ShipmentCreate"];
17603
18512
  };
17604
18513
  };
17605
- requestBody?: never;
17606
18514
  responses: {
17607
18515
  /** @description Successful Response */
17608
- 200: {
18516
+ 201: {
17609
18517
  headers: {
17610
18518
  [name: string]: unknown;
17611
18519
  };
17612
18520
  content: {
17613
- "application/json": components["schemas"]["LocomotiveOut"][];
18521
+ "application/json": components["schemas"]["ShipmentOut"];
17614
18522
  };
17615
18523
  };
17616
18524
  /** @description Validation Error */
@@ -17624,7 +18532,7 @@ export interface operations {
17624
18532
  };
17625
18533
  };
17626
18534
  };
17627
- loco_series_api_v1_refs_loco_series_get: {
18535
+ overdue_api_v1_plant_shipments_overdue_get: {
17628
18536
  parameters: {
17629
18537
  query?: never;
17630
18538
  header?: {
@@ -17632,9 +18540,7 @@ export interface operations {
17632
18540
  "x-debug-person-id"?: string | null;
17633
18541
  };
17634
18542
  path?: never;
17635
- cookie?: {
17636
- depo_admin_session?: string | null;
17637
- };
18543
+ cookie?: never;
17638
18544
  };
17639
18545
  requestBody?: never;
17640
18546
  responses: {
@@ -17644,7 +18550,7 @@ export interface operations {
17644
18550
  [name: string]: unknown;
17645
18551
  };
17646
18552
  content: {
17647
- "application/json": components["schemas"]["LocoSeriesOut"][];
18553
+ "application/json": components["schemas"]["OverdueRow"][];
17648
18554
  };
17649
18555
  };
17650
18556
  /** @description Validation Error */
@@ -17658,17 +18564,17 @@ export interface operations {
17658
18564
  };
17659
18565
  };
17660
18566
  };
17661
- loco_series_positions_api_v1_refs_loco_series_positions_get: {
18567
+ get_shipment_api_v1_plant_shipments__shipment_id__get: {
17662
18568
  parameters: {
17663
18569
  query?: never;
17664
18570
  header?: {
17665
18571
  authorization?: string | null;
17666
18572
  "x-debug-person-id"?: string | null;
17667
18573
  };
17668
- path?: never;
17669
- cookie?: {
17670
- depo_admin_session?: string | null;
18574
+ path: {
18575
+ shipment_id: string;
17671
18576
  };
18577
+ cookie?: never;
17672
18578
  };
17673
18579
  requestBody?: never;
17674
18580
  responses: {
@@ -17678,7 +18584,7 @@ export interface operations {
17678
18584
  [name: string]: unknown;
17679
18585
  };
17680
18586
  content: {
17681
- "application/json": components["schemas"]["LocoSeriesPositionRef"][];
18587
+ "application/json": components["schemas"]["ShipmentOut"];
17682
18588
  };
17683
18589
  };
17684
18590
  /** @description Validation Error */
@@ -17692,10 +18598,335 @@ export interface operations {
17692
18598
  };
17693
18599
  };
17694
18600
  };
17695
- nomenclature_api_v1_refs_nomenclature_get: {
18601
+ list_items_api_v1_plant_shipments__shipment_id__items_get: {
17696
18602
  parameters: {
17697
- query?: {
17698
- /** @description substring of code or name */
18603
+ query?: never;
18604
+ header?: {
18605
+ authorization?: string | null;
18606
+ "x-debug-person-id"?: string | null;
18607
+ };
18608
+ path: {
18609
+ shipment_id: string;
18610
+ };
18611
+ cookie?: never;
18612
+ };
18613
+ requestBody?: never;
18614
+ responses: {
18615
+ /** @description Successful Response */
18616
+ 200: {
18617
+ headers: {
18618
+ [name: string]: unknown;
18619
+ };
18620
+ content: {
18621
+ "application/json": components["schemas"]["ShipmentItemOut"][];
18622
+ };
18623
+ };
18624
+ /** @description Validation Error */
18625
+ 422: {
18626
+ headers: {
18627
+ [name: string]: unknown;
18628
+ };
18629
+ content: {
18630
+ "application/json": components["schemas"]["HTTPValidationError"];
18631
+ };
18632
+ };
18633
+ };
18634
+ };
18635
+ add_item_api_v1_plant_shipments__shipment_id__items_post: {
18636
+ parameters: {
18637
+ query?: never;
18638
+ header?: {
18639
+ authorization?: string | null;
18640
+ "x-debug-person-id"?: string | null;
18641
+ };
18642
+ path: {
18643
+ shipment_id: string;
18644
+ };
18645
+ cookie?: never;
18646
+ };
18647
+ requestBody: {
18648
+ content: {
18649
+ "application/json": components["schemas"]["ShipmentItemIn"];
18650
+ };
18651
+ };
18652
+ responses: {
18653
+ /** @description Successful Response */
18654
+ 201: {
18655
+ headers: {
18656
+ [name: string]: unknown;
18657
+ };
18658
+ content: {
18659
+ "application/json": components["schemas"]["ShipmentItemOut"];
18660
+ };
18661
+ };
18662
+ /** @description Validation Error */
18663
+ 422: {
18664
+ headers: {
18665
+ [name: string]: unknown;
18666
+ };
18667
+ content: {
18668
+ "application/json": components["schemas"]["HTTPValidationError"];
18669
+ };
18670
+ };
18671
+ };
18672
+ };
18673
+ ship_api_v1_plant_shipments__shipment_id__ship_post: {
18674
+ parameters: {
18675
+ query?: never;
18676
+ header?: {
18677
+ authorization?: string | null;
18678
+ "x-debug-person-id"?: string | null;
18679
+ };
18680
+ path: {
18681
+ shipment_id: string;
18682
+ };
18683
+ cookie?: never;
18684
+ };
18685
+ requestBody: {
18686
+ content: {
18687
+ "application/json": components["schemas"]["ShipIn"];
18688
+ };
18689
+ };
18690
+ responses: {
18691
+ /** @description Successful Response */
18692
+ 200: {
18693
+ headers: {
18694
+ [name: string]: unknown;
18695
+ };
18696
+ content: {
18697
+ "application/json": components["schemas"]["ShipmentOut"];
18698
+ };
18699
+ };
18700
+ /** @description Validation Error */
18701
+ 422: {
18702
+ headers: {
18703
+ [name: string]: unknown;
18704
+ };
18705
+ content: {
18706
+ "application/json": components["schemas"]["HTTPValidationError"];
18707
+ };
18708
+ };
18709
+ };
18710
+ };
18711
+ return_item_api_v1_plant_shipments__shipment_id__items__item_id__return_post: {
18712
+ parameters: {
18713
+ query?: never;
18714
+ header?: {
18715
+ authorization?: string | null;
18716
+ "x-debug-person-id"?: string | null;
18717
+ };
18718
+ path: {
18719
+ shipment_id: string;
18720
+ item_id: string;
18721
+ };
18722
+ cookie?: never;
18723
+ };
18724
+ requestBody: {
18725
+ content: {
18726
+ "application/json": components["schemas"]["ReturnIn"];
18727
+ };
18728
+ };
18729
+ responses: {
18730
+ /** @description Successful Response */
18731
+ 200: {
18732
+ headers: {
18733
+ [name: string]: unknown;
18734
+ };
18735
+ content: {
18736
+ "application/json": components["schemas"]["ShipmentItemOut"];
18737
+ };
18738
+ };
18739
+ /** @description Validation Error */
18740
+ 422: {
18741
+ headers: {
18742
+ [name: string]: unknown;
18743
+ };
18744
+ content: {
18745
+ "application/json": components["schemas"]["HTTPValidationError"];
18746
+ };
18747
+ };
18748
+ };
18749
+ };
18750
+ defect_codes_api_v1_refs_defect_codes_get: {
18751
+ parameters: {
18752
+ query?: {
18753
+ /** @description substring of name */
18754
+ q?: string | null;
18755
+ };
18756
+ header?: {
18757
+ authorization?: string | null;
18758
+ "x-debug-person-id"?: string | null;
18759
+ };
18760
+ path?: never;
18761
+ cookie?: {
18762
+ depo_admin_session?: string | null;
18763
+ };
18764
+ };
18765
+ requestBody?: never;
18766
+ responses: {
18767
+ /** @description Successful Response */
18768
+ 200: {
18769
+ headers: {
18770
+ [name: string]: unknown;
18771
+ };
18772
+ content: {
18773
+ "application/json": components["schemas"]["DefectCodeOut"][];
18774
+ };
18775
+ };
18776
+ /** @description Validation Error */
18777
+ 422: {
18778
+ headers: {
18779
+ [name: string]: unknown;
18780
+ };
18781
+ content: {
18782
+ "application/json": components["schemas"]["HTTPValidationError"];
18783
+ };
18784
+ };
18785
+ };
18786
+ };
18787
+ locomotives_api_v1_refs_locomotives_get: {
18788
+ parameters: {
18789
+ query?: {
18790
+ /** @description substring of number */
18791
+ q?: string | null;
18792
+ };
18793
+ header?: {
18794
+ authorization?: string | null;
18795
+ "x-debug-person-id"?: string | null;
18796
+ };
18797
+ path?: never;
18798
+ cookie?: {
18799
+ depo_admin_session?: string | null;
18800
+ };
18801
+ };
18802
+ requestBody?: never;
18803
+ responses: {
18804
+ /** @description Successful Response */
18805
+ 200: {
18806
+ headers: {
18807
+ [name: string]: unknown;
18808
+ };
18809
+ content: {
18810
+ "application/json": components["schemas"]["LocomotiveOut"][];
18811
+ };
18812
+ };
18813
+ /** @description Validation Error */
18814
+ 422: {
18815
+ headers: {
18816
+ [name: string]: unknown;
18817
+ };
18818
+ content: {
18819
+ "application/json": components["schemas"]["HTTPValidationError"];
18820
+ };
18821
+ };
18822
+ };
18823
+ };
18824
+ loco_series_api_v1_refs_loco_series_get: {
18825
+ parameters: {
18826
+ query?: never;
18827
+ header?: {
18828
+ authorization?: string | null;
18829
+ "x-debug-person-id"?: string | null;
18830
+ };
18831
+ path?: never;
18832
+ cookie?: {
18833
+ depo_admin_session?: string | null;
18834
+ };
18835
+ };
18836
+ requestBody?: never;
18837
+ responses: {
18838
+ /** @description Successful Response */
18839
+ 200: {
18840
+ headers: {
18841
+ [name: string]: unknown;
18842
+ };
18843
+ content: {
18844
+ "application/json": components["schemas"]["LocoSeriesOut"][];
18845
+ };
18846
+ };
18847
+ /** @description Validation Error */
18848
+ 422: {
18849
+ headers: {
18850
+ [name: string]: unknown;
18851
+ };
18852
+ content: {
18853
+ "application/json": components["schemas"]["HTTPValidationError"];
18854
+ };
18855
+ };
18856
+ };
18857
+ };
18858
+ loco_sections_api_v1_refs_loco_sections_get: {
18859
+ parameters: {
18860
+ query?: never;
18861
+ header?: {
18862
+ authorization?: string | null;
18863
+ "x-debug-person-id"?: string | null;
18864
+ };
18865
+ path?: never;
18866
+ cookie?: {
18867
+ depo_admin_session?: string | null;
18868
+ };
18869
+ };
18870
+ requestBody?: never;
18871
+ responses: {
18872
+ /** @description Successful Response */
18873
+ 200: {
18874
+ headers: {
18875
+ [name: string]: unknown;
18876
+ };
18877
+ content: {
18878
+ "application/json": components["schemas"]["LocoSectionRef"][];
18879
+ };
18880
+ };
18881
+ /** @description Validation Error */
18882
+ 422: {
18883
+ headers: {
18884
+ [name: string]: unknown;
18885
+ };
18886
+ content: {
18887
+ "application/json": components["schemas"]["HTTPValidationError"];
18888
+ };
18889
+ };
18890
+ };
18891
+ };
18892
+ loco_series_positions_api_v1_refs_loco_series_positions_get: {
18893
+ parameters: {
18894
+ query?: never;
18895
+ header?: {
18896
+ authorization?: string | null;
18897
+ "x-debug-person-id"?: string | null;
18898
+ };
18899
+ path?: never;
18900
+ cookie?: {
18901
+ depo_admin_session?: string | null;
18902
+ };
18903
+ };
18904
+ requestBody?: never;
18905
+ responses: {
18906
+ /** @description Successful Response */
18907
+ 200: {
18908
+ headers: {
18909
+ [name: string]: unknown;
18910
+ };
18911
+ content: {
18912
+ "application/json": components["schemas"]["LocoSeriesPositionRef"][];
18913
+ };
18914
+ };
18915
+ /** @description Validation Error */
18916
+ 422: {
18917
+ headers: {
18918
+ [name: string]: unknown;
18919
+ };
18920
+ content: {
18921
+ "application/json": components["schemas"]["HTTPValidationError"];
18922
+ };
18923
+ };
18924
+ };
18925
+ };
18926
+ nomenclature_api_v1_refs_nomenclature_get: {
18927
+ parameters: {
18928
+ query?: {
18929
+ /** @description substring of code or name */
17699
18930
  q?: string | null;
17700
18931
  limit?: number;
17701
18932
  };
@@ -18264,6 +19495,74 @@ export interface operations {
18264
19495
  };
18265
19496
  };
18266
19497
  };
19498
+ kpi_trend_api_v1_reports_kpi_trend_get: {
19499
+ parameters: {
19500
+ query?: {
19501
+ days?: number;
19502
+ };
19503
+ header?: {
19504
+ "x-debug-person-id"?: string | null;
19505
+ };
19506
+ path?: never;
19507
+ cookie?: {
19508
+ depo_admin_session?: string | null;
19509
+ };
19510
+ };
19511
+ requestBody?: never;
19512
+ responses: {
19513
+ /** @description Successful Response */
19514
+ 200: {
19515
+ headers: {
19516
+ [name: string]: unknown;
19517
+ };
19518
+ content: {
19519
+ "application/json": components["schemas"]["KpiTrend"];
19520
+ };
19521
+ };
19522
+ /** @description Validation Error */
19523
+ 422: {
19524
+ headers: {
19525
+ [name: string]: unknown;
19526
+ };
19527
+ content: {
19528
+ "application/json": components["schemas"]["HTTPValidationError"];
19529
+ };
19530
+ };
19531
+ };
19532
+ };
19533
+ nav_counters_api_v1_reports_nav_counters_get: {
19534
+ parameters: {
19535
+ query?: never;
19536
+ header?: {
19537
+ "x-debug-person-id"?: string | null;
19538
+ };
19539
+ path?: never;
19540
+ cookie?: {
19541
+ depo_admin_session?: string | null;
19542
+ };
19543
+ };
19544
+ requestBody?: never;
19545
+ responses: {
19546
+ /** @description Successful Response */
19547
+ 200: {
19548
+ headers: {
19549
+ [name: string]: unknown;
19550
+ };
19551
+ content: {
19552
+ "application/json": components["schemas"]["NavCounters"];
19553
+ };
19554
+ };
19555
+ /** @description Validation Error */
19556
+ 422: {
19557
+ headers: {
19558
+ [name: string]: unknown;
19559
+ };
19560
+ content: {
19561
+ "application/json": components["schemas"]["HTTPValidationError"];
19562
+ };
19563
+ };
19564
+ };
19565
+ };
18267
19566
  open_orders_api_v1_reports_open_orders_get: {
18268
19567
  parameters: {
18269
19568
  query?: {
@@ -20128,6 +21427,152 @@ export interface operations {
20128
21427
  };
20129
21428
  };
20130
21429
  };
21430
+ open_measuring_order_api_v1_work_orders_measuring_post: {
21431
+ parameters: {
21432
+ query?: never;
21433
+ header?: {
21434
+ authorization?: string | null;
21435
+ "x-debug-person-id"?: string | null;
21436
+ };
21437
+ path?: never;
21438
+ cookie?: never;
21439
+ };
21440
+ requestBody: {
21441
+ content: {
21442
+ "application/json": components["schemas"]["MeasuringOrderIn"];
21443
+ };
21444
+ };
21445
+ responses: {
21446
+ /** @description Successful Response */
21447
+ 200: {
21448
+ headers: {
21449
+ [name: string]: unknown;
21450
+ };
21451
+ content: {
21452
+ "application/json": components["schemas"]["WorkOrderDetail"];
21453
+ };
21454
+ };
21455
+ /** @description Validation Error */
21456
+ 422: {
21457
+ headers: {
21458
+ [name: string]: unknown;
21459
+ };
21460
+ content: {
21461
+ "application/json": components["schemas"]["HTTPValidationError"];
21462
+ };
21463
+ };
21464
+ };
21465
+ };
21466
+ measuring_items_api_v1_work_orders_measuring__wo_id__items_get: {
21467
+ parameters: {
21468
+ query?: never;
21469
+ header?: {
21470
+ authorization?: string | null;
21471
+ "x-debug-person-id"?: string | null;
21472
+ };
21473
+ path: {
21474
+ wo_id: string;
21475
+ };
21476
+ cookie?: never;
21477
+ };
21478
+ requestBody?: never;
21479
+ responses: {
21480
+ /** @description Successful Response */
21481
+ 200: {
21482
+ headers: {
21483
+ [name: string]: unknown;
21484
+ };
21485
+ content: {
21486
+ "application/json": components["schemas"]["MeasuredItemOut"][];
21487
+ };
21488
+ };
21489
+ /** @description Validation Error */
21490
+ 422: {
21491
+ headers: {
21492
+ [name: string]: unknown;
21493
+ };
21494
+ content: {
21495
+ "application/json": components["schemas"]["HTTPValidationError"];
21496
+ };
21497
+ };
21498
+ };
21499
+ };
21500
+ measuring_verdict_api_v1_work_orders_measuring__wo_id__verdict_post: {
21501
+ parameters: {
21502
+ query?: never;
21503
+ header?: {
21504
+ authorization?: string | null;
21505
+ "x-debug-person-id"?: string | null;
21506
+ };
21507
+ path: {
21508
+ wo_id: string;
21509
+ };
21510
+ cookie?: never;
21511
+ };
21512
+ requestBody: {
21513
+ content: {
21514
+ "application/json": components["schemas"]["VerdictIn"];
21515
+ };
21516
+ };
21517
+ responses: {
21518
+ /** @description Successful Response */
21519
+ 200: {
21520
+ headers: {
21521
+ [name: string]: unknown;
21522
+ };
21523
+ content: {
21524
+ "application/json": components["schemas"]["VerdictOut"];
21525
+ };
21526
+ };
21527
+ /** @description Validation Error */
21528
+ 422: {
21529
+ headers: {
21530
+ [name: string]: unknown;
21531
+ };
21532
+ content: {
21533
+ "application/json": components["schemas"]["HTTPValidationError"];
21534
+ };
21535
+ };
21536
+ };
21537
+ };
21538
+ inspection_sign_api_v1_work_orders_measuring__wo_id__verdicts_post: {
21539
+ parameters: {
21540
+ query?: never;
21541
+ header?: {
21542
+ authorization?: string | null;
21543
+ "x-debug-person-id"?: string | null;
21544
+ };
21545
+ path: {
21546
+ wo_id: string;
21547
+ };
21548
+ cookie?: never;
21549
+ };
21550
+ requestBody: {
21551
+ content: {
21552
+ "application/json": components["schemas"]["InspectionSignIn"];
21553
+ };
21554
+ };
21555
+ responses: {
21556
+ /** @description Successful Response */
21557
+ 200: {
21558
+ headers: {
21559
+ [name: string]: unknown;
21560
+ };
21561
+ content: {
21562
+ "application/json": components["schemas"]["InspectionSignOut"];
21563
+ };
21564
+ };
21565
+ /** @description Validation Error */
21566
+ 422: {
21567
+ headers: {
21568
+ [name: string]: unknown;
21569
+ };
21570
+ content: {
21571
+ "application/json": components["schemas"]["HTTPValidationError"];
21572
+ };
21573
+ };
21574
+ };
21575
+ };
20131
21576
  accept_order_api_v1_work_orders__wo_id__accept_post: {
20132
21577
  parameters: {
20133
21578
  query?: never;
@@ -20437,6 +21882,45 @@ export interface operations {
20437
21882
  };
20438
21883
  };
20439
21884
  };
21885
+ cosign_task_op_api_v1_work_orders__wo_id__tasks__task_id__cosign_op_post: {
21886
+ parameters: {
21887
+ query?: never;
21888
+ header?: {
21889
+ authorization?: string | null;
21890
+ "x-debug-person-id"?: string | null;
21891
+ };
21892
+ path: {
21893
+ wo_id: string;
21894
+ task_id: string;
21895
+ };
21896
+ cookie?: never;
21897
+ };
21898
+ requestBody: {
21899
+ content: {
21900
+ "application/json": components["schemas"]["TaskCosignIn"];
21901
+ };
21902
+ };
21903
+ responses: {
21904
+ /** @description Successful Response */
21905
+ 200: {
21906
+ headers: {
21907
+ [name: string]: unknown;
21908
+ };
21909
+ content: {
21910
+ "application/json": components["schemas"]["TaskOut"];
21911
+ };
21912
+ };
21913
+ /** @description Validation Error */
21914
+ 422: {
21915
+ headers: {
21916
+ [name: string]: unknown;
21917
+ };
21918
+ content: {
21919
+ "application/json": components["schemas"]["HTTPValidationError"];
21920
+ };
21921
+ };
21922
+ };
21923
+ };
20440
21924
  work_accept_sign_api_v1_work_orders__wo_id__work_accept_sign_post: {
20441
21925
  parameters: {
20442
21926
  query?: never;