@lokalise/harmony 1.31.1 → 1.32.1
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/harmony100.cjs +18 -14
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +18 -14
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +14 -21
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +13 -20
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +21 -6
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +20 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +5 -131
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +5 -131
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +132 -12
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +131 -11
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +13 -6
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +12 -5
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +5 -40
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -40
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +33 -53
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +34 -54
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +59 -6
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +59 -6
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +6 -98
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +6 -81
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony111.cjs +1 -1
- package/dist/harmony111.mjs +1 -1
- package/dist/harmony112.cjs +1 -1
- package/dist/harmony112.mjs +1 -1
- package/dist/harmony114.cjs +5 -5
- package/dist/harmony114.mjs +5 -5
- package/dist/harmony118.cjs +1 -1
- package/dist/harmony118.mjs +1 -1
- package/dist/harmony119.cjs +2 -2
- package/dist/harmony119.mjs +2 -2
- package/dist/harmony121.cjs +13 -7
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +13 -7
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +15 -57
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +15 -57
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +15 -59
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +15 -59
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +7 -18
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +6 -17
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +57 -13
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +57 -13
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +59 -14
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +59 -14
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +19 -17
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +18 -16
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +1 -1
- package/dist/harmony128.mjs +1 -1
- package/dist/harmony130.cjs +3 -3
- package/dist/harmony130.mjs +3 -3
- package/dist/harmony132.cjs +6 -46
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +6 -46
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +13 -13
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +12 -12
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +31 -11
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +31 -11
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +10 -28
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +10 -28
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +46 -14
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +46 -14
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +13 -7
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +12 -6
- package/dist/harmony137.mjs.map +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/harmony59.cjs +24 -3
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +25 -4
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony70.cjs +1 -1
- package/dist/harmony70.mjs +1 -1
- package/dist/harmony71.cjs +1 -1
- package/dist/harmony71.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- package/dist/harmony73.cjs +2 -2
- package/dist/harmony73.mjs +2 -2
- package/dist/harmony74.cjs +2 -2
- package/dist/harmony74.mjs +2 -2
- package/dist/harmony75.cjs +2 -2
- package/dist/harmony75.mjs +2 -2
- package/dist/harmony76.cjs +2 -2
- package/dist/harmony76.mjs +2 -2
- package/dist/harmony77.cjs +3 -3
- package/dist/harmony77.mjs +3 -3
- package/dist/harmony78.cjs +6 -6
- package/dist/harmony78.mjs +6 -6
- package/dist/harmony81.cjs +2 -2
- package/dist/harmony81.mjs +2 -2
- package/dist/harmony83.cjs +2 -2
- package/dist/harmony83.mjs +2 -2
- package/dist/harmony84.cjs +12 -6
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +11 -5
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -6
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +9 -6
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +12 -10
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +11 -9
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +21 -57
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +20 -56
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +6 -42
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +5 -41
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +10 -6
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +9 -5
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +6 -6
- package/dist/harmony90.mjs +6 -6
- package/dist/harmony91.cjs +57 -24
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +56 -23
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +42 -6
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +41 -5
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +5 -21
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +5 -21
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +4 -7
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +4 -7
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +25 -12
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +24 -11
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +5 -20
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +5 -20
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +18 -9
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +19 -10
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +9 -9
- package/dist/harmony98.mjs +9 -9
- package/dist/harmony99.cjs +99 -18
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +82 -18
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +5 -4
- package/dist/types/src/features/publicApi/projects.d.ts +25 -20
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +25 -20
- package/package.json +1 -1
package/dist/harmony99.mjs
CHANGED
@@ -1,21 +1,85 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
1
|
+
import * as React from "react";
|
2
|
+
import debounce from "./harmony111.mjs";
|
3
|
+
import throttle from "./harmony112.mjs";
|
4
|
+
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
5
|
+
switch (refreshMode) {
|
6
|
+
case "debounce":
|
7
|
+
return debounce(resizeCallback, refreshRate, refreshOptions);
|
8
|
+
case "throttle":
|
9
|
+
return throttle(resizeCallback, refreshRate, refreshOptions);
|
10
|
+
default:
|
11
|
+
return resizeCallback;
|
12
|
+
}
|
13
|
+
};
|
14
|
+
const useCallbackRef = (
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
16
|
+
(callback) => {
|
17
|
+
const callbackRef = React.useRef(callback);
|
18
|
+
React.useEffect(() => {
|
19
|
+
callbackRef.current = callback;
|
20
|
+
});
|
21
|
+
return React.useMemo(() => (...args) => {
|
22
|
+
var _a;
|
23
|
+
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
24
|
+
}, []);
|
25
|
+
}
|
26
|
+
);
|
27
|
+
const useRefProxy = (
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
29
|
+
(targetRef) => {
|
30
|
+
const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
31
|
+
if (targetRef) {
|
32
|
+
setTimeout(() => {
|
33
|
+
if (targetRef.current !== refElement) {
|
34
|
+
setRefElement(targetRef.current);
|
35
|
+
}
|
36
|
+
}, 0);
|
37
|
+
}
|
38
|
+
const refProxy = React.useMemo(() => new Proxy((node) => {
|
39
|
+
if (node !== refElement) {
|
40
|
+
setRefElement(node);
|
41
|
+
}
|
42
|
+
}, {
|
43
|
+
get(target, prop) {
|
44
|
+
if (prop === "current") {
|
45
|
+
return refElement;
|
46
|
+
}
|
47
|
+
return target[prop];
|
48
|
+
},
|
49
|
+
set(target, prop, value) {
|
50
|
+
if (prop === "current") {
|
51
|
+
setRefElement(value);
|
52
|
+
} else {
|
53
|
+
target[prop] = value;
|
54
|
+
}
|
55
|
+
return true;
|
56
|
+
}
|
57
|
+
}), [refElement]);
|
58
|
+
return { refProxy, refElement, setRefElement };
|
59
|
+
}
|
60
|
+
);
|
61
|
+
const getDimensions = (entry, box) => {
|
62
|
+
if (box === "border-box") {
|
63
|
+
return {
|
64
|
+
width: entry.borderBoxSize[0].inlineSize,
|
65
|
+
height: entry.borderBoxSize[0].blockSize
|
66
|
+
};
|
67
|
+
}
|
68
|
+
if (box === "content-box") {
|
69
|
+
return {
|
70
|
+
width: entry.contentBoxSize[0].inlineSize,
|
71
|
+
height: entry.contentBoxSize[0].blockSize
|
72
|
+
};
|
73
|
+
}
|
74
|
+
return {
|
75
|
+
width: entry.contentRect.width,
|
76
|
+
height: entry.contentRect.height
|
77
|
+
};
|
78
|
+
};
|
18
79
|
export {
|
19
|
-
|
80
|
+
getDimensions,
|
81
|
+
patchResizeCallback,
|
82
|
+
useCallbackRef,
|
83
|
+
useRefProxy
|
20
84
|
};
|
21
85
|
//# sourceMappingURL=harmony99.mjs.map
|
package/dist/harmony99.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony99.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony99.mjs","sources":["../node_modules/react-resize-detector/build/utils.js"],"sourcesContent":["import * as React from 'react';\nimport debounce from 'lodash/debounce.js';\nimport throttle from 'lodash/throttle.js';\n\n/**\n * Wraps the resize callback with a lodash debounce / throttle based on the refresh mode\n */\nconst patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {\n switch (refreshMode) {\n case 'debounce':\n return debounce(resizeCallback, refreshRate, refreshOptions);\n case 'throttle':\n return throttle(resizeCallback, refreshRate, refreshOptions);\n default:\n return resizeCallback;\n }\n};\n/**\n * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a\n * prop or avoid re-executing effects when passed as a dependency\n */\nconst useCallbackRef = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(callback) => {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => { var _a; return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args); }), []);\n};\n/** `useRef` hook doesn't handle conditional rendering or dynamic ref changes.\n * This hook creates a proxy that ensures that `refElement` is updated whenever the ref is changed. */\nconst useRefProxy = \n// eslint-disable-next-line @typescript-eslint/no-explicit-any\n(targetRef) => {\n // we are going to use this ref to store the last element that was passed to the hook\n const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);\n // if targetRef is passed, we need to update the refElement\n // we have to use setTimeout because ref get assigned after the hook is called\n // in the future releases we are going to remove targetRef and force users to use ref returned by the hook\n if (targetRef) {\n setTimeout(() => {\n if (targetRef.current !== refElement) {\n setRefElement(targetRef.current);\n }\n }, 0);\n }\n // this is a memo that will be called every time the ref is changed\n // This proxy will properly call setState either when the ref is called as a function or when `.current` is set\n // we call setState inside to trigger rerender\n const refProxy = React.useMemo(() => new Proxy((node) => {\n if (node !== refElement) {\n setRefElement(node);\n }\n }, {\n get(target, prop) {\n if (prop === 'current') {\n return refElement;\n }\n return target[prop];\n },\n set(target, prop, value) {\n if (prop === 'current') {\n setRefElement(value);\n }\n else {\n target[prop] = value;\n }\n return true;\n },\n }), [refElement]);\n return { refProxy, refElement, setRefElement };\n};\n/** Calculates the dimensions of the element based on the current box model.\n * @see https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model\n */\nconst getDimensions = (entry, box) => {\n // Value\t Border\t Padding\t Inner Content\n // ---------------------------------------------------\n // 'border-box'\t Yes\t Yes\t Yes\n // 'content-box'\t No\t No\t Yes\n // undefined No\t No?\t Yes\n if (box === 'border-box') {\n return {\n width: entry.borderBoxSize[0].inlineSize,\n height: entry.borderBoxSize[0].blockSize,\n };\n }\n if (box === 'content-box') {\n return {\n width: entry.contentBoxSize[0].inlineSize,\n height: entry.contentBoxSize[0].blockSize,\n };\n }\n return {\n width: entry.contentRect.width,\n height: entry.contentRect.height,\n };\n};\n\nexport { getDimensions, patchResizeCallback, useCallbackRef, useRefProxy };\n//# sourceMappingURL=utils.js.map\n"],"names":[],"mappings":";;;AAOK,MAAC,sBAAsB,CAAC,gBAAgB,aAAa,aAAa,mBAAmB;AACtF,UAAQ,aAAW;AAAA,IACf,KAAK;AACD,aAAO,SAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D,KAAK;AACD,aAAO,SAAS,gBAAgB,aAAa,cAAc;AAAA,IAC/D;AACI,aAAO;AAAA,EACnB;AACA;AAKK,MAAC;AAAA;AAAA,EAEN,CAAC,aAAa;AACV,UAAM,cAAc,MAAM,OAAO,QAAQ;AACzC,UAAM,UAAU,MAAM;AAClB,kBAAY,UAAU;AAAA,IAC9B,CAAK;AACD,WAAO,MAAM,QAAQ,MAAO,IAAI,SAAS;AAAE,UAAI;AAAI,cAAQ,KAAK,YAAY,aAAa,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,aAAa,GAAG,IAAI;AAAA,IAAI,GAAG,CAAA,CAAE;AAAA,EACnK;AAAA;AAGK,MAAC;AAAA;AAAA,EAEN,CAAC,cAAc;AAEX,UAAM,CAAC,YAAY,aAAa,IAAI,MAAM,UAAU,cAAc,QAAQ,cAAc,SAAS,SAAS,UAAU,YAAY,IAAI;AAIpI,QAAI,WAAW;AACX,iBAAW,MAAM;AACb,YAAI,UAAU,YAAY,YAAY;AAClC,wBAAc,UAAU,OAAO;AAAA,QAC/C;AAAA,MACS,GAAE,CAAC;AAAA,IACZ;AAII,UAAM,WAAW,MAAM,QAAQ,MAAM,IAAI,MAAM,CAAC,SAAS;AACrD,UAAI,SAAS,YAAY;AACrB,sBAAc,IAAI;AAAA,MAC9B;AAAA,IACA,GAAO;AAAA,MACC,IAAI,QAAQ,MAAM;AACd,YAAI,SAAS,WAAW;AACpB,iBAAO;AAAA,QACvB;AACY,eAAO,OAAO,IAAI;AAAA,MACrB;AAAA,MACD,IAAI,QAAQ,MAAM,OAAO;AACrB,YAAI,SAAS,WAAW;AACpB,wBAAc,KAAK;AAAA,QACnC,OACiB;AACD,iBAAO,IAAI,IAAI;AAAA,QAC/B;AACY,eAAO;AAAA,MACV;AAAA,IACT,CAAK,GAAG,CAAC,UAAU,CAAC;AAChB,WAAO,EAAE,UAAU,YAAY,cAAe;AAAA,EAClD;AAAA;AAIK,MAAC,gBAAgB,CAAC,OAAO,QAAQ;AAMlC,MAAI,QAAQ,cAAc;AACtB,WAAO;AAAA,MACH,OAAO,MAAM,cAAc,CAAC,EAAE;AAAA,MAC9B,QAAQ,MAAM,cAAc,CAAC,EAAE;AAAA,IAClC;AAAA,EACT;AACI,MAAI,QAAQ,eAAe;AACvB,WAAO;AAAA,MACH,OAAO,MAAM,eAAe,CAAC,EAAE;AAAA,MAC/B,QAAQ,MAAM,eAAe,CAAC,EAAE;AAAA,IACnC;AAAA,EACT;AACI,SAAO;AAAA,IACH,OAAO,MAAM,YAAY;AAAA,IACzB,QAAQ,MAAM,YAAY;AAAA,EAC7B;AACL;","x_google_ignoreList":[0]}
|
@@ -24,13 +24,14 @@ export declare function useGetProjectPermissionMetaQuery<T>(wretchClient: Wretch
|
|
24
24
|
group: string;
|
25
25
|
scope: "team" | "project" | "user";
|
26
26
|
description: string | null;
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
doesSetAllReadOnlyLanguages: boolean;
|
28
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
29
|
+
newPermission?: boolean | undefined;
|
30
|
+
isHidden?: boolean | undefined;
|
30
31
|
}[];
|
31
32
|
roles: {
|
32
33
|
role: string;
|
33
|
-
id:
|
34
|
+
id: number;
|
34
35
|
tag: string | null;
|
35
36
|
description: string | null;
|
36
37
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1722,30 +1722,33 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1722
1722
|
title: import('zod').ZodString;
|
1723
1723
|
group: import('zod').ZodString;
|
1724
1724
|
description: import('zod').ZodNullable<import('zod').ZodString>;
|
1725
|
-
|
1726
|
-
|
1727
|
-
|
1725
|
+
dependentPermissions: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodUnion<[import('zod').ZodLiteral<"activity">, import('zod').ZodLiteral<"branches_create">, import('zod').ZodLiteral<"branches_main_modify">, import('zod').ZodLiteral<"branches_merge">, import('zod').ZodLiteral<"contributors">, import('zod').ZodLiteral<"custom_status_modify">, import('zod').ZodLiteral<"download">, import('zod').ZodLiteral<"glossary_delete">, import('zod').ZodLiteral<"glossary_edit">, import('zod').ZodLiteral<"manage_keys">, import('zod').ZodLiteral<"manage_languages">, import('zod').ZodLiteral<"review">, import('zod').ZodLiteral<"screenshots">, import('zod').ZodLiteral<"settings">, import('zod').ZodLiteral<"statistics">, import('zod').ZodLiteral<"upload">]>, "many">>;
|
1726
|
+
doesSetAllReadOnlyLanguages: import('zod').ZodBoolean;
|
1727
|
+
newPermission: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
1728
|
+
isHidden: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
1728
1729
|
}, "strip", import('zod').ZodTypeAny, {
|
1729
1730
|
title: string;
|
1730
1731
|
id: "review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload";
|
1731
1732
|
group: string;
|
1732
1733
|
scope: "team" | "project" | "user";
|
1733
1734
|
description: string | null;
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1735
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1736
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1737
|
+
newPermission?: boolean | undefined;
|
1738
|
+
isHidden?: boolean | undefined;
|
1737
1739
|
}, {
|
1738
1740
|
title: string;
|
1739
1741
|
id: "review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload";
|
1740
1742
|
group: string;
|
1741
1743
|
scope: "team" | "project" | "user";
|
1742
1744
|
description: string | null;
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1745
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1746
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1747
|
+
newPermission?: boolean | undefined;
|
1748
|
+
isHidden?: boolean | undefined;
|
1746
1749
|
}>, "many">;
|
1747
1750
|
roles: import('zod').ZodArray<import('zod').ZodObject<{
|
1748
|
-
id: import('zod').
|
1751
|
+
id: import('zod').ZodNumber;
|
1749
1752
|
role: import('zod').ZodString;
|
1750
1753
|
permissions: import('zod').ZodArray<import('zod').ZodUnion<[import('zod').ZodLiteral<"activity">, import('zod').ZodLiteral<"branches_create">, import('zod').ZodLiteral<"branches_main_modify">, import('zod').ZodLiteral<"branches_merge">, import('zod').ZodLiteral<"contributors">, import('zod').ZodLiteral<"custom_status_modify">, import('zod').ZodLiteral<"download">, import('zod').ZodLiteral<"glossary_delete">, import('zod').ZodLiteral<"glossary_edit">, import('zod').ZodLiteral<"manage_keys">, import('zod').ZodLiteral<"manage_languages">, import('zod').ZodLiteral<"review">, import('zod').ZodLiteral<"screenshots">, import('zod').ZodLiteral<"settings">, import('zod').ZodLiteral<"statistics">, import('zod').ZodLiteral<"upload">]>, "many">;
|
1751
1754
|
description: import('zod').ZodNullable<import('zod').ZodString>;
|
@@ -1756,7 +1759,7 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1756
1759
|
doesEnableAllReadOnlyLanguages: import('zod').ZodBoolean;
|
1757
1760
|
}, "strip", import('zod').ZodTypeAny, {
|
1758
1761
|
role: string;
|
1759
|
-
id:
|
1762
|
+
id: number;
|
1760
1763
|
tag: string | null;
|
1761
1764
|
description: string | null;
|
1762
1765
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1766,7 +1769,7 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1766
1769
|
doesEnableAllReadOnlyLanguages: boolean;
|
1767
1770
|
}, {
|
1768
1771
|
role: string;
|
1769
|
-
id:
|
1772
|
+
id: number;
|
1770
1773
|
tag: string | null;
|
1771
1774
|
description: string | null;
|
1772
1775
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1784,13 +1787,14 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1784
1787
|
group: string;
|
1785
1788
|
scope: "team" | "project" | "user";
|
1786
1789
|
description: string | null;
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1791
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1792
|
+
newPermission?: boolean | undefined;
|
1793
|
+
isHidden?: boolean | undefined;
|
1790
1794
|
}[];
|
1791
1795
|
roles: {
|
1792
1796
|
role: string;
|
1793
|
-
id:
|
1797
|
+
id: number;
|
1794
1798
|
tag: string | null;
|
1795
1799
|
description: string | null;
|
1796
1800
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1808,13 +1812,14 @@ export declare const getProjectPermissionMeta: import('@lokalise/api-contracts')
|
|
1808
1812
|
group: string;
|
1809
1813
|
scope: "team" | "project" | "user";
|
1810
1814
|
description: string | null;
|
1811
|
-
|
1812
|
-
|
1813
|
-
|
1815
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1816
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1817
|
+
newPermission?: boolean | undefined;
|
1818
|
+
isHidden?: boolean | undefined;
|
1814
1819
|
}[];
|
1815
1820
|
roles: {
|
1816
1821
|
role: string;
|
1817
|
-
id:
|
1822
|
+
id: number;
|
1818
1823
|
tag: string | null;
|
1819
1824
|
description: string | null;
|
1820
1825
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1152,30 +1152,33 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1152
1152
|
title: z.ZodString;
|
1153
1153
|
group: z.ZodString;
|
1154
1154
|
description: z.ZodNullable<z.ZodString>;
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1155
|
+
dependentPermissions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"activity">, z.ZodLiteral<"branches_create">, z.ZodLiteral<"branches_main_modify">, z.ZodLiteral<"branches_merge">, z.ZodLiteral<"contributors">, z.ZodLiteral<"custom_status_modify">, z.ZodLiteral<"download">, z.ZodLiteral<"glossary_delete">, z.ZodLiteral<"glossary_edit">, z.ZodLiteral<"manage_keys">, z.ZodLiteral<"manage_languages">, z.ZodLiteral<"review">, z.ZodLiteral<"screenshots">, z.ZodLiteral<"settings">, z.ZodLiteral<"statistics">, z.ZodLiteral<"upload">]>, "many">>;
|
1156
|
+
doesSetAllReadOnlyLanguages: z.ZodBoolean;
|
1157
|
+
newPermission: z.ZodOptional<z.ZodBoolean>;
|
1158
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
1158
1159
|
}, "strip", z.ZodTypeAny, {
|
1159
1160
|
title: string;
|
1160
1161
|
id: "review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload";
|
1161
1162
|
group: string;
|
1162
1163
|
scope: "team" | "project" | "user";
|
1163
1164
|
description: string | null;
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1165
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1166
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1167
|
+
newPermission?: boolean | undefined;
|
1168
|
+
isHidden?: boolean | undefined;
|
1167
1169
|
}, {
|
1168
1170
|
title: string;
|
1169
1171
|
id: "review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload";
|
1170
1172
|
group: string;
|
1171
1173
|
scope: "team" | "project" | "user";
|
1172
1174
|
description: string | null;
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1175
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1176
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1177
|
+
newPermission?: boolean | undefined;
|
1178
|
+
isHidden?: boolean | undefined;
|
1176
1179
|
}>, "many">;
|
1177
1180
|
roles: z.ZodArray<z.ZodObject<{
|
1178
|
-
id: z.
|
1181
|
+
id: z.ZodNumber;
|
1179
1182
|
role: z.ZodString;
|
1180
1183
|
permissions: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"activity">, z.ZodLiteral<"branches_create">, z.ZodLiteral<"branches_main_modify">, z.ZodLiteral<"branches_merge">, z.ZodLiteral<"contributors">, z.ZodLiteral<"custom_status_modify">, z.ZodLiteral<"download">, z.ZodLiteral<"glossary_delete">, z.ZodLiteral<"glossary_edit">, z.ZodLiteral<"manage_keys">, z.ZodLiteral<"manage_languages">, z.ZodLiteral<"review">, z.ZodLiteral<"screenshots">, z.ZodLiteral<"settings">, z.ZodLiteral<"statistics">, z.ZodLiteral<"upload">]>, "many">;
|
1181
1184
|
description: z.ZodNullable<z.ZodString>;
|
@@ -1186,7 +1189,7 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1186
1189
|
doesEnableAllReadOnlyLanguages: z.ZodBoolean;
|
1187
1190
|
}, "strip", z.ZodTypeAny, {
|
1188
1191
|
role: string;
|
1189
|
-
id:
|
1192
|
+
id: number;
|
1190
1193
|
tag: string | null;
|
1191
1194
|
description: string | null;
|
1192
1195
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1196,7 +1199,7 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1196
1199
|
doesEnableAllReadOnlyLanguages: boolean;
|
1197
1200
|
}, {
|
1198
1201
|
role: string;
|
1199
|
-
id:
|
1202
|
+
id: number;
|
1200
1203
|
tag: string | null;
|
1201
1204
|
description: string | null;
|
1202
1205
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1214,13 +1217,14 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1214
1217
|
group: string;
|
1215
1218
|
scope: "team" | "project" | "user";
|
1216
1219
|
description: string | null;
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1220
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1221
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1222
|
+
newPermission?: boolean | undefined;
|
1223
|
+
isHidden?: boolean | undefined;
|
1220
1224
|
}[];
|
1221
1225
|
roles: {
|
1222
1226
|
role: string;
|
1223
|
-
id:
|
1227
|
+
id: number;
|
1224
1228
|
tag: string | null;
|
1225
1229
|
description: string | null;
|
1226
1230
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|
@@ -1238,13 +1242,14 @@ export declare const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA: z.ZodObje
|
|
1238
1242
|
group: string;
|
1239
1243
|
scope: "team" | "project" | "user";
|
1240
1244
|
description: string | null;
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1245
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1246
|
+
dependentPermissions?: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[] | undefined;
|
1247
|
+
newPermission?: boolean | undefined;
|
1248
|
+
isHidden?: boolean | undefined;
|
1244
1249
|
}[];
|
1245
1250
|
roles: {
|
1246
1251
|
role: string;
|
1247
|
-
id:
|
1252
|
+
id: number;
|
1248
1253
|
tag: string | null;
|
1249
1254
|
description: string | null;
|
1250
1255
|
permissions: ("review" | "download" | "contributors" | "activity" | "branches_create" | "branches_main_modify" | "branches_merge" | "custom_status_modify" | "glossary_delete" | "glossary_edit" | "manage_keys" | "manage_languages" | "screenshots" | "settings" | "statistics" | "upload")[];
|