@lokalise/harmony 1.31.1 → 1.32.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/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 +12 -46
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -46
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +33 -13
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +32 -12
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +13 -11
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +13 -11
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +5 -31
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +5 -31
- 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/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/harmony87.cjs +1 -1
- package/dist/harmony87.mjs +1 -1
- package/dist/harmony88.cjs +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony95.cjs +10 -9
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +12 -11
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +11 -20
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +11 -20
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +9 -10
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +11 -12
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +20 -11
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +20 -11
- package/dist/harmony98.mjs.map +1 -1
- 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 +4 -3
- package/dist/types/src/features/publicApi/projects.d.ts +20 -15
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +20 -15
- 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,9 +24,10 @@ 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
|
+
newPermission: boolean;
|
28
|
+
doesSetAllReadOnlyLanguages: boolean;
|
29
|
+
isHidden: boolean;
|
30
|
+
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;
|
30
31
|
}[];
|
31
32
|
roles: {
|
32
33
|
role: string;
|
@@ -1722,27 +1722,30 @@ 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
|
+
newPermission: import('zod').ZodBoolean;
|
1727
|
+
doesSetAllReadOnlyLanguages: import('zod').ZodBoolean;
|
1728
|
+
isHidden: 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
|
+
newPermission: boolean;
|
1736
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1737
|
+
isHidden: boolean;
|
1738
|
+
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
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
|
+
newPermission: boolean;
|
1746
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1747
|
+
isHidden: boolean;
|
1748
|
+
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;
|
1746
1749
|
}>, "many">;
|
1747
1750
|
roles: import('zod').ZodArray<import('zod').ZodObject<{
|
1748
1751
|
id: import('zod').ZodString;
|
@@ -1784,9 +1787,10 @@ 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
|
+
newPermission: boolean;
|
1791
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1792
|
+
isHidden: boolean;
|
1793
|
+
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;
|
1790
1794
|
}[];
|
1791
1795
|
roles: {
|
1792
1796
|
role: string;
|
@@ -1808,9 +1812,10 @@ 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
|
+
newPermission: boolean;
|
1816
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1817
|
+
isHidden: boolean;
|
1818
|
+
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;
|
1814
1819
|
}[];
|
1815
1820
|
roles: {
|
1816
1821
|
role: string;
|
@@ -1152,27 +1152,30 @@ 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
|
+
newPermission: z.ZodBoolean;
|
1157
|
+
doesSetAllReadOnlyLanguages: z.ZodBoolean;
|
1158
|
+
isHidden: 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
|
+
newPermission: boolean;
|
1166
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1167
|
+
isHidden: boolean;
|
1168
|
+
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
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
|
+
newPermission: boolean;
|
1176
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1177
|
+
isHidden: boolean;
|
1178
|
+
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;
|
1176
1179
|
}>, "many">;
|
1177
1180
|
roles: z.ZodArray<z.ZodObject<{
|
1178
1181
|
id: z.ZodString;
|
@@ -1214,9 +1217,10 @@ 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
|
+
newPermission: boolean;
|
1221
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1222
|
+
isHidden: boolean;
|
1223
|
+
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;
|
1220
1224
|
}[];
|
1221
1225
|
roles: {
|
1222
1226
|
role: string;
|
@@ -1238,9 +1242,10 @@ 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
|
+
newPermission: boolean;
|
1246
|
+
doesSetAllReadOnlyLanguages: boolean;
|
1247
|
+
isHidden: boolean;
|
1248
|
+
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;
|
1244
1249
|
}[];
|
1245
1250
|
roles: {
|
1246
1251
|
role: string;
|