@boxa-devops/depo-shared 1.0.5 → 1.2.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/api.d.ts +1176 -44
- package/dist/api.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/error_codes.json +49 -2
- package/openapi.json +2620 -460
- package/package.json +1 -1
- package/rules_fixtures.json +280 -0
- package/src/api.ts +1176 -44
- package/src/index.ts +1 -0
package/openapi.json
CHANGED
|
@@ -3682,21 +3682,22 @@
|
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
3684
|
},
|
|
3685
|
-
"/api/v1/admin/refs/{
|
|
3685
|
+
"/api/v1/admin/refs/loco-series/{code}/positions": {
|
|
3686
3686
|
"get": {
|
|
3687
3687
|
"tags": [
|
|
3688
3688
|
"admin-refs"
|
|
3689
3689
|
],
|
|
3690
|
-
"summary": "List
|
|
3691
|
-
"
|
|
3690
|
+
"summary": "List Series Positions",
|
|
3691
|
+
"description": "Every type bound to this series, with the list it carries there.\n\nTypes with no binding are deliberately absent rather than listed with their\nglobal list: the visualization has to be able to tell «this series says so»\nfrom «the type says so», and a merged view cannot.",
|
|
3692
|
+
"operationId": "list_series_positions_api_v1_admin_refs_loco_series__code__positions_get",
|
|
3692
3693
|
"parameters": [
|
|
3693
3694
|
{
|
|
3694
|
-
"name": "
|
|
3695
|
+
"name": "code",
|
|
3695
3696
|
"in": "path",
|
|
3696
3697
|
"required": true,
|
|
3697
3698
|
"schema": {
|
|
3698
3699
|
"type": "string",
|
|
3699
|
-
"title": "
|
|
3700
|
+
"title": "Code"
|
|
3700
3701
|
}
|
|
3701
3702
|
},
|
|
3702
3703
|
{
|
|
@@ -3741,10 +3742,9 @@
|
|
|
3741
3742
|
"schema": {
|
|
3742
3743
|
"type": "array",
|
|
3743
3744
|
"items": {
|
|
3744
|
-
"
|
|
3745
|
-
"additionalProperties": true
|
|
3745
|
+
"$ref": "#/components/schemas/LocoSeriesPositionOut"
|
|
3746
3746
|
},
|
|
3747
|
-
"title": "Response List
|
|
3747
|
+
"title": "Response List Series Positions Api V1 Admin Refs Loco Series Code Positions Get"
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
3750
|
}
|
|
@@ -3760,21 +3760,34 @@
|
|
|
3760
3760
|
}
|
|
3761
3761
|
}
|
|
3762
3762
|
}
|
|
3763
|
-
}
|
|
3764
|
-
|
|
3763
|
+
}
|
|
3764
|
+
},
|
|
3765
|
+
"/api/v1/admin/refs/loco-series/{code}/positions/{nomenclature_id}": {
|
|
3766
|
+
"put": {
|
|
3765
3767
|
"tags": [
|
|
3766
3768
|
"admin-refs"
|
|
3767
3769
|
],
|
|
3768
|
-
"summary": "
|
|
3769
|
-
"
|
|
3770
|
+
"summary": "Bind Series Positions",
|
|
3771
|
+
"description": "Create or replace the binding. Idempotent by (series, type).",
|
|
3772
|
+
"operationId": "bind_series_positions_api_v1_admin_refs_loco_series__code__positions__nomenclature_id__put",
|
|
3770
3773
|
"parameters": [
|
|
3771
3774
|
{
|
|
3772
|
-
"name": "
|
|
3775
|
+
"name": "code",
|
|
3773
3776
|
"in": "path",
|
|
3774
3777
|
"required": true,
|
|
3775
3778
|
"schema": {
|
|
3776
3779
|
"type": "string",
|
|
3777
|
-
"title": "
|
|
3780
|
+
"title": "Code"
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
{
|
|
3784
|
+
"name": "nomenclature_id",
|
|
3785
|
+
"in": "path",
|
|
3786
|
+
"required": true,
|
|
3787
|
+
"schema": {
|
|
3788
|
+
"type": "string",
|
|
3789
|
+
"format": "uuid",
|
|
3790
|
+
"title": "Nomenclature Id"
|
|
3778
3791
|
}
|
|
3779
3792
|
},
|
|
3780
3793
|
{
|
|
@@ -3816,22 +3829,18 @@
|
|
|
3816
3829
|
"content": {
|
|
3817
3830
|
"application/json": {
|
|
3818
3831
|
"schema": {
|
|
3819
|
-
"
|
|
3820
|
-
"additionalProperties": true,
|
|
3821
|
-
"title": "Body"
|
|
3832
|
+
"$ref": "#/components/schemas/LocoSeriesPositionIn"
|
|
3822
3833
|
}
|
|
3823
3834
|
}
|
|
3824
3835
|
}
|
|
3825
3836
|
},
|
|
3826
3837
|
"responses": {
|
|
3827
|
-
"
|
|
3838
|
+
"200": {
|
|
3828
3839
|
"description": "Successful Response",
|
|
3829
3840
|
"content": {
|
|
3830
3841
|
"application/json": {
|
|
3831
3842
|
"schema": {
|
|
3832
|
-
"
|
|
3833
|
-
"additionalProperties": true,
|
|
3834
|
-
"title": "Response Create Entity Api V1 Admin Refs Entity Post"
|
|
3843
|
+
"$ref": "#/components/schemas/LocoSeriesPositionOut"
|
|
3835
3844
|
}
|
|
3836
3845
|
}
|
|
3837
3846
|
}
|
|
@@ -3847,32 +3856,32 @@
|
|
|
3847
3856
|
}
|
|
3848
3857
|
}
|
|
3849
3858
|
}
|
|
3850
|
-
}
|
|
3851
|
-
|
|
3852
|
-
"/api/v1/admin/refs/{entity}/{pk}": {
|
|
3853
|
-
"patch": {
|
|
3859
|
+
},
|
|
3860
|
+
"delete": {
|
|
3854
3861
|
"tags": [
|
|
3855
3862
|
"admin-refs"
|
|
3856
3863
|
],
|
|
3857
|
-
"summary": "
|
|
3858
|
-
"
|
|
3864
|
+
"summary": "Unbind Series Positions",
|
|
3865
|
+
"description": "Drop the binding: the type falls back to its global positions list.\n\nAbsent binding is not an error — the operator's intent («this series has no\nlist of its own») already holds.",
|
|
3866
|
+
"operationId": "unbind_series_positions_api_v1_admin_refs_loco_series__code__positions__nomenclature_id__delete",
|
|
3859
3867
|
"parameters": [
|
|
3860
3868
|
{
|
|
3861
|
-
"name": "
|
|
3869
|
+
"name": "code",
|
|
3862
3870
|
"in": "path",
|
|
3863
3871
|
"required": true,
|
|
3864
3872
|
"schema": {
|
|
3865
3873
|
"type": "string",
|
|
3866
|
-
"title": "
|
|
3874
|
+
"title": "Code"
|
|
3867
3875
|
}
|
|
3868
3876
|
},
|
|
3869
3877
|
{
|
|
3870
|
-
"name": "
|
|
3878
|
+
"name": "nomenclature_id",
|
|
3871
3879
|
"in": "path",
|
|
3872
3880
|
"required": true,
|
|
3873
3881
|
"schema": {
|
|
3874
3882
|
"type": "string",
|
|
3875
|
-
"
|
|
3883
|
+
"format": "uuid",
|
|
3884
|
+
"title": "Nomenclature Id"
|
|
3876
3885
|
}
|
|
3877
3886
|
},
|
|
3878
3887
|
{
|
|
@@ -3909,27 +3918,86 @@
|
|
|
3909
3918
|
}
|
|
3910
3919
|
}
|
|
3911
3920
|
],
|
|
3912
|
-
"
|
|
3913
|
-
"
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3921
|
+
"responses": {
|
|
3922
|
+
"204": {
|
|
3923
|
+
"description": "Successful Response"
|
|
3924
|
+
},
|
|
3925
|
+
"422": {
|
|
3926
|
+
"description": "Validation Error",
|
|
3927
|
+
"content": {
|
|
3928
|
+
"application/json": {
|
|
3929
|
+
"schema": {
|
|
3930
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
3931
|
+
}
|
|
3920
3932
|
}
|
|
3921
3933
|
}
|
|
3922
3934
|
}
|
|
3923
|
-
}
|
|
3935
|
+
}
|
|
3936
|
+
}
|
|
3937
|
+
},
|
|
3938
|
+
"/api/v1/admin/refs/{entity}": {
|
|
3939
|
+
"get": {
|
|
3940
|
+
"tags": [
|
|
3941
|
+
"admin-refs"
|
|
3942
|
+
],
|
|
3943
|
+
"summary": "List Entity",
|
|
3944
|
+
"operationId": "list_entity_api_v1_admin_refs__entity__get",
|
|
3945
|
+
"parameters": [
|
|
3946
|
+
{
|
|
3947
|
+
"name": "entity",
|
|
3948
|
+
"in": "path",
|
|
3949
|
+
"required": true,
|
|
3950
|
+
"schema": {
|
|
3951
|
+
"type": "string",
|
|
3952
|
+
"title": "Entity"
|
|
3953
|
+
}
|
|
3954
|
+
},
|
|
3955
|
+
{
|
|
3956
|
+
"name": "x-debug-person-id",
|
|
3957
|
+
"in": "header",
|
|
3958
|
+
"required": false,
|
|
3959
|
+
"schema": {
|
|
3960
|
+
"anyOf": [
|
|
3961
|
+
{
|
|
3962
|
+
"type": "string",
|
|
3963
|
+
"format": "uuid"
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
"type": "null"
|
|
3967
|
+
}
|
|
3968
|
+
],
|
|
3969
|
+
"title": "X-Debug-Person-Id"
|
|
3970
|
+
}
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
"name": "depo_admin_session",
|
|
3974
|
+
"in": "cookie",
|
|
3975
|
+
"required": false,
|
|
3976
|
+
"schema": {
|
|
3977
|
+
"anyOf": [
|
|
3978
|
+
{
|
|
3979
|
+
"type": "string"
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"type": "null"
|
|
3983
|
+
}
|
|
3984
|
+
],
|
|
3985
|
+
"title": "Depo Admin Session"
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
],
|
|
3924
3989
|
"responses": {
|
|
3925
3990
|
"200": {
|
|
3926
3991
|
"description": "Successful Response",
|
|
3927
3992
|
"content": {
|
|
3928
3993
|
"application/json": {
|
|
3929
3994
|
"schema": {
|
|
3930
|
-
"type": "
|
|
3931
|
-
"
|
|
3932
|
-
|
|
3995
|
+
"type": "array",
|
|
3996
|
+
"items": {
|
|
3997
|
+
"type": "object",
|
|
3998
|
+
"additionalProperties": true
|
|
3999
|
+
},
|
|
4000
|
+
"title": "Response List Entity Api V1 Admin Refs Entity Get"
|
|
3933
4001
|
}
|
|
3934
4002
|
}
|
|
3935
4003
|
}
|
|
@@ -3946,13 +4014,12 @@
|
|
|
3946
4014
|
}
|
|
3947
4015
|
}
|
|
3948
4016
|
},
|
|
3949
|
-
"
|
|
4017
|
+
"post": {
|
|
3950
4018
|
"tags": [
|
|
3951
4019
|
"admin-refs"
|
|
3952
4020
|
],
|
|
3953
|
-
"summary": "
|
|
3954
|
-
"
|
|
3955
|
-
"operationId": "delete_entity_api_v1_admin_refs__entity___pk__delete",
|
|
4021
|
+
"summary": "Create Entity",
|
|
4022
|
+
"operationId": "create_entity_api_v1_admin_refs__entity__post",
|
|
3956
4023
|
"parameters": [
|
|
3957
4024
|
{
|
|
3958
4025
|
"name": "entity",
|
|
@@ -3963,15 +4030,6 @@
|
|
|
3963
4030
|
"title": "Entity"
|
|
3964
4031
|
}
|
|
3965
4032
|
},
|
|
3966
|
-
{
|
|
3967
|
-
"name": "pk",
|
|
3968
|
-
"in": "path",
|
|
3969
|
-
"required": true,
|
|
3970
|
-
"schema": {
|
|
3971
|
-
"type": "string",
|
|
3972
|
-
"title": "Pk"
|
|
3973
|
-
}
|
|
3974
|
-
},
|
|
3975
4033
|
{
|
|
3976
4034
|
"name": "x-debug-person-id",
|
|
3977
4035
|
"in": "header",
|
|
@@ -4006,17 +4064,27 @@
|
|
|
4006
4064
|
}
|
|
4007
4065
|
}
|
|
4008
4066
|
],
|
|
4067
|
+
"requestBody": {
|
|
4068
|
+
"required": true,
|
|
4069
|
+
"content": {
|
|
4070
|
+
"application/json": {
|
|
4071
|
+
"schema": {
|
|
4072
|
+
"type": "object",
|
|
4073
|
+
"additionalProperties": true,
|
|
4074
|
+
"title": "Body"
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4009
4079
|
"responses": {
|
|
4010
|
-
"
|
|
4080
|
+
"201": {
|
|
4011
4081
|
"description": "Successful Response",
|
|
4012
4082
|
"content": {
|
|
4013
4083
|
"application/json": {
|
|
4014
4084
|
"schema": {
|
|
4015
4085
|
"type": "object",
|
|
4016
|
-
"additionalProperties":
|
|
4017
|
-
|
|
4018
|
-
},
|
|
4019
|
-
"title": "Response Delete Entity Api V1 Admin Refs Entity Pk Delete"
|
|
4086
|
+
"additionalProperties": true,
|
|
4087
|
+
"title": "Response Create Entity Api V1 Admin Refs Entity Post"
|
|
4020
4088
|
}
|
|
4021
4089
|
}
|
|
4022
4090
|
}
|
|
@@ -4034,32 +4102,30 @@
|
|
|
4034
4102
|
}
|
|
4035
4103
|
}
|
|
4036
4104
|
},
|
|
4037
|
-
"/api/v1/admin/refs/
|
|
4038
|
-
"
|
|
4105
|
+
"/api/v1/admin/refs/{entity}/{pk}": {
|
|
4106
|
+
"patch": {
|
|
4039
4107
|
"tags": [
|
|
4040
4108
|
"admin-refs"
|
|
4041
4109
|
],
|
|
4042
|
-
"summary": "
|
|
4043
|
-
"
|
|
4044
|
-
"operationId": "upload_series_photo_api_v1_admin_refs_loco_series__code__photo_post",
|
|
4110
|
+
"summary": "Update Entity",
|
|
4111
|
+
"operationId": "update_entity_api_v1_admin_refs__entity___pk__patch",
|
|
4045
4112
|
"parameters": [
|
|
4046
4113
|
{
|
|
4047
|
-
"name": "
|
|
4114
|
+
"name": "entity",
|
|
4048
4115
|
"in": "path",
|
|
4049
4116
|
"required": true,
|
|
4050
4117
|
"schema": {
|
|
4051
4118
|
"type": "string",
|
|
4052
|
-
"title": "
|
|
4119
|
+
"title": "Entity"
|
|
4053
4120
|
}
|
|
4054
4121
|
},
|
|
4055
4122
|
{
|
|
4056
|
-
"name": "
|
|
4057
|
-
"in": "
|
|
4058
|
-
"required":
|
|
4123
|
+
"name": "pk",
|
|
4124
|
+
"in": "path",
|
|
4125
|
+
"required": true,
|
|
4059
4126
|
"schema": {
|
|
4060
4127
|
"type": "string",
|
|
4061
|
-
"
|
|
4062
|
-
"title": "Filename"
|
|
4128
|
+
"title": "Pk"
|
|
4063
4129
|
}
|
|
4064
4130
|
},
|
|
4065
4131
|
{
|
|
@@ -4096,15 +4162,27 @@
|
|
|
4096
4162
|
}
|
|
4097
4163
|
}
|
|
4098
4164
|
],
|
|
4165
|
+
"requestBody": {
|
|
4166
|
+
"required": true,
|
|
4167
|
+
"content": {
|
|
4168
|
+
"application/json": {
|
|
4169
|
+
"schema": {
|
|
4170
|
+
"type": "object",
|
|
4171
|
+
"additionalProperties": true,
|
|
4172
|
+
"title": "Body"
|
|
4173
|
+
}
|
|
4174
|
+
}
|
|
4175
|
+
}
|
|
4176
|
+
},
|
|
4099
4177
|
"responses": {
|
|
4100
|
-
"
|
|
4178
|
+
"200": {
|
|
4101
4179
|
"description": "Successful Response",
|
|
4102
4180
|
"content": {
|
|
4103
4181
|
"application/json": {
|
|
4104
4182
|
"schema": {
|
|
4105
4183
|
"type": "object",
|
|
4106
4184
|
"additionalProperties": true,
|
|
4107
|
-
"title": "Response
|
|
4185
|
+
"title": "Response Update Entity Api V1 Admin Refs Entity Pk Patch"
|
|
4108
4186
|
}
|
|
4109
4187
|
}
|
|
4110
4188
|
}
|
|
@@ -4120,16 +4198,14 @@
|
|
|
4120
4198
|
}
|
|
4121
4199
|
}
|
|
4122
4200
|
}
|
|
4123
|
-
}
|
|
4124
|
-
|
|
4125
|
-
"/api/v1/admin/refs/{entity}/{pk}/deletable": {
|
|
4126
|
-
"get": {
|
|
4201
|
+
},
|
|
4202
|
+
"delete": {
|
|
4127
4203
|
"tags": [
|
|
4128
4204
|
"admin-refs"
|
|
4129
4205
|
],
|
|
4130
|
-
"summary": "
|
|
4131
|
-
"description": "
|
|
4132
|
-
"operationId": "
|
|
4206
|
+
"summary": "Delete Entity",
|
|
4207
|
+
"description": "Physically remove a row nothing points at — a typo, a seed leftover.\n\nOne reference anywhere and the answer is 409 with the blocker list;\ndeactivation is then the only way out. Nothing cascades.",
|
|
4208
|
+
"operationId": "delete_entity_api_v1_admin_refs__entity___pk__delete",
|
|
4133
4209
|
"parameters": [
|
|
4134
4210
|
{
|
|
4135
4211
|
"name": "entity",
|
|
@@ -4189,7 +4265,11 @@
|
|
|
4189
4265
|
"content": {
|
|
4190
4266
|
"application/json": {
|
|
4191
4267
|
"schema": {
|
|
4192
|
-
"
|
|
4268
|
+
"type": "object",
|
|
4269
|
+
"additionalProperties": {
|
|
4270
|
+
"type": "string"
|
|
4271
|
+
},
|
|
4272
|
+
"title": "Response Delete Entity Api V1 Admin Refs Entity Pk Delete"
|
|
4193
4273
|
}
|
|
4194
4274
|
}
|
|
4195
4275
|
}
|
|
@@ -4207,31 +4287,32 @@
|
|
|
4207
4287
|
}
|
|
4208
4288
|
}
|
|
4209
4289
|
},
|
|
4210
|
-
"/api/v1/admin/refs/
|
|
4290
|
+
"/api/v1/admin/refs/loco-series/{code}/photo": {
|
|
4211
4291
|
"post": {
|
|
4212
4292
|
"tags": [
|
|
4213
4293
|
"admin-refs"
|
|
4214
4294
|
],
|
|
4215
|
-
"summary": "
|
|
4216
|
-
"description": "
|
|
4217
|
-
"operationId": "
|
|
4295
|
+
"summary": "Upload Series Photo",
|
|
4296
|
+
"description": "Series picture: raw-body upload (same contract as /attachments, B7),\nstored as an attachment and pinned into loco_series.photo_key in one act.",
|
|
4297
|
+
"operationId": "upload_series_photo_api_v1_admin_refs_loco_series__code__photo_post",
|
|
4218
4298
|
"parameters": [
|
|
4219
4299
|
{
|
|
4220
|
-
"name": "
|
|
4300
|
+
"name": "code",
|
|
4221
4301
|
"in": "path",
|
|
4222
4302
|
"required": true,
|
|
4223
4303
|
"schema": {
|
|
4224
4304
|
"type": "string",
|
|
4225
|
-
"title": "
|
|
4305
|
+
"title": "Code"
|
|
4226
4306
|
}
|
|
4227
4307
|
},
|
|
4228
4308
|
{
|
|
4229
|
-
"name": "
|
|
4230
|
-
"in": "
|
|
4231
|
-
"required":
|
|
4309
|
+
"name": "filename",
|
|
4310
|
+
"in": "query",
|
|
4311
|
+
"required": false,
|
|
4232
4312
|
"schema": {
|
|
4233
4313
|
"type": "string",
|
|
4234
|
-
"
|
|
4314
|
+
"default": "series.png",
|
|
4315
|
+
"title": "Filename"
|
|
4235
4316
|
}
|
|
4236
4317
|
},
|
|
4237
4318
|
{
|
|
@@ -4269,14 +4350,14 @@
|
|
|
4269
4350
|
}
|
|
4270
4351
|
],
|
|
4271
4352
|
"responses": {
|
|
4272
|
-
"
|
|
4353
|
+
"201": {
|
|
4273
4354
|
"description": "Successful Response",
|
|
4274
4355
|
"content": {
|
|
4275
4356
|
"application/json": {
|
|
4276
4357
|
"schema": {
|
|
4277
4358
|
"type": "object",
|
|
4278
4359
|
"additionalProperties": true,
|
|
4279
|
-
"title": "Response
|
|
4360
|
+
"title": "Response Upload Series Photo Api V1 Admin Refs Loco Series Code Photo Post"
|
|
4280
4361
|
}
|
|
4281
4362
|
}
|
|
4282
4363
|
}
|
|
@@ -4294,14 +4375,186 @@
|
|
|
4294
4375
|
}
|
|
4295
4376
|
}
|
|
4296
4377
|
},
|
|
4297
|
-
"/api/v1/admin/refs/{entity}/{pk}/
|
|
4298
|
-
"
|
|
4378
|
+
"/api/v1/admin/refs/{entity}/{pk}/deletable": {
|
|
4379
|
+
"get": {
|
|
4299
4380
|
"tags": [
|
|
4300
4381
|
"admin-refs"
|
|
4301
4382
|
],
|
|
4302
|
-
"summary": "
|
|
4303
|
-
"description": "
|
|
4304
|
-
"operationId": "
|
|
4383
|
+
"summary": "Deletable",
|
|
4384
|
+
"description": "May this row be physically deleted, and if not — what holds it.\n\nAdvisory only: DELETE re-runs the same check, and the foreign keys are the\nlast line of defence behind that.",
|
|
4385
|
+
"operationId": "deletable_api_v1_admin_refs__entity___pk__deletable_get",
|
|
4386
|
+
"parameters": [
|
|
4387
|
+
{
|
|
4388
|
+
"name": "entity",
|
|
4389
|
+
"in": "path",
|
|
4390
|
+
"required": true,
|
|
4391
|
+
"schema": {
|
|
4392
|
+
"type": "string",
|
|
4393
|
+
"title": "Entity"
|
|
4394
|
+
}
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
"name": "pk",
|
|
4398
|
+
"in": "path",
|
|
4399
|
+
"required": true,
|
|
4400
|
+
"schema": {
|
|
4401
|
+
"type": "string",
|
|
4402
|
+
"title": "Pk"
|
|
4403
|
+
}
|
|
4404
|
+
},
|
|
4405
|
+
{
|
|
4406
|
+
"name": "x-debug-person-id",
|
|
4407
|
+
"in": "header",
|
|
4408
|
+
"required": false,
|
|
4409
|
+
"schema": {
|
|
4410
|
+
"anyOf": [
|
|
4411
|
+
{
|
|
4412
|
+
"type": "string",
|
|
4413
|
+
"format": "uuid"
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
"type": "null"
|
|
4417
|
+
}
|
|
4418
|
+
],
|
|
4419
|
+
"title": "X-Debug-Person-Id"
|
|
4420
|
+
}
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
"name": "depo_admin_session",
|
|
4424
|
+
"in": "cookie",
|
|
4425
|
+
"required": false,
|
|
4426
|
+
"schema": {
|
|
4427
|
+
"anyOf": [
|
|
4428
|
+
{
|
|
4429
|
+
"type": "string"
|
|
4430
|
+
},
|
|
4431
|
+
{
|
|
4432
|
+
"type": "null"
|
|
4433
|
+
}
|
|
4434
|
+
],
|
|
4435
|
+
"title": "Depo Admin Session"
|
|
4436
|
+
}
|
|
4437
|
+
}
|
|
4438
|
+
],
|
|
4439
|
+
"responses": {
|
|
4440
|
+
"200": {
|
|
4441
|
+
"description": "Successful Response",
|
|
4442
|
+
"content": {
|
|
4443
|
+
"application/json": {
|
|
4444
|
+
"schema": {
|
|
4445
|
+
"$ref": "#/components/schemas/DeletableOut"
|
|
4446
|
+
}
|
|
4447
|
+
}
|
|
4448
|
+
}
|
|
4449
|
+
},
|
|
4450
|
+
"422": {
|
|
4451
|
+
"description": "Validation Error",
|
|
4452
|
+
"content": {
|
|
4453
|
+
"application/json": {
|
|
4454
|
+
"schema": {
|
|
4455
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
}
|
|
4462
|
+
},
|
|
4463
|
+
"/api/v1/admin/refs/{entity}/{pk}/deactivate": {
|
|
4464
|
+
"post": {
|
|
4465
|
+
"tags": [
|
|
4466
|
+
"admin-refs"
|
|
4467
|
+
],
|
|
4468
|
+
"summary": "Deactivate Entity",
|
|
4469
|
+
"description": "Retire a row that history still needs: it disappears from every picker\n(terminal and admin forms) and stays readable everywhere it is referenced.",
|
|
4470
|
+
"operationId": "deactivate_entity_api_v1_admin_refs__entity___pk__deactivate_post",
|
|
4471
|
+
"parameters": [
|
|
4472
|
+
{
|
|
4473
|
+
"name": "entity",
|
|
4474
|
+
"in": "path",
|
|
4475
|
+
"required": true,
|
|
4476
|
+
"schema": {
|
|
4477
|
+
"type": "string",
|
|
4478
|
+
"title": "Entity"
|
|
4479
|
+
}
|
|
4480
|
+
},
|
|
4481
|
+
{
|
|
4482
|
+
"name": "pk",
|
|
4483
|
+
"in": "path",
|
|
4484
|
+
"required": true,
|
|
4485
|
+
"schema": {
|
|
4486
|
+
"type": "string",
|
|
4487
|
+
"title": "Pk"
|
|
4488
|
+
}
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
"name": "x-debug-person-id",
|
|
4492
|
+
"in": "header",
|
|
4493
|
+
"required": false,
|
|
4494
|
+
"schema": {
|
|
4495
|
+
"anyOf": [
|
|
4496
|
+
{
|
|
4497
|
+
"type": "string",
|
|
4498
|
+
"format": "uuid"
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"type": "null"
|
|
4502
|
+
}
|
|
4503
|
+
],
|
|
4504
|
+
"title": "X-Debug-Person-Id"
|
|
4505
|
+
}
|
|
4506
|
+
},
|
|
4507
|
+
{
|
|
4508
|
+
"name": "depo_admin_session",
|
|
4509
|
+
"in": "cookie",
|
|
4510
|
+
"required": false,
|
|
4511
|
+
"schema": {
|
|
4512
|
+
"anyOf": [
|
|
4513
|
+
{
|
|
4514
|
+
"type": "string"
|
|
4515
|
+
},
|
|
4516
|
+
{
|
|
4517
|
+
"type": "null"
|
|
4518
|
+
}
|
|
4519
|
+
],
|
|
4520
|
+
"title": "Depo Admin Session"
|
|
4521
|
+
}
|
|
4522
|
+
}
|
|
4523
|
+
],
|
|
4524
|
+
"responses": {
|
|
4525
|
+
"200": {
|
|
4526
|
+
"description": "Successful Response",
|
|
4527
|
+
"content": {
|
|
4528
|
+
"application/json": {
|
|
4529
|
+
"schema": {
|
|
4530
|
+
"type": "object",
|
|
4531
|
+
"additionalProperties": true,
|
|
4532
|
+
"title": "Response Deactivate Entity Api V1 Admin Refs Entity Pk Deactivate Post"
|
|
4533
|
+
}
|
|
4534
|
+
}
|
|
4535
|
+
}
|
|
4536
|
+
},
|
|
4537
|
+
"422": {
|
|
4538
|
+
"description": "Validation Error",
|
|
4539
|
+
"content": {
|
|
4540
|
+
"application/json": {
|
|
4541
|
+
"schema": {
|
|
4542
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
4543
|
+
}
|
|
4544
|
+
}
|
|
4545
|
+
}
|
|
4546
|
+
}
|
|
4547
|
+
}
|
|
4548
|
+
}
|
|
4549
|
+
},
|
|
4550
|
+
"/api/v1/admin/refs/{entity}/{pk}/activate": {
|
|
4551
|
+
"post": {
|
|
4552
|
+
"tags": [
|
|
4553
|
+
"admin-refs"
|
|
4554
|
+
],
|
|
4555
|
+
"summary": "Activate Entity",
|
|
4556
|
+
"description": "Bring a retired row back into the pickers.",
|
|
4557
|
+
"operationId": "activate_entity_api_v1_admin_refs__entity___pk__activate_post",
|
|
4305
4558
|
"parameters": [
|
|
4306
4559
|
{
|
|
4307
4560
|
"name": "entity",
|
|
@@ -7357,6 +7610,9 @@
|
|
|
7357
7610
|
{
|
|
7358
7611
|
"$ref": "#/components/schemas/InspectCommand"
|
|
7359
7612
|
},
|
|
7613
|
+
{
|
|
7614
|
+
"$ref": "#/components/schemas/StoreInCommand"
|
|
7615
|
+
},
|
|
7360
7616
|
{
|
|
7361
7617
|
"$ref": "#/components/schemas/DispositionCommand"
|
|
7362
7618
|
},
|
|
@@ -7389,6 +7645,7 @@
|
|
|
7389
7645
|
"RECEIVE_OPENING": "#/components/schemas/ReceiveOpeningCommand",
|
|
7390
7646
|
"FOUND": "#/components/schemas/FoundCommand",
|
|
7391
7647
|
"INSPECT": "#/components/schemas/InspectCommand",
|
|
7648
|
+
"STORE_IN": "#/components/schemas/StoreInCommand",
|
|
7392
7649
|
"DISPOSITION": "#/components/schemas/DispositionCommand",
|
|
7393
7650
|
"STORNO": "#/components/schemas/StornoCommand",
|
|
7394
7651
|
"REPAIR_START": "#/components/schemas/RepairStartCommand",
|
|
@@ -7400,7 +7657,6 @@
|
|
|
7400
7657
|
"SEND_TO_REPAIR": "#/components/schemas/GenericCommand",
|
|
7401
7658
|
"QC_ACCEPT": "#/components/schemas/GenericCommand",
|
|
7402
7659
|
"QC_REJECT": "#/components/schemas/GenericCommand",
|
|
7403
|
-
"STORE_IN": "#/components/schemas/GenericCommand",
|
|
7404
7660
|
"ASSEMBLE": "#/components/schemas/GenericCommand",
|
|
7405
7661
|
"DISASSEMBLE": "#/components/schemas/GenericCommand",
|
|
7406
7662
|
"SEND_TO_PLANT": "#/components/schemas/GenericCommand",
|
|
@@ -13194,44 +13450,15 @@
|
|
|
13194
13450
|
}
|
|
13195
13451
|
}
|
|
13196
13452
|
},
|
|
13197
|
-
"/api/v1/refs/
|
|
13453
|
+
"/api/v1/refs/loco-sections": {
|
|
13198
13454
|
"get": {
|
|
13199
13455
|
"tags": [
|
|
13200
13456
|
"refs"
|
|
13201
13457
|
],
|
|
13202
|
-
"summary": "
|
|
13203
|
-
"
|
|
13458
|
+
"summary": "Loco Sections",
|
|
13459
|
+
"description": "The places a part sits on the machine — what the position picker draws.\n\nA hint catalogue (TZ §14): nothing validates `mount_position` against it,\na place typed by hand stays legal, and a client that has never heard of a\nsection simply does not light it.",
|
|
13460
|
+
"operationId": "loco_sections_api_v1_refs_loco_sections_get",
|
|
13204
13461
|
"parameters": [
|
|
13205
|
-
{
|
|
13206
|
-
"name": "q",
|
|
13207
|
-
"in": "query",
|
|
13208
|
-
"required": false,
|
|
13209
|
-
"schema": {
|
|
13210
|
-
"anyOf": [
|
|
13211
|
-
{
|
|
13212
|
-
"type": "string"
|
|
13213
|
-
},
|
|
13214
|
-
{
|
|
13215
|
-
"type": "null"
|
|
13216
|
-
}
|
|
13217
|
-
],
|
|
13218
|
-
"description": "substring of code or name",
|
|
13219
|
-
"title": "Q"
|
|
13220
|
-
},
|
|
13221
|
-
"description": "substring of code or name"
|
|
13222
|
-
},
|
|
13223
|
-
{
|
|
13224
|
-
"name": "limit",
|
|
13225
|
-
"in": "query",
|
|
13226
|
-
"required": false,
|
|
13227
|
-
"schema": {
|
|
13228
|
-
"type": "integer",
|
|
13229
|
-
"maximum": 500,
|
|
13230
|
-
"minimum": 1,
|
|
13231
|
-
"default": 50,
|
|
13232
|
-
"title": "Limit"
|
|
13233
|
-
}
|
|
13234
|
-
},
|
|
13235
13462
|
{
|
|
13236
13463
|
"name": "authorization",
|
|
13237
13464
|
"in": "header",
|
|
@@ -13290,9 +13517,9 @@
|
|
|
13290
13517
|
"schema": {
|
|
13291
13518
|
"type": "array",
|
|
13292
13519
|
"items": {
|
|
13293
|
-
"$ref": "#/components/schemas/
|
|
13520
|
+
"$ref": "#/components/schemas/LocoSectionRef"
|
|
13294
13521
|
},
|
|
13295
|
-
"title": "Response
|
|
13522
|
+
"title": "Response Loco Sections Api V1 Refs Loco Sections Get"
|
|
13296
13523
|
}
|
|
13297
13524
|
}
|
|
13298
13525
|
}
|
|
@@ -13310,14 +13537,14 @@
|
|
|
13310
13537
|
}
|
|
13311
13538
|
}
|
|
13312
13539
|
},
|
|
13313
|
-
"/api/v1/refs/
|
|
13540
|
+
"/api/v1/refs/loco-series-positions": {
|
|
13314
13541
|
"get": {
|
|
13315
13542
|
"tags": [
|
|
13316
13543
|
"refs"
|
|
13317
13544
|
],
|
|
13318
|
-
"summary": "
|
|
13319
|
-
"description": "
|
|
13320
|
-
"operationId": "
|
|
13545
|
+
"summary": "Loco Series Positions",
|
|
13546
|
+
"description": "Per-series mount positions, for the terminal's chips.\n\nA small dictionary by design: only the types whose positions differ from\nthe global `nomenclature.positions` have a row. The client applies it as an\noverride — series row first, global list otherwise.",
|
|
13547
|
+
"operationId": "loco_series_positions_api_v1_refs_loco_series_positions_get",
|
|
13321
13548
|
"parameters": [
|
|
13322
13549
|
{
|
|
13323
13550
|
"name": "authorization",
|
|
@@ -13377,9 +13604,9 @@
|
|
|
13377
13604
|
"schema": {
|
|
13378
13605
|
"type": "array",
|
|
13379
13606
|
"items": {
|
|
13380
|
-
"$ref": "#/components/schemas/
|
|
13607
|
+
"$ref": "#/components/schemas/LocoSeriesPositionRef"
|
|
13381
13608
|
},
|
|
13382
|
-
"title": "Response
|
|
13609
|
+
"title": "Response Loco Series Positions Api V1 Refs Loco Series Positions Get"
|
|
13383
13610
|
}
|
|
13384
13611
|
}
|
|
13385
13612
|
}
|
|
@@ -13397,15 +13624,44 @@
|
|
|
13397
13624
|
}
|
|
13398
13625
|
}
|
|
13399
13626
|
},
|
|
13400
|
-
"/api/v1/refs/nomenclature
|
|
13627
|
+
"/api/v1/refs/nomenclature": {
|
|
13401
13628
|
"get": {
|
|
13402
13629
|
"tags": [
|
|
13403
13630
|
"refs"
|
|
13404
13631
|
],
|
|
13405
|
-
"summary": "Nomenclature
|
|
13406
|
-
"
|
|
13407
|
-
"operationId": "nomenclature_rules_api_v1_refs_nomenclature_rules_get",
|
|
13632
|
+
"summary": "Nomenclature",
|
|
13633
|
+
"operationId": "nomenclature_api_v1_refs_nomenclature_get",
|
|
13408
13634
|
"parameters": [
|
|
13635
|
+
{
|
|
13636
|
+
"name": "q",
|
|
13637
|
+
"in": "query",
|
|
13638
|
+
"required": false,
|
|
13639
|
+
"schema": {
|
|
13640
|
+
"anyOf": [
|
|
13641
|
+
{
|
|
13642
|
+
"type": "string"
|
|
13643
|
+
},
|
|
13644
|
+
{
|
|
13645
|
+
"type": "null"
|
|
13646
|
+
}
|
|
13647
|
+
],
|
|
13648
|
+
"description": "substring of code or name",
|
|
13649
|
+
"title": "Q"
|
|
13650
|
+
},
|
|
13651
|
+
"description": "substring of code or name"
|
|
13652
|
+
},
|
|
13653
|
+
{
|
|
13654
|
+
"name": "limit",
|
|
13655
|
+
"in": "query",
|
|
13656
|
+
"required": false,
|
|
13657
|
+
"schema": {
|
|
13658
|
+
"type": "integer",
|
|
13659
|
+
"maximum": 500,
|
|
13660
|
+
"minimum": 1,
|
|
13661
|
+
"default": 50,
|
|
13662
|
+
"title": "Limit"
|
|
13663
|
+
}
|
|
13664
|
+
},
|
|
13409
13665
|
{
|
|
13410
13666
|
"name": "authorization",
|
|
13411
13667
|
"in": "header",
|
|
@@ -13464,9 +13720,9 @@
|
|
|
13464
13720
|
"schema": {
|
|
13465
13721
|
"type": "array",
|
|
13466
13722
|
"items": {
|
|
13467
|
-
"$ref": "#/components/schemas/
|
|
13723
|
+
"$ref": "#/components/schemas/NomenclatureRef"
|
|
13468
13724
|
},
|
|
13469
|
-
"title": "Response Nomenclature
|
|
13725
|
+
"title": "Response Nomenclature Api V1 Refs Nomenclature Get"
|
|
13470
13726
|
}
|
|
13471
13727
|
}
|
|
13472
13728
|
}
|
|
@@ -13484,14 +13740,188 @@
|
|
|
13484
13740
|
}
|
|
13485
13741
|
}
|
|
13486
13742
|
},
|
|
13487
|
-
"/api/v1/refs/nomenclature-
|
|
13743
|
+
"/api/v1/refs/nomenclature-fields": {
|
|
13488
13744
|
"get": {
|
|
13489
13745
|
"tags": [
|
|
13490
13746
|
"refs"
|
|
13491
13747
|
],
|
|
13492
|
-
"summary": "Nomenclature
|
|
13493
|
-
"description": "
|
|
13494
|
-
"operationId": "
|
|
13748
|
+
"summary": "Nomenclature Fields",
|
|
13749
|
+
"description": "Every part type's passport form, flat — the kiosk caches the lot and\nfilters by nomenclature, kind and stage locally. Small by nature: a depot\nhas tens of described types, not thousands.\n\nCategory rows travel too (nomenclature_id NULL, category_id set): the\nterminal composes them the same way the server does, which is the only way\nan offline kiosk can render the same form as the card.",
|
|
13750
|
+
"operationId": "nomenclature_fields_api_v1_refs_nomenclature_fields_get",
|
|
13751
|
+
"parameters": [
|
|
13752
|
+
{
|
|
13753
|
+
"name": "authorization",
|
|
13754
|
+
"in": "header",
|
|
13755
|
+
"required": false,
|
|
13756
|
+
"schema": {
|
|
13757
|
+
"anyOf": [
|
|
13758
|
+
{
|
|
13759
|
+
"type": "string"
|
|
13760
|
+
},
|
|
13761
|
+
{
|
|
13762
|
+
"type": "null"
|
|
13763
|
+
}
|
|
13764
|
+
],
|
|
13765
|
+
"title": "Authorization"
|
|
13766
|
+
}
|
|
13767
|
+
},
|
|
13768
|
+
{
|
|
13769
|
+
"name": "x-debug-person-id",
|
|
13770
|
+
"in": "header",
|
|
13771
|
+
"required": false,
|
|
13772
|
+
"schema": {
|
|
13773
|
+
"anyOf": [
|
|
13774
|
+
{
|
|
13775
|
+
"type": "string",
|
|
13776
|
+
"format": "uuid"
|
|
13777
|
+
},
|
|
13778
|
+
{
|
|
13779
|
+
"type": "null"
|
|
13780
|
+
}
|
|
13781
|
+
],
|
|
13782
|
+
"title": "X-Debug-Person-Id"
|
|
13783
|
+
}
|
|
13784
|
+
},
|
|
13785
|
+
{
|
|
13786
|
+
"name": "depo_admin_session",
|
|
13787
|
+
"in": "cookie",
|
|
13788
|
+
"required": false,
|
|
13789
|
+
"schema": {
|
|
13790
|
+
"anyOf": [
|
|
13791
|
+
{
|
|
13792
|
+
"type": "string"
|
|
13793
|
+
},
|
|
13794
|
+
{
|
|
13795
|
+
"type": "null"
|
|
13796
|
+
}
|
|
13797
|
+
],
|
|
13798
|
+
"title": "Depo Admin Session"
|
|
13799
|
+
}
|
|
13800
|
+
}
|
|
13801
|
+
],
|
|
13802
|
+
"responses": {
|
|
13803
|
+
"200": {
|
|
13804
|
+
"description": "Successful Response",
|
|
13805
|
+
"content": {
|
|
13806
|
+
"application/json": {
|
|
13807
|
+
"schema": {
|
|
13808
|
+
"type": "array",
|
|
13809
|
+
"items": {
|
|
13810
|
+
"$ref": "#/components/schemas/NomenclatureFieldRef"
|
|
13811
|
+
},
|
|
13812
|
+
"title": "Response Nomenclature Fields Api V1 Refs Nomenclature Fields Get"
|
|
13813
|
+
}
|
|
13814
|
+
}
|
|
13815
|
+
}
|
|
13816
|
+
},
|
|
13817
|
+
"422": {
|
|
13818
|
+
"description": "Validation Error",
|
|
13819
|
+
"content": {
|
|
13820
|
+
"application/json": {
|
|
13821
|
+
"schema": {
|
|
13822
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
13823
|
+
}
|
|
13824
|
+
}
|
|
13825
|
+
}
|
|
13826
|
+
}
|
|
13827
|
+
}
|
|
13828
|
+
}
|
|
13829
|
+
},
|
|
13830
|
+
"/api/v1/refs/nomenclature-rules": {
|
|
13831
|
+
"get": {
|
|
13832
|
+
"tags": [
|
|
13833
|
+
"refs"
|
|
13834
|
+
],
|
|
13835
|
+
"summary": "Nomenclature Rules",
|
|
13836
|
+
"description": "The depot's recommendation rules, flat and cached by the kiosk.\n\nActive rows only: a rule the depot switched off must stop colouring the\nmeasurement step everywhere, and «everywhere» includes a terminal that has\nnot synced since. Same shape and same reason as nomenclature-fields — the\nterminal evaluates locally so an offline kiosk still explains its numbers,\nand the server freezes its own verdict into the event at submit time.",
|
|
13837
|
+
"operationId": "nomenclature_rules_api_v1_refs_nomenclature_rules_get",
|
|
13838
|
+
"parameters": [
|
|
13839
|
+
{
|
|
13840
|
+
"name": "authorization",
|
|
13841
|
+
"in": "header",
|
|
13842
|
+
"required": false,
|
|
13843
|
+
"schema": {
|
|
13844
|
+
"anyOf": [
|
|
13845
|
+
{
|
|
13846
|
+
"type": "string"
|
|
13847
|
+
},
|
|
13848
|
+
{
|
|
13849
|
+
"type": "null"
|
|
13850
|
+
}
|
|
13851
|
+
],
|
|
13852
|
+
"title": "Authorization"
|
|
13853
|
+
}
|
|
13854
|
+
},
|
|
13855
|
+
{
|
|
13856
|
+
"name": "x-debug-person-id",
|
|
13857
|
+
"in": "header",
|
|
13858
|
+
"required": false,
|
|
13859
|
+
"schema": {
|
|
13860
|
+
"anyOf": [
|
|
13861
|
+
{
|
|
13862
|
+
"type": "string",
|
|
13863
|
+
"format": "uuid"
|
|
13864
|
+
},
|
|
13865
|
+
{
|
|
13866
|
+
"type": "null"
|
|
13867
|
+
}
|
|
13868
|
+
],
|
|
13869
|
+
"title": "X-Debug-Person-Id"
|
|
13870
|
+
}
|
|
13871
|
+
},
|
|
13872
|
+
{
|
|
13873
|
+
"name": "depo_admin_session",
|
|
13874
|
+
"in": "cookie",
|
|
13875
|
+
"required": false,
|
|
13876
|
+
"schema": {
|
|
13877
|
+
"anyOf": [
|
|
13878
|
+
{
|
|
13879
|
+
"type": "string"
|
|
13880
|
+
},
|
|
13881
|
+
{
|
|
13882
|
+
"type": "null"
|
|
13883
|
+
}
|
|
13884
|
+
],
|
|
13885
|
+
"title": "Depo Admin Session"
|
|
13886
|
+
}
|
|
13887
|
+
}
|
|
13888
|
+
],
|
|
13889
|
+
"responses": {
|
|
13890
|
+
"200": {
|
|
13891
|
+
"description": "Successful Response",
|
|
13892
|
+
"content": {
|
|
13893
|
+
"application/json": {
|
|
13894
|
+
"schema": {
|
|
13895
|
+
"type": "array",
|
|
13896
|
+
"items": {
|
|
13897
|
+
"$ref": "#/components/schemas/NomenclatureRuleRef"
|
|
13898
|
+
},
|
|
13899
|
+
"title": "Response Nomenclature Rules Api V1 Refs Nomenclature Rules Get"
|
|
13900
|
+
}
|
|
13901
|
+
}
|
|
13902
|
+
}
|
|
13903
|
+
},
|
|
13904
|
+
"422": {
|
|
13905
|
+
"description": "Validation Error",
|
|
13906
|
+
"content": {
|
|
13907
|
+
"application/json": {
|
|
13908
|
+
"schema": {
|
|
13909
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
13910
|
+
}
|
|
13911
|
+
}
|
|
13912
|
+
}
|
|
13913
|
+
}
|
|
13914
|
+
}
|
|
13915
|
+
}
|
|
13916
|
+
},
|
|
13917
|
+
"/api/v1/refs/nomenclature-operations": {
|
|
13918
|
+
"get": {
|
|
13919
|
+
"tags": [
|
|
13920
|
+
"refs"
|
|
13921
|
+
],
|
|
13922
|
+
"summary": "Nomenclature Operations",
|
|
13923
|
+
"description": "«Typical services» per part type, name already resolved (the depot's\noverride, else the capability's dictionary name).",
|
|
13924
|
+
"operationId": "nomenclature_operations_api_v1_refs_nomenclature_operations_get",
|
|
13495
13925
|
"parameters": [
|
|
13496
13926
|
{
|
|
13497
13927
|
"name": "authorization",
|
|
@@ -14621,24 +15051,25 @@
|
|
|
14621
15051
|
}
|
|
14622
15052
|
}
|
|
14623
15053
|
},
|
|
14624
|
-
"/api/v1/reports/
|
|
15054
|
+
"/api/v1/reports/kpi-trend": {
|
|
14625
15055
|
"get": {
|
|
14626
15056
|
"tags": [
|
|
14627
15057
|
"reports"
|
|
14628
15058
|
],
|
|
14629
|
-
"summary": "
|
|
14630
|
-
"description": "
|
|
14631
|
-
"operationId": "
|
|
15059
|
+
"summary": "Kpi Trend",
|
|
15060
|
+
"description": "Daily series behind the dashboard tiles (what the tables can answer honestly).",
|
|
15061
|
+
"operationId": "kpi_trend_api_v1_reports_kpi_trend_get",
|
|
14632
15062
|
"parameters": [
|
|
14633
15063
|
{
|
|
14634
|
-
"name": "
|
|
15064
|
+
"name": "days",
|
|
14635
15065
|
"in": "query",
|
|
14636
15066
|
"required": false,
|
|
14637
15067
|
"schema": {
|
|
14638
15068
|
"type": "integer",
|
|
14639
|
-
"
|
|
14640
|
-
"
|
|
14641
|
-
"
|
|
15069
|
+
"maximum": 90,
|
|
15070
|
+
"minimum": 2,
|
|
15071
|
+
"default": 14,
|
|
15072
|
+
"title": "Days"
|
|
14642
15073
|
}
|
|
14643
15074
|
},
|
|
14644
15075
|
{
|
|
@@ -14681,7 +15112,7 @@
|
|
|
14681
15112
|
"content": {
|
|
14682
15113
|
"application/json": {
|
|
14683
15114
|
"schema": {
|
|
14684
|
-
"$ref": "#/components/schemas/
|
|
15115
|
+
"$ref": "#/components/schemas/KpiTrend"
|
|
14685
15116
|
}
|
|
14686
15117
|
}
|
|
14687
15118
|
}
|
|
@@ -14699,23 +15130,168 @@
|
|
|
14699
15130
|
}
|
|
14700
15131
|
}
|
|
14701
15132
|
},
|
|
14702
|
-
"/api/v1/reports/
|
|
15133
|
+
"/api/v1/reports/nav-counters": {
|
|
14703
15134
|
"get": {
|
|
14704
15135
|
"tags": [
|
|
14705
15136
|
"reports"
|
|
14706
15137
|
],
|
|
14707
|
-
"summary": "
|
|
14708
|
-
"
|
|
15138
|
+
"summary": "Nav Counters",
|
|
15139
|
+
"description": "Badge counts for the admin menu — three COUNTs, scoped to what the caller sees.",
|
|
15140
|
+
"operationId": "nav_counters_api_v1_reports_nav_counters_get",
|
|
14709
15141
|
"parameters": [
|
|
14710
15142
|
{
|
|
14711
|
-
"name": "
|
|
15143
|
+
"name": "x-debug-person-id",
|
|
15144
|
+
"in": "header",
|
|
15145
|
+
"required": false,
|
|
15146
|
+
"schema": {
|
|
15147
|
+
"anyOf": [
|
|
15148
|
+
{
|
|
15149
|
+
"type": "string",
|
|
15150
|
+
"format": "uuid"
|
|
15151
|
+
},
|
|
15152
|
+
{
|
|
15153
|
+
"type": "null"
|
|
15154
|
+
}
|
|
15155
|
+
],
|
|
15156
|
+
"title": "X-Debug-Person-Id"
|
|
15157
|
+
}
|
|
15158
|
+
},
|
|
15159
|
+
{
|
|
15160
|
+
"name": "depo_admin_session",
|
|
15161
|
+
"in": "cookie",
|
|
15162
|
+
"required": false,
|
|
15163
|
+
"schema": {
|
|
15164
|
+
"anyOf": [
|
|
15165
|
+
{
|
|
15166
|
+
"type": "string"
|
|
15167
|
+
},
|
|
15168
|
+
{
|
|
15169
|
+
"type": "null"
|
|
15170
|
+
}
|
|
15171
|
+
],
|
|
15172
|
+
"title": "Depo Admin Session"
|
|
15173
|
+
}
|
|
15174
|
+
}
|
|
15175
|
+
],
|
|
15176
|
+
"responses": {
|
|
15177
|
+
"200": {
|
|
15178
|
+
"description": "Successful Response",
|
|
15179
|
+
"content": {
|
|
15180
|
+
"application/json": {
|
|
15181
|
+
"schema": {
|
|
15182
|
+
"$ref": "#/components/schemas/NavCounters"
|
|
15183
|
+
}
|
|
15184
|
+
}
|
|
15185
|
+
}
|
|
15186
|
+
},
|
|
15187
|
+
"422": {
|
|
15188
|
+
"description": "Validation Error",
|
|
15189
|
+
"content": {
|
|
15190
|
+
"application/json": {
|
|
15191
|
+
"schema": {
|
|
15192
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
15193
|
+
}
|
|
15194
|
+
}
|
|
15195
|
+
}
|
|
15196
|
+
}
|
|
15197
|
+
}
|
|
15198
|
+
}
|
|
15199
|
+
},
|
|
15200
|
+
"/api/v1/reports/open-orders": {
|
|
15201
|
+
"get": {
|
|
15202
|
+
"tags": [
|
|
15203
|
+
"reports"
|
|
15204
|
+
],
|
|
15205
|
+
"summary": "Open Orders",
|
|
15206
|
+
"description": "«Незакрытые наряды» (`rows`, `total`) + «ожидают возврата» (DONE).",
|
|
15207
|
+
"operationId": "open_orders_api_v1_reports_open_orders_get",
|
|
15208
|
+
"parameters": [
|
|
15209
|
+
{
|
|
15210
|
+
"name": "stuck_days",
|
|
14712
15211
|
"in": "query",
|
|
14713
15212
|
"required": false,
|
|
14714
15213
|
"schema": {
|
|
14715
15214
|
"type": "integer",
|
|
14716
15215
|
"minimum": 0,
|
|
14717
|
-
"default":
|
|
14718
|
-
"title": "
|
|
15216
|
+
"default": 7,
|
|
15217
|
+
"title": "Stuck Days"
|
|
15218
|
+
}
|
|
15219
|
+
},
|
|
15220
|
+
{
|
|
15221
|
+
"name": "x-debug-person-id",
|
|
15222
|
+
"in": "header",
|
|
15223
|
+
"required": false,
|
|
15224
|
+
"schema": {
|
|
15225
|
+
"anyOf": [
|
|
15226
|
+
{
|
|
15227
|
+
"type": "string",
|
|
15228
|
+
"format": "uuid"
|
|
15229
|
+
},
|
|
15230
|
+
{
|
|
15231
|
+
"type": "null"
|
|
15232
|
+
}
|
|
15233
|
+
],
|
|
15234
|
+
"title": "X-Debug-Person-Id"
|
|
15235
|
+
}
|
|
15236
|
+
},
|
|
15237
|
+
{
|
|
15238
|
+
"name": "depo_admin_session",
|
|
15239
|
+
"in": "cookie",
|
|
15240
|
+
"required": false,
|
|
15241
|
+
"schema": {
|
|
15242
|
+
"anyOf": [
|
|
15243
|
+
{
|
|
15244
|
+
"type": "string"
|
|
15245
|
+
},
|
|
15246
|
+
{
|
|
15247
|
+
"type": "null"
|
|
15248
|
+
}
|
|
15249
|
+
],
|
|
15250
|
+
"title": "Depo Admin Session"
|
|
15251
|
+
}
|
|
15252
|
+
}
|
|
15253
|
+
],
|
|
15254
|
+
"responses": {
|
|
15255
|
+
"200": {
|
|
15256
|
+
"description": "Successful Response",
|
|
15257
|
+
"content": {
|
|
15258
|
+
"application/json": {
|
|
15259
|
+
"schema": {
|
|
15260
|
+
"$ref": "#/components/schemas/OpenOrdersReport"
|
|
15261
|
+
}
|
|
15262
|
+
}
|
|
15263
|
+
}
|
|
15264
|
+
},
|
|
15265
|
+
"422": {
|
|
15266
|
+
"description": "Validation Error",
|
|
15267
|
+
"content": {
|
|
15268
|
+
"application/json": {
|
|
15269
|
+
"schema": {
|
|
15270
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
15271
|
+
}
|
|
15272
|
+
}
|
|
15273
|
+
}
|
|
15274
|
+
}
|
|
15275
|
+
}
|
|
15276
|
+
}
|
|
15277
|
+
},
|
|
15278
|
+
"/api/v1/reports/on-hand": {
|
|
15279
|
+
"get": {
|
|
15280
|
+
"tags": [
|
|
15281
|
+
"reports"
|
|
15282
|
+
],
|
|
15283
|
+
"summary": "On Hand",
|
|
15284
|
+
"operationId": "on_hand_api_v1_reports_on_hand_get",
|
|
15285
|
+
"parameters": [
|
|
15286
|
+
{
|
|
15287
|
+
"name": "hold_hours",
|
|
15288
|
+
"in": "query",
|
|
15289
|
+
"required": false,
|
|
15290
|
+
"schema": {
|
|
15291
|
+
"type": "integer",
|
|
15292
|
+
"minimum": 0,
|
|
15293
|
+
"default": 24,
|
|
15294
|
+
"title": "Hold Hours"
|
|
14719
15295
|
}
|
|
14720
15296
|
},
|
|
14721
15297
|
{
|
|
@@ -19227,14 +19803,91 @@
|
|
|
19227
19803
|
}
|
|
19228
19804
|
}
|
|
19229
19805
|
},
|
|
19230
|
-
"/api/v1/work-orders/
|
|
19806
|
+
"/api/v1/work-orders/measuring": {
|
|
19231
19807
|
"post": {
|
|
19232
19808
|
"tags": [
|
|
19233
19809
|
"work-orders"
|
|
19234
19810
|
],
|
|
19235
|
-
"summary": "
|
|
19236
|
-
"description": "
|
|
19237
|
-
"operationId": "
|
|
19811
|
+
"summary": "Open Measuring Order",
|
|
19812
|
+
"description": "The measuring order of one visit — opened on the first ask, returned on\nevery later one (invariant 3: a replayed offline tap opens nothing new).",
|
|
19813
|
+
"operationId": "open_measuring_order_api_v1_work_orders_measuring_post",
|
|
19814
|
+
"parameters": [
|
|
19815
|
+
{
|
|
19816
|
+
"name": "authorization",
|
|
19817
|
+
"in": "header",
|
|
19818
|
+
"required": false,
|
|
19819
|
+
"schema": {
|
|
19820
|
+
"anyOf": [
|
|
19821
|
+
{
|
|
19822
|
+
"type": "string"
|
|
19823
|
+
},
|
|
19824
|
+
{
|
|
19825
|
+
"type": "null"
|
|
19826
|
+
}
|
|
19827
|
+
],
|
|
19828
|
+
"title": "Authorization"
|
|
19829
|
+
}
|
|
19830
|
+
},
|
|
19831
|
+
{
|
|
19832
|
+
"name": "x-debug-person-id",
|
|
19833
|
+
"in": "header",
|
|
19834
|
+
"required": false,
|
|
19835
|
+
"schema": {
|
|
19836
|
+
"anyOf": [
|
|
19837
|
+
{
|
|
19838
|
+
"type": "string",
|
|
19839
|
+
"format": "uuid"
|
|
19840
|
+
},
|
|
19841
|
+
{
|
|
19842
|
+
"type": "null"
|
|
19843
|
+
}
|
|
19844
|
+
],
|
|
19845
|
+
"title": "X-Debug-Person-Id"
|
|
19846
|
+
}
|
|
19847
|
+
}
|
|
19848
|
+
],
|
|
19849
|
+
"requestBody": {
|
|
19850
|
+
"required": true,
|
|
19851
|
+
"content": {
|
|
19852
|
+
"application/json": {
|
|
19853
|
+
"schema": {
|
|
19854
|
+
"$ref": "#/components/schemas/MeasuringOrderIn"
|
|
19855
|
+
}
|
|
19856
|
+
}
|
|
19857
|
+
}
|
|
19858
|
+
},
|
|
19859
|
+
"responses": {
|
|
19860
|
+
"200": {
|
|
19861
|
+
"description": "Successful Response",
|
|
19862
|
+
"content": {
|
|
19863
|
+
"application/json": {
|
|
19864
|
+
"schema": {
|
|
19865
|
+
"$ref": "#/components/schemas/WorkOrderDetail"
|
|
19866
|
+
}
|
|
19867
|
+
}
|
|
19868
|
+
}
|
|
19869
|
+
},
|
|
19870
|
+
"422": {
|
|
19871
|
+
"description": "Validation Error",
|
|
19872
|
+
"content": {
|
|
19873
|
+
"application/json": {
|
|
19874
|
+
"schema": {
|
|
19875
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
19876
|
+
}
|
|
19877
|
+
}
|
|
19878
|
+
}
|
|
19879
|
+
}
|
|
19880
|
+
}
|
|
19881
|
+
}
|
|
19882
|
+
},
|
|
19883
|
+
"/api/v1/work-orders/measuring/{wo_id}/items": {
|
|
19884
|
+
"get": {
|
|
19885
|
+
"tags": [
|
|
19886
|
+
"work-orders"
|
|
19887
|
+
],
|
|
19888
|
+
"summary": "Measuring Items",
|
|
19889
|
+
"description": "What stands on this machine and can be measured, with its numbers, the\nhints those numbers fire and the verdict already signed on it.",
|
|
19890
|
+
"operationId": "measuring_items_api_v1_work_orders_measuring__wo_id__items_get",
|
|
19238
19891
|
"parameters": [
|
|
19239
19892
|
{
|
|
19240
19893
|
"name": "wo_id",
|
|
@@ -19280,23 +19933,17 @@
|
|
|
19280
19933
|
}
|
|
19281
19934
|
}
|
|
19282
19935
|
],
|
|
19283
|
-
"requestBody": {
|
|
19284
|
-
"required": true,
|
|
19285
|
-
"content": {
|
|
19286
|
-
"application/json": {
|
|
19287
|
-
"schema": {
|
|
19288
|
-
"$ref": "#/components/schemas/AcceptIn"
|
|
19289
|
-
}
|
|
19290
|
-
}
|
|
19291
|
-
}
|
|
19292
|
-
},
|
|
19293
19936
|
"responses": {
|
|
19294
19937
|
"200": {
|
|
19295
19938
|
"description": "Successful Response",
|
|
19296
19939
|
"content": {
|
|
19297
19940
|
"application/json": {
|
|
19298
19941
|
"schema": {
|
|
19299
|
-
"
|
|
19942
|
+
"type": "array",
|
|
19943
|
+
"items": {
|
|
19944
|
+
"$ref": "#/components/schemas/MeasuredItemOut"
|
|
19945
|
+
},
|
|
19946
|
+
"title": "Response Measuring Items Api V1 Work Orders Measuring Wo Id Items Get"
|
|
19300
19947
|
}
|
|
19301
19948
|
}
|
|
19302
19949
|
}
|
|
@@ -19314,14 +19961,14 @@
|
|
|
19314
19961
|
}
|
|
19315
19962
|
}
|
|
19316
19963
|
},
|
|
19317
|
-
"/api/v1/work-orders/{wo_id}/
|
|
19964
|
+
"/api/v1/work-orders/measuring/{wo_id}/verdict": {
|
|
19318
19965
|
"post": {
|
|
19319
19966
|
"tags": [
|
|
19320
19967
|
"work-orders"
|
|
19321
19968
|
],
|
|
19322
|
-
"summary": "
|
|
19323
|
-
"description": "
|
|
19324
|
-
"operationId": "
|
|
19969
|
+
"summary": "Measuring Verdict",
|
|
19970
|
+
"description": "«Ремонтируем» / «Не трогаем» on one measured part, under the master's PIN.",
|
|
19971
|
+
"operationId": "measuring_verdict_api_v1_work_orders_measuring__wo_id__verdict_post",
|
|
19325
19972
|
"parameters": [
|
|
19326
19973
|
{
|
|
19327
19974
|
"name": "wo_id",
|
|
@@ -19372,7 +20019,7 @@
|
|
|
19372
20019
|
"content": {
|
|
19373
20020
|
"application/json": {
|
|
19374
20021
|
"schema": {
|
|
19375
|
-
"$ref": "#/components/schemas/
|
|
20022
|
+
"$ref": "#/components/schemas/VerdictIn"
|
|
19376
20023
|
}
|
|
19377
20024
|
}
|
|
19378
20025
|
}
|
|
@@ -19383,7 +20030,7 @@
|
|
|
19383
20030
|
"content": {
|
|
19384
20031
|
"application/json": {
|
|
19385
20032
|
"schema": {
|
|
19386
|
-
"$ref": "#/components/schemas/
|
|
20033
|
+
"$ref": "#/components/schemas/VerdictOut"
|
|
19387
20034
|
}
|
|
19388
20035
|
}
|
|
19389
20036
|
}
|
|
@@ -19401,14 +20048,14 @@
|
|
|
19401
20048
|
}
|
|
19402
20049
|
}
|
|
19403
20050
|
},
|
|
19404
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20051
|
+
"/api/v1/work-orders/measuring/{wo_id}/verdicts": {
|
|
19405
20052
|
"post": {
|
|
19406
20053
|
"tags": [
|
|
19407
20054
|
"work-orders"
|
|
19408
20055
|
],
|
|
19409
|
-
"summary": "
|
|
19410
|
-
"description": "
|
|
19411
|
-
"operationId": "
|
|
20056
|
+
"summary": "Inspection Sign",
|
|
20057
|
+
"description": "The inspection pass: several parts decided at once, signed once.\n\nThe single-part `/verdict` above stays what the master's own screen uses.\nThis one is the shop-floor walk — the man reads a handful of units, says\n«good» or «this one», names himself by tab_no and PIN, and signs the lot.\nOne signature whose payload_hash covers every line (invariant 6), one\nINSPECT event per part under a derived uuid, so a replayed tap of the whole\npass writes nothing twice (invariant 3).",
|
|
20058
|
+
"operationId": "inspection_sign_api_v1_work_orders_measuring__wo_id__verdicts_post",
|
|
19412
20059
|
"parameters": [
|
|
19413
20060
|
{
|
|
19414
20061
|
"name": "wo_id",
|
|
@@ -19459,18 +20106,18 @@
|
|
|
19459
20106
|
"content": {
|
|
19460
20107
|
"application/json": {
|
|
19461
20108
|
"schema": {
|
|
19462
|
-
"$ref": "#/components/schemas/
|
|
20109
|
+
"$ref": "#/components/schemas/InspectionSignIn"
|
|
19463
20110
|
}
|
|
19464
20111
|
}
|
|
19465
20112
|
}
|
|
19466
20113
|
},
|
|
19467
20114
|
"responses": {
|
|
19468
|
-
"
|
|
20115
|
+
"200": {
|
|
19469
20116
|
"description": "Successful Response",
|
|
19470
20117
|
"content": {
|
|
19471
20118
|
"application/json": {
|
|
19472
20119
|
"schema": {
|
|
19473
|
-
"$ref": "#/components/schemas/
|
|
20120
|
+
"$ref": "#/components/schemas/InspectionSignOut"
|
|
19474
20121
|
}
|
|
19475
20122
|
}
|
|
19476
20123
|
}
|
|
@@ -19488,14 +20135,14 @@
|
|
|
19488
20135
|
}
|
|
19489
20136
|
}
|
|
19490
20137
|
},
|
|
19491
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20138
|
+
"/api/v1/work-orders/{wo_id}/accept": {
|
|
19492
20139
|
"post": {
|
|
19493
20140
|
"tags": [
|
|
19494
20141
|
"work-orders"
|
|
19495
20142
|
],
|
|
19496
|
-
"summary": "
|
|
19497
|
-
"description": "
|
|
19498
|
-
"operationId": "
|
|
20143
|
+
"summary": "Accept Order",
|
|
20144
|
+
"description": "OPEN -> ACCEPTED: WORK_ORDER handover opener->accepter, both sign (TZ 5.4).",
|
|
20145
|
+
"operationId": "accept_order_api_v1_work_orders__wo_id__accept_post",
|
|
19499
20146
|
"parameters": [
|
|
19500
20147
|
{
|
|
19501
20148
|
"name": "wo_id",
|
|
@@ -19507,16 +20154,6 @@
|
|
|
19507
20154
|
"title": "Wo Id"
|
|
19508
20155
|
}
|
|
19509
20156
|
},
|
|
19510
|
-
{
|
|
19511
|
-
"name": "task_id",
|
|
19512
|
-
"in": "path",
|
|
19513
|
-
"required": true,
|
|
19514
|
-
"schema": {
|
|
19515
|
-
"type": "string",
|
|
19516
|
-
"format": "uuid",
|
|
19517
|
-
"title": "Task Id"
|
|
19518
|
-
}
|
|
19519
|
-
},
|
|
19520
20157
|
{
|
|
19521
20158
|
"name": "authorization",
|
|
19522
20159
|
"in": "header",
|
|
@@ -19556,18 +20193,18 @@
|
|
|
19556
20193
|
"content": {
|
|
19557
20194
|
"application/json": {
|
|
19558
20195
|
"schema": {
|
|
19559
|
-
"$ref": "#/components/schemas/
|
|
20196
|
+
"$ref": "#/components/schemas/AcceptIn"
|
|
19560
20197
|
}
|
|
19561
20198
|
}
|
|
19562
20199
|
}
|
|
19563
20200
|
},
|
|
19564
20201
|
"responses": {
|
|
19565
|
-
"
|
|
20202
|
+
"200": {
|
|
19566
20203
|
"description": "Successful Response",
|
|
19567
20204
|
"content": {
|
|
19568
20205
|
"application/json": {
|
|
19569
20206
|
"schema": {
|
|
19570
|
-
"$ref": "#/components/schemas/
|
|
20207
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
19571
20208
|
}
|
|
19572
20209
|
}
|
|
19573
20210
|
}
|
|
@@ -19585,14 +20222,14 @@
|
|
|
19585
20222
|
}
|
|
19586
20223
|
}
|
|
19587
20224
|
},
|
|
19588
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20225
|
+
"/api/v1/work-orders/{wo_id}/take-over": {
|
|
19589
20226
|
"post": {
|
|
19590
20227
|
"tags": [
|
|
19591
20228
|
"work-orders"
|
|
19592
20229
|
],
|
|
19593
|
-
"summary": "
|
|
19594
|
-
"
|
|
19595
|
-
"
|
|
20230
|
+
"summary": "Take Over Order",
|
|
20231
|
+
"description": "«Qabul qilish» on an order left open by a previous shift (TZ 3.7).\n\nThis IS the shift handover, and it is the only one the depot performs by\ndefault. The outgoing master signs nothing at the end of his hours — his\nshift closes on the clock (services/background) — so responsibility moves\nwhen, and only when, the next master picks the work up: accepted_by moves\nto him, and a Handover row of kind SHIFT_CARRYOVER records the pair with\nboth signatures, exactly like the accept of a fresh order.\n\nThe order's status is untouched: an IN_PROGRESS repair does not restart\nbecause a new master answers for it.",
|
|
20232
|
+
"operationId": "take_over_order_api_v1_work_orders__wo_id__take_over_post",
|
|
19596
20233
|
"parameters": [
|
|
19597
20234
|
{
|
|
19598
20235
|
"name": "wo_id",
|
|
@@ -19604,16 +20241,6 @@
|
|
|
19604
20241
|
"title": "Wo Id"
|
|
19605
20242
|
}
|
|
19606
20243
|
},
|
|
19607
|
-
{
|
|
19608
|
-
"name": "task_id",
|
|
19609
|
-
"in": "path",
|
|
19610
|
-
"required": true,
|
|
19611
|
-
"schema": {
|
|
19612
|
-
"type": "string",
|
|
19613
|
-
"format": "uuid",
|
|
19614
|
-
"title": "Task Id"
|
|
19615
|
-
}
|
|
19616
|
-
},
|
|
19617
20244
|
{
|
|
19618
20245
|
"name": "authorization",
|
|
19619
20246
|
"in": "header",
|
|
@@ -19653,7 +20280,7 @@
|
|
|
19653
20280
|
"content": {
|
|
19654
20281
|
"application/json": {
|
|
19655
20282
|
"schema": {
|
|
19656
|
-
"$ref": "#/components/schemas/
|
|
20283
|
+
"$ref": "#/components/schemas/TakeOverIn"
|
|
19657
20284
|
}
|
|
19658
20285
|
}
|
|
19659
20286
|
}
|
|
@@ -19664,7 +20291,7 @@
|
|
|
19664
20291
|
"content": {
|
|
19665
20292
|
"application/json": {
|
|
19666
20293
|
"schema": {
|
|
19667
|
-
"$ref": "#/components/schemas/
|
|
20294
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
19668
20295
|
}
|
|
19669
20296
|
}
|
|
19670
20297
|
}
|
|
@@ -19682,14 +20309,14 @@
|
|
|
19682
20309
|
}
|
|
19683
20310
|
}
|
|
19684
20311
|
},
|
|
19685
|
-
"/api/v1/work-orders/{wo_id}/tasks
|
|
20312
|
+
"/api/v1/work-orders/{wo_id}/tasks": {
|
|
19686
20313
|
"post": {
|
|
19687
20314
|
"tags": [
|
|
19688
20315
|
"work-orders"
|
|
19689
20316
|
],
|
|
19690
|
-
"summary": "
|
|
19691
|
-
"
|
|
19692
|
-
"
|
|
20317
|
+
"summary": "Split Order",
|
|
20318
|
+
"description": "Create the operations + dependencies (TZ 5.5). Once per order (MVP).",
|
|
20319
|
+
"operationId": "split_order_api_v1_work_orders__wo_id__tasks_post",
|
|
19693
20320
|
"parameters": [
|
|
19694
20321
|
{
|
|
19695
20322
|
"name": "wo_id",
|
|
@@ -19701,16 +20328,6 @@
|
|
|
19701
20328
|
"title": "Wo Id"
|
|
19702
20329
|
}
|
|
19703
20330
|
},
|
|
19704
|
-
{
|
|
19705
|
-
"name": "task_id",
|
|
19706
|
-
"in": "path",
|
|
19707
|
-
"required": true,
|
|
19708
|
-
"schema": {
|
|
19709
|
-
"type": "string",
|
|
19710
|
-
"format": "uuid",
|
|
19711
|
-
"title": "Task Id"
|
|
19712
|
-
}
|
|
19713
|
-
},
|
|
19714
20331
|
{
|
|
19715
20332
|
"name": "authorization",
|
|
19716
20333
|
"in": "header",
|
|
@@ -19750,18 +20367,18 @@
|
|
|
19750
20367
|
"content": {
|
|
19751
20368
|
"application/json": {
|
|
19752
20369
|
"schema": {
|
|
19753
|
-
"$ref": "#/components/schemas/
|
|
20370
|
+
"$ref": "#/components/schemas/SplitIn"
|
|
19754
20371
|
}
|
|
19755
20372
|
}
|
|
19756
20373
|
}
|
|
19757
20374
|
},
|
|
19758
20375
|
"responses": {
|
|
19759
|
-
"
|
|
20376
|
+
"201": {
|
|
19760
20377
|
"description": "Successful Response",
|
|
19761
20378
|
"content": {
|
|
19762
20379
|
"application/json": {
|
|
19763
20380
|
"schema": {
|
|
19764
|
-
"$ref": "#/components/schemas/
|
|
20381
|
+
"$ref": "#/components/schemas/WorkOrderDetail"
|
|
19765
20382
|
}
|
|
19766
20383
|
}
|
|
19767
20384
|
}
|
|
@@ -19779,14 +20396,14 @@
|
|
|
19779
20396
|
}
|
|
19780
20397
|
}
|
|
19781
20398
|
},
|
|
19782
|
-
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/
|
|
20399
|
+
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/assign": {
|
|
19783
20400
|
"post": {
|
|
19784
20401
|
"tags": [
|
|
19785
20402
|
"work-orders"
|
|
19786
20403
|
],
|
|
19787
|
-
"summary": "
|
|
19788
|
-
"
|
|
19789
|
-
"
|
|
20404
|
+
"summary": "Assign Task",
|
|
20405
|
+
"description": "Assign fitters to an operation of the shift (TZ 5.6).",
|
|
20406
|
+
"operationId": "assign_task_api_v1_work_orders__wo_id__tasks__task_id__assign_post",
|
|
19790
20407
|
"parameters": [
|
|
19791
20408
|
{
|
|
19792
20409
|
"name": "wo_id",
|
|
@@ -19847,13 +20464,13 @@
|
|
|
19847
20464
|
"content": {
|
|
19848
20465
|
"application/json": {
|
|
19849
20466
|
"schema": {
|
|
19850
|
-
"$ref": "#/components/schemas/
|
|
20467
|
+
"$ref": "#/components/schemas/AssignIn"
|
|
19851
20468
|
}
|
|
19852
20469
|
}
|
|
19853
20470
|
}
|
|
19854
20471
|
},
|
|
19855
20472
|
"responses": {
|
|
19856
|
-
"
|
|
20473
|
+
"201": {
|
|
19857
20474
|
"description": "Successful Response",
|
|
19858
20475
|
"content": {
|
|
19859
20476
|
"application/json": {
|
|
@@ -19876,13 +20493,13 @@
|
|
|
19876
20493
|
}
|
|
19877
20494
|
}
|
|
19878
20495
|
},
|
|
19879
|
-
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/
|
|
20496
|
+
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/start": {
|
|
19880
20497
|
"post": {
|
|
19881
20498
|
"tags": [
|
|
19882
20499
|
"work-orders"
|
|
19883
20500
|
],
|
|
19884
|
-
"summary": "
|
|
19885
|
-
"operationId": "
|
|
20501
|
+
"summary": "Start Task",
|
|
20502
|
+
"operationId": "start_task_api_v1_work_orders__wo_id__tasks__task_id__start_post",
|
|
19886
20503
|
"deprecated": true,
|
|
19887
20504
|
"parameters": [
|
|
19888
20505
|
{
|
|
@@ -19973,14 +20590,14 @@
|
|
|
19973
20590
|
}
|
|
19974
20591
|
}
|
|
19975
20592
|
},
|
|
19976
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20593
|
+
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/pause": {
|
|
19977
20594
|
"post": {
|
|
19978
20595
|
"tags": [
|
|
19979
20596
|
"work-orders"
|
|
19980
20597
|
],
|
|
19981
|
-
"summary": "
|
|
19982
|
-
"
|
|
19983
|
-
"
|
|
20598
|
+
"summary": "Pause Task",
|
|
20599
|
+
"operationId": "pause_task_api_v1_work_orders__wo_id__tasks__task_id__pause_post",
|
|
20600
|
+
"deprecated": true,
|
|
19984
20601
|
"parameters": [
|
|
19985
20602
|
{
|
|
19986
20603
|
"name": "wo_id",
|
|
@@ -19993,90 +20610,13 @@
|
|
|
19993
20610
|
}
|
|
19994
20611
|
},
|
|
19995
20612
|
{
|
|
19996
|
-
"name": "
|
|
19997
|
-
"in": "header",
|
|
19998
|
-
"required": false,
|
|
19999
|
-
"schema": {
|
|
20000
|
-
"anyOf": [
|
|
20001
|
-
{
|
|
20002
|
-
"type": "string"
|
|
20003
|
-
},
|
|
20004
|
-
{
|
|
20005
|
-
"type": "null"
|
|
20006
|
-
}
|
|
20007
|
-
],
|
|
20008
|
-
"title": "Authorization"
|
|
20009
|
-
}
|
|
20010
|
-
},
|
|
20011
|
-
{
|
|
20012
|
-
"name": "x-debug-person-id",
|
|
20013
|
-
"in": "header",
|
|
20014
|
-
"required": false,
|
|
20015
|
-
"schema": {
|
|
20016
|
-
"anyOf": [
|
|
20017
|
-
{
|
|
20018
|
-
"type": "string",
|
|
20019
|
-
"format": "uuid"
|
|
20020
|
-
},
|
|
20021
|
-
{
|
|
20022
|
-
"type": "null"
|
|
20023
|
-
}
|
|
20024
|
-
],
|
|
20025
|
-
"title": "X-Debug-Person-Id"
|
|
20026
|
-
}
|
|
20027
|
-
}
|
|
20028
|
-
],
|
|
20029
|
-
"requestBody": {
|
|
20030
|
-
"required": true,
|
|
20031
|
-
"content": {
|
|
20032
|
-
"application/json": {
|
|
20033
|
-
"schema": {
|
|
20034
|
-
"$ref": "#/components/schemas/WorkSignIn"
|
|
20035
|
-
}
|
|
20036
|
-
}
|
|
20037
|
-
}
|
|
20038
|
-
},
|
|
20039
|
-
"responses": {
|
|
20040
|
-
"200": {
|
|
20041
|
-
"description": "Successful Response",
|
|
20042
|
-
"content": {
|
|
20043
|
-
"application/json": {
|
|
20044
|
-
"schema": {
|
|
20045
|
-
"$ref": "#/components/schemas/WorkSignOut"
|
|
20046
|
-
}
|
|
20047
|
-
}
|
|
20048
|
-
}
|
|
20049
|
-
},
|
|
20050
|
-
"422": {
|
|
20051
|
-
"description": "Validation Error",
|
|
20052
|
-
"content": {
|
|
20053
|
-
"application/json": {
|
|
20054
|
-
"schema": {
|
|
20055
|
-
"$ref": "#/components/schemas/HTTPValidationError"
|
|
20056
|
-
}
|
|
20057
|
-
}
|
|
20058
|
-
}
|
|
20059
|
-
}
|
|
20060
|
-
}
|
|
20061
|
-
}
|
|
20062
|
-
},
|
|
20063
|
-
"/api/v1/work-orders/{wo_id}/work-return-sign": {
|
|
20064
|
-
"post": {
|
|
20065
|
-
"tags": [
|
|
20066
|
-
"work-orders"
|
|
20067
|
-
],
|
|
20068
|
-
"summary": "Work Return Sign",
|
|
20069
|
-
"description": "Fitter signs handing the order's work back.",
|
|
20070
|
-
"operationId": "work_return_sign_api_v1_work_orders__wo_id__work_return_sign_post",
|
|
20071
|
-
"parameters": [
|
|
20072
|
-
{
|
|
20073
|
-
"name": "wo_id",
|
|
20613
|
+
"name": "task_id",
|
|
20074
20614
|
"in": "path",
|
|
20075
20615
|
"required": true,
|
|
20076
20616
|
"schema": {
|
|
20077
20617
|
"type": "string",
|
|
20078
20618
|
"format": "uuid",
|
|
20079
|
-
"title": "
|
|
20619
|
+
"title": "Task Id"
|
|
20080
20620
|
}
|
|
20081
20621
|
},
|
|
20082
20622
|
{
|
|
@@ -20118,7 +20658,7 @@
|
|
|
20118
20658
|
"content": {
|
|
20119
20659
|
"application/json": {
|
|
20120
20660
|
"schema": {
|
|
20121
|
-
"$ref": "#/components/schemas/
|
|
20661
|
+
"$ref": "#/components/schemas/TaskActionIn"
|
|
20122
20662
|
}
|
|
20123
20663
|
}
|
|
20124
20664
|
}
|
|
@@ -20129,7 +20669,7 @@
|
|
|
20129
20669
|
"content": {
|
|
20130
20670
|
"application/json": {
|
|
20131
20671
|
"schema": {
|
|
20132
|
-
"$ref": "#/components/schemas/
|
|
20672
|
+
"$ref": "#/components/schemas/TaskOut"
|
|
20133
20673
|
}
|
|
20134
20674
|
}
|
|
20135
20675
|
}
|
|
@@ -20147,14 +20687,14 @@
|
|
|
20147
20687
|
}
|
|
20148
20688
|
}
|
|
20149
20689
|
},
|
|
20150
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20690
|
+
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/resume": {
|
|
20151
20691
|
"post": {
|
|
20152
20692
|
"tags": [
|
|
20153
20693
|
"work-orders"
|
|
20154
20694
|
],
|
|
20155
|
-
"summary": "
|
|
20156
|
-
"
|
|
20157
|
-
"
|
|
20695
|
+
"summary": "Resume Task",
|
|
20696
|
+
"operationId": "resume_task_api_v1_work_orders__wo_id__tasks__task_id__resume_post",
|
|
20697
|
+
"deprecated": true,
|
|
20158
20698
|
"parameters": [
|
|
20159
20699
|
{
|
|
20160
20700
|
"name": "wo_id",
|
|
@@ -20166,6 +20706,16 @@
|
|
|
20166
20706
|
"title": "Wo Id"
|
|
20167
20707
|
}
|
|
20168
20708
|
},
|
|
20709
|
+
{
|
|
20710
|
+
"name": "task_id",
|
|
20711
|
+
"in": "path",
|
|
20712
|
+
"required": true,
|
|
20713
|
+
"schema": {
|
|
20714
|
+
"type": "string",
|
|
20715
|
+
"format": "uuid",
|
|
20716
|
+
"title": "Task Id"
|
|
20717
|
+
}
|
|
20718
|
+
},
|
|
20169
20719
|
{
|
|
20170
20720
|
"name": "authorization",
|
|
20171
20721
|
"in": "header",
|
|
@@ -20216,7 +20766,7 @@
|
|
|
20216
20766
|
"content": {
|
|
20217
20767
|
"application/json": {
|
|
20218
20768
|
"schema": {
|
|
20219
|
-
"$ref": "#/components/schemas/
|
|
20769
|
+
"$ref": "#/components/schemas/TaskOut"
|
|
20220
20770
|
}
|
|
20221
20771
|
}
|
|
20222
20772
|
}
|
|
@@ -20234,14 +20784,14 @@
|
|
|
20234
20784
|
}
|
|
20235
20785
|
}
|
|
20236
20786
|
},
|
|
20237
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20787
|
+
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/finish": {
|
|
20238
20788
|
"post": {
|
|
20239
20789
|
"tags": [
|
|
20240
20790
|
"work-orders"
|
|
20241
20791
|
],
|
|
20242
|
-
"summary": "
|
|
20243
|
-
"
|
|
20244
|
-
"
|
|
20792
|
+
"summary": "Finish Task",
|
|
20793
|
+
"operationId": "finish_task_api_v1_work_orders__wo_id__tasks__task_id__finish_post",
|
|
20794
|
+
"deprecated": true,
|
|
20245
20795
|
"parameters": [
|
|
20246
20796
|
{
|
|
20247
20797
|
"name": "wo_id",
|
|
@@ -20254,90 +20804,13 @@
|
|
|
20254
20804
|
}
|
|
20255
20805
|
},
|
|
20256
20806
|
{
|
|
20257
|
-
"name": "
|
|
20258
|
-
"in": "header",
|
|
20259
|
-
"required": false,
|
|
20260
|
-
"schema": {
|
|
20261
|
-
"anyOf": [
|
|
20262
|
-
{
|
|
20263
|
-
"type": "string"
|
|
20264
|
-
},
|
|
20265
|
-
{
|
|
20266
|
-
"type": "null"
|
|
20267
|
-
}
|
|
20268
|
-
],
|
|
20269
|
-
"title": "Authorization"
|
|
20270
|
-
}
|
|
20271
|
-
},
|
|
20272
|
-
{
|
|
20273
|
-
"name": "x-debug-person-id",
|
|
20274
|
-
"in": "header",
|
|
20275
|
-
"required": false,
|
|
20276
|
-
"schema": {
|
|
20277
|
-
"anyOf": [
|
|
20278
|
-
{
|
|
20279
|
-
"type": "string",
|
|
20280
|
-
"format": "uuid"
|
|
20281
|
-
},
|
|
20282
|
-
{
|
|
20283
|
-
"type": "null"
|
|
20284
|
-
}
|
|
20285
|
-
],
|
|
20286
|
-
"title": "X-Debug-Person-Id"
|
|
20287
|
-
}
|
|
20288
|
-
}
|
|
20289
|
-
],
|
|
20290
|
-
"requestBody": {
|
|
20291
|
-
"required": true,
|
|
20292
|
-
"content": {
|
|
20293
|
-
"application/json": {
|
|
20294
|
-
"schema": {
|
|
20295
|
-
"$ref": "#/components/schemas/QcIn"
|
|
20296
|
-
}
|
|
20297
|
-
}
|
|
20298
|
-
}
|
|
20299
|
-
},
|
|
20300
|
-
"responses": {
|
|
20301
|
-
"200": {
|
|
20302
|
-
"description": "Successful Response",
|
|
20303
|
-
"content": {
|
|
20304
|
-
"application/json": {
|
|
20305
|
-
"schema": {
|
|
20306
|
-
"$ref": "#/components/schemas/WorkOrderOut"
|
|
20307
|
-
}
|
|
20308
|
-
}
|
|
20309
|
-
}
|
|
20310
|
-
},
|
|
20311
|
-
"422": {
|
|
20312
|
-
"description": "Validation Error",
|
|
20313
|
-
"content": {
|
|
20314
|
-
"application/json": {
|
|
20315
|
-
"schema": {
|
|
20316
|
-
"$ref": "#/components/schemas/HTTPValidationError"
|
|
20317
|
-
}
|
|
20318
|
-
}
|
|
20319
|
-
}
|
|
20320
|
-
}
|
|
20321
|
-
}
|
|
20322
|
-
}
|
|
20323
|
-
},
|
|
20324
|
-
"/api/v1/work-orders/{wo_id}/return": {
|
|
20325
|
-
"post": {
|
|
20326
|
-
"tags": [
|
|
20327
|
-
"work-orders"
|
|
20328
|
-
],
|
|
20329
|
-
"summary": "Return Order",
|
|
20330
|
-
"description": "DONE -> RETURNED: WORK_ORDER handover back to the opener, both sign (TZ 5.11).",
|
|
20331
|
-
"operationId": "return_order_api_v1_work_orders__wo_id__return_post",
|
|
20332
|
-
"parameters": [
|
|
20333
|
-
{
|
|
20334
|
-
"name": "wo_id",
|
|
20807
|
+
"name": "task_id",
|
|
20335
20808
|
"in": "path",
|
|
20336
20809
|
"required": true,
|
|
20337
20810
|
"schema": {
|
|
20338
20811
|
"type": "string",
|
|
20339
20812
|
"format": "uuid",
|
|
20340
|
-
"title": "
|
|
20813
|
+
"title": "Task Id"
|
|
20341
20814
|
}
|
|
20342
20815
|
},
|
|
20343
20816
|
{
|
|
@@ -20379,7 +20852,7 @@
|
|
|
20379
20852
|
"content": {
|
|
20380
20853
|
"application/json": {
|
|
20381
20854
|
"schema": {
|
|
20382
|
-
"$ref": "#/components/schemas/
|
|
20855
|
+
"$ref": "#/components/schemas/TaskActionIn"
|
|
20383
20856
|
}
|
|
20384
20857
|
}
|
|
20385
20858
|
}
|
|
@@ -20390,7 +20863,7 @@
|
|
|
20390
20863
|
"content": {
|
|
20391
20864
|
"application/json": {
|
|
20392
20865
|
"schema": {
|
|
20393
|
-
"$ref": "#/components/schemas/
|
|
20866
|
+
"$ref": "#/components/schemas/TaskOut"
|
|
20394
20867
|
}
|
|
20395
20868
|
}
|
|
20396
20869
|
}
|
|
@@ -20408,14 +20881,14 @@
|
|
|
20408
20881
|
}
|
|
20409
20882
|
}
|
|
20410
20883
|
},
|
|
20411
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20884
|
+
"/api/v1/work-orders/{wo_id}/tasks/{task_id}/cosign-op": {
|
|
20412
20885
|
"post": {
|
|
20413
20886
|
"tags": [
|
|
20414
20887
|
"work-orders"
|
|
20415
20888
|
],
|
|
20416
|
-
"summary": "
|
|
20417
|
-
"description": "
|
|
20418
|
-
"operationId": "
|
|
20889
|
+
"summary": "Cosign Task Op",
|
|
20890
|
+
"description": "Start/pause/resume/finish one operation, verified by the fitter's card + PIN.",
|
|
20891
|
+
"operationId": "cosign_task_op_api_v1_work_orders__wo_id__tasks__task_id__cosign_op_post",
|
|
20419
20892
|
"parameters": [
|
|
20420
20893
|
{
|
|
20421
20894
|
"name": "wo_id",
|
|
@@ -20427,6 +20900,16 @@
|
|
|
20427
20900
|
"title": "Wo Id"
|
|
20428
20901
|
}
|
|
20429
20902
|
},
|
|
20903
|
+
{
|
|
20904
|
+
"name": "task_id",
|
|
20905
|
+
"in": "path",
|
|
20906
|
+
"required": true,
|
|
20907
|
+
"schema": {
|
|
20908
|
+
"type": "string",
|
|
20909
|
+
"format": "uuid",
|
|
20910
|
+
"title": "Task Id"
|
|
20911
|
+
}
|
|
20912
|
+
},
|
|
20430
20913
|
{
|
|
20431
20914
|
"name": "authorization",
|
|
20432
20915
|
"in": "header",
|
|
@@ -20466,7 +20949,7 @@
|
|
|
20466
20949
|
"content": {
|
|
20467
20950
|
"application/json": {
|
|
20468
20951
|
"schema": {
|
|
20469
|
-
"$ref": "#/components/schemas/
|
|
20952
|
+
"$ref": "#/components/schemas/TaskCosignIn"
|
|
20470
20953
|
}
|
|
20471
20954
|
}
|
|
20472
20955
|
}
|
|
@@ -20477,7 +20960,7 @@
|
|
|
20477
20960
|
"content": {
|
|
20478
20961
|
"application/json": {
|
|
20479
20962
|
"schema": {
|
|
20480
|
-
"$ref": "#/components/schemas/
|
|
20963
|
+
"$ref": "#/components/schemas/TaskOut"
|
|
20481
20964
|
}
|
|
20482
20965
|
}
|
|
20483
20966
|
}
|
|
@@ -20495,14 +20978,14 @@
|
|
|
20495
20978
|
}
|
|
20496
20979
|
}
|
|
20497
20980
|
},
|
|
20498
|
-
"/api/v1/work-orders/{wo_id}/
|
|
20981
|
+
"/api/v1/work-orders/{wo_id}/work-accept-sign": {
|
|
20499
20982
|
"post": {
|
|
20500
20983
|
"tags": [
|
|
20501
20984
|
"work-orders"
|
|
20502
20985
|
],
|
|
20503
|
-
"summary": "
|
|
20504
|
-
"description": "
|
|
20505
|
-
"operationId": "
|
|
20986
|
+
"summary": "Work Accept Sign",
|
|
20987
|
+
"description": "Fitter signs taking the order's work (card or tab_no + PIN, master's screen).",
|
|
20988
|
+
"operationId": "work_accept_sign_api_v1_work_orders__wo_id__work_accept_sign_post",
|
|
20506
20989
|
"parameters": [
|
|
20507
20990
|
{
|
|
20508
20991
|
"name": "wo_id",
|
|
@@ -20553,7 +21036,7 @@
|
|
|
20553
21036
|
"content": {
|
|
20554
21037
|
"application/json": {
|
|
20555
21038
|
"schema": {
|
|
20556
|
-
"$ref": "#/components/schemas/
|
|
21039
|
+
"$ref": "#/components/schemas/WorkSignIn"
|
|
20557
21040
|
}
|
|
20558
21041
|
}
|
|
20559
21042
|
}
|
|
@@ -20564,7 +21047,7 @@
|
|
|
20564
21047
|
"content": {
|
|
20565
21048
|
"application/json": {
|
|
20566
21049
|
"schema": {
|
|
20567
|
-
"$ref": "#/components/schemas/
|
|
21050
|
+
"$ref": "#/components/schemas/WorkSignOut"
|
|
20568
21051
|
}
|
|
20569
21052
|
}
|
|
20570
21053
|
}
|
|
@@ -20582,14 +21065,14 @@
|
|
|
20582
21065
|
}
|
|
20583
21066
|
}
|
|
20584
21067
|
},
|
|
20585
|
-
"/api/v1/work-orders/{wo_id}/
|
|
21068
|
+
"/api/v1/work-orders/{wo_id}/work-return-sign": {
|
|
20586
21069
|
"post": {
|
|
20587
21070
|
"tags": [
|
|
20588
21071
|
"work-orders"
|
|
20589
21072
|
],
|
|
20590
|
-
"summary": "
|
|
20591
|
-
"description": "
|
|
20592
|
-
"operationId": "
|
|
21073
|
+
"summary": "Work Return Sign",
|
|
21074
|
+
"description": "Fitter signs handing the order's work back.",
|
|
21075
|
+
"operationId": "work_return_sign_api_v1_work_orders__wo_id__work_return_sign_post",
|
|
20593
21076
|
"parameters": [
|
|
20594
21077
|
{
|
|
20595
21078
|
"name": "wo_id",
|
|
@@ -20640,7 +21123,7 @@
|
|
|
20640
21123
|
"content": {
|
|
20641
21124
|
"application/json": {
|
|
20642
21125
|
"schema": {
|
|
20643
|
-
"$ref": "#/components/schemas/
|
|
21126
|
+
"$ref": "#/components/schemas/WorkSignIn"
|
|
20644
21127
|
}
|
|
20645
21128
|
}
|
|
20646
21129
|
}
|
|
@@ -20651,7 +21134,7 @@
|
|
|
20651
21134
|
"content": {
|
|
20652
21135
|
"application/json": {
|
|
20653
21136
|
"schema": {
|
|
20654
|
-
"$ref": "#/components/schemas/
|
|
21137
|
+
"$ref": "#/components/schemas/WorkSignOut"
|
|
20655
21138
|
}
|
|
20656
21139
|
}
|
|
20657
21140
|
}
|
|
@@ -20669,14 +21152,536 @@
|
|
|
20669
21152
|
}
|
|
20670
21153
|
}
|
|
20671
21154
|
},
|
|
20672
|
-
"/api/v1/work-orders/{wo_id}/
|
|
21155
|
+
"/api/v1/work-orders/{wo_id}/finish": {
|
|
20673
21156
|
"post": {
|
|
20674
21157
|
"tags": [
|
|
20675
21158
|
"work-orders"
|
|
20676
21159
|
],
|
|
20677
|
-
"summary": "
|
|
20678
|
-
"description": "
|
|
20679
|
-
"operationId": "
|
|
21160
|
+
"summary": "Finish Order",
|
|
21161
|
+
"description": "All ops done -> REPAIR_FINISH on the item (IN_REPAIR -> AWAITING_QC).",
|
|
21162
|
+
"operationId": "finish_order_api_v1_work_orders__wo_id__finish_post",
|
|
21163
|
+
"parameters": [
|
|
21164
|
+
{
|
|
21165
|
+
"name": "wo_id",
|
|
21166
|
+
"in": "path",
|
|
21167
|
+
"required": true,
|
|
21168
|
+
"schema": {
|
|
21169
|
+
"type": "string",
|
|
21170
|
+
"format": "uuid",
|
|
21171
|
+
"title": "Wo Id"
|
|
21172
|
+
}
|
|
21173
|
+
},
|
|
21174
|
+
{
|
|
21175
|
+
"name": "authorization",
|
|
21176
|
+
"in": "header",
|
|
21177
|
+
"required": false,
|
|
21178
|
+
"schema": {
|
|
21179
|
+
"anyOf": [
|
|
21180
|
+
{
|
|
21181
|
+
"type": "string"
|
|
21182
|
+
},
|
|
21183
|
+
{
|
|
21184
|
+
"type": "null"
|
|
21185
|
+
}
|
|
21186
|
+
],
|
|
21187
|
+
"title": "Authorization"
|
|
21188
|
+
}
|
|
21189
|
+
},
|
|
21190
|
+
{
|
|
21191
|
+
"name": "x-debug-person-id",
|
|
21192
|
+
"in": "header",
|
|
21193
|
+
"required": false,
|
|
21194
|
+
"schema": {
|
|
21195
|
+
"anyOf": [
|
|
21196
|
+
{
|
|
21197
|
+
"type": "string",
|
|
21198
|
+
"format": "uuid"
|
|
21199
|
+
},
|
|
21200
|
+
{
|
|
21201
|
+
"type": "null"
|
|
21202
|
+
}
|
|
21203
|
+
],
|
|
21204
|
+
"title": "X-Debug-Person-Id"
|
|
21205
|
+
}
|
|
21206
|
+
}
|
|
21207
|
+
],
|
|
21208
|
+
"requestBody": {
|
|
21209
|
+
"required": true,
|
|
21210
|
+
"content": {
|
|
21211
|
+
"application/json": {
|
|
21212
|
+
"schema": {
|
|
21213
|
+
"$ref": "#/components/schemas/TaskActionIn"
|
|
21214
|
+
}
|
|
21215
|
+
}
|
|
21216
|
+
}
|
|
21217
|
+
},
|
|
21218
|
+
"responses": {
|
|
21219
|
+
"200": {
|
|
21220
|
+
"description": "Successful Response",
|
|
21221
|
+
"content": {
|
|
21222
|
+
"application/json": {
|
|
21223
|
+
"schema": {
|
|
21224
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
21225
|
+
}
|
|
21226
|
+
}
|
|
21227
|
+
}
|
|
21228
|
+
},
|
|
21229
|
+
"422": {
|
|
21230
|
+
"description": "Validation Error",
|
|
21231
|
+
"content": {
|
|
21232
|
+
"application/json": {
|
|
21233
|
+
"schema": {
|
|
21234
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
21235
|
+
}
|
|
21236
|
+
}
|
|
21237
|
+
}
|
|
21238
|
+
}
|
|
21239
|
+
}
|
|
21240
|
+
}
|
|
21241
|
+
},
|
|
21242
|
+
"/api/v1/work-orders/{wo_id}/qc": {
|
|
21243
|
+
"post": {
|
|
21244
|
+
"tags": [
|
|
21245
|
+
"work-orders"
|
|
21246
|
+
],
|
|
21247
|
+
"summary": "Qc Order",
|
|
21248
|
+
"description": "AWAITING_QC -> QC_ACCEPT (IN_STOCK_OK, order DONE) or QC_REJECT (IN_REPAIR).",
|
|
21249
|
+
"operationId": "qc_order_api_v1_work_orders__wo_id__qc_post",
|
|
21250
|
+
"parameters": [
|
|
21251
|
+
{
|
|
21252
|
+
"name": "wo_id",
|
|
21253
|
+
"in": "path",
|
|
21254
|
+
"required": true,
|
|
21255
|
+
"schema": {
|
|
21256
|
+
"type": "string",
|
|
21257
|
+
"format": "uuid",
|
|
21258
|
+
"title": "Wo Id"
|
|
21259
|
+
}
|
|
21260
|
+
},
|
|
21261
|
+
{
|
|
21262
|
+
"name": "authorization",
|
|
21263
|
+
"in": "header",
|
|
21264
|
+
"required": false,
|
|
21265
|
+
"schema": {
|
|
21266
|
+
"anyOf": [
|
|
21267
|
+
{
|
|
21268
|
+
"type": "string"
|
|
21269
|
+
},
|
|
21270
|
+
{
|
|
21271
|
+
"type": "null"
|
|
21272
|
+
}
|
|
21273
|
+
],
|
|
21274
|
+
"title": "Authorization"
|
|
21275
|
+
}
|
|
21276
|
+
},
|
|
21277
|
+
{
|
|
21278
|
+
"name": "x-debug-person-id",
|
|
21279
|
+
"in": "header",
|
|
21280
|
+
"required": false,
|
|
21281
|
+
"schema": {
|
|
21282
|
+
"anyOf": [
|
|
21283
|
+
{
|
|
21284
|
+
"type": "string",
|
|
21285
|
+
"format": "uuid"
|
|
21286
|
+
},
|
|
21287
|
+
{
|
|
21288
|
+
"type": "null"
|
|
21289
|
+
}
|
|
21290
|
+
],
|
|
21291
|
+
"title": "X-Debug-Person-Id"
|
|
21292
|
+
}
|
|
21293
|
+
}
|
|
21294
|
+
],
|
|
21295
|
+
"requestBody": {
|
|
21296
|
+
"required": true,
|
|
21297
|
+
"content": {
|
|
21298
|
+
"application/json": {
|
|
21299
|
+
"schema": {
|
|
21300
|
+
"$ref": "#/components/schemas/QcIn"
|
|
21301
|
+
}
|
|
21302
|
+
}
|
|
21303
|
+
}
|
|
21304
|
+
},
|
|
21305
|
+
"responses": {
|
|
21306
|
+
"200": {
|
|
21307
|
+
"description": "Successful Response",
|
|
21308
|
+
"content": {
|
|
21309
|
+
"application/json": {
|
|
21310
|
+
"schema": {
|
|
21311
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
21312
|
+
}
|
|
21313
|
+
}
|
|
21314
|
+
}
|
|
21315
|
+
},
|
|
21316
|
+
"422": {
|
|
21317
|
+
"description": "Validation Error",
|
|
21318
|
+
"content": {
|
|
21319
|
+
"application/json": {
|
|
21320
|
+
"schema": {
|
|
21321
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
21322
|
+
}
|
|
21323
|
+
}
|
|
21324
|
+
}
|
|
21325
|
+
}
|
|
21326
|
+
}
|
|
21327
|
+
}
|
|
21328
|
+
},
|
|
21329
|
+
"/api/v1/work-orders/{wo_id}/return": {
|
|
21330
|
+
"post": {
|
|
21331
|
+
"tags": [
|
|
21332
|
+
"work-orders"
|
|
21333
|
+
],
|
|
21334
|
+
"summary": "Return Order",
|
|
21335
|
+
"description": "DONE -> RETURNED: WORK_ORDER handover back to the opener, both sign (TZ 5.11).",
|
|
21336
|
+
"operationId": "return_order_api_v1_work_orders__wo_id__return_post",
|
|
21337
|
+
"parameters": [
|
|
21338
|
+
{
|
|
21339
|
+
"name": "wo_id",
|
|
21340
|
+
"in": "path",
|
|
21341
|
+
"required": true,
|
|
21342
|
+
"schema": {
|
|
21343
|
+
"type": "string",
|
|
21344
|
+
"format": "uuid",
|
|
21345
|
+
"title": "Wo Id"
|
|
21346
|
+
}
|
|
21347
|
+
},
|
|
21348
|
+
{
|
|
21349
|
+
"name": "authorization",
|
|
21350
|
+
"in": "header",
|
|
21351
|
+
"required": false,
|
|
21352
|
+
"schema": {
|
|
21353
|
+
"anyOf": [
|
|
21354
|
+
{
|
|
21355
|
+
"type": "string"
|
|
21356
|
+
},
|
|
21357
|
+
{
|
|
21358
|
+
"type": "null"
|
|
21359
|
+
}
|
|
21360
|
+
],
|
|
21361
|
+
"title": "Authorization"
|
|
21362
|
+
}
|
|
21363
|
+
},
|
|
21364
|
+
{
|
|
21365
|
+
"name": "x-debug-person-id",
|
|
21366
|
+
"in": "header",
|
|
21367
|
+
"required": false,
|
|
21368
|
+
"schema": {
|
|
21369
|
+
"anyOf": [
|
|
21370
|
+
{
|
|
21371
|
+
"type": "string",
|
|
21372
|
+
"format": "uuid"
|
|
21373
|
+
},
|
|
21374
|
+
{
|
|
21375
|
+
"type": "null"
|
|
21376
|
+
}
|
|
21377
|
+
],
|
|
21378
|
+
"title": "X-Debug-Person-Id"
|
|
21379
|
+
}
|
|
21380
|
+
}
|
|
21381
|
+
],
|
|
21382
|
+
"requestBody": {
|
|
21383
|
+
"required": true,
|
|
21384
|
+
"content": {
|
|
21385
|
+
"application/json": {
|
|
21386
|
+
"schema": {
|
|
21387
|
+
"$ref": "#/components/schemas/AcceptIn"
|
|
21388
|
+
}
|
|
21389
|
+
}
|
|
21390
|
+
}
|
|
21391
|
+
},
|
|
21392
|
+
"responses": {
|
|
21393
|
+
"200": {
|
|
21394
|
+
"description": "Successful Response",
|
|
21395
|
+
"content": {
|
|
21396
|
+
"application/json": {
|
|
21397
|
+
"schema": {
|
|
21398
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
21399
|
+
}
|
|
21400
|
+
}
|
|
21401
|
+
}
|
|
21402
|
+
},
|
|
21403
|
+
"422": {
|
|
21404
|
+
"description": "Validation Error",
|
|
21405
|
+
"content": {
|
|
21406
|
+
"application/json": {
|
|
21407
|
+
"schema": {
|
|
21408
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
21409
|
+
}
|
|
21410
|
+
}
|
|
21411
|
+
}
|
|
21412
|
+
}
|
|
21413
|
+
}
|
|
21414
|
+
}
|
|
21415
|
+
},
|
|
21416
|
+
"/api/v1/work-orders/{wo_id}/close": {
|
|
21417
|
+
"post": {
|
|
21418
|
+
"tags": [
|
|
21419
|
+
"work-orders"
|
|
21420
|
+
],
|
|
21421
|
+
"summary": "Close Order",
|
|
21422
|
+
"description": "RETURNED -> CLOSED (TZ 5.13), CLOSE_ORDER signature.",
|
|
21423
|
+
"operationId": "close_order_api_v1_work_orders__wo_id__close_post",
|
|
21424
|
+
"parameters": [
|
|
21425
|
+
{
|
|
21426
|
+
"name": "wo_id",
|
|
21427
|
+
"in": "path",
|
|
21428
|
+
"required": true,
|
|
21429
|
+
"schema": {
|
|
21430
|
+
"type": "string",
|
|
21431
|
+
"format": "uuid",
|
|
21432
|
+
"title": "Wo Id"
|
|
21433
|
+
}
|
|
21434
|
+
},
|
|
21435
|
+
{
|
|
21436
|
+
"name": "authorization",
|
|
21437
|
+
"in": "header",
|
|
21438
|
+
"required": false,
|
|
21439
|
+
"schema": {
|
|
21440
|
+
"anyOf": [
|
|
21441
|
+
{
|
|
21442
|
+
"type": "string"
|
|
21443
|
+
},
|
|
21444
|
+
{
|
|
21445
|
+
"type": "null"
|
|
21446
|
+
}
|
|
21447
|
+
],
|
|
21448
|
+
"title": "Authorization"
|
|
21449
|
+
}
|
|
21450
|
+
},
|
|
21451
|
+
{
|
|
21452
|
+
"name": "x-debug-person-id",
|
|
21453
|
+
"in": "header",
|
|
21454
|
+
"required": false,
|
|
21455
|
+
"schema": {
|
|
21456
|
+
"anyOf": [
|
|
21457
|
+
{
|
|
21458
|
+
"type": "string",
|
|
21459
|
+
"format": "uuid"
|
|
21460
|
+
},
|
|
21461
|
+
{
|
|
21462
|
+
"type": "null"
|
|
21463
|
+
}
|
|
21464
|
+
],
|
|
21465
|
+
"title": "X-Debug-Person-Id"
|
|
21466
|
+
}
|
|
21467
|
+
}
|
|
21468
|
+
],
|
|
21469
|
+
"requestBody": {
|
|
21470
|
+
"required": true,
|
|
21471
|
+
"content": {
|
|
21472
|
+
"application/json": {
|
|
21473
|
+
"schema": {
|
|
21474
|
+
"$ref": "#/components/schemas/AcceptIn"
|
|
21475
|
+
}
|
|
21476
|
+
}
|
|
21477
|
+
}
|
|
21478
|
+
},
|
|
21479
|
+
"responses": {
|
|
21480
|
+
"200": {
|
|
21481
|
+
"description": "Successful Response",
|
|
21482
|
+
"content": {
|
|
21483
|
+
"application/json": {
|
|
21484
|
+
"schema": {
|
|
21485
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
21486
|
+
}
|
|
21487
|
+
}
|
|
21488
|
+
}
|
|
21489
|
+
},
|
|
21490
|
+
"422": {
|
|
21491
|
+
"description": "Validation Error",
|
|
21492
|
+
"content": {
|
|
21493
|
+
"application/json": {
|
|
21494
|
+
"schema": {
|
|
21495
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
21496
|
+
}
|
|
21497
|
+
}
|
|
21498
|
+
}
|
|
21499
|
+
}
|
|
21500
|
+
}
|
|
21501
|
+
}
|
|
21502
|
+
},
|
|
21503
|
+
"/api/v1/work-orders/{wo_id}/hold": {
|
|
21504
|
+
"post": {
|
|
21505
|
+
"tags": [
|
|
21506
|
+
"work-orders"
|
|
21507
|
+
],
|
|
21508
|
+
"summary": "Hold Order",
|
|
21509
|
+
"description": "ACCEPTED/IN_PROGRESS -> ON_HOLD: pause every in-progress op, master signs.\n\nPausing emits REPAIR_PAUSE per op, so the hold gap drops out of the A2\nactive-time fold automatically; the hold span itself is read back from the\nHOLD_ORDER/RESUME_ORDER signatures (reports.order_hold_minutes).",
|
|
21510
|
+
"operationId": "hold_order_api_v1_work_orders__wo_id__hold_post",
|
|
21511
|
+
"parameters": [
|
|
21512
|
+
{
|
|
21513
|
+
"name": "wo_id",
|
|
21514
|
+
"in": "path",
|
|
21515
|
+
"required": true,
|
|
21516
|
+
"schema": {
|
|
21517
|
+
"type": "string",
|
|
21518
|
+
"format": "uuid",
|
|
21519
|
+
"title": "Wo Id"
|
|
21520
|
+
}
|
|
21521
|
+
},
|
|
21522
|
+
{
|
|
21523
|
+
"name": "authorization",
|
|
21524
|
+
"in": "header",
|
|
21525
|
+
"required": false,
|
|
21526
|
+
"schema": {
|
|
21527
|
+
"anyOf": [
|
|
21528
|
+
{
|
|
21529
|
+
"type": "string"
|
|
21530
|
+
},
|
|
21531
|
+
{
|
|
21532
|
+
"type": "null"
|
|
21533
|
+
}
|
|
21534
|
+
],
|
|
21535
|
+
"title": "Authorization"
|
|
21536
|
+
}
|
|
21537
|
+
},
|
|
21538
|
+
{
|
|
21539
|
+
"name": "x-debug-person-id",
|
|
21540
|
+
"in": "header",
|
|
21541
|
+
"required": false,
|
|
21542
|
+
"schema": {
|
|
21543
|
+
"anyOf": [
|
|
21544
|
+
{
|
|
21545
|
+
"type": "string",
|
|
21546
|
+
"format": "uuid"
|
|
21547
|
+
},
|
|
21548
|
+
{
|
|
21549
|
+
"type": "null"
|
|
21550
|
+
}
|
|
21551
|
+
],
|
|
21552
|
+
"title": "X-Debug-Person-Id"
|
|
21553
|
+
}
|
|
21554
|
+
}
|
|
21555
|
+
],
|
|
21556
|
+
"requestBody": {
|
|
21557
|
+
"required": true,
|
|
21558
|
+
"content": {
|
|
21559
|
+
"application/json": {
|
|
21560
|
+
"schema": {
|
|
21561
|
+
"$ref": "#/components/schemas/HoldIn"
|
|
21562
|
+
}
|
|
21563
|
+
}
|
|
21564
|
+
}
|
|
21565
|
+
},
|
|
21566
|
+
"responses": {
|
|
21567
|
+
"200": {
|
|
21568
|
+
"description": "Successful Response",
|
|
21569
|
+
"content": {
|
|
21570
|
+
"application/json": {
|
|
21571
|
+
"schema": {
|
|
21572
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
21573
|
+
}
|
|
21574
|
+
}
|
|
21575
|
+
}
|
|
21576
|
+
},
|
|
21577
|
+
"422": {
|
|
21578
|
+
"description": "Validation Error",
|
|
21579
|
+
"content": {
|
|
21580
|
+
"application/json": {
|
|
21581
|
+
"schema": {
|
|
21582
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
21583
|
+
}
|
|
21584
|
+
}
|
|
21585
|
+
}
|
|
21586
|
+
}
|
|
21587
|
+
}
|
|
21588
|
+
}
|
|
21589
|
+
},
|
|
21590
|
+
"/api/v1/work-orders/{wo_id}/resume": {
|
|
21591
|
+
"post": {
|
|
21592
|
+
"tags": [
|
|
21593
|
+
"work-orders"
|
|
21594
|
+
],
|
|
21595
|
+
"summary": "Resume Order",
|
|
21596
|
+
"description": "ON_HOLD -> back to its pre-hold status (IN_PROGRESS if any op is paused/\nrunning, else ACCEPTED). Ops stay PAUSED — the fitter resumes their own op.\n\nSigns RESUME_ORDER (no PIN) so the hold interval has a closing timestamp.",
|
|
21597
|
+
"operationId": "resume_order_api_v1_work_orders__wo_id__resume_post",
|
|
21598
|
+
"parameters": [
|
|
21599
|
+
{
|
|
21600
|
+
"name": "wo_id",
|
|
21601
|
+
"in": "path",
|
|
21602
|
+
"required": true,
|
|
21603
|
+
"schema": {
|
|
21604
|
+
"type": "string",
|
|
21605
|
+
"format": "uuid",
|
|
21606
|
+
"title": "Wo Id"
|
|
21607
|
+
}
|
|
21608
|
+
},
|
|
21609
|
+
{
|
|
21610
|
+
"name": "authorization",
|
|
21611
|
+
"in": "header",
|
|
21612
|
+
"required": false,
|
|
21613
|
+
"schema": {
|
|
21614
|
+
"anyOf": [
|
|
21615
|
+
{
|
|
21616
|
+
"type": "string"
|
|
21617
|
+
},
|
|
21618
|
+
{
|
|
21619
|
+
"type": "null"
|
|
21620
|
+
}
|
|
21621
|
+
],
|
|
21622
|
+
"title": "Authorization"
|
|
21623
|
+
}
|
|
21624
|
+
},
|
|
21625
|
+
{
|
|
21626
|
+
"name": "x-debug-person-id",
|
|
21627
|
+
"in": "header",
|
|
21628
|
+
"required": false,
|
|
21629
|
+
"schema": {
|
|
21630
|
+
"anyOf": [
|
|
21631
|
+
{
|
|
21632
|
+
"type": "string",
|
|
21633
|
+
"format": "uuid"
|
|
21634
|
+
},
|
|
21635
|
+
{
|
|
21636
|
+
"type": "null"
|
|
21637
|
+
}
|
|
21638
|
+
],
|
|
21639
|
+
"title": "X-Debug-Person-Id"
|
|
21640
|
+
}
|
|
21641
|
+
}
|
|
21642
|
+
],
|
|
21643
|
+
"requestBody": {
|
|
21644
|
+
"required": true,
|
|
21645
|
+
"content": {
|
|
21646
|
+
"application/json": {
|
|
21647
|
+
"schema": {
|
|
21648
|
+
"$ref": "#/components/schemas/ResumeIn"
|
|
21649
|
+
}
|
|
21650
|
+
}
|
|
21651
|
+
}
|
|
21652
|
+
},
|
|
21653
|
+
"responses": {
|
|
21654
|
+
"200": {
|
|
21655
|
+
"description": "Successful Response",
|
|
21656
|
+
"content": {
|
|
21657
|
+
"application/json": {
|
|
21658
|
+
"schema": {
|
|
21659
|
+
"$ref": "#/components/schemas/WorkOrderOut"
|
|
21660
|
+
}
|
|
21661
|
+
}
|
|
21662
|
+
}
|
|
21663
|
+
},
|
|
21664
|
+
"422": {
|
|
21665
|
+
"description": "Validation Error",
|
|
21666
|
+
"content": {
|
|
21667
|
+
"application/json": {
|
|
21668
|
+
"schema": {
|
|
21669
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
21670
|
+
}
|
|
21671
|
+
}
|
|
21672
|
+
}
|
|
21673
|
+
}
|
|
21674
|
+
}
|
|
21675
|
+
}
|
|
21676
|
+
},
|
|
21677
|
+
"/api/v1/work-orders/{wo_id}/cancel": {
|
|
21678
|
+
"post": {
|
|
21679
|
+
"tags": [
|
|
21680
|
+
"work-orders"
|
|
21681
|
+
],
|
|
21682
|
+
"summary": "Cancel Order",
|
|
21683
|
+
"description": "OPEN/ACCEPTED with no completed op -> CANCELLED, master signs with reason.\n\nThe part is still at its pre-order status (REMOVED / IN_STOCK_DEFECT): no\nrepair event ever moved it, so cancelling emits no part event — the reason\nlives on the CANCEL_ORDER signature and outstanding ops are marked CANCELLED.\n# ponytail: no no-op \"cancel comment\" part event; the item never left\n# REMOVED/IN_STOCK_DEFECT. Add one only if cancel is ever allowed post-repair.",
|
|
21684
|
+
"operationId": "cancel_order_api_v1_work_orders__wo_id__cancel_post",
|
|
20680
21685
|
"parameters": [
|
|
20681
21686
|
{
|
|
20682
21687
|
"name": "wo_id",
|
|
@@ -26657,7 +27662,6 @@
|
|
|
26657
27662
|
"SEND_TO_REPAIR",
|
|
26658
27663
|
"QC_ACCEPT",
|
|
26659
27664
|
"QC_REJECT",
|
|
26660
|
-
"STORE_IN",
|
|
26661
27665
|
"ASSEMBLE",
|
|
26662
27666
|
"DISASSEMBLE",
|
|
26663
27667
|
"SEND_TO_PLANT",
|
|
@@ -28061,6 +29065,13 @@
|
|
|
28061
29065
|
}
|
|
28062
29066
|
],
|
|
28063
29067
|
"title": "Requested Status"
|
|
29068
|
+
},
|
|
29069
|
+
"measurements": {
|
|
29070
|
+
"items": {
|
|
29071
|
+
"$ref": "#/components/schemas/MeasurementValueIn"
|
|
29072
|
+
},
|
|
29073
|
+
"type": "array",
|
|
29074
|
+
"title": "Measurements"
|
|
28064
29075
|
}
|
|
28065
29076
|
},
|
|
28066
29077
|
"additionalProperties": false,
|
|
@@ -28071,7 +29082,121 @@
|
|
|
28071
29082
|
"client_event_uuid",
|
|
28072
29083
|
"event_type"
|
|
28073
29084
|
],
|
|
28074
|
-
"title": "InspectCommand"
|
|
29085
|
+
"title": "InspectCommand",
|
|
29086
|
+
"description": "Defectation — and, since B21, the measuring pass under the machine.\n\nFrom INSTALLED it is a pure record: the numbers are taken, the rules speak,\nand nothing moves until the master signs a verdict\n(/work-orders/measuring/{id}/verdict). `work_order_id` + `task_id` point at\nthe measuring order of the visit, so the readings belong to an operation\nlike any other work."
|
|
29087
|
+
},
|
|
29088
|
+
"InspectionSignIn": {
|
|
29089
|
+
"properties": {
|
|
29090
|
+
"event_at": {
|
|
29091
|
+
"type": "string",
|
|
29092
|
+
"format": "date-time",
|
|
29093
|
+
"title": "Event At"
|
|
29094
|
+
},
|
|
29095
|
+
"client_event_uuid": {
|
|
29096
|
+
"type": "string",
|
|
29097
|
+
"format": "uuid",
|
|
29098
|
+
"title": "Client Event Uuid"
|
|
29099
|
+
},
|
|
29100
|
+
"terminal_id": {
|
|
29101
|
+
"anyOf": [
|
|
29102
|
+
{
|
|
29103
|
+
"type": "string",
|
|
29104
|
+
"format": "uuid"
|
|
29105
|
+
},
|
|
29106
|
+
{
|
|
29107
|
+
"type": "null"
|
|
29108
|
+
}
|
|
29109
|
+
],
|
|
29110
|
+
"title": "Terminal Id"
|
|
29111
|
+
},
|
|
29112
|
+
"badge_uid": {
|
|
29113
|
+
"anyOf": [
|
|
29114
|
+
{
|
|
29115
|
+
"type": "string",
|
|
29116
|
+
"maxLength": 128,
|
|
29117
|
+
"minLength": 1
|
|
29118
|
+
},
|
|
29119
|
+
{
|
|
29120
|
+
"type": "null"
|
|
29121
|
+
}
|
|
29122
|
+
],
|
|
29123
|
+
"title": "Badge Uid"
|
|
29124
|
+
},
|
|
29125
|
+
"tab_no": {
|
|
29126
|
+
"anyOf": [
|
|
29127
|
+
{
|
|
29128
|
+
"type": "string",
|
|
29129
|
+
"maxLength": 32,
|
|
29130
|
+
"minLength": 1
|
|
29131
|
+
},
|
|
29132
|
+
{
|
|
29133
|
+
"type": "null"
|
|
29134
|
+
}
|
|
29135
|
+
],
|
|
29136
|
+
"title": "Tab No"
|
|
29137
|
+
},
|
|
29138
|
+
"pin": {
|
|
29139
|
+
"type": "string",
|
|
29140
|
+
"maxLength": 12,
|
|
29141
|
+
"minLength": 4,
|
|
29142
|
+
"title": "Pin"
|
|
29143
|
+
},
|
|
29144
|
+
"lines": {
|
|
29145
|
+
"items": {
|
|
29146
|
+
"$ref": "#/components/schemas/VerdictLine"
|
|
29147
|
+
},
|
|
29148
|
+
"type": "array",
|
|
29149
|
+
"minItems": 1,
|
|
29150
|
+
"title": "Lines"
|
|
29151
|
+
},
|
|
29152
|
+
"comment": {
|
|
29153
|
+
"anyOf": [
|
|
29154
|
+
{
|
|
29155
|
+
"type": "string"
|
|
29156
|
+
},
|
|
29157
|
+
{
|
|
29158
|
+
"type": "null"
|
|
29159
|
+
}
|
|
29160
|
+
],
|
|
29161
|
+
"title": "Comment"
|
|
29162
|
+
}
|
|
29163
|
+
},
|
|
29164
|
+
"additionalProperties": false,
|
|
29165
|
+
"type": "object",
|
|
29166
|
+
"required": [
|
|
29167
|
+
"event_at",
|
|
29168
|
+
"client_event_uuid",
|
|
29169
|
+
"pin",
|
|
29170
|
+
"lines"
|
|
29171
|
+
],
|
|
29172
|
+
"title": "InspectionSignIn",
|
|
29173
|
+
"description": "The whole inspection pass, signed once by the man who walked it.\n\nOne signature over the list, not one per line: the pass is a single act of\na single person — he looked at these parts, in this order, and says this\nabout them. The payload_hash covers every line, so no line can be edited\nout of a signed pass (invariant 6).\n\nHe names himself the way a co-signature does (badge_uid under RFID, tab_no\nunder the TABEL pilot, PIN in both): the terminal is logged in as whoever\nopened the shift, and the inspector is not always that man."
|
|
29174
|
+
},
|
|
29175
|
+
"InspectionSignOut": {
|
|
29176
|
+
"properties": {
|
|
29177
|
+
"signed_by_person_id": {
|
|
29178
|
+
"type": "string",
|
|
29179
|
+
"format": "uuid",
|
|
29180
|
+
"title": "Signed By Person Id"
|
|
29181
|
+
},
|
|
29182
|
+
"existing": {
|
|
29183
|
+
"type": "boolean",
|
|
29184
|
+
"title": "Existing",
|
|
29185
|
+
"default": false
|
|
29186
|
+
},
|
|
29187
|
+
"results": {
|
|
29188
|
+
"items": {
|
|
29189
|
+
"$ref": "#/components/schemas/VerdictOut"
|
|
29190
|
+
},
|
|
29191
|
+
"type": "array",
|
|
29192
|
+
"title": "Results"
|
|
29193
|
+
}
|
|
29194
|
+
},
|
|
29195
|
+
"type": "object",
|
|
29196
|
+
"required": [
|
|
29197
|
+
"signed_by_person_id"
|
|
29198
|
+
],
|
|
29199
|
+
"title": "InspectionSignOut"
|
|
28075
29200
|
},
|
|
28076
29201
|
"InstallCommand": {
|
|
28077
29202
|
"properties": {
|
|
@@ -29228,6 +30353,28 @@
|
|
|
29228
30353
|
"type": "boolean",
|
|
29229
30354
|
"title": "Marked No Duplicate"
|
|
29230
30355
|
},
|
|
30356
|
+
"resource_pct": {
|
|
30357
|
+
"anyOf": [
|
|
30358
|
+
{
|
|
30359
|
+
"type": "number"
|
|
30360
|
+
},
|
|
30361
|
+
{
|
|
30362
|
+
"type": "null"
|
|
30363
|
+
}
|
|
30364
|
+
],
|
|
30365
|
+
"title": "Resource Pct"
|
|
30366
|
+
},
|
|
30367
|
+
"resource_param": {
|
|
30368
|
+
"anyOf": [
|
|
30369
|
+
{
|
|
30370
|
+
"type": "string"
|
|
30371
|
+
},
|
|
30372
|
+
{
|
|
30373
|
+
"type": "null"
|
|
30374
|
+
}
|
|
30375
|
+
],
|
|
30376
|
+
"title": "Resource Param"
|
|
30377
|
+
},
|
|
29231
30378
|
"attrs": {
|
|
29232
30379
|
"additionalProperties": {
|
|
29233
30380
|
"anyOf": [
|
|
@@ -29443,6 +30590,56 @@
|
|
|
29443
30590
|
"title": "ItemPatch",
|
|
29444
30591
|
"description": "Admin correction of the instance facts the flows do not capture.\n\nDeliberately narrow: everything else on a part card is either a projection\n(invariant 2) or a journal fact. Every applied change writes an audit_log row."
|
|
29445
30592
|
},
|
|
30593
|
+
"KpiTrend": {
|
|
30594
|
+
"properties": {
|
|
30595
|
+
"days": {
|
|
30596
|
+
"items": {
|
|
30597
|
+
"type": "string",
|
|
30598
|
+
"format": "date"
|
|
30599
|
+
},
|
|
30600
|
+
"type": "array",
|
|
30601
|
+
"title": "Days"
|
|
30602
|
+
},
|
|
30603
|
+
"open_orders": {
|
|
30604
|
+
"items": {
|
|
30605
|
+
"type": "integer"
|
|
30606
|
+
},
|
|
30607
|
+
"type": "array",
|
|
30608
|
+
"title": "Open Orders"
|
|
30609
|
+
},
|
|
30610
|
+
"orders_opened": {
|
|
30611
|
+
"items": {
|
|
30612
|
+
"type": "integer"
|
|
30613
|
+
},
|
|
30614
|
+
"type": "array",
|
|
30615
|
+
"title": "Orders Opened"
|
|
30616
|
+
},
|
|
30617
|
+
"orders_closed": {
|
|
30618
|
+
"items": {
|
|
30619
|
+
"type": "integer"
|
|
30620
|
+
},
|
|
30621
|
+
"type": "array",
|
|
30622
|
+
"title": "Orders Closed"
|
|
30623
|
+
},
|
|
30624
|
+
"defects_found": {
|
|
30625
|
+
"items": {
|
|
30626
|
+
"type": "integer"
|
|
30627
|
+
},
|
|
30628
|
+
"type": "array",
|
|
30629
|
+
"title": "Defects Found"
|
|
30630
|
+
}
|
|
30631
|
+
},
|
|
30632
|
+
"type": "object",
|
|
30633
|
+
"required": [
|
|
30634
|
+
"days",
|
|
30635
|
+
"open_orders",
|
|
30636
|
+
"orders_opened",
|
|
30637
|
+
"orders_closed",
|
|
30638
|
+
"defects_found"
|
|
30639
|
+
],
|
|
30640
|
+
"title": "KpiTrend",
|
|
30641
|
+
"description": "Daily series under the dashboard tiles. Every list is `days` long."
|
|
30642
|
+
},
|
|
29446
30643
|
"LocationContents": {
|
|
29447
30644
|
"properties": {
|
|
29448
30645
|
"location": {
|
|
@@ -30257,6 +31454,30 @@
|
|
|
30257
31454
|
"title": "LocoOverviewRow",
|
|
30258
31455
|
"description": "One tile of the terminal master-mode grid (GET /locomotives/overview).\n\nopen_order_ids lets the terminal join its own cached order rows offline;\nthe badge count is just len(open_order_ids). attention_order_ids is the\nsubset the master must decide on (same OPEN/ON_HOLD/RETURNED set the\nlocomotive card calls «требует внимания») — the grid sorts and dots by it\nwithout fetching every order."
|
|
30259
31456
|
},
|
|
31457
|
+
"LocoSectionRef": {
|
|
31458
|
+
"properties": {
|
|
31459
|
+
"code": {
|
|
31460
|
+
"type": "string",
|
|
31461
|
+
"title": "Code"
|
|
31462
|
+
},
|
|
31463
|
+
"band": {
|
|
31464
|
+
"type": "string",
|
|
31465
|
+
"title": "Band"
|
|
31466
|
+
},
|
|
31467
|
+
"sort": {
|
|
31468
|
+
"type": "integer",
|
|
31469
|
+
"title": "Sort"
|
|
31470
|
+
}
|
|
31471
|
+
},
|
|
31472
|
+
"type": "object",
|
|
31473
|
+
"required": [
|
|
31474
|
+
"code",
|
|
31475
|
+
"band",
|
|
31476
|
+
"sort"
|
|
31477
|
+
],
|
|
31478
|
+
"title": "LocoSectionRef",
|
|
31479
|
+
"description": "One place on the machine, as the position picker draws it.\n\nOrdered by `sort`; the band a section belongs to is drawn where its\nsmallest sort puts it, so one number orders both the strip and the row."
|
|
31480
|
+
},
|
|
30260
31481
|
"LocoSeriesOut": {
|
|
30261
31482
|
"properties": {
|
|
30262
31483
|
"code": {
|
|
@@ -30288,6 +31509,91 @@
|
|
|
30288
31509
|
"title": "LocoSeriesOut",
|
|
30289
31510
|
"description": "Series dictionary + its picture key (terminal caches both offline)."
|
|
30290
31511
|
},
|
|
31512
|
+
"LocoSeriesPositionIn": {
|
|
31513
|
+
"properties": {
|
|
31514
|
+
"positions": {
|
|
31515
|
+
"items": {
|
|
31516
|
+
"type": "string"
|
|
31517
|
+
},
|
|
31518
|
+
"type": "array",
|
|
31519
|
+
"maxItems": 24,
|
|
31520
|
+
"minItems": 1,
|
|
31521
|
+
"title": "Positions"
|
|
31522
|
+
}
|
|
31523
|
+
},
|
|
31524
|
+
"type": "object",
|
|
31525
|
+
"required": [
|
|
31526
|
+
"positions"
|
|
31527
|
+
],
|
|
31528
|
+
"title": "LocoSeriesPositionIn",
|
|
31529
|
+
"description": "Bind a part type to a series with that machine's own position list.\n\nNormalised by the same validator as nomenclature.positions, so a list means\nthe same thing wherever it was typed. An empty list is rejected: «no\nper-series list» is expressed by DELETEing the binding, which falls the\ntype back to its global list, not by saving emptiness that would read as\n«this series has no positions»."
|
|
31530
|
+
},
|
|
31531
|
+
"LocoSeriesPositionOut": {
|
|
31532
|
+
"properties": {
|
|
31533
|
+
"loco_series": {
|
|
31534
|
+
"type": "string",
|
|
31535
|
+
"title": "Loco Series"
|
|
31536
|
+
},
|
|
31537
|
+
"nomenclature_id": {
|
|
31538
|
+
"type": "string",
|
|
31539
|
+
"format": "uuid",
|
|
31540
|
+
"title": "Nomenclature Id"
|
|
31541
|
+
},
|
|
31542
|
+
"code": {
|
|
31543
|
+
"type": "string",
|
|
31544
|
+
"title": "Code"
|
|
31545
|
+
},
|
|
31546
|
+
"name": {
|
|
31547
|
+
"type": "string",
|
|
31548
|
+
"title": "Name"
|
|
31549
|
+
},
|
|
31550
|
+
"positions": {
|
|
31551
|
+
"items": {
|
|
31552
|
+
"type": "string"
|
|
31553
|
+
},
|
|
31554
|
+
"type": "array",
|
|
31555
|
+
"title": "Positions"
|
|
31556
|
+
}
|
|
31557
|
+
},
|
|
31558
|
+
"type": "object",
|
|
31559
|
+
"required": [
|
|
31560
|
+
"loco_series",
|
|
31561
|
+
"nomenclature_id",
|
|
31562
|
+
"code",
|
|
31563
|
+
"name",
|
|
31564
|
+
"positions"
|
|
31565
|
+
],
|
|
31566
|
+
"title": "LocoSeriesPositionOut",
|
|
31567
|
+
"description": "One binding as the admin visualization draws it."
|
|
31568
|
+
},
|
|
31569
|
+
"LocoSeriesPositionRef": {
|
|
31570
|
+
"properties": {
|
|
31571
|
+
"loco_series": {
|
|
31572
|
+
"type": "string",
|
|
31573
|
+
"title": "Loco Series"
|
|
31574
|
+
},
|
|
31575
|
+
"nomenclature_id": {
|
|
31576
|
+
"type": "string",
|
|
31577
|
+
"format": "uuid",
|
|
31578
|
+
"title": "Nomenclature Id"
|
|
31579
|
+
},
|
|
31580
|
+
"positions": {
|
|
31581
|
+
"items": {
|
|
31582
|
+
"type": "string"
|
|
31583
|
+
},
|
|
31584
|
+
"type": "array",
|
|
31585
|
+
"title": "Positions",
|
|
31586
|
+
"default": []
|
|
31587
|
+
}
|
|
31588
|
+
},
|
|
31589
|
+
"type": "object",
|
|
31590
|
+
"required": [
|
|
31591
|
+
"loco_series",
|
|
31592
|
+
"nomenclature_id"
|
|
31593
|
+
],
|
|
31594
|
+
"title": "LocoSeriesPositionRef",
|
|
31595
|
+
"description": "One binding: what positions a part type has on ONE series.\n\nOverrides NomenclatureRef.positions for that series only. A type with no\nrow here keeps the global list, so this dictionary is usually short and a\ndepot that never needs per-series lists syncs an empty one."
|
|
31596
|
+
},
|
|
30291
31597
|
"LocoUnitCard": {
|
|
30292
31598
|
"properties": {
|
|
30293
31599
|
"series": {
|
|
@@ -31137,6 +32443,232 @@
|
|
|
31137
32443
|
],
|
|
31138
32444
|
"title": "MarkedDupeItem"
|
|
31139
32445
|
},
|
|
32446
|
+
"MeasuredItemOut": {
|
|
32447
|
+
"properties": {
|
|
32448
|
+
"item_id": {
|
|
32449
|
+
"type": "string",
|
|
32450
|
+
"format": "uuid",
|
|
32451
|
+
"title": "Item Id"
|
|
32452
|
+
},
|
|
32453
|
+
"inventory_no": {
|
|
32454
|
+
"type": "string",
|
|
32455
|
+
"title": "Inventory No"
|
|
32456
|
+
},
|
|
32457
|
+
"marked_no": {
|
|
32458
|
+
"anyOf": [
|
|
32459
|
+
{
|
|
32460
|
+
"type": "string"
|
|
32461
|
+
},
|
|
32462
|
+
{
|
|
32463
|
+
"type": "null"
|
|
32464
|
+
}
|
|
32465
|
+
],
|
|
32466
|
+
"title": "Marked No"
|
|
32467
|
+
},
|
|
32468
|
+
"nomenclature_id": {
|
|
32469
|
+
"type": "string",
|
|
32470
|
+
"format": "uuid",
|
|
32471
|
+
"title": "Nomenclature Id"
|
|
32472
|
+
},
|
|
32473
|
+
"nomenclature_name": {
|
|
32474
|
+
"anyOf": [
|
|
32475
|
+
{
|
|
32476
|
+
"type": "string"
|
|
32477
|
+
},
|
|
32478
|
+
{
|
|
32479
|
+
"type": "null"
|
|
32480
|
+
}
|
|
32481
|
+
],
|
|
32482
|
+
"title": "Nomenclature Name"
|
|
32483
|
+
},
|
|
32484
|
+
"mount_position": {
|
|
32485
|
+
"anyOf": [
|
|
32486
|
+
{
|
|
32487
|
+
"type": "string"
|
|
32488
|
+
},
|
|
32489
|
+
{
|
|
32490
|
+
"type": "null"
|
|
32491
|
+
}
|
|
32492
|
+
],
|
|
32493
|
+
"title": "Mount Position"
|
|
32494
|
+
},
|
|
32495
|
+
"measured_at": {
|
|
32496
|
+
"anyOf": [
|
|
32497
|
+
{
|
|
32498
|
+
"type": "string",
|
|
32499
|
+
"format": "date-time"
|
|
32500
|
+
},
|
|
32501
|
+
{
|
|
32502
|
+
"type": "null"
|
|
32503
|
+
}
|
|
32504
|
+
],
|
|
32505
|
+
"title": "Measured At"
|
|
32506
|
+
},
|
|
32507
|
+
"values": {
|
|
32508
|
+
"items": {
|
|
32509
|
+
"$ref": "#/components/schemas/MeasuredValueOut"
|
|
32510
|
+
},
|
|
32511
|
+
"type": "array",
|
|
32512
|
+
"title": "Values"
|
|
32513
|
+
},
|
|
32514
|
+
"recommendations": {
|
|
32515
|
+
"items": {
|
|
32516
|
+
"additionalProperties": true,
|
|
32517
|
+
"type": "object"
|
|
32518
|
+
},
|
|
32519
|
+
"type": "array",
|
|
32520
|
+
"title": "Recommendations"
|
|
32521
|
+
},
|
|
32522
|
+
"verdict": {
|
|
32523
|
+
"anyOf": [
|
|
32524
|
+
{
|
|
32525
|
+
"type": "string"
|
|
32526
|
+
},
|
|
32527
|
+
{
|
|
32528
|
+
"type": "null"
|
|
32529
|
+
}
|
|
32530
|
+
],
|
|
32531
|
+
"title": "Verdict"
|
|
32532
|
+
},
|
|
32533
|
+
"verdict_work_order_number": {
|
|
32534
|
+
"anyOf": [
|
|
32535
|
+
{
|
|
32536
|
+
"type": "string"
|
|
32537
|
+
},
|
|
32538
|
+
{
|
|
32539
|
+
"type": "null"
|
|
32540
|
+
}
|
|
32541
|
+
],
|
|
32542
|
+
"title": "Verdict Work Order Number"
|
|
32543
|
+
}
|
|
32544
|
+
},
|
|
32545
|
+
"type": "object",
|
|
32546
|
+
"required": [
|
|
32547
|
+
"item_id",
|
|
32548
|
+
"inventory_no",
|
|
32549
|
+
"marked_no",
|
|
32550
|
+
"nomenclature_id",
|
|
32551
|
+
"nomenclature_name",
|
|
32552
|
+
"mount_position",
|
|
32553
|
+
"measured_at"
|
|
32554
|
+
],
|
|
32555
|
+
"title": "MeasuredItemOut",
|
|
32556
|
+
"description": "One part standing on the machine: what it reads, what the rules say\nabout it, and what the master already decided."
|
|
32557
|
+
},
|
|
32558
|
+
"MeasuredValueOut": {
|
|
32559
|
+
"properties": {
|
|
32560
|
+
"param_code": {
|
|
32561
|
+
"type": "string",
|
|
32562
|
+
"title": "Param Code"
|
|
32563
|
+
},
|
|
32564
|
+
"param_name": {
|
|
32565
|
+
"anyOf": [
|
|
32566
|
+
{
|
|
32567
|
+
"type": "string"
|
|
32568
|
+
},
|
|
32569
|
+
{
|
|
32570
|
+
"type": "null"
|
|
32571
|
+
}
|
|
32572
|
+
],
|
|
32573
|
+
"title": "Param Name"
|
|
32574
|
+
},
|
|
32575
|
+
"actual_value": {
|
|
32576
|
+
"anyOf": [
|
|
32577
|
+
{
|
|
32578
|
+
"type": "string",
|
|
32579
|
+
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
|
|
32580
|
+
},
|
|
32581
|
+
{
|
|
32582
|
+
"type": "null"
|
|
32583
|
+
}
|
|
32584
|
+
],
|
|
32585
|
+
"title": "Actual Value"
|
|
32586
|
+
},
|
|
32587
|
+
"norm_min": {
|
|
32588
|
+
"anyOf": [
|
|
32589
|
+
{
|
|
32590
|
+
"type": "string",
|
|
32591
|
+
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
|
|
32592
|
+
},
|
|
32593
|
+
{
|
|
32594
|
+
"type": "null"
|
|
32595
|
+
}
|
|
32596
|
+
],
|
|
32597
|
+
"title": "Norm Min"
|
|
32598
|
+
},
|
|
32599
|
+
"norm_max": {
|
|
32600
|
+
"anyOf": [
|
|
32601
|
+
{
|
|
32602
|
+
"type": "string",
|
|
32603
|
+
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
|
|
32604
|
+
},
|
|
32605
|
+
{
|
|
32606
|
+
"type": "null"
|
|
32607
|
+
}
|
|
32608
|
+
],
|
|
32609
|
+
"title": "Norm Max"
|
|
32610
|
+
},
|
|
32611
|
+
"uom": {
|
|
32612
|
+
"anyOf": [
|
|
32613
|
+
{
|
|
32614
|
+
"type": "string"
|
|
32615
|
+
},
|
|
32616
|
+
{
|
|
32617
|
+
"type": "null"
|
|
32618
|
+
}
|
|
32619
|
+
],
|
|
32620
|
+
"title": "Uom"
|
|
32621
|
+
},
|
|
32622
|
+
"is_pass": {
|
|
32623
|
+
"anyOf": [
|
|
32624
|
+
{
|
|
32625
|
+
"type": "boolean"
|
|
32626
|
+
},
|
|
32627
|
+
{
|
|
32628
|
+
"type": "null"
|
|
32629
|
+
}
|
|
32630
|
+
],
|
|
32631
|
+
"title": "Is Pass"
|
|
32632
|
+
},
|
|
32633
|
+
"measured_at": {
|
|
32634
|
+
"anyOf": [
|
|
32635
|
+
{
|
|
32636
|
+
"type": "string",
|
|
32637
|
+
"format": "date-time"
|
|
32638
|
+
},
|
|
32639
|
+
{
|
|
32640
|
+
"type": "null"
|
|
32641
|
+
}
|
|
32642
|
+
],
|
|
32643
|
+
"title": "Measured At"
|
|
32644
|
+
},
|
|
32645
|
+
"stage": {
|
|
32646
|
+
"anyOf": [
|
|
32647
|
+
{
|
|
32648
|
+
"type": "string"
|
|
32649
|
+
},
|
|
32650
|
+
{
|
|
32651
|
+
"type": "null"
|
|
32652
|
+
}
|
|
32653
|
+
],
|
|
32654
|
+
"title": "Stage"
|
|
32655
|
+
}
|
|
32656
|
+
},
|
|
32657
|
+
"type": "object",
|
|
32658
|
+
"required": [
|
|
32659
|
+
"param_code",
|
|
32660
|
+
"param_name",
|
|
32661
|
+
"actual_value",
|
|
32662
|
+
"norm_min",
|
|
32663
|
+
"norm_max",
|
|
32664
|
+
"uom",
|
|
32665
|
+
"is_pass",
|
|
32666
|
+
"measured_at",
|
|
32667
|
+
"stage"
|
|
32668
|
+
],
|
|
32669
|
+
"title": "MeasuredValueOut",
|
|
32670
|
+
"description": "The last reading of one parameter, as the master's screen shows it."
|
|
32671
|
+
},
|
|
31140
32672
|
"MeasurementAddIn": {
|
|
31141
32673
|
"properties": {
|
|
31142
32674
|
"measured_at": {
|
|
@@ -31327,6 +32859,75 @@
|
|
|
31327
32859
|
"title": "MeasurementValueIn",
|
|
31328
32860
|
"description": "One number the terminal took. Only the code and the value travel: norms,\nunit and name are snapshot from the part type's passport form server-side,\nso a kiosk with a stale cache cannot record a norm nobody agreed to."
|
|
31329
32861
|
},
|
|
32862
|
+
"MeasuringOrderIn": {
|
|
32863
|
+
"properties": {
|
|
32864
|
+
"event_at": {
|
|
32865
|
+
"type": "string",
|
|
32866
|
+
"format": "date-time",
|
|
32867
|
+
"title": "Event At"
|
|
32868
|
+
},
|
|
32869
|
+
"client_event_uuid": {
|
|
32870
|
+
"type": "string",
|
|
32871
|
+
"format": "uuid",
|
|
32872
|
+
"title": "Client Event Uuid"
|
|
32873
|
+
},
|
|
32874
|
+
"terminal_id": {
|
|
32875
|
+
"anyOf": [
|
|
32876
|
+
{
|
|
32877
|
+
"type": "string",
|
|
32878
|
+
"format": "uuid"
|
|
32879
|
+
},
|
|
32880
|
+
{
|
|
32881
|
+
"type": "null"
|
|
32882
|
+
}
|
|
32883
|
+
],
|
|
32884
|
+
"title": "Terminal Id"
|
|
32885
|
+
},
|
|
32886
|
+
"locomotive_visit_id": {
|
|
32887
|
+
"anyOf": [
|
|
32888
|
+
{
|
|
32889
|
+
"type": "string",
|
|
32890
|
+
"format": "uuid"
|
|
32891
|
+
},
|
|
32892
|
+
{
|
|
32893
|
+
"type": "null"
|
|
32894
|
+
}
|
|
32895
|
+
],
|
|
32896
|
+
"title": "Locomotive Visit Id"
|
|
32897
|
+
},
|
|
32898
|
+
"locomotive_id": {
|
|
32899
|
+
"anyOf": [
|
|
32900
|
+
{
|
|
32901
|
+
"type": "string",
|
|
32902
|
+
"format": "uuid"
|
|
32903
|
+
},
|
|
32904
|
+
{
|
|
32905
|
+
"type": "null"
|
|
32906
|
+
}
|
|
32907
|
+
],
|
|
32908
|
+
"title": "Locomotive Id"
|
|
32909
|
+
},
|
|
32910
|
+
"repair_type_code": {
|
|
32911
|
+
"anyOf": [
|
|
32912
|
+
{
|
|
32913
|
+
"type": "string"
|
|
32914
|
+
},
|
|
32915
|
+
{
|
|
32916
|
+
"type": "null"
|
|
32917
|
+
}
|
|
32918
|
+
],
|
|
32919
|
+
"title": "Repair Type Code"
|
|
32920
|
+
}
|
|
32921
|
+
},
|
|
32922
|
+
"additionalProperties": false,
|
|
32923
|
+
"type": "object",
|
|
32924
|
+
"required": [
|
|
32925
|
+
"event_at",
|
|
32926
|
+
"client_event_uuid"
|
|
32927
|
+
],
|
|
32928
|
+
"title": "MeasuringOrderIn",
|
|
32929
|
+
"description": "Open (or re-fetch) the measuring order of one locomotive visit.\n\nThe visit may be named directly, or by the machine the terminal stands at.\nThe second shape exists because nothing in the depot opens a visit today\n(TZ 9.2): the man taps «tekshirish» on the locomotive screen, names what it\ncame in for, and the visit is born there — otherwise the button is dead\nuntil somebody remembers to enter the visit at a desk."
|
|
32930
|
+
},
|
|
31330
32931
|
"MemberCloseIn": {
|
|
31331
32932
|
"properties": {
|
|
31332
32933
|
"valid_to": {
|
|
@@ -31588,6 +33189,51 @@
|
|
|
31588
33189
|
],
|
|
31589
33190
|
"title": "MoveCommand"
|
|
31590
33191
|
},
|
|
33192
|
+
"NavCounters": {
|
|
33193
|
+
"properties": {
|
|
33194
|
+
"orders_overdue": {
|
|
33195
|
+
"anyOf": [
|
|
33196
|
+
{
|
|
33197
|
+
"type": "integer"
|
|
33198
|
+
},
|
|
33199
|
+
{
|
|
33200
|
+
"type": "null"
|
|
33201
|
+
}
|
|
33202
|
+
],
|
|
33203
|
+
"title": "Orders Overdue"
|
|
33204
|
+
},
|
|
33205
|
+
"disposition": {
|
|
33206
|
+
"anyOf": [
|
|
33207
|
+
{
|
|
33208
|
+
"type": "integer"
|
|
33209
|
+
},
|
|
33210
|
+
{
|
|
33211
|
+
"type": "null"
|
|
33212
|
+
}
|
|
33213
|
+
],
|
|
33214
|
+
"title": "Disposition"
|
|
33215
|
+
},
|
|
33216
|
+
"inventory_open": {
|
|
33217
|
+
"anyOf": [
|
|
33218
|
+
{
|
|
33219
|
+
"type": "integer"
|
|
33220
|
+
},
|
|
33221
|
+
{
|
|
33222
|
+
"type": "null"
|
|
33223
|
+
}
|
|
33224
|
+
],
|
|
33225
|
+
"title": "Inventory Open"
|
|
33226
|
+
}
|
|
33227
|
+
},
|
|
33228
|
+
"type": "object",
|
|
33229
|
+
"required": [
|
|
33230
|
+
"orders_overdue",
|
|
33231
|
+
"disposition",
|
|
33232
|
+
"inventory_open"
|
|
33233
|
+
],
|
|
33234
|
+
"title": "NavCounters",
|
|
33235
|
+
"description": "What waits behind each menu line. None = the caller may not open it."
|
|
33236
|
+
},
|
|
31591
33237
|
"NodeOut": {
|
|
31592
33238
|
"properties": {
|
|
31593
33239
|
"key": {
|
|
@@ -37477,6 +39123,9 @@
|
|
|
37477
39123
|
{
|
|
37478
39124
|
"type": "string",
|
|
37479
39125
|
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
|
|
39126
|
+
},
|
|
39127
|
+
{
|
|
39128
|
+
"type": "string"
|
|
37480
39129
|
}
|
|
37481
39130
|
],
|
|
37482
39131
|
"title": "Value"
|
|
@@ -37516,7 +39165,7 @@
|
|
|
37516
39165
|
"value"
|
|
37517
39166
|
],
|
|
37518
39167
|
"title": "RuleCondition",
|
|
37519
|
-
"description": "One comparison. `param` is a nomenclature_fields.code; for a pair field\n`side` says which wheel is asked (any = either, both = both)
|
|
39168
|
+
"description": "One comparison. `param` is a nomenclature_fields.code; for a pair field\n`side` says which wheel is asked (any = either, both = both).\n\n`value` is a number OR one answer of a select field: the regulation picks its\nnumber by a CLASS («elektrovoz», «to'liq ko'rik»), so a threshold that is not\na number is a class name and the only comparison it accepts is `=`."
|
|
37520
39169
|
},
|
|
37521
39170
|
"RuleCondition-Output": {
|
|
37522
39171
|
"properties": {
|
|
@@ -37539,8 +39188,15 @@
|
|
|
37539
39188
|
"title": "Op"
|
|
37540
39189
|
},
|
|
37541
39190
|
"value": {
|
|
37542
|
-
"
|
|
37543
|
-
|
|
39191
|
+
"anyOf": [
|
|
39192
|
+
{
|
|
39193
|
+
"type": "string",
|
|
39194
|
+
"pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
|
|
39195
|
+
},
|
|
39196
|
+
{
|
|
39197
|
+
"type": "string"
|
|
39198
|
+
}
|
|
39199
|
+
],
|
|
37544
39200
|
"title": "Value"
|
|
37545
39201
|
},
|
|
37546
39202
|
"value2": {
|
|
@@ -37575,7 +39231,7 @@
|
|
|
37575
39231
|
"value"
|
|
37576
39232
|
],
|
|
37577
39233
|
"title": "RuleCondition",
|
|
37578
|
-
"description": "One comparison. `param` is a nomenclature_fields.code; for a pair field\n`side` says which wheel is asked (any = either, both = both)
|
|
39234
|
+
"description": "One comparison. `param` is a nomenclature_fields.code; for a pair field\n`side` says which wheel is asked (any = either, both = both).\n\n`value` is a number OR one answer of a select field: the regulation picks its\nnumber by a CLASS («elektrovoz», «to'liq ko'rik»), so a threshold that is not\na number is a class name and the only comparison it accepts is `=`."
|
|
37579
39235
|
},
|
|
37580
39236
|
"RuleHitsReport": {
|
|
37581
39237
|
"properties": {
|
|
@@ -39740,6 +41396,201 @@
|
|
|
39740
41396
|
"title": "StockReceiveBatchIn",
|
|
39741
41397
|
"description": "POST /items/stock-receive/batch (B18): a delivery booked into a room.\n\nDeliberately NOT a locomotive destination: a part going onto a machine is\n«Ro'yxatga olish» and writes FIELD_REGISTER/INSTALL. Two acts, two events,\none batch mechanism underneath.\n\n`condition` is chosen once for the whole pass — a delivery arrives in one\nstate, and asking per part would cost the operator a tap for nothing. The\npassport still rides per entry."
|
|
39742
41398
|
},
|
|
41399
|
+
"StoreInCommand": {
|
|
41400
|
+
"properties": {
|
|
41401
|
+
"item_id": {
|
|
41402
|
+
"type": "string",
|
|
41403
|
+
"format": "uuid",
|
|
41404
|
+
"title": "Item Id"
|
|
41405
|
+
},
|
|
41406
|
+
"event_at": {
|
|
41407
|
+
"type": "string",
|
|
41408
|
+
"format": "date-time",
|
|
41409
|
+
"title": "Event At"
|
|
41410
|
+
},
|
|
41411
|
+
"client_event_uuid": {
|
|
41412
|
+
"type": "string",
|
|
41413
|
+
"format": "uuid",
|
|
41414
|
+
"title": "Client Event Uuid"
|
|
41415
|
+
},
|
|
41416
|
+
"to_location_id": {
|
|
41417
|
+
"anyOf": [
|
|
41418
|
+
{
|
|
41419
|
+
"type": "string",
|
|
41420
|
+
"format": "uuid"
|
|
41421
|
+
},
|
|
41422
|
+
{
|
|
41423
|
+
"type": "null"
|
|
41424
|
+
}
|
|
41425
|
+
],
|
|
41426
|
+
"title": "To Location Id"
|
|
41427
|
+
},
|
|
41428
|
+
"to_locomotive_id": {
|
|
41429
|
+
"anyOf": [
|
|
41430
|
+
{
|
|
41431
|
+
"type": "string",
|
|
41432
|
+
"format": "uuid"
|
|
41433
|
+
},
|
|
41434
|
+
{
|
|
41435
|
+
"type": "null"
|
|
41436
|
+
}
|
|
41437
|
+
],
|
|
41438
|
+
"title": "To Locomotive Id"
|
|
41439
|
+
},
|
|
41440
|
+
"to_holder_person_id": {
|
|
41441
|
+
"anyOf": [
|
|
41442
|
+
{
|
|
41443
|
+
"type": "string",
|
|
41444
|
+
"format": "uuid"
|
|
41445
|
+
},
|
|
41446
|
+
{
|
|
41447
|
+
"type": "null"
|
|
41448
|
+
}
|
|
41449
|
+
],
|
|
41450
|
+
"title": "To Holder Person Id"
|
|
41451
|
+
},
|
|
41452
|
+
"to_parent_item_id": {
|
|
41453
|
+
"anyOf": [
|
|
41454
|
+
{
|
|
41455
|
+
"type": "string",
|
|
41456
|
+
"format": "uuid"
|
|
41457
|
+
},
|
|
41458
|
+
{
|
|
41459
|
+
"type": "null"
|
|
41460
|
+
}
|
|
41461
|
+
],
|
|
41462
|
+
"title": "To Parent Item Id"
|
|
41463
|
+
},
|
|
41464
|
+
"counterparty_person_id": {
|
|
41465
|
+
"anyOf": [
|
|
41466
|
+
{
|
|
41467
|
+
"type": "string",
|
|
41468
|
+
"format": "uuid"
|
|
41469
|
+
},
|
|
41470
|
+
{
|
|
41471
|
+
"type": "null"
|
|
41472
|
+
}
|
|
41473
|
+
],
|
|
41474
|
+
"title": "Counterparty Person Id"
|
|
41475
|
+
},
|
|
41476
|
+
"terminal_id": {
|
|
41477
|
+
"anyOf": [
|
|
41478
|
+
{
|
|
41479
|
+
"type": "string",
|
|
41480
|
+
"format": "uuid"
|
|
41481
|
+
},
|
|
41482
|
+
{
|
|
41483
|
+
"type": "null"
|
|
41484
|
+
}
|
|
41485
|
+
],
|
|
41486
|
+
"title": "Terminal Id"
|
|
41487
|
+
},
|
|
41488
|
+
"shift_instance_id": {
|
|
41489
|
+
"anyOf": [
|
|
41490
|
+
{
|
|
41491
|
+
"type": "string",
|
|
41492
|
+
"format": "uuid"
|
|
41493
|
+
},
|
|
41494
|
+
{
|
|
41495
|
+
"type": "null"
|
|
41496
|
+
}
|
|
41497
|
+
],
|
|
41498
|
+
"title": "Shift Instance Id"
|
|
41499
|
+
},
|
|
41500
|
+
"locomotive_visit_id": {
|
|
41501
|
+
"anyOf": [
|
|
41502
|
+
{
|
|
41503
|
+
"type": "string",
|
|
41504
|
+
"format": "uuid"
|
|
41505
|
+
},
|
|
41506
|
+
{
|
|
41507
|
+
"type": "null"
|
|
41508
|
+
}
|
|
41509
|
+
],
|
|
41510
|
+
"title": "Locomotive Visit Id"
|
|
41511
|
+
},
|
|
41512
|
+
"work_order_id": {
|
|
41513
|
+
"anyOf": [
|
|
41514
|
+
{
|
|
41515
|
+
"type": "string",
|
|
41516
|
+
"format": "uuid"
|
|
41517
|
+
},
|
|
41518
|
+
{
|
|
41519
|
+
"type": "null"
|
|
41520
|
+
}
|
|
41521
|
+
],
|
|
41522
|
+
"title": "Work Order Id"
|
|
41523
|
+
},
|
|
41524
|
+
"task_id": {
|
|
41525
|
+
"anyOf": [
|
|
41526
|
+
{
|
|
41527
|
+
"type": "string",
|
|
41528
|
+
"format": "uuid"
|
|
41529
|
+
},
|
|
41530
|
+
{
|
|
41531
|
+
"type": "null"
|
|
41532
|
+
}
|
|
41533
|
+
],
|
|
41534
|
+
"title": "Task Id"
|
|
41535
|
+
},
|
|
41536
|
+
"defect_code": {
|
|
41537
|
+
"anyOf": [
|
|
41538
|
+
{
|
|
41539
|
+
"type": "string"
|
|
41540
|
+
},
|
|
41541
|
+
{
|
|
41542
|
+
"type": "null"
|
|
41543
|
+
}
|
|
41544
|
+
],
|
|
41545
|
+
"title": "Defect Code"
|
|
41546
|
+
},
|
|
41547
|
+
"comment": {
|
|
41548
|
+
"anyOf": [
|
|
41549
|
+
{
|
|
41550
|
+
"type": "string"
|
|
41551
|
+
},
|
|
41552
|
+
{
|
|
41553
|
+
"type": "null"
|
|
41554
|
+
}
|
|
41555
|
+
],
|
|
41556
|
+
"title": "Comment"
|
|
41557
|
+
},
|
|
41558
|
+
"payload": {
|
|
41559
|
+
"additionalProperties": true,
|
|
41560
|
+
"type": "object",
|
|
41561
|
+
"title": "Payload"
|
|
41562
|
+
},
|
|
41563
|
+
"is_offline": {
|
|
41564
|
+
"type": "boolean",
|
|
41565
|
+
"title": "Is Offline",
|
|
41566
|
+
"default": false
|
|
41567
|
+
},
|
|
41568
|
+
"event_type": {
|
|
41569
|
+
"type": "string",
|
|
41570
|
+
"const": "STORE_IN",
|
|
41571
|
+
"title": "Event Type"
|
|
41572
|
+
},
|
|
41573
|
+
"requested_status": {
|
|
41574
|
+
"type": "string",
|
|
41575
|
+
"enum": [
|
|
41576
|
+
"IN_STOCK_OK",
|
|
41577
|
+
"IN_STOCK_DEFECT"
|
|
41578
|
+
],
|
|
41579
|
+
"title": "Requested Status",
|
|
41580
|
+
"default": "IN_STOCK_DEFECT"
|
|
41581
|
+
}
|
|
41582
|
+
},
|
|
41583
|
+
"additionalProperties": false,
|
|
41584
|
+
"type": "object",
|
|
41585
|
+
"required": [
|
|
41586
|
+
"item_id",
|
|
41587
|
+
"event_at",
|
|
41588
|
+
"client_event_uuid",
|
|
41589
|
+
"event_type"
|
|
41590
|
+
],
|
|
41591
|
+
"title": "StoreInCommand",
|
|
41592
|
+
"description": "Storekeeper puts a part on a shelf and says WHICH shelf it belongs on.\n\nA part removed under a planned check has no defect; filing it as\nIN_STOCK_DEFECT made every stock report call serviceable parts defective.\nThe default keeps the old behaviour, so a silent client cannot promote one."
|
|
41593
|
+
},
|
|
39743
41594
|
"StornoCommand": {
|
|
39744
41595
|
"properties": {
|
|
39745
41596
|
"item_id": {
|
|
@@ -40177,10 +42028,110 @@
|
|
|
40177
42028
|
"type": "object",
|
|
40178
42029
|
"required": [
|
|
40179
42030
|
"event_at",
|
|
40180
|
-
"client_event_uuid"
|
|
42031
|
+
"client_event_uuid"
|
|
42032
|
+
],
|
|
42033
|
+
"title": "TaskActionIn",
|
|
42034
|
+
"description": "start/pause/resume/finish envelope; spent_minutes is now summed from the\njournal intervals by services.repair_tasks, not supplied by the client."
|
|
42035
|
+
},
|
|
42036
|
+
"TaskCosignIn": {
|
|
42037
|
+
"properties": {
|
|
42038
|
+
"event_at": {
|
|
42039
|
+
"type": "string",
|
|
42040
|
+
"format": "date-time",
|
|
42041
|
+
"title": "Event At"
|
|
42042
|
+
},
|
|
42043
|
+
"client_event_uuid": {
|
|
42044
|
+
"type": "string",
|
|
42045
|
+
"format": "uuid",
|
|
42046
|
+
"title": "Client Event Uuid"
|
|
42047
|
+
},
|
|
42048
|
+
"terminal_id": {
|
|
42049
|
+
"anyOf": [
|
|
42050
|
+
{
|
|
42051
|
+
"type": "string",
|
|
42052
|
+
"format": "uuid"
|
|
42053
|
+
},
|
|
42054
|
+
{
|
|
42055
|
+
"type": "null"
|
|
42056
|
+
}
|
|
42057
|
+
],
|
|
42058
|
+
"title": "Terminal Id"
|
|
42059
|
+
},
|
|
42060
|
+
"badge_uid": {
|
|
42061
|
+
"anyOf": [
|
|
42062
|
+
{
|
|
42063
|
+
"type": "string",
|
|
42064
|
+
"maxLength": 128,
|
|
42065
|
+
"minLength": 1
|
|
42066
|
+
},
|
|
42067
|
+
{
|
|
42068
|
+
"type": "null"
|
|
42069
|
+
}
|
|
42070
|
+
],
|
|
42071
|
+
"title": "Badge Uid"
|
|
42072
|
+
},
|
|
42073
|
+
"tab_no": {
|
|
42074
|
+
"anyOf": [
|
|
42075
|
+
{
|
|
42076
|
+
"type": "string",
|
|
42077
|
+
"maxLength": 32,
|
|
42078
|
+
"minLength": 1
|
|
42079
|
+
},
|
|
42080
|
+
{
|
|
42081
|
+
"type": "null"
|
|
42082
|
+
}
|
|
42083
|
+
],
|
|
42084
|
+
"title": "Tab No"
|
|
42085
|
+
},
|
|
42086
|
+
"pin": {
|
|
42087
|
+
"type": "string",
|
|
42088
|
+
"maxLength": 12,
|
|
42089
|
+
"minLength": 4,
|
|
42090
|
+
"title": "Pin"
|
|
42091
|
+
},
|
|
42092
|
+
"action": {
|
|
42093
|
+
"type": "string",
|
|
42094
|
+
"enum": [
|
|
42095
|
+
"start",
|
|
42096
|
+
"pause",
|
|
42097
|
+
"resume",
|
|
42098
|
+
"finish"
|
|
42099
|
+
],
|
|
42100
|
+
"title": "Action"
|
|
42101
|
+
},
|
|
42102
|
+
"result_note": {
|
|
42103
|
+
"anyOf": [
|
|
42104
|
+
{
|
|
42105
|
+
"type": "string"
|
|
42106
|
+
},
|
|
42107
|
+
{
|
|
42108
|
+
"type": "null"
|
|
42109
|
+
}
|
|
42110
|
+
],
|
|
42111
|
+
"title": "Result Note"
|
|
42112
|
+
},
|
|
42113
|
+
"comment": {
|
|
42114
|
+
"anyOf": [
|
|
42115
|
+
{
|
|
42116
|
+
"type": "string"
|
|
42117
|
+
},
|
|
42118
|
+
{
|
|
42119
|
+
"type": "null"
|
|
42120
|
+
}
|
|
42121
|
+
],
|
|
42122
|
+
"title": "Comment"
|
|
42123
|
+
}
|
|
42124
|
+
},
|
|
42125
|
+
"additionalProperties": false,
|
|
42126
|
+
"type": "object",
|
|
42127
|
+
"required": [
|
|
42128
|
+
"event_at",
|
|
42129
|
+
"client_event_uuid",
|
|
42130
|
+
"pin",
|
|
42131
|
+
"action"
|
|
40181
42132
|
],
|
|
40182
|
-
"title": "
|
|
40183
|
-
"description": "
|
|
42133
|
+
"title": "TaskCosignIn",
|
|
42134
|
+
"description": "B10: the fitter moves his operation with his own card on the master's\nscreen — the counterpart of WorkSignIn for REPAIR_START/PAUSE/RESUME/FINISH.\n\nIdentification follows the installation switch exactly as WorkSignIn does\n(badge_uid under RFID, tab_no under the TABEL pilot, PIN in both). No\nsignature is written: repair steps are routine events (TZ 8), the second\ncard is here only so the work is journalled under the man who does it."
|
|
40184
42135
|
},
|
|
40185
42136
|
"TaskIn": {
|
|
40186
42137
|
"properties": {
|
|
@@ -40878,6 +42829,193 @@
|
|
|
40878
42829
|
],
|
|
40879
42830
|
"title": "ValidationError"
|
|
40880
42831
|
},
|
|
42832
|
+
"VerdictIn": {
|
|
42833
|
+
"properties": {
|
|
42834
|
+
"event_at": {
|
|
42835
|
+
"type": "string",
|
|
42836
|
+
"format": "date-time",
|
|
42837
|
+
"title": "Event At"
|
|
42838
|
+
},
|
|
42839
|
+
"client_event_uuid": {
|
|
42840
|
+
"type": "string",
|
|
42841
|
+
"format": "uuid",
|
|
42842
|
+
"title": "Client Event Uuid"
|
|
42843
|
+
},
|
|
42844
|
+
"terminal_id": {
|
|
42845
|
+
"anyOf": [
|
|
42846
|
+
{
|
|
42847
|
+
"type": "string",
|
|
42848
|
+
"format": "uuid"
|
|
42849
|
+
},
|
|
42850
|
+
{
|
|
42851
|
+
"type": "null"
|
|
42852
|
+
}
|
|
42853
|
+
],
|
|
42854
|
+
"title": "Terminal Id"
|
|
42855
|
+
},
|
|
42856
|
+
"item_id": {
|
|
42857
|
+
"type": "string",
|
|
42858
|
+
"format": "uuid",
|
|
42859
|
+
"title": "Item Id"
|
|
42860
|
+
},
|
|
42861
|
+
"decision": {
|
|
42862
|
+
"type": "string",
|
|
42863
|
+
"enum": [
|
|
42864
|
+
"REPAIR",
|
|
42865
|
+
"NO_ACTION"
|
|
42866
|
+
],
|
|
42867
|
+
"title": "Decision"
|
|
42868
|
+
},
|
|
42869
|
+
"defect_code": {
|
|
42870
|
+
"anyOf": [
|
|
42871
|
+
{
|
|
42872
|
+
"type": "string"
|
|
42873
|
+
},
|
|
42874
|
+
{
|
|
42875
|
+
"type": "null"
|
|
42876
|
+
}
|
|
42877
|
+
],
|
|
42878
|
+
"title": "Defect Code"
|
|
42879
|
+
},
|
|
42880
|
+
"repair_type_code": {
|
|
42881
|
+
"anyOf": [
|
|
42882
|
+
{
|
|
42883
|
+
"type": "string"
|
|
42884
|
+
},
|
|
42885
|
+
{
|
|
42886
|
+
"type": "null"
|
|
42887
|
+
}
|
|
42888
|
+
],
|
|
42889
|
+
"title": "Repair Type Code"
|
|
42890
|
+
},
|
|
42891
|
+
"comment": {
|
|
42892
|
+
"anyOf": [
|
|
42893
|
+
{
|
|
42894
|
+
"type": "string"
|
|
42895
|
+
},
|
|
42896
|
+
{
|
|
42897
|
+
"type": "null"
|
|
42898
|
+
}
|
|
42899
|
+
],
|
|
42900
|
+
"title": "Comment"
|
|
42901
|
+
}
|
|
42902
|
+
},
|
|
42903
|
+
"additionalProperties": false,
|
|
42904
|
+
"type": "object",
|
|
42905
|
+
"required": [
|
|
42906
|
+
"event_at",
|
|
42907
|
+
"client_event_uuid",
|
|
42908
|
+
"item_id",
|
|
42909
|
+
"decision"
|
|
42910
|
+
],
|
|
42911
|
+
"title": "VerdictIn",
|
|
42912
|
+
"description": "The master's decision on ONE measured part: repair it, or leave it.\n\nREPAIR opens the removal order right there — with the reason he signed for,\na defect or a scheduled check, exactly one of the two like every other\norder. NO_ACTION moves nothing: it is a signed note on the part saying the\nnumbers were seen and found good enough."
|
|
42913
|
+
},
|
|
42914
|
+
"VerdictLine": {
|
|
42915
|
+
"properties": {
|
|
42916
|
+
"item_id": {
|
|
42917
|
+
"type": "string",
|
|
42918
|
+
"format": "uuid",
|
|
42919
|
+
"title": "Item Id"
|
|
42920
|
+
},
|
|
42921
|
+
"decision": {
|
|
42922
|
+
"type": "string",
|
|
42923
|
+
"enum": [
|
|
42924
|
+
"REPAIR",
|
|
42925
|
+
"NO_ACTION"
|
|
42926
|
+
],
|
|
42927
|
+
"title": "Decision"
|
|
42928
|
+
},
|
|
42929
|
+
"defect_code": {
|
|
42930
|
+
"anyOf": [
|
|
42931
|
+
{
|
|
42932
|
+
"type": "string"
|
|
42933
|
+
},
|
|
42934
|
+
{
|
|
42935
|
+
"type": "null"
|
|
42936
|
+
}
|
|
42937
|
+
],
|
|
42938
|
+
"title": "Defect Code"
|
|
42939
|
+
},
|
|
42940
|
+
"repair_type_code": {
|
|
42941
|
+
"anyOf": [
|
|
42942
|
+
{
|
|
42943
|
+
"type": "string"
|
|
42944
|
+
},
|
|
42945
|
+
{
|
|
42946
|
+
"type": "null"
|
|
42947
|
+
}
|
|
42948
|
+
],
|
|
42949
|
+
"title": "Repair Type Code"
|
|
42950
|
+
},
|
|
42951
|
+
"capability_code": {
|
|
42952
|
+
"anyOf": [
|
|
42953
|
+
{
|
|
42954
|
+
"type": "string"
|
|
42955
|
+
},
|
|
42956
|
+
{
|
|
42957
|
+
"type": "null"
|
|
42958
|
+
}
|
|
42959
|
+
],
|
|
42960
|
+
"title": "Capability Code"
|
|
42961
|
+
},
|
|
42962
|
+
"comment": {
|
|
42963
|
+
"anyOf": [
|
|
42964
|
+
{
|
|
42965
|
+
"type": "string"
|
|
42966
|
+
},
|
|
42967
|
+
{
|
|
42968
|
+
"type": "null"
|
|
42969
|
+
}
|
|
42970
|
+
],
|
|
42971
|
+
"title": "Comment"
|
|
42972
|
+
}
|
|
42973
|
+
},
|
|
42974
|
+
"additionalProperties": false,
|
|
42975
|
+
"type": "object",
|
|
42976
|
+
"required": [
|
|
42977
|
+
"item_id",
|
|
42978
|
+
"decision"
|
|
42979
|
+
],
|
|
42980
|
+
"title": "VerdictLine",
|
|
42981
|
+
"description": "One part's line in an inspection pass — the same decision as VerdictIn,\nminus the envelope, plus the operation the order should carry.\n\n`capability_code` is how «send it for investigation» is said: there is no\nthird reason_kind and there must not be one (a pseudo-defect «inspection»\nwould head the Pareto forever), so the order opens on its real reason and\ncarries e.g. дефектоскопия as its operation."
|
|
42982
|
+
},
|
|
42983
|
+
"VerdictOut": {
|
|
42984
|
+
"properties": {
|
|
42985
|
+
"decision": {
|
|
42986
|
+
"type": "string",
|
|
42987
|
+
"title": "Decision"
|
|
42988
|
+
},
|
|
42989
|
+
"work_order_id": {
|
|
42990
|
+
"anyOf": [
|
|
42991
|
+
{
|
|
42992
|
+
"type": "string",
|
|
42993
|
+
"format": "uuid"
|
|
42994
|
+
},
|
|
42995
|
+
{
|
|
42996
|
+
"type": "null"
|
|
42997
|
+
}
|
|
42998
|
+
],
|
|
42999
|
+
"title": "Work Order Id"
|
|
43000
|
+
},
|
|
43001
|
+
"work_order_number": {
|
|
43002
|
+
"anyOf": [
|
|
43003
|
+
{
|
|
43004
|
+
"type": "string"
|
|
43005
|
+
},
|
|
43006
|
+
{
|
|
43007
|
+
"type": "null"
|
|
43008
|
+
}
|
|
43009
|
+
],
|
|
43010
|
+
"title": "Work Order Number"
|
|
43011
|
+
}
|
|
43012
|
+
},
|
|
43013
|
+
"type": "object",
|
|
43014
|
+
"required": [
|
|
43015
|
+
"decision"
|
|
43016
|
+
],
|
|
43017
|
+
"title": "VerdictOut"
|
|
43018
|
+
},
|
|
40881
43019
|
"VisitOut": {
|
|
40882
43020
|
"properties": {
|
|
40883
43021
|
"id": {
|
|
@@ -41178,6 +43316,17 @@
|
|
|
41178
43316
|
],
|
|
41179
43317
|
"title": "Closed At"
|
|
41180
43318
|
},
|
|
43319
|
+
"item_status": {
|
|
43320
|
+
"anyOf": [
|
|
43321
|
+
{
|
|
43322
|
+
"type": "string"
|
|
43323
|
+
},
|
|
43324
|
+
{
|
|
43325
|
+
"type": "null"
|
|
43326
|
+
}
|
|
43327
|
+
],
|
|
43328
|
+
"title": "Item Status"
|
|
43329
|
+
},
|
|
41181
43330
|
"tasks": {
|
|
41182
43331
|
"items": {
|
|
41183
43332
|
"$ref": "#/components/schemas/TaskOut"
|
|
@@ -41651,6 +43800,17 @@
|
|
|
41651
43800
|
}
|
|
41652
43801
|
],
|
|
41653
43802
|
"title": "Closed At"
|
|
43803
|
+
},
|
|
43804
|
+
"item_status": {
|
|
43805
|
+
"anyOf": [
|
|
43806
|
+
{
|
|
43807
|
+
"type": "string"
|
|
43808
|
+
},
|
|
43809
|
+
{
|
|
43810
|
+
"type": "null"
|
|
43811
|
+
}
|
|
43812
|
+
],
|
|
43813
|
+
"title": "Item Status"
|
|
41654
43814
|
}
|
|
41655
43815
|
},
|
|
41656
43816
|
"type": "object",
|