@boxa-devops/depo-shared 1.2.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/error_codes.json CHANGED
@@ -20,9 +20,12 @@
20
20
  "INVALID_DISPOSITION_DECISION",
21
21
  "INVALID_TASK_TRANSITION",
22
22
  "INVALID_TRANSITION",
23
+ "ISSUE_SHAPE",
23
24
  "ITEM_NOT_ON_LOCOMOTIVE",
24
25
  "MISSING_FIELD",
25
26
  "NAIVE_TIMESTAMP",
27
+ "NOTE_REQUIRED",
28
+ "NOTHING_TO_ESCALATE",
26
29
  "NOT_A_MEASURING_ORDER",
27
30
  "NOT_FOUND",
28
31
  "NOT_MEASURED_YET",
@@ -31,12 +34,14 @@
31
34
  "NO_PIN",
32
35
  "NO_TARGET_LOCATION",
33
36
  "OPEN_DISCREPANCIES",
37
+ "OVER_REQUESTED",
34
38
  "PIN_ALREADY_SET",
35
39
  "PIN_INVALID",
36
40
  "PIN_REQUIRED",
37
41
  "PLACE_CANNOT_STORE",
38
42
  "RATE_LIMITED",
39
43
  "REASON_REQUIRED",
44
+ "REQUEST_WRONG_STATUS",
40
45
  "SAME_LOCATION",
41
46
  "SERIAL_NOT_ALLOWED",
42
47
  "SESSION_MISSING",
@@ -64,7 +69,9 @@
64
69
  "UNKNOWN_LOCATION",
65
70
  "UNKNOWN_LOCOMOTIVE",
66
71
  "UNKNOWN_NOMENCLATURE",
72
+ "UNKNOWN_PART_REQUEST",
67
73
  "UNKNOWN_PERSON",
74
+ "UNKNOWN_REQUEST_LINE",
68
75
  "UNKNOWN_RESOLUTION",
69
76
  "UNKNOWN_SCOPE",
70
77
  "UNKNOWN_SESSION",
@@ -74,7 +81,8 @@
74
81
  "UNKNOWN_WORK_ORDER",
75
82
  "UNSUPPORTED_PERSON",
76
83
  "VISIT_NO_REPAIR_TYPE",
77
- "WO_NOT_ACCEPTED"
84
+ "WO_NOT_ACCEPTED",
85
+ "WRONG_NOMENCLATURE"
78
86
  ],
79
87
  "admin_facing": [
80
88
  "ACT_NOT_DRAFT",
@@ -135,6 +143,7 @@
135
143
  "INVALID_TASK_TRANSITION",
136
144
  "INVALID_TRANSITION",
137
145
  "IN_USE",
146
+ "ISSUE_SHAPE",
138
147
  "ITEM_NOT_AWAITING",
139
148
  "ITEM_NOT_ON_LOCOMOTIVE",
140
149
  "ITEM_NOT_PLANT",
@@ -145,6 +154,8 @@
145
154
  "MISSING_FIELD",
146
155
  "NAIVE_TIMESTAMP",
147
156
  "NOMENCLATURE_NOT_FOUND",
157
+ "NOTE_REQUIRED",
158
+ "NOTHING_TO_ESCALATE",
148
159
  "NOT_A_MEASURING_ORDER",
149
160
  "NOT_A_MEMBER",
150
161
  "NOT_FOUND",
@@ -164,6 +175,7 @@
164
175
  "NO_SCRAP_DISPOSITION",
165
176
  "NO_TARGET_LOCATION",
166
177
  "OPEN_DISCREPANCIES",
178
+ "OVER_REQUESTED",
167
179
  "PARENT_INACTIVE",
168
180
  "PARENT_REQUIRED",
169
181
  "PATH_TAKEN",
@@ -181,6 +193,7 @@
181
193
  "READ_ONLY",
182
194
  "REASON_REQUIRED",
183
195
  "REPLACEMENT_REF",
196
+ "REQUEST_WRONG_STATUS",
184
197
  "ROLE_ALREADY_ACTIVE",
185
198
  "ROLE_FROM_TOO_EARLY",
186
199
  "ROLE_INACTIVE",
@@ -232,7 +245,9 @@
232
245
  "UNKNOWN_LOCATION",
233
246
  "UNKNOWN_LOCOMOTIVE",
234
247
  "UNKNOWN_NOMENCLATURE",
248
+ "UNKNOWN_PART_REQUEST",
235
249
  "UNKNOWN_PERSON",
250
+ "UNKNOWN_REQUEST_LINE",
236
251
  "UNKNOWN_RESOLUTION",
237
252
  "UNKNOWN_RETURN_RESULT",
238
253
  "UNKNOWN_ROLE",
@@ -251,7 +266,8 @@
251
266
  "UNSUPPORTED_PERSON",
252
267
  "VALIDATION",
253
268
  "VISIT_NO_REPAIR_TYPE",
254
- "WO_NOT_ACCEPTED"
269
+ "WO_NOT_ACCEPTED",
270
+ "WRONG_NOMENCLATURE"
255
271
  ],
256
272
  "all": {
257
273
  "ACT_NOT_DRAFT": [
@@ -419,6 +435,7 @@
419
435
  "routers/handovers.py",
420
436
  "routers/inventory.py",
421
437
  "routers/items/field_register.py",
438
+ "routers/part_requests.py",
422
439
  "routers/plant_shipments.py",
423
440
  "routers/scrap_acts.py"
424
441
  ],
@@ -435,6 +452,7 @@
435
452
  "routers/items/field_register.py",
436
453
  "routers/items/passport.py",
437
454
  "routers/locations.py",
455
+ "routers/part_requests.py",
438
456
  "routers/plant_shipments.py",
439
457
  "routers/refs.py",
440
458
  "routers/schedule.py",
@@ -477,6 +495,9 @@
477
495
  "IN_USE": [
478
496
  "routers/admin_refs/crud.py"
479
497
  ],
498
+ "ISSUE_SHAPE": [
499
+ "routers/part_requests.py"
500
+ ],
480
501
  "ITEM_NOT_AWAITING": [
481
502
  "services/scrap_acts.py"
482
503
  ],
@@ -509,6 +530,12 @@
509
530
  "NOMENCLATURE_NOT_FOUND": [
510
531
  "routers/admin_refs/series_positions.py"
511
532
  ],
533
+ "NOTE_REQUIRED": [
534
+ "routers/part_requests.py"
535
+ ],
536
+ "NOTHING_TO_ESCALATE": [
537
+ "routers/part_requests.py"
538
+ ],
512
539
  "NOT_A_MEASURING_ORDER": [
513
540
  "routers/work_orders/measuring.py"
514
541
  ],
@@ -589,6 +616,9 @@
589
616
  "OPEN_DISCREPANCIES": [
590
617
  "routers/inventory.py"
591
618
  ],
619
+ "OVER_REQUESTED": [
620
+ "routers/part_requests.py"
621
+ ],
592
622
  "PARENT_INACTIVE": [
593
623
  "routers/admin_locations.py"
594
624
  ],
@@ -625,6 +655,7 @@
625
655
  "routers/handovers.py",
626
656
  "routers/inventory.py",
627
657
  "routers/items/field_register.py",
658
+ "routers/part_requests.py",
628
659
  "routers/refs.py",
629
660
  "routers/scrap_acts.py",
630
661
  "routers/shifts.py",
@@ -653,6 +684,9 @@
653
684
  "REPLACEMENT_REF": [
654
685
  "services/chain_delete.py"
655
686
  ],
687
+ "REQUEST_WRONG_STATUS": [
688
+ "routers/part_requests.py"
689
+ ],
656
690
  "ROLE_ALREADY_ACTIVE": [
657
691
  "routers/admin_refs/common.py"
658
692
  ],
@@ -834,9 +868,15 @@
834
868
  "UNKNOWN_NOMENCLATURE": [
835
869
  "services/stock.py"
836
870
  ],
871
+ "UNKNOWN_PART_REQUEST": [
872
+ "routers/part_requests.py"
873
+ ],
837
874
  "UNKNOWN_PERSON": [
838
875
  "routers/work_orders/tasks.py"
839
876
  ],
877
+ "UNKNOWN_REQUEST_LINE": [
878
+ "routers/part_requests.py"
879
+ ],
840
880
  "UNKNOWN_RESOLUTION": [
841
881
  "services/inventory.py"
842
882
  ],
@@ -900,6 +940,9 @@
900
940
  ],
901
941
  "WO_NOT_ACCEPTED": [
902
942
  "routers/work_orders/intake.py"
943
+ ],
944
+ "WRONG_NOMENCLATURE": [
945
+ "routers/part_requests.py"
903
946
  ]
904
947
  }
905
948
  }