@lokalise/polyglot-sdk 14.0.0 → 15.0.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.
@@ -751,23 +751,23 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
751
751
  }>, "many">;
752
752
  score: z.ZodNumber;
753
753
  }, "strip", z.ZodTypeAny, {
754
- contentUnitId: string;
755
- translationId: string;
756
754
  issues: {
757
755
  category: string;
758
756
  severity: "neutral" | "minor" | "major" | "critical";
759
757
  comment?: string | null | undefined;
760
758
  }[];
759
+ contentUnitId: string;
760
+ translationId: string;
761
761
  score: number;
762
762
  suggestion?: string | null | undefined;
763
763
  }, {
764
- contentUnitId: string;
765
- translationId: string;
766
764
  issues: {
767
765
  category: string;
768
766
  severity: "neutral" | "minor" | "major" | "critical";
769
767
  comment?: string | null | undefined;
770
768
  }[];
769
+ contentUnitId: string;
770
+ translationId: string;
771
771
  score: number;
772
772
  suggestion?: string | null | undefined;
773
773
  }>, "many">;
@@ -794,13 +794,13 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
794
794
  }, "strip", z.ZodTypeAny, {
795
795
  originCorrelationId: string;
796
796
  data: {
797
- contentUnitId: string;
798
- translationId: string;
799
797
  issues: {
800
798
  category: string;
801
799
  severity: "neutral" | "minor" | "major" | "critical";
802
800
  comment?: string | null | undefined;
803
801
  }[];
802
+ contentUnitId: string;
803
+ translationId: string;
804
804
  score: number;
805
805
  suggestion?: string | null | undefined;
806
806
  }[];
@@ -814,13 +814,13 @@ export declare const LQA_ASYNC_V1_CALLBACK_SCHEMA: z.ZodObject<{
814
814
  }, {
815
815
  originCorrelationId: string;
816
816
  data: {
817
- contentUnitId: string;
818
- translationId: string;
819
817
  issues: {
820
818
  category: string;
821
819
  severity: "neutral" | "minor" | "major" | "critical";
822
820
  comment?: string | null | undefined;
823
821
  }[];
822
+ contentUnitId: string;
823
+ translationId: string;
824
824
  score: number;
825
825
  suggestion?: string | null | undefined;
826
826
  }[];
@@ -858,23 +858,23 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
858
858
  }>, "many">;
859
859
  score: z.ZodNumber;
860
860
  }, "strip", z.ZodTypeAny, {
861
- contentUnitId: string;
862
- translationId: string;
863
861
  issues: {
864
862
  category: string;
865
863
  severity: "neutral" | "minor" | "major" | "critical";
866
864
  comment?: string | null | undefined;
867
865
  }[];
866
+ contentUnitId: string;
867
+ translationId: string;
868
868
  score: number;
869
869
  suggestion?: string | null | undefined;
870
870
  }, {
871
- contentUnitId: string;
872
- translationId: string;
873
871
  issues: {
874
872
  category: string;
875
873
  severity: "neutral" | "minor" | "major" | "critical";
876
874
  comment?: string | null | undefined;
877
875
  }[];
876
+ contentUnitId: string;
877
+ translationId: string;
878
878
  score: number;
879
879
  suggestion?: string | null | undefined;
880
880
  }>, "many">;
@@ -904,13 +904,13 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
904
904
  originCorrelationId: string;
905
905
  status: "success";
906
906
  data: {
907
- contentUnitId: string;
908
- translationId: string;
909
907
  issues: {
910
908
  category: string;
911
909
  severity: "neutral" | "minor" | "major" | "critical";
912
910
  comment?: string | null | undefined;
913
911
  }[];
912
+ contentUnitId: string;
913
+ translationId: string;
914
914
  score: number;
915
915
  suggestion?: string | null | undefined;
916
916
  }[];
@@ -925,13 +925,13 @@ export declare const LQA_ASYNC_SUCCESS_SCHEMA: z.ZodObject<z.objectUtil.extendSh
925
925
  originCorrelationId: string;
926
926
  status: "success";
927
927
  data: {
928
- contentUnitId: string;
929
- translationId: string;
930
928
  issues: {
931
929
  category: string;
932
930
  severity: "neutral" | "minor" | "major" | "critical";
933
931
  comment?: string | null | undefined;
934
932
  }[];
933
+ contentUnitId: string;
934
+ translationId: string;
935
935
  score: number;
936
936
  suggestion?: string | null | undefined;
937
937
  }[];
@@ -969,23 +969,23 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
969
969
  }>, "many">;
970
970
  score: z.ZodNumber;
971
971
  }, "strip", z.ZodTypeAny, {
972
- contentUnitId: string;
973
- translationId: string;
974
972
  issues: {
975
973
  category: string;
976
974
  severity: "neutral" | "minor" | "major" | "critical";
977
975
  comment?: string | null | undefined;
978
976
  }[];
977
+ contentUnitId: string;
978
+ translationId: string;
979
979
  score: number;
980
980
  suggestion?: string | null | undefined;
981
981
  }, {
982
- contentUnitId: string;
983
- translationId: string;
984
982
  issues: {
985
983
  category: string;
986
984
  severity: "neutral" | "minor" | "major" | "critical";
987
985
  comment?: string | null | undefined;
988
986
  }[];
987
+ contentUnitId: string;
988
+ translationId: string;
989
989
  score: number;
990
990
  suggestion?: string | null | undefined;
991
991
  }>, "many">;
@@ -1015,13 +1015,13 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
1015
1015
  originCorrelationId: string;
1016
1016
  status: "success";
1017
1017
  data: {
1018
- contentUnitId: string;
1019
- translationId: string;
1020
1018
  issues: {
1021
1019
  category: string;
1022
1020
  severity: "neutral" | "minor" | "major" | "critical";
1023
1021
  comment?: string | null | undefined;
1024
1022
  }[];
1023
+ contentUnitId: string;
1024
+ translationId: string;
1025
1025
  score: number;
1026
1026
  suggestion?: string | null | undefined;
1027
1027
  }[];
@@ -1036,13 +1036,13 @@ export declare const LQA_ASYNC_CALLBACK_SCHEMA: z.ZodDiscriminatedUnion<"status"
1036
1036
  originCorrelationId: string;
1037
1037
  status: "success";
1038
1038
  data: {
1039
- contentUnitId: string;
1040
- translationId: string;
1041
1039
  issues: {
1042
1040
  category: string;
1043
1041
  severity: "neutral" | "minor" | "major" | "critical";
1044
1042
  comment?: string | null | undefined;
1045
1043
  }[];
1044
+ contentUnitId: string;
1045
+ translationId: string;
1046
1046
  score: number;
1047
1047
  suggestion?: string | null | undefined;
1048
1048
  }[];
@@ -728,24 +728,24 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
728
728
  }>, "many">;
729
729
  score: z.ZodNumber;
730
730
  }, "strip", z.ZodTypeAny, {
731
- contentUnitId: string;
732
- translationId: string;
733
- suggestion: string | null;
734
731
  issues: {
735
732
  category: string;
736
733
  severity: "neutral" | "minor" | "major" | "critical";
737
734
  comment: string | null;
738
735
  }[];
739
- score: number;
740
- }, {
741
736
  contentUnitId: string;
742
737
  translationId: string;
743
738
  suggestion: string | null;
739
+ score: number;
740
+ }, {
744
741
  issues: {
745
742
  category: string;
746
743
  severity: "neutral" | "minor" | "major" | "critical";
747
744
  comment: string | null;
748
745
  }[];
746
+ contentUnitId: string;
747
+ translationId: string;
748
+ suggestion: string | null;
749
749
  score: number;
750
750
  }>, "many">;
751
751
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
@@ -771,14 +771,14 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
771
771
  }, "strip", z.ZodTypeAny, {
772
772
  integration: string;
773
773
  data: {
774
- contentUnitId: string;
775
- translationId: string;
776
- suggestion: string | null;
777
774
  issues: {
778
775
  category: string;
779
776
  severity: "neutral" | "minor" | "major" | "critical";
780
777
  comment: string | null;
781
778
  }[];
779
+ contentUnitId: string;
780
+ translationId: string;
781
+ suggestion: string | null;
782
782
  score: number;
783
783
  }[];
784
784
  errors?: {
@@ -791,14 +791,14 @@ export declare const LQA_SYNC_V2_RESPONSE_SCHEMA: z.ZodObject<{
791
791
  }, {
792
792
  integration: string;
793
793
  data: {
794
- contentUnitId: string;
795
- translationId: string;
796
- suggestion: string | null;
797
794
  issues: {
798
795
  category: string;
799
796
  severity: "neutral" | "minor" | "major" | "critical";
800
797
  comment: string | null;
801
798
  }[];
799
+ contentUnitId: string;
800
+ translationId: string;
801
+ suggestion: string | null;
802
802
  score: number;
803
803
  }[];
804
804
  errors?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/polyglot-sdk",
3
- "version": "14.0.0",
3
+ "version": "15.0.0",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@lokalise/backend-http-client": "^3.0.0",
36
36
  "@lokalise/id-utils": "^2.2.0",
37
- "@lokalise/node-core": "^13.1.0",
37
+ "@lokalise/node-core": "^13.3.0",
38
38
  "@lokalise/non-translatable-markup": "^2.8.0",
39
39
  "@lokalise/supported-languages": "^2.1.0",
40
40
  "@lokalise/zod-extras": "^2.1.0",
@@ -43,13 +43,13 @@
43
43
  "zod": "^3.23.8"
44
44
  },
45
45
  "peerDependencies": {
46
- "@lokalise/fastify-extras": ">=25.0.0"
46
+ "@lokalise/fastify-extras": ">=26.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@amplitude/analytics-types": "^2.8.4",
50
50
  "@biomejs/biome": "^1.9.4",
51
51
  "@lokalise/biome-config": "^1.5.0",
52
- "@lokalise/fastify-extras": "^25.2.0",
52
+ "@lokalise/fastify-extras": "^26.0.0",
53
53
  "@types/node": "^22.10.5",
54
54
  "@vitest/coverage-v8": "^2.1.8",
55
55
  "auto-changelog": "^2.5.0",