@boxa-devops/depo-shared 1.1.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boxa-devops/depo-shared",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Wire contract between depo-api, depo-terminal and depo-admin: generated API types, design tokens, shared guards.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -771,6 +771,286 @@
771
771
  "prokat": " "
772
772
  },
773
773
  "expect": []
774
+ },
775
+ {
776
+ "name": "a text threshold is a class name: «=» compares it as a word, case-folded",
777
+ "rules": [
778
+ {
779
+ "id": "00000000-0000-4000-8000-0000000000f1",
780
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
781
+ "code": "bandaj_min_elektr",
782
+ "name_uz": "Qoida",
783
+ "name_ru": "Правило",
784
+ "priority": 10,
785
+ "conditions": [
786
+ {
787
+ "param": "bandaj",
788
+ "op": "<",
789
+ "value": 85,
790
+ "side": "any"
791
+ },
792
+ {
793
+ "param": "lokomotiv_turi",
794
+ "op": "=",
795
+ "value": "ELEKTR"
796
+ }
797
+ ],
798
+ "recommendation_kind": "OPERATION",
799
+ "recommendation_ref": "BANDAJ_ALMASHTIRISH",
800
+ "message_uz": "uz {value}",
801
+ "message_ru": "ru {value}"
802
+ }
803
+ ],
804
+ "values": {
805
+ "bandaj_chap": "84",
806
+ "bandaj_ong": "86",
807
+ "lokomotiv_turi": "elektr"
808
+ },
809
+ "expect": [
810
+ {
811
+ "code": "bandaj_min_elektr",
812
+ "kind": "OPERATION",
813
+ "ref": "BANDAJ_ALMASHTIRISH",
814
+ "priority": 10,
815
+ "matched": {
816
+ "bandaj_chap": "84",
817
+ "lokomotiv_turi": "elektr"
818
+ },
819
+ "message_uz": "uz 84",
820
+ "message_ru": "ru 84"
821
+ }
822
+ ]
823
+ },
824
+ {
825
+ "name": "the same numbers under another class do not fire — the norm is per class",
826
+ "rules": [
827
+ {
828
+ "id": "00000000-0000-4000-8000-0000000000f1",
829
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
830
+ "code": "bandaj_min_elektr",
831
+ "name_uz": "Qoida",
832
+ "name_ru": "Правило",
833
+ "priority": 10,
834
+ "conditions": [
835
+ {
836
+ "param": "bandaj",
837
+ "op": "<",
838
+ "value": 85,
839
+ "side": "any"
840
+ },
841
+ {
842
+ "param": "lokomotiv_turi",
843
+ "op": "=",
844
+ "value": "ELEKTR"
845
+ }
846
+ ],
847
+ "recommendation_kind": "OPERATION",
848
+ "recommendation_ref": "BANDAJ_ALMASHTIRISH",
849
+ "message_uz": "uz {value}",
850
+ "message_ru": "ru {value}"
851
+ }
852
+ ],
853
+ "values": {
854
+ "bandaj_chap": "84",
855
+ "lokomotiv_turi": "DIZEL_MANYOVR"
856
+ },
857
+ "expect": []
858
+ },
859
+ {
860
+ "name": "a text threshold with an operator other than «=» never fires",
861
+ "rules": [
862
+ {
863
+ "id": "00000000-0000-4000-8000-0000000000f2",
864
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
865
+ "code": "matn_op",
866
+ "name_uz": "Qoida",
867
+ "name_ru": "Правило",
868
+ "priority": 10,
869
+ "conditions": [
870
+ {
871
+ "param": "lokomotiv_turi",
872
+ "op": "<",
873
+ "value": "ELEKTR"
874
+ }
875
+ ],
876
+ "recommendation_kind": "ATTENTION",
877
+ "recommendation_ref": null,
878
+ "message_uz": "uz {value}",
879
+ "message_ru": "ru {value}"
880
+ }
881
+ ],
882
+ "values": {
883
+ "lokomotiv_turi": "ELEKTR"
884
+ },
885
+ "expect": []
886
+ },
887
+ {
888
+ "name": "an unanswered classifier is not a match — a missing word is not a zero either",
889
+ "rules": [
890
+ {
891
+ "id": "00000000-0000-4000-8000-0000000000f3",
892
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
893
+ "code": "matn_yoq",
894
+ "name_uz": "Qoida",
895
+ "name_ru": "Правило",
896
+ "priority": 10,
897
+ "conditions": [
898
+ {
899
+ "param": "lokomotiv_turi",
900
+ "op": "=",
901
+ "value": "ELEKTR"
902
+ }
903
+ ],
904
+ "recommendation_kind": "ATTENTION",
905
+ "recommendation_ref": null,
906
+ "message_uz": "uz {value}",
907
+ "message_ru": "ru {value}"
908
+ }
909
+ ],
910
+ "values": {
911
+ "bandaj_chap": "84"
912
+ },
913
+ "expect": []
914
+ },
915
+ {
916
+ "name": "derived «_farq»: |chap − ong| of a pair both of whose wheels were measured",
917
+ "rules": [
918
+ {
919
+ "id": "00000000-0000-4000-8000-0000000000f4",
920
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
921
+ "code": "prokat_farq",
922
+ "name_uz": "Qoida",
923
+ "name_ru": "Правило",
924
+ "priority": 10,
925
+ "conditions": [
926
+ {
927
+ "param": "prokat_farq",
928
+ "op": ">",
929
+ "value": 2
930
+ }
931
+ ],
932
+ "recommendation_kind": "OPERATION",
933
+ "recommendation_ref": "BANDAJ_YONISH",
934
+ "message_uz": "uz {value}",
935
+ "message_ru": "ru {value}"
936
+ }
937
+ ],
938
+ "values": {
939
+ "prokat_chap": "7.30",
940
+ "prokat_ong": "5.10"
941
+ },
942
+ "expect": [
943
+ {
944
+ "code": "prokat_farq",
945
+ "kind": "OPERATION",
946
+ "ref": "BANDAJ_YONISH",
947
+ "priority": 10,
948
+ "matched": {
949
+ "prokat_farq": "2.2"
950
+ },
951
+ "message_uz": "uz 2.2",
952
+ "message_ru": "ru 2.2"
953
+ }
954
+ ]
955
+ },
956
+ {
957
+ "name": "the difference is absolute — which wheel is the thinner one is not the norm",
958
+ "rules": [
959
+ {
960
+ "id": "00000000-0000-4000-8000-0000000000f4",
961
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
962
+ "code": "prokat_farq",
963
+ "name_uz": "Qoida",
964
+ "name_ru": "Правило",
965
+ "priority": 10,
966
+ "conditions": [
967
+ {
968
+ "param": "prokat_farq",
969
+ "op": ">",
970
+ "value": 2
971
+ }
972
+ ],
973
+ "recommendation_kind": "OPERATION",
974
+ "recommendation_ref": "BANDAJ_YONISH",
975
+ "message_uz": "uz {value}",
976
+ "message_ru": "ru {value}"
977
+ }
978
+ ],
979
+ "values": {
980
+ "prokat_chap": "5.10",
981
+ "prokat_ong": "7.30"
982
+ },
983
+ "expect": [
984
+ {
985
+ "code": "prokat_farq",
986
+ "kind": "OPERATION",
987
+ "ref": "BANDAJ_YONISH",
988
+ "priority": 10,
989
+ "matched": {
990
+ "prokat_farq": "2.2"
991
+ },
992
+ "message_uz": "uz 2.2",
993
+ "message_ru": "ru 2.2"
994
+ }
995
+ ]
996
+ },
997
+ {
998
+ "name": "one wheel measured is no difference at all — a half-read pair is not a 0 mm farq",
999
+ "rules": [
1000
+ {
1001
+ "id": "00000000-0000-4000-8000-0000000000f4",
1002
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
1003
+ "code": "prokat_farq",
1004
+ "name_uz": "Qoida",
1005
+ "name_ru": "Правило",
1006
+ "priority": 10,
1007
+ "conditions": [
1008
+ {
1009
+ "param": "prokat_farq",
1010
+ "op": ">",
1011
+ "value": 2
1012
+ }
1013
+ ],
1014
+ "recommendation_kind": "ATTENTION",
1015
+ "recommendation_ref": null,
1016
+ "message_uz": "uz {value}",
1017
+ "message_ru": "ru {value}"
1018
+ }
1019
+ ],
1020
+ "values": {
1021
+ "prokat_chap": "7.3"
1022
+ },
1023
+ "expect": []
1024
+ },
1025
+ {
1026
+ "name": "a measured field of that very name wins over the derived one",
1027
+ "rules": [
1028
+ {
1029
+ "id": "00000000-0000-4000-8000-0000000000f5",
1030
+ "nomenclature_id": "00000000-0000-4000-8000-0000000000a1",
1031
+ "code": "olchangan_farq",
1032
+ "name_uz": "Qoida",
1033
+ "name_ru": "Правило",
1034
+ "priority": 10,
1035
+ "conditions": [
1036
+ {
1037
+ "param": "prokat_farq",
1038
+ "op": ">",
1039
+ "value": 2
1040
+ }
1041
+ ],
1042
+ "recommendation_kind": "ATTENTION",
1043
+ "recommendation_ref": null,
1044
+ "message_uz": "uz {value}",
1045
+ "message_ru": "ru {value}"
1046
+ }
1047
+ ],
1048
+ "values": {
1049
+ "prokat_chap": "7.3",
1050
+ "prokat_ong": "5.1",
1051
+ "prokat_farq": "0.4"
1052
+ },
1053
+ "expect": []
774
1054
  }
775
1055
  ]
776
1056
  }