@lokalise/harmony 1.36.0 → 1.37.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/harmony.cjs +1 -3
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +2 -4
- package/dist/harmony100.cjs +3 -9
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +3 -9
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +19 -9
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +21 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +11 -20
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +11 -20
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony104.cjs +14 -21
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +13 -20
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +18 -6
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +18 -6
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +21 -132
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +20 -131
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +6 -12
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +5 -11
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +132 -5
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +132 -5
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +12 -40
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +11 -39
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +4 -59
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +5 -60
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +39 -6
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +39 -6
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +59 -13
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +59 -13
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +7 -18
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +7 -18
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony115.cjs +1 -1
- package/dist/harmony115.mjs +1 -1
- package/dist/harmony116.cjs +1 -1
- package/dist/harmony116.mjs +1 -1
- package/dist/harmony117.cjs +95 -61
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +95 -61
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +13 -88
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +13 -88
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +15 -19
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +14 -18
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +34 -94
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +34 -94
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +26 -11
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +26 -11
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +60 -12
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +60 -12
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +88 -36
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +88 -36
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +19 -29
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +18 -28
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony129.cjs +1 -1
- package/dist/harmony129.mjs +1 -1
- package/dist/harmony13.cjs +1 -1
- package/dist/harmony13.mjs +1 -1
- package/dist/harmony140.cjs +1 -1
- package/dist/harmony140.mjs +1 -1
- package/dist/harmony16.cjs +1 -1
- package/dist/harmony16.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony27.cjs +1 -1
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +1 -1
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony31.cjs +4 -4
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +5 -5
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony64.cjs +4 -15
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +4 -15
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony74.cjs +1 -1
- package/dist/harmony74.mjs +1 -1
- package/dist/harmony75.cjs +1 -1
- package/dist/harmony75.mjs +1 -1
- package/dist/harmony76.cjs +1 -1
- package/dist/harmony76.mjs +1 -1
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony78.cjs +2 -2
- package/dist/harmony78.mjs +2 -2
- package/dist/harmony79.cjs +2 -2
- package/dist/harmony79.mjs +2 -2
- package/dist/harmony80.cjs +2 -2
- package/dist/harmony80.mjs +2 -2
- package/dist/harmony81.cjs +3 -3
- package/dist/harmony81.mjs +3 -3
- package/dist/harmony82.cjs +6 -6
- package/dist/harmony82.mjs +6 -6
- package/dist/harmony85.cjs +2 -2
- package/dist/harmony85.mjs +2 -2
- package/dist/harmony87.cjs +2 -2
- package/dist/harmony87.mjs +2 -2
- package/dist/harmony88.cjs +12 -6
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +11 -5
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +9 -6
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +9 -6
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +12 -10
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +11 -9
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +21 -57
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +20 -56
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +6 -42
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +5 -41
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +10 -6
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +9 -5
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +6 -6
- package/dist/harmony94.mjs +6 -6
- package/dist/harmony95.cjs +57 -24
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +56 -23
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +42 -6
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +41 -5
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -21
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -21
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +4 -7
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +4 -7
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +24 -12
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +23 -11
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useDeleteScoreMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +4 -3
- package/dist/types/src/features/publicApi/score.d.ts +8 -4
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +8 -33
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
2
|
import { ApiMutationOverrides } from '../../../utils/types/apiMutationOverrides';
|
3
3
|
import { Wretch } from 'wretch';
|
4
|
-
import {
|
4
|
+
import { CreateScoreRequestBody, CreateScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes';
|
5
5
|
import { BaseApiEndpointHeader } from '../types/sharedTypes';
|
6
6
|
/**
|
7
7
|
* A react-router wrapper about the createProject public API endpoint
|
@@ -10,7 +10,7 @@ import { BaseApiEndpointHeader } from '../types/sharedTypes';
|
|
10
10
|
* @param headers - A header builder instance to resolve the headers for the request.
|
11
11
|
* @param overrides - Additional options to pass to the query.
|
12
12
|
*/
|
13
|
-
export declare function useCreateScoreMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<BaseApiEndpointHeader>, overrides?: ApiMutationOverrides<CreateScoreResponseBody, CreateScoreRequestBody &
|
13
|
+
export declare function useCreateScoreMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<BaseApiEndpointHeader>, overrides?: ApiMutationOverrides<CreateScoreResponseBody, CreateScoreRequestBody & ScoreRequestQuery>): import('@tanstack/react-query').UseMutationResult<{
|
14
14
|
issues: {
|
15
15
|
category: string;
|
16
16
|
comment: string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
2
|
import { ApiMutationOverrides } from '../../../utils/types/apiMutationOverrides';
|
3
3
|
import { Wretch } from 'wretch';
|
4
|
-
import {
|
4
|
+
import { DeleteScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes';
|
5
5
|
import { BaseApiEndpointHeader } from '../types/sharedTypes';
|
6
6
|
/**
|
7
7
|
* A react-router wrapper about the deleteScore API endpoint
|
@@ -10,7 +10,7 @@ import { BaseApiEndpointHeader } from '../types/sharedTypes';
|
|
10
10
|
* @param headers - Instance of the header builder for the public API.
|
11
11
|
* @param overrides - Additional options to pass to the mutation.
|
12
12
|
*/
|
13
|
-
export declare function useDeleteScoreMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<BaseApiEndpointHeader>, overrides?: ApiMutationOverrides<DeleteScoreResponseBody,
|
13
|
+
export declare function useDeleteScoreMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<BaseApiEndpointHeader>, overrides?: ApiMutationOverrides<DeleteScoreResponseBody, ScoreRequestQuery>): import('@tanstack/react-query').UseMutationResult<null, undefined, {
|
14
14
|
projectId: string;
|
15
15
|
keyId: number;
|
16
16
|
languageId: string;
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { HeaderBuilder } from '../../node';
|
2
2
|
import { ApiQueryOverrides } from '../../../utils/types/apiQueryOverrides';
|
3
3
|
import { Wretch } from 'wretch';
|
4
|
-
import {
|
4
|
+
import { GetScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes';
|
5
5
|
import { BaseApiEndpointHeader } from '../types/sharedTypes';
|
6
6
|
export declare const getScoreKey: {
|
7
|
-
paramsKey: (params:
|
7
|
+
paramsKey: (params: ScoreRequestQuery) => readonly ["getScore", {
|
8
8
|
projectId: string;
|
9
|
-
|
9
|
+
keyId: number;
|
10
|
+
languageId: string;
|
10
11
|
}];
|
11
12
|
};
|
12
13
|
export declare function useGetScoreQuery<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<BaseApiEndpointHeader>, overrides: ApiQueryOverrides<GetScoreResponseBody, typeof getScoreKey>): import('@tanstack/react-query').UseQueryResult<{
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const getScore: import('@lokalise/api-contracts').GetRouteDefinition<{
|
2
2
|
projectId: string;
|
3
|
-
|
3
|
+
keyId: number;
|
4
|
+
languageId: string;
|
4
5
|
}, import('zod').ZodObject<{
|
5
6
|
score: import('zod').ZodNumber;
|
6
7
|
hasMajorIssue: import('zod').ZodBoolean;
|
@@ -38,13 +39,16 @@ export declare const getScore: import('@lokalise/api-contracts').GetRouteDefinit
|
|
38
39
|
hasCriticalIssue: boolean;
|
39
40
|
}>, import('zod').ZodObject<{
|
40
41
|
projectId: import('zod').ZodString;
|
41
|
-
|
42
|
+
keyId: import('zod').ZodNumber;
|
43
|
+
languageId: import('zod').ZodString;
|
42
44
|
}, "strip", import('zod').ZodTypeAny, {
|
43
45
|
projectId: string;
|
44
|
-
|
46
|
+
keyId: number;
|
47
|
+
languageId: string;
|
45
48
|
}, {
|
46
49
|
projectId: string;
|
47
|
-
|
50
|
+
keyId: number;
|
51
|
+
languageId: string;
|
48
52
|
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
49
53
|
authorization: import('zod').ZodString;
|
50
54
|
}, "strip", import('zod').ZodTypeAny, {
|
@@ -15,17 +15,20 @@ export declare const ISSUE_SCHEMA: z.ZodObject<{
|
|
15
15
|
severity: "critical" | "major" | "minor" | "neutral";
|
16
16
|
}>;
|
17
17
|
export type Issue = z.infer<typeof ISSUE_SCHEMA>;
|
18
|
-
export declare const
|
18
|
+
export declare const SCORE_REQUEST_QUERY_SCHEMA: z.ZodObject<{
|
19
19
|
projectId: z.ZodString;
|
20
|
-
|
20
|
+
keyId: z.ZodNumber;
|
21
|
+
languageId: z.ZodString;
|
21
22
|
}, "strip", z.ZodTypeAny, {
|
22
23
|
projectId: string;
|
23
|
-
|
24
|
+
keyId: number;
|
25
|
+
languageId: string;
|
24
26
|
}, {
|
25
27
|
projectId: string;
|
26
|
-
|
28
|
+
keyId: number;
|
29
|
+
languageId: string;
|
27
30
|
}>;
|
28
|
-
export type
|
31
|
+
export type ScoreRequestQuery = z.infer<typeof SCORE_REQUEST_QUERY_SCHEMA>;
|
29
32
|
export declare const GET_SCORE_RESPONSE_SCHEMA: z.ZodObject<{
|
30
33
|
score: z.ZodNumber;
|
31
34
|
hasMajorIssue: z.ZodBoolean;
|
@@ -63,36 +66,8 @@ export declare const GET_SCORE_RESPONSE_SCHEMA: z.ZodObject<{
|
|
63
66
|
hasCriticalIssue: boolean;
|
64
67
|
}>;
|
65
68
|
export type GetScoreResponseBody = z.infer<typeof GET_SCORE_RESPONSE_SCHEMA>;
|
66
|
-
export declare const DELETE_SCORE_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
67
|
-
projectId: z.ZodString;
|
68
|
-
keyId: z.ZodNumber;
|
69
|
-
languageId: z.ZodString;
|
70
|
-
}, "strip", z.ZodTypeAny, {
|
71
|
-
projectId: string;
|
72
|
-
keyId: number;
|
73
|
-
languageId: string;
|
74
|
-
}, {
|
75
|
-
projectId: string;
|
76
|
-
keyId: number;
|
77
|
-
languageId: string;
|
78
|
-
}>;
|
79
|
-
export type DeleteScorePathParms = z.infer<typeof DELETE_SCORE_PATH_PARAMS_SCHEMA>;
|
80
69
|
export declare const DELETE_SCORE_RESPONSE_SCHEMA: z.ZodNull;
|
81
70
|
export type DeleteScoreResponseBody = z.infer<typeof DELETE_SCORE_RESPONSE_SCHEMA>;
|
82
|
-
export declare const CREATE_SCORE_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
83
|
-
projectId: z.ZodString;
|
84
|
-
keyId: z.ZodNumber;
|
85
|
-
languageId: z.ZodString;
|
86
|
-
}, "strip", z.ZodTypeAny, {
|
87
|
-
projectId: string;
|
88
|
-
keyId: number;
|
89
|
-
languageId: string;
|
90
|
-
}, {
|
91
|
-
projectId: string;
|
92
|
-
keyId: number;
|
93
|
-
languageId: string;
|
94
|
-
}>;
|
95
|
-
export type CreateScorePathParams = z.infer<typeof CREATE_SCORE_PATH_PARAMS_SCHEMA>;
|
96
71
|
export declare const CREATE_SCORE_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
97
72
|
segmentId: z.ZodNumber;
|
98
73
|
sourceLanguageId: z.ZodNumber;
|