forked from before-interop/malfacon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
1248 lines (1162 loc) · 46.1 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: Malfacon API
version: 2.0.0
license:
name: Apache 2.0
identifier: Apache-2.0
description: |
Cet outil permet la déclaration et le traitement d'une malfaçon grâce à des flux normalisés.
## Dépendances
Cette API est basé sur les APIs outils du [projet common](https://github.com/before-interop/common):
* [TroubleTicket](https://before-interop.github.io/common/?urls.primaryName=TroubleTicket)
* [Attachment](https://before-interop.github.io/common/?urls.primaryName=Attachment)
* [Note](https://ggrebert.github.io/before-interop-common/?urls.primaryName=Note)
* [Event](https://before-interop.github.io/common/?urls.primaryName=Event)
## Pagination
Les listes de ressources sont paginées.
* La valeur par défaut d'une page est `limit=50` et `offset=0`.
* La valeur maximale de `limit` est `100`.
servers:
- url: "{protocol}://{host}:{port}{basePath}"
variables:
protocol:
enum:
- https
- http
default: https
host:
default: localhost
port:
default: "8080"
basePath:
default: /api
tags:
- name: TroubleTicket
description: TroubleTicket management
- name: Note
description: Note management
- name: Attachment
description: Attachment management
- name: Event
description: Event management
- name: OI
description: OI endpoints
- name: OC
description: OC endpoints
paths:
/malfacon:
get:
tags:
- TroubleTicket
- OI
summary: Get all trouble tickets
description: Get all trouble tickets
operationId: getTroubleTickets
parameters: &searchAndPaginateParameters
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/parameters/limit
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/parameters/offset
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/parameters/sort
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/fields.openapi.yaml#/components/parameters/fields
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The list of trouble tickets
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/MalfaconAny"
"400": &response400
description: |
**Bad Request**
This error occurs when a query parameter or the body is invalid.
* The `reason` field of the error response can contain information about the error.
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/Error-400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- TroubleTicket
- OI
summary: Count the number of trouble tickets
description: Count the number of trouble tickets matching the given criteria.
operationId: countTroubleTickets
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of trouble tickets.
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400": *response400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/schemas/Error.openapi.yaml#/components/schemas/Error
post:
tags:
- TroubleTicket
- OI
summary: Create a trouble ticket
description: Create a trouble ticket
operationId: createTroubleTicket
requestBody:
description: The malfacon to create
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconOne"
responses:
"201": &troubleTicket201
description: The created malfacon
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconOne"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/update.openapi.yaml#/components/headers/ETag
"400": *response400
"403": &response403
description: |
**Forbidden**
Le serveur a compris la requête, mais refuse de l'exécuter car le client n'a pas respecté le processus de création ou de mise à jour.
Exemple: passage du status `ACKNOWLEDGED` à `RESOLVED` sans passer par le status `IN_PROGRESS`.
* Le champ `reason` de la réponse d'erreur doit contenir la liste des tickets en conflit séparés par des virgules.
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/schemas/Error.openapi.yaml#/components/schemas/Error
/malfacon/{malfaconId}:
parameters:
- $ref: "#/components/parameters/malfaconId"
get:
tags:
- TroubleTicket
- OI
summary: Get a trouble ticket
description: Get a trouble ticket
operationId: getTroubleTicket
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/fields.openapi.yaml#/components/parameters/fields
responses:
"200":
description: The malfacon
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconOne"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/update.openapi.yaml#/components/headers/ETag
"404": &response404
description: |
**Not Found**
This error occurs when the resource does not exist or is not visible by the user.
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/Error-404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/schemas/Error.openapi.yaml#/components/schemas/Error
put:
tags:
- TroubleTicket
- OI
summary: Update a trouble ticket
description: Update a trouble ticket
operationId: updateTroubleTicket
requestBody:
description: The trouble ticket to update
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconOne"
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/update.openapi.yaml#/components/parameters/If-Match
responses:
"200": *troubleTicket201
"400": *response400
"403": *response403
"404": *response404
"412":
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/Error-412
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
patch:
tags:
- TroubleTicket
- OI
summary: Partially update a trouble ticket
description: Partially update a trouble ticket
operationId: patchTroubleTicket
requestBody:
description: The data to update
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/MalfaconOne"
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/update.openapi.yaml#/components/parameters/If-Match
responses:
"200": *troubleTicket201
"400": *response400
"403": *response403
"404": *response404
"412":
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/Error-412
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/note:
parameters:
- $ref: "#/components/parameters/malfaconId"
get:
tags:
- Note
- OI
summary: Get all notes of a trouble ticket
description: Get all notes of a trouble ticket
parameters: *searchAndPaginateParameters
responses:
"200":
description: The list of notes
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Note"
"400": *response400
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- Note
- OI
summary: Count the number of notes of a trouble ticket
description: Count the number of notes of a trouble ticket matching the given criteria.
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of notes
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400": *response400
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- Note
- OI
summary: Create a note for a trouble ticket
description: Create a note for a trouble ticket
requestBody:
description: The note to create
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Note"
responses:
"201":
description: The created note
content:
application/json:
schema:
$ref: "#/components/schemas/Note"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/update.openapi.yaml#/components/headers/ETag
"400": *response400
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/attachment:
parameters:
- $ref: "#/components/parameters/malfaconId"
get:
tags:
- Attachment
- OI
summary: List attachments
description: Get all attachments of a trouble ticket
operationId: getAttachments
parameters: *searchAndPaginateParameters
responses:
"200":
description: The list of attachments
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Attachment"
"400": *response400
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- Attachment
- OI
summary: Get the number of attachments
description: This method returns the number of attachments matching the criteria.
operationId: countAttachments
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of attachments
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400": *response400
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- Attachment
- OI
summary: Create a attachment
description: This method allows to create a attachment.
operationId: createAttachment
requestBody:
description: The attachment to create
required: true
content:
multipart/form-data:
schema:
$ref: "#/components/schemas/AttachmentFormData"
responses:
"201":
description: The created attachment
content:
application/json:
schema:
$ref: "#/components/schemas/Attachment"
headers:
ETag:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/update.openapi.yaml#/components/headers/ETag
"400": *response400
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
/malfacon/{malfaconId}/attachment/{attachmentId}/content:
parameters:
- $ref: "#/components/parameters/malfaconId"
- $ref: "#/components/parameters/attachmentId"
get:
tags:
- Attachment
- OI
summary: Download the content of an attachment
description: This method allows to download the content of an attachment.
operationId: downloadAttachment
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/tools/attachment/attachment.openapi.yaml#/components/parameters/If-Match
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/tools/attachment/attachment.openapi.yaml#/components/parameters/If-None-Match
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/tools/attachment/attachment.openapi.yaml#/components/parameters/If-Modified-Since
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/tools/attachment/attachment.openapi.yaml#/components/parameters/If-Unmodified-Since
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/tools/attachment/attachment.openapi.yaml#/components/parameters/Range
responses:
"200":
description: The content of the attachment
content:
application/octet-stream: {}
"404": *response404
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
"412":
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/Error-412
/malfacon/event:
get:
tags:
- Event
- OI
summary: Get all events of all trouble tickets
description: Get all events of all trouble tickets
parameters: *searchAndPaginateParameters
responses:
"200":
description: The list of events
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
X-Result-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Result-Count
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Event"
"400": *response400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
head:
tags:
- Event
- OI
summary: Count the number of events of all trouble tickets
description: Count the number of events of all trouble tickets matching the given criteria.
parameters:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/filters.openapi.yaml#/components/parameters/filters
responses:
"200":
description: The number of events
headers:
X-Total-Count:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/utils/paginate.openapi.yaml#/components/headers/X-Total-Count
"400": *response400
default:
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/responses/errors.openapi.yaml#/components/responses/default
post:
tags:
- Event
- OC
summary: Receive an event for a trouble ticket
description: Receive an event for a trouble ticket
requestBody:
description: The event to receive
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Event"
responses:
default:
description: |
L'événement a été reçu avec succès.
La réponse n'a pas l'obligation de contenir un body.
Si l'OC retourne un body, celui-ci pourra être enregistré dans le journal de l'OI.
4xx:
description: |
Erreur lors de la réception de l'événement.
L'OI ne doit pas retransmettre l'événement à l'OC.
La réponse n'a pas l'obligation de contenir un body.
Si l'OC retourne un body, celui-ci pourra être enregistré dans le journal de l'OI.
5xx:
description: |
Erreur lors de la réception de l'événement.
L'OI peut retransmettre l'événement à l'OC.
La réponse n'a pas l'obligation de contenir un body.
Si l'OC retourne un body, celui-ci pourra être enregistré dans le journal de l'OI.
components:
schemas:
MalfaconAny:
anyOf:
- $ref: "#/components/schemas/MalfaconOiPm"
- $ref: "#/components/schemas/MalfaconOiAmontPm"
- $ref: "#/components/schemas/MalfaconOiPbo"
- $ref: "#/components/schemas/MalfaconOiCcf"
- $ref: "#/components/schemas/MalfaconOcPm"
- $ref: "#/components/schemas/MalfaconOcAmontPm"
- $ref: "#/components/schemas/MalfaconOcPmPbo"
- $ref: "#/components/schemas/MalfaconOcPbo"
- $ref: "#/components/schemas/MalfaconOcCcf"
MalfaconOne:
oneOf:
- $ref: "#/components/schemas/MalfaconOiPm"
- $ref: "#/components/schemas/MalfaconOiAmontPm"
- $ref: "#/components/schemas/MalfaconOiPbo"
- $ref: "#/components/schemas/MalfaconOiCcf"
- $ref: "#/components/schemas/MalfaconOcPm"
- $ref: "#/components/schemas/MalfaconOcAmontPm"
- $ref: "#/components/schemas/MalfaconOcPmPbo"
- $ref: "#/components/schemas/MalfaconOcPbo"
- $ref: "#/components/schemas/MalfaconOcCcf"
MalfaconBase:
allOf:
- $ref: https://raw.githubusercontent.com/before-interop/common/v1/common/schemas/TroubleTicket.openapi.yaml#/components/schemas/TroubleTicket
required:
- code_oi
- code_oc
- "@type"
- severity
- quantity
- localization
- localizationDetails
- codeFault
properties:
code_oi:
description: Code ARCEP de l'OI.
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/schemas/Interop.openapi.yaml#/components/schemas/CodeOperateurArcep
code_oc:
description: Code ARCEP de l'OC.
$ref: https://raw.githubusercontent.com/before-interop/common/v1/common/schemas/Interop.openapi.yaml#/components/schemas/CodeOperateurArcep
externalId:
description: Référence du ticket créé dans le système de l'OC
codeFault:
type: string
description: |
Code du défaut de la malfacon.
Liste des valeurs possibles:
| Code | valeur |
| ---- | -------------------------------------------------------------------------------------- |
| FD01 | absence de gaine demi-lune pour protéger câble PBO aérien, poteau ou façade |
| FD02 | absence protection obligatoire gaine fendue, demi-lune, … |
| FD03 | bilan optique non conforme aux STAS |
| FD04 | boîtier PBO non/mal étiqueté hors échec production |
| FD05 | boîtier PBO non/mal refermé, non/mal refixé,… |
| FD06 | bouchon absent |
| FD07 | brassage existant encombrant le cheminement |
| FD08 | brassage OC non conforme |
| FD09 | caractéristiques tiroir non conforme aux STAS |
| FD10 | caractéristiques non conformes aux STAS |
| FD11 | cheminement câble OC/OI non conforme |
| FD12 | cheminement non conforme aux STAS |
| FD13 | cheminement non conforme surplomb domaine privé, … |
| FD14 | cordon non conforme aux STAS caractéristiques techniques |
| FD15 | dégradation |
| FD16 | dégradation du support PBO poteau |
| FD17 | dégradation majeure |
| FD18 | dégradation porte |
| FD19 | dégradation serrure |
| FD20 | dégradation tambours |
| FD21 | dégradation tiroirs cassés |
| FD22 | environnement nettoyage déchets, fermeture |
| FD23 | épissure non conforme dénudage, protection de soudure |
| FD24 | étiquetage du PM non conforme hors échec de production |
| FD25 | étiquetage non conforme aux STAS |
| FD26 | implantation ou étiquetage non conforme aux STAS |
| FD27 | implantation tiroir OC/OI ou étiquetage non conforme |
| FD28 | localisation non conforme aux données OI commande accès hors échec production |
| FD29 | lovage fibre non conforme aux STAS |
| FD30 | lovage câble en chambre ou poteau non conforme aux STAS |
| FD31 | mauvaise fixation |
| FD32 | mauvaise fixation ou fermeture dégradée |
| FD33 | modularité du câble CCF non conforme |
| FD34 | nettoyage chantier |
| FD35 | entrée de cable PBO non conforme aux STAS |
| FD36 | non respect Route Optique communiquée |
| FD37 | non utilisable pas d'autorisation de cheminement |
| FD38 | non utilisable risque de surplomb, sécurisé |
| FD39 | passage de câble non conforme |
| FD40 | pose non conforme implantation ou fixation |
| FD41 | présence de cordons à zéro non retirés |
| FD42 | présence de cordons non conformes |
| FD43 | PTO mal ou non étiquetée |
| FD44 | raccordement de site non déployé dans IPE |
| FD45 | rebouchage non effectué |
| FD46 | reprise sauvage Route Optique par casse soudure au PBO |
| FD47 | taille SMOOVE non conforme |
| FD48 | tiroir OI dégradé |
| FD49 | type de pose/fixation non conforme aux préconisations OI |
| FD50 | dégradation autres |
| FD51 | entrée cable pbo non conforme aux STAS |
quantity:
description: |
The volumetry of the malfacon.
type: integer
example: 1
recoveryQuantity:
description: |
Ce champs indique la quantité de malfaçon reprise.
C'est un entier qui doit être renseignée au moment du passage en Resolved, par l'OC ou par l'OI suivant le cas de gestion,
et donc la valeur doit être >= au champs quantity renseigné à l'initialisation du ticket.
type: integer
Localization:
description: |
Ce champs permet de connaitre la localisation de la malfaçon
valeur possible :
| localisation | |
| AMONT_PM |
| CCF |
| PBO |
| PM |
| PM_PBO |
readOnly: true
localizationDetails:
type: string
description: |
Détails de localisation de la malfacon
Liste des valeurs possibles:
| Code | valeur |
| ---- | -------------------------------------------------------------------------------------- |
| LD01 | AMONT_PM_INSTALLATION |
| LD02 | ARMOIRE |
| LD03 | BOITIER |
| LD04 | BRASSAGE_OC |
| LD05 | CABLE_CARACTERISTIQUE |
| LD06 | CABLE_INSTALLATION |
| LD07 | CASSETTE |
| LD08 | COLLECTE_LIEN_PM_PRDM |
| LD09 | CONNECTEUR_TIROIR_ZAPM |
| LD10 | ENTREE_DE_CABLE_PBO |
| LD11 | PBO_ENVIRONNEMENT |
| LD12 | PM_PBO_INSTALLATION |
| LD13 | PTO_CARACTERISTIQUE |
| LD14 | PTO_INSTALLATION |
| LD15 | ROUTE_OPTIQUE |
| LD16 | TIROIR_OC |
| LD17 | TIROIR_ZAPM |
| LD18 | ADDUCTION_OC |
"@type":
readOnly: false
"@baseType":
default: Malfacon
const: Malfacon
severity:
description: |
The severity of the malfacon
Allowed values are:
* `CRITICAL`
Si la malfaçon représente un danger grave est imminent pour les personnes,
l'OI se réserve le droit d'effectuer la reprise ou à minima sécurise les lieux
et demande à l'OC d'intervenir.
De son côté, l'OC se doit de signaler à l'OI toute malfaçon
représentant un danger grave et imminent pour les personnes.
* `MAJOR`
La malfaçon signifie une détérioration du site technique ou un risque d'intéruption
massive de service (dérangement collectif) ou un empêchement à produire
de nouveaux client (depuis le passage de commande jusqu'au raccordement).
Exemples:
* défaut d'étanchéité sur PB
* PM ouvert
* site insalubre
* brassage encombrant
* données de localisation erronées
* `MINOR`
Les autres non conformités à corriger.
enum:
- CRITICAL
- MAJOR
- MINOR
status:
description: |
Status de la malfacon.
![Malfacon status diagram](./statusOiOcImput.drawio.svg)
enum:
- ACKNOWLEDGED
- CANCELED
- CLOSED
- CREATING
- IN_PROGRESS
- PENDING
- REJECTED
- RESOLVED
default: CREATING
MalfaconOcBase:
allOf:
- $ref: "#/components/schemas/MalfaconBase"
required:
- statusChangeReason
properties:
statusChangeReason:
enum:
- ACKNOWLEDGED
- CLOSED
- CREATING
default: CREATING
MalfaconOiBase:
allOf:
- $ref: "#/components/schemas/MalfaconBase"
required:
- attributable
- ocNumber
- resolutionOwner
- statusChangeReason
properties:
attributable:
type: boolean
ocNumber:
description: |
Nombre d'OCs concernés par la malfaçon.
OcNumber doit être supérieur ou égal à 1 et obligatoire
type: integer
readOnly: true
minimum: 1
activationRate:
description: Le taux d'activation est un pourcentage représentant la part de lignes activées par l'OC sur l'élément de réseau (PM ou PBO).
type: number
minimum: 0
exclusiveMinimum: true
maximum: 100
readOnly: true
resolutionOwner:
type: string
readOnly: true
enum:
- OI
- OC
default: OC
statusChangeReason:
enum:
- ACKNOWLEDGED
- ATTRIBUTABLE_ACCEPTED
- CANCELED
- CONTESTATION_ACCEPTED
- CONTESTATION_DUPLICATE
- CONTESTATION_EQUIPMENT_ERROR
- CONTESTATION_NOT_ALLOWED
- CONTESTATION_OC_ERROR
- CONTESTATION_OI_RESPONSABILITY
- CONTESTATION_ORDER_PUT_INTO_SERVICE_FOR_MORE_THAN_A_YEAR
- CONTESTATION_PHOTO_NOT_USABLE
- CONTESTATION_REFUSED
- CREATING
- CRITICAL
- INFORMATION_GIVEN
- INFORMATION_REQUEST
- INVALID_FORMAT
- NON_ATTRIBUTABLE
- OC_RESOLUTION_DELAY_EXPIRED
- OI_RESOLUTION_IMPOSSIBLE
- OI_RESOLUTION_RENUNCIATION
- OI_RESPONSE_DELAY_EXPIRED
- OI_VALIDATION_DELAY_EXPIRED
- RESOLUTION_REFUSED_EQUIPMENT_ERROR
- RESOLUTION_REFUSED_NOT_REPAIRED
- RESOLUTION_REFUSED_PARTIALLY_RESOLVED
- RESOLUTION_REFUSED_PHOTO_NOT_USABLE
- RESOLVED_OC
- RESOLVED_OC_VALIDATED
- RESOLVED_OI_ATTRIBUTABLE
- RESOLVED_OI_CRITICAL
- RESOLVED_OI_NON_ATTRIBUTABLE
- RESOLVED_OI_VALIDATED
default: CREATING
maxResolutionOcDuration:
properties:
value:
type: integer
description: Duration in seconds
readOnly: true
reason:
type: string
readOnly: true
totalResolutionOcDuration:
description: The OC resolution duration in seconds. Calculated only as long as ResolutionOwner = OC
type: number
expectedResolutionDate:
description: The maximum OC resolution date, recalculated only during state changes taking into account the ticket creation date and successive pauses.
type: string
format: date
validationDueDate:
description: The deadline for validation status
type: string
format: date
pendingDueDate:
description: The deadline for pending status
type: string
format: date
MalfaconOiPm:
allOf:
- $ref: "#/components/schemas/MalfaconOiBase"
required:
- pm
properties:
"@type":
const: malfacon.pm.oi
localization:
const: PM
localizationDetails:
enum:
- LD02
- LD04
- LD09
- LD15
- LD16
- LD17
codeFault:
enum:
- FD06
- FD10
- FD13
- FD14
- FD17
- FD18
- FD19
- FD20
- FD21
- FD22
- FD26
- FD31
- FD32
- FD36
- FD41
- FD50
pm:
$ref: "#/components/schemas/PM"
MalfaconOiAmontPm:
allOf:
- $ref: "#/components/schemas/MalfaconOiBase"
required:
- pm
properties:
"@type":
const: malfacon.oi.amontpm
localization:
const: AMONT_PM
localizationDetails:
enum:
- LD08
- LD18
codeFault:
enum:
- FD06
- FD08
- FD11
- FD27
pm:
$ref: "#/components/schemas/PM"
MalfaconOiPbo:
allOf:
- $ref: "#/components/schemas/MalfaconOiBase"
required:
- pbo
properties:
"@type":
const: malfacon.pbo.oi
localization:
const: PBO
localizationDetails:
enum:
- LD03
- LD07
- LD11
- LD15
codeFault:
enum:
- FD05
- FD15
- FD16
- FD23
- FD29
- FD30
- FD34
- FD36
- FD44
- FD46
- FD47
pbo:
$ref: "#/components/schemas/PBO"
MalfaconOiCcf:
allOf:
- $ref: "#/components/schemas/MalfaconOiBase"
properties:
"@type":
const: malfacon.ccf.oi
localization:
const: CCF
localizationDetails:
enum:
- LD05
- LD06
- LD10
- LD13
- LD14
codeFault:
enum:
- FD02
- FD09
- FD12
- FD15
- FD25
- FD33
- FD34
- FD40
- FD43
- FD45
- FD49
- FD51
refOrder:
description: Référence de la commande
type: string
geographicLocation:
description: Localisation GPS du câble
$ref: "#/components/schemas/GeographicLocation"
pbo:
$ref: "#/components/schemas/PBO"
pto:
$ref: "#/components/schemas/PTO"
MalfaconOcPm:
allOf:
- $ref: "#/components/schemas/MalfaconOcBase"
required:
- pm
properties:
"@type":
const: malfacon.pm.oc
localization:
const: PM
localizationDetails:
enum:
- LD02
- LD04
- LD09
- LD17
codeFault:
enum:
- FD06
- FD07
- FD18
- FD19
- FD20
- FD21
- FD22
- FD24
- FD32
- FD42
- FD50
pm:
$ref: "#/components/schemas/PM"
MalfaconOcAmontPm:
allOf:
- $ref: "#/components/schemas/MalfaconOcBase"
required:
- pm
properties:
"@type":
const: malfacon.amontpm.oc
localization:
const: AMONT_PM
localizationDetails: