@lokalise/harmony 1.38.0 → 1.39.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 +5 -0
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +8 -3
- package/dist/harmony104.cjs +1 -1
- package/dist/harmony104.mjs +1 -1
- package/dist/harmony112.cjs +14 -21
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +13 -20
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +18 -6
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +18 -6
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +21 -132
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +20 -131
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +6 -12
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +5 -11
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +132 -5
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +132 -5
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +12 -40
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +11 -39
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +4 -59
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +5 -60
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +39 -6
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +39 -6
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +59 -13
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +59 -13
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +7 -18
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +7 -18
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +99 -6
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +81 -5
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony125.cjs +6 -99
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +5 -81
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +6 -63
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +5 -62
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +6 -89
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +5 -88
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +63 -19
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +62 -18
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +89 -6
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +88 -5
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +18 -5
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +18 -5
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony132.cjs +96 -7
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +96 -7
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +13 -57
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +13 -57
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +14 -60
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +14 -60
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +37 -19
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +36 -18
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +19 -87
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +19 -87
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +7 -13
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +7 -13
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +57 -14
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +57 -14
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +57 -33
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +57 -33
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony14.cjs +1 -1
- package/dist/harmony14.mjs +1 -1
- package/dist/harmony140.cjs +19 -29
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +18 -28
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +1 -1
- package/dist/harmony141.mjs +1 -1
- package/dist/harmony142.cjs +1 -1
- package/dist/harmony142.mjs +1 -1
- package/dist/harmony143.cjs +2 -2
- package/dist/harmony143.mjs +2 -2
- package/dist/harmony144.cjs +11 -46
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +11 -46
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +17 -13
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +16 -12
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +20 -10
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +20 -10
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +10 -14
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +10 -14
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +5 -20
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -20
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +11 -11
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +11 -11
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +31 -5
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +31 -5
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +13 -11
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +13 -11
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +45 -31
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +45 -31
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +13 -15
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +12 -14
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +1 -1
- package/dist/harmony26.mjs +1 -1
- package/dist/harmony35.cjs +10 -0
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +12 -2
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony64.cjs +19 -0
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +19 -0
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony70.cjs +21 -0
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +22 -1
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony74.cjs +1 -1
- package/dist/harmony74.mjs +1 -1
- package/dist/harmony84.cjs +6 -6
- package/dist/harmony84.mjs +6 -6
- package/dist/harmony98.cjs +1 -1
- package/dist/harmony98.mjs +1 -1
- package/dist/harmony99.cjs +1 -1
- package/dist/harmony99.mjs +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +1 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +6 -6
- package/dist/types/src/features/publicApi/contributors.d.ts +16 -16
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +23 -0
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/projects.d.ts +10 -10
- package/dist/types/src/features/publicApi/teamUsers.d.ts +111 -0
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +18 -18
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +1 -0
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +66 -0
- package/package.json +1 -1
package/dist/harmony70.mjs
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { PERMISSIONS } from "./harmony64.mjs";
|
1
2
|
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony67.mjs";
|
2
3
|
import { TEAM_ROLE_SCHEMA } from "./harmony68.mjs";
|
3
4
|
import { z } from "zod";
|
@@ -25,12 +26,32 @@ const LIST_TEAM_USERS_RESPONSE_SCHEMA = z.object({
|
|
25
26
|
team_id: z.number(),
|
26
27
|
team_users: z.array(TEAM_USER_SCHEMA)
|
27
28
|
});
|
29
|
+
const GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA = z.object({
|
30
|
+
projectIds: z.array(z.string().uuid())
|
31
|
+
});
|
32
|
+
const USER_PROJECTS_PERMISSIONS_SCHEMA = z.object({
|
33
|
+
id: z.string(),
|
34
|
+
permissions: z.object(
|
35
|
+
Object.fromEntries(
|
36
|
+
PERMISSIONS.map((permission) => [
|
37
|
+
permission,
|
38
|
+
z.union([z.literal(0), z.literal(1)]).optional()
|
39
|
+
])
|
40
|
+
)
|
41
|
+
)
|
42
|
+
});
|
43
|
+
const GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA = z.object({
|
44
|
+
projects: z.array(USER_PROJECTS_PERMISSIONS_SCHEMA)
|
45
|
+
});
|
28
46
|
export {
|
47
|
+
GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA,
|
48
|
+
GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA,
|
29
49
|
LIST_TEAM_USERS_RESPONSE_SCHEMA,
|
30
50
|
TEAM_PATH_PARAMS_SCHEMA,
|
31
51
|
TEAM_USER_API_BASE_HEADERS_SCHEMA,
|
32
52
|
TEAM_USER_PATH_PARAMS_SCHEMA,
|
33
53
|
TEAM_USER_RESPONSE_SCHEMA,
|
34
|
-
TEAM_USER_SCHEMA
|
54
|
+
TEAM_USER_SCHEMA,
|
55
|
+
USER_PROJECTS_PERMISSIONS_SCHEMA
|
35
56
|
};
|
36
57
|
//# sourceMappingURL=harmony70.mjs.map
|
package/dist/harmony70.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony70.mjs","sources":["../src/features/publicApi/types/teamUserTypes.ts"],"sourcesContent":["import { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { TEAM_ROLE_SCHEMA } from '@features/publicApi/types/teamRoleTypes'\nimport { z } from 'zod'\n\nexport const TEAM_USER_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamUserApiBaseHeaders = z.infer<typeof TEAM_USER_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_USER_SCHEMA = z.object({\n\tuser_id: z.number(),\n\temail: z.string().email(),\n\tfullname: z.string(),\n\tcreated_at: z.string(),\n\tcreated_at_timestamp: z.number(),\n\trole: TEAM_ROLE_SCHEMA,\n})\n\nexport type TeamUser = z.infer<typeof TEAM_USER_SCHEMA>\n\nexport const TEAM_USER_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.number(),\n\tuserId: z.number(),\n})\n\nexport type TeamUserPathParams = z.infer<typeof TEAM_USER_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.number(),\n})\n\nexport type TeamPathParams = z.infer<typeof TEAM_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_USER_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_user: TEAM_USER_SCHEMA,\n})\n\nexport type TeamUserResponse = z.infer<typeof TEAM_USER_RESPONSE_SCHEMA>\n\nexport const LIST_TEAM_USERS_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_users: z.array(TEAM_USER_SCHEMA),\n})\n\nexport type ListTeamUsersResponse = z.infer<typeof LIST_TEAM_USERS_RESPONSE_SCHEMA>\n"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony70.mjs","sources":["../src/features/publicApi/types/teamUserTypes.ts"],"sourcesContent":["import { PERMISSIONS } from '@features/publicApi/types/permissionTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { TEAM_ROLE_SCHEMA } from '@features/publicApi/types/teamRoleTypes'\nimport { z } from 'zod'\n\nexport const TEAM_USER_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type TeamUserApiBaseHeaders = z.infer<typeof TEAM_USER_API_BASE_HEADERS_SCHEMA>\n\nexport const TEAM_USER_SCHEMA = z.object({\n\tuser_id: z.number(),\n\temail: z.string().email(),\n\tfullname: z.string(),\n\tcreated_at: z.string(),\n\tcreated_at_timestamp: z.number(),\n\trole: TEAM_ROLE_SCHEMA,\n})\n\nexport type TeamUser = z.infer<typeof TEAM_USER_SCHEMA>\n\nexport const TEAM_USER_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.number(),\n\tuserId: z.number(),\n})\n\nexport type TeamUserPathParams = z.infer<typeof TEAM_USER_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_PATH_PARAMS_SCHEMA = z.object({\n\tteamId: z.number(),\n})\n\nexport type TeamPathParams = z.infer<typeof TEAM_PATH_PARAMS_SCHEMA>\n\nexport const TEAM_USER_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_user: TEAM_USER_SCHEMA,\n})\n\nexport type TeamUserResponse = z.infer<typeof TEAM_USER_RESPONSE_SCHEMA>\n\nexport const LIST_TEAM_USERS_RESPONSE_SCHEMA = z.object({\n\tteam_id: z.number(),\n\tteam_users: z.array(TEAM_USER_SCHEMA),\n})\n\nexport type ListTeamUsersResponse = z.infer<typeof LIST_TEAM_USERS_RESPONSE_SCHEMA>\n\nexport const GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA = z.object({\n\tprojectIds: z.array(z.string().uuid()),\n})\n\nexport type GetTeamUserPermissionsRequestBody = z.infer<\n\ttypeof GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA\n>\n\nexport const USER_PROJECTS_PERMISSIONS_SCHEMA = z.object({\n\tid: z.string(),\n\tpermissions: z.object(\n\t\tObject.fromEntries(\n\t\t\tPERMISSIONS.map((permission) => [\n\t\t\t\tpermission,\n\t\t\t\tz.union([z.literal(0), z.literal(1)]).optional(),\n\t\t\t]),\n\t\t),\n\t),\n})\n\nexport type UserProjectsPermissionsSchema = z.infer<typeof USER_PROJECTS_PERMISSIONS_SCHEMA>\n\nexport const GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA = z.object({\n\tprojects: z.array(USER_PROJECTS_PERMISSIONS_SCHEMA),\n})\n\nexport type GetTeamUserPermissionsResponse = z.infer<\n\ttypeof GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA\n>\n"],"names":[],"mappings":";;;;AAKO,MAAM,oCAAoC;AAIpC,MAAA,mBAAmB,EAAE,OAAO;AAAA,EACxC,SAAS,EAAE,OAAO;AAAA,EAClB,OAAO,EAAE,OAAO,EAAE,MAAM;AAAA,EACxB,UAAU,EAAE,OAAO;AAAA,EACnB,YAAY,EAAE,OAAO;AAAA,EACrB,sBAAsB,EAAE,OAAO;AAAA,EAC/B,MAAM;AACP,CAAC;AAIY,MAAA,+BAA+B,EAAE,OAAO;AAAA,EACpD,QAAQ,EAAE,OAAO;AAAA,EACjB,QAAQ,EAAE,OAAO;AAClB,CAAC;AAIY,MAAA,0BAA0B,EAAE,OAAO;AAAA,EAC/C,QAAQ,EAAE,OAAO;AAClB,CAAC;AAIY,MAAA,4BAA4B,EAAE,OAAO;AAAA,EACjD,SAAS,EAAE,OAAO;AAAA,EAClB,WAAW;AACZ,CAAC;AAIY,MAAA,kCAAkC,EAAE,OAAO;AAAA,EACvD,SAAS,EAAE,OAAO;AAAA,EAClB,YAAY,EAAE,MAAM,gBAAgB;AACrC,CAAC;AAIY,MAAA,gDAAgD,EAAE,OAAO;AAAA,EACrE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,KAAM,CAAA;AACtC,CAAC;AAMY,MAAA,mCAAmC,EAAE,OAAO;AAAA,EACxD,IAAI,EAAE,OAAO;AAAA,EACb,aAAa,EAAE;AAAA,IACd,OAAO;AAAA,MACN,YAAY,IAAI,CAAC,eAAe;AAAA,QAC/B;AAAA,QACA,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS;AAAA,MAC/C,CAAA;AAAA,IAAA;AAAA,EACF;AAEF,CAAC;AAIY,MAAA,4CAA4C,EAAE,OAAO;AAAA,EACjE,UAAU,EAAE,MAAM,gCAAgC;AACnD,CAAC;"}
|
package/dist/harmony74.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const React = require("react");
|
4
|
-
const utils = require("./
|
4
|
+
const utils = require("./harmony122.cjs");
|
5
5
|
function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
|
6
6
|
const skipResize = React.useRef(skipOnMount);
|
7
7
|
const onResizeRef = utils.useCallbackRef(onResize);
|
package/dist/harmony74.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { useRef, useState, useCallback, useEffect } from "react";
|
2
|
-
import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./
|
2
|
+
import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./harmony122.mjs";
|
3
3
|
function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
|
4
4
|
const skipResize = useRef(skipOnMount);
|
5
5
|
const onResizeRef = useCallbackRef(onResize);
|
package/dist/harmony84.cjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const floatingUi_core = require("./
|
4
|
+
const floatingUi_core = require("./harmony116.cjs");
|
5
5
|
const louis = require("@lokalise/louis");
|
6
6
|
const useEffectOnce = require("./harmony13.cjs");
|
7
7
|
const clsx = require("./harmony72.cjs");
|
8
8
|
const React = require("react");
|
9
|
-
const Tasks_module = require("./
|
10
|
-
const TasksContext = require("./
|
11
|
-
const TasksPopover = require("./
|
12
|
-
const TasksProvider = require("./
|
13
|
-
const taskEvents = require("./
|
9
|
+
const Tasks_module = require("./harmony117.cjs");
|
10
|
+
const TasksContext = require("./harmony118.cjs");
|
11
|
+
const TasksPopover = require("./harmony119.cjs");
|
12
|
+
const TasksProvider = require("./harmony120.cjs");
|
13
|
+
const taskEvents = require("./harmony121.cjs");
|
14
14
|
const Tasks = TasksProvider.withTasksContext(() => {
|
15
15
|
const [open, setOpen] = React.useState(false);
|
16
16
|
const { tasksCount } = TasksContext.useTasks();
|
package/dist/harmony84.mjs
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { shift } from "./
|
2
|
+
import { shift } from "./harmony116.mjs";
|
3
3
|
import { Tooltip, Popover, Button, JobIcon } from "@lokalise/louis";
|
4
4
|
import { useEffectOnce } from "./harmony13.mjs";
|
5
5
|
import { clsx } from "./harmony72.mjs";
|
6
6
|
import { useState } from "react";
|
7
|
-
import styles from "./
|
8
|
-
import { useTasks } from "./
|
9
|
-
import { TasksPopover } from "./
|
10
|
-
import { withTasksContext } from "./
|
11
|
-
import { TaskEvents } from "./
|
7
|
+
import styles from "./harmony117.mjs";
|
8
|
+
import { useTasks } from "./harmony118.mjs";
|
9
|
+
import { TasksPopover } from "./harmony119.mjs";
|
10
|
+
import { withTasksContext } from "./harmony120.mjs";
|
11
|
+
import { TaskEvents } from "./harmony121.mjs";
|
12
12
|
const Tasks = withTasksContext(() => {
|
13
13
|
const [open, setOpen] = useState(false);
|
14
14
|
const { tasksCount } = useTasks();
|
package/dist/harmony98.cjs
CHANGED
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony72.cjs");
|
6
6
|
const UpgradeIcon = require("./harmony104.cjs");
|
7
|
-
const ProfileMenuContent_module = require("./
|
7
|
+
const ProfileMenuContent_module = require("./harmony114.cjs");
|
8
8
|
const ProfileMenuContext = require("./harmony100.cjs");
|
9
9
|
const ProfileMenuContent = ({ children }) => {
|
10
10
|
const {
|
package/dist/harmony98.mjs
CHANGED
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Menu, MenuList, UserIcon } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony72.mjs";
|
4
4
|
import { UpgradeIcon } from "./harmony104.mjs";
|
5
|
-
import styles from "./
|
5
|
+
import styles from "./harmony114.mjs";
|
6
6
|
import { useProfileMenu } from "./harmony100.mjs";
|
7
7
|
const ProfileMenuContent = ({ children }) => {
|
8
8
|
const {
|
package/dist/harmony99.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const plan = require("./harmony9.cjs");
|
5
|
-
const types = require("./
|
5
|
+
const types = require("./harmony115.cjs");
|
6
6
|
const ProfileMenuContext = require("./harmony100.cjs");
|
7
7
|
const billingRoles = [
|
8
8
|
types.SidebarTeamRoles.biller,
|
package/dist/harmony99.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { isFreePlan, isTrialPlan } from "./harmony9.mjs";
|
3
|
-
import { SidebarTeamRoles } from "./
|
3
|
+
import { SidebarTeamRoles } from "./harmony115.mjs";
|
4
4
|
import { ProfileMenuContext } from "./harmony100.mjs";
|
5
5
|
const billingRoles = [
|
6
6
|
SidebarTeamRoles.biller,
|
@@ -18,6 +18,7 @@ export declare function useAuthenticatedProjectContributor<T>(wretchClient: Wret
|
|
18
18
|
fullname: string;
|
19
19
|
created_at: string;
|
20
20
|
created_at_timestamp: number;
|
21
|
+
permissions: string[];
|
21
22
|
avatar_url: string;
|
22
23
|
languages: {
|
23
24
|
lang_id: number;
|
@@ -26,7 +27,6 @@ export declare function useAuthenticatedProjectContributor<T>(wretchClient: Wret
|
|
26
27
|
is_writable: boolean | 0 | 1;
|
27
28
|
}[];
|
28
29
|
admin_rights: string[];
|
29
|
-
permissions: string[];
|
30
30
|
role_id: number | null;
|
31
31
|
is_owner: boolean;
|
32
32
|
is_admin: boolean;
|
@@ -3,10 +3,10 @@
|
|
3
3
|
*/
|
4
4
|
export declare function useNavigationProjectQuery(projectId: string): import('@tanstack/react-query').UseQueryResult<{
|
5
5
|
name: string;
|
6
|
+
description: string;
|
6
7
|
created_at: string;
|
7
8
|
created_at_timestamp: number;
|
8
9
|
team_id: number;
|
9
|
-
description: string;
|
10
10
|
uuid: string;
|
11
11
|
project_id: string;
|
12
12
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|
@@ -75,6 +75,7 @@ export declare function useNavigationContributorQuery(projectId: string): import
|
|
75
75
|
fullname: string;
|
76
76
|
created_at: string;
|
77
77
|
created_at_timestamp: number;
|
78
|
+
permissions: string[];
|
78
79
|
avatar_url: string;
|
79
80
|
languages: {
|
80
81
|
lang_id: number;
|
@@ -83,7 +84,6 @@ export declare function useNavigationContributorQuery(projectId: string): import
|
|
83
84
|
is_writable: boolean | 0 | 1;
|
84
85
|
}[];
|
85
86
|
admin_rights: string[];
|
86
|
-
permissions: string[];
|
87
87
|
role_id: number | null;
|
88
88
|
is_owner: boolean;
|
89
89
|
is_admin: boolean;
|
@@ -98,10 +98,10 @@ export declare function useNavigationContributorQuery(projectId: string): import
|
|
98
98
|
export declare function useNavigationData(projectId: string): {
|
99
99
|
projectQuery: import('@tanstack/react-query').UseQueryResult<{
|
100
100
|
name: string;
|
101
|
+
description: string;
|
101
102
|
created_at: string;
|
102
103
|
created_at_timestamp: number;
|
103
104
|
team_id: number;
|
104
|
-
description: string;
|
105
105
|
uuid: string;
|
106
106
|
project_id: string;
|
107
107
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|
@@ -167,6 +167,7 @@ export declare function useNavigationData(projectId: string): {
|
|
167
167
|
fullname: string;
|
168
168
|
created_at: string;
|
169
169
|
created_at_timestamp: number;
|
170
|
+
permissions: string[];
|
170
171
|
avatar_url: string;
|
171
172
|
languages: {
|
172
173
|
lang_id: number;
|
@@ -175,7 +176,6 @@ export declare function useNavigationData(projectId: string): {
|
|
175
176
|
is_writable: boolean | 0 | 1;
|
176
177
|
}[];
|
177
178
|
admin_rights: string[];
|
178
|
-
permissions: string[];
|
179
179
|
role_id: number | null;
|
180
180
|
is_owner: boolean;
|
181
181
|
is_admin: boolean;
|
@@ -187,10 +187,10 @@ export declare function useNavigationData(projectId: string): {
|
|
187
187
|
data: {
|
188
188
|
project: {
|
189
189
|
name: string;
|
190
|
+
description: string;
|
190
191
|
created_at: string;
|
191
192
|
created_at_timestamp: number;
|
192
193
|
team_id: number;
|
193
|
-
description: string;
|
194
194
|
uuid: string;
|
195
195
|
project_id: string;
|
196
196
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|
@@ -254,6 +254,7 @@ export declare function useNavigationData(projectId: string): {
|
|
254
254
|
fullname: string;
|
255
255
|
created_at: string;
|
256
256
|
created_at_timestamp: number;
|
257
|
+
permissions: string[];
|
257
258
|
avatar_url: string;
|
258
259
|
languages: {
|
259
260
|
lang_id: number;
|
@@ -262,7 +263,6 @@ export declare function useNavigationData(projectId: string): {
|
|
262
263
|
is_writable: boolean | 0 | 1;
|
263
264
|
}[];
|
264
265
|
admin_rights: string[];
|
265
|
-
permissions: string[];
|
266
266
|
role_id: number | null;
|
267
267
|
is_owner: boolean;
|
268
268
|
is_admin: boolean;
|
@@ -46,6 +46,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
46
46
|
fullname: string;
|
47
47
|
created_at: string;
|
48
48
|
created_at_timestamp: number;
|
49
|
+
permissions: string[];
|
49
50
|
avatar_url: string;
|
50
51
|
languages: {
|
51
52
|
lang_id: number;
|
@@ -54,7 +55,6 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
54
55
|
is_writable: boolean | 0 | 1;
|
55
56
|
}[];
|
56
57
|
admin_rights: string[];
|
57
|
-
permissions: string[];
|
58
58
|
role_id: number | null;
|
59
59
|
is_owner: boolean;
|
60
60
|
is_admin: boolean;
|
@@ -67,6 +67,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
67
67
|
fullname: string;
|
68
68
|
created_at: string;
|
69
69
|
created_at_timestamp: number;
|
70
|
+
permissions: string[];
|
70
71
|
avatar_url: string;
|
71
72
|
languages: {
|
72
73
|
lang_id: number;
|
@@ -75,7 +76,6 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
75
76
|
is_writable: boolean | 0 | 1;
|
76
77
|
}[];
|
77
78
|
admin_rights: string[];
|
78
|
-
permissions: string[];
|
79
79
|
role_id: number | null;
|
80
80
|
is_owner: boolean;
|
81
81
|
is_admin: boolean;
|
@@ -90,6 +90,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
90
90
|
fullname: string;
|
91
91
|
created_at: string;
|
92
92
|
created_at_timestamp: number;
|
93
|
+
permissions: string[];
|
93
94
|
avatar_url: string;
|
94
95
|
languages: {
|
95
96
|
lang_id: number;
|
@@ -98,7 +99,6 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
98
99
|
is_writable: boolean | 0 | 1;
|
99
100
|
}[];
|
100
101
|
admin_rights: string[];
|
101
|
-
permissions: string[];
|
102
102
|
role_id: number | null;
|
103
103
|
is_owner: boolean;
|
104
104
|
is_admin: boolean;
|
@@ -114,6 +114,7 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
114
114
|
fullname: string;
|
115
115
|
created_at: string;
|
116
116
|
created_at_timestamp: number;
|
117
|
+
permissions: string[];
|
117
118
|
avatar_url: string;
|
118
119
|
languages: {
|
119
120
|
lang_id: number;
|
@@ -122,7 +123,6 @@ export declare const listContributors: import('@lokalise/api-contracts').GetRout
|
|
122
123
|
is_writable: boolean | 0 | 1;
|
123
124
|
}[];
|
124
125
|
admin_rights: string[];
|
125
|
-
permissions: string[];
|
126
126
|
role_id: number | null;
|
127
127
|
is_owner: boolean;
|
128
128
|
is_admin: boolean;
|
@@ -267,6 +267,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
267
267
|
fullname: string;
|
268
268
|
created_at: string;
|
269
269
|
created_at_timestamp: number;
|
270
|
+
permissions: string[];
|
270
271
|
avatar_url: string;
|
271
272
|
languages: {
|
272
273
|
lang_id: number;
|
@@ -275,7 +276,6 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
275
276
|
is_writable: boolean | 0 | 1;
|
276
277
|
}[];
|
277
278
|
admin_rights: string[];
|
278
|
-
permissions: string[];
|
279
279
|
role_id: number | null;
|
280
280
|
is_owner: boolean;
|
281
281
|
is_admin: boolean;
|
@@ -288,6 +288,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
288
288
|
fullname: string;
|
289
289
|
created_at: string;
|
290
290
|
created_at_timestamp: number;
|
291
|
+
permissions: string[];
|
291
292
|
avatar_url: string;
|
292
293
|
languages: {
|
293
294
|
lang_id: number;
|
@@ -296,7 +297,6 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
296
297
|
is_writable: boolean | 0 | 1;
|
297
298
|
}[];
|
298
299
|
admin_rights: string[];
|
299
|
-
permissions: string[];
|
300
300
|
role_id: number | null;
|
301
301
|
is_owner: boolean;
|
302
302
|
is_admin: boolean;
|
@@ -312,6 +312,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
312
312
|
fullname: string;
|
313
313
|
created_at: string;
|
314
314
|
created_at_timestamp: number;
|
315
|
+
permissions: string[];
|
315
316
|
avatar_url: string;
|
316
317
|
languages: {
|
317
318
|
lang_id: number;
|
@@ -320,7 +321,6 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
320
321
|
is_writable: boolean | 0 | 1;
|
321
322
|
}[];
|
322
323
|
admin_rights: string[];
|
323
|
-
permissions: string[];
|
324
324
|
role_id: number | null;
|
325
325
|
is_owner: boolean;
|
326
326
|
is_admin: boolean;
|
@@ -336,6 +336,7 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
336
336
|
fullname: string;
|
337
337
|
created_at: string;
|
338
338
|
created_at_timestamp: number;
|
339
|
+
permissions: string[];
|
339
340
|
avatar_url: string;
|
340
341
|
languages: {
|
341
342
|
lang_id: number;
|
@@ -344,7 +345,6 @@ export declare const retrieveContributor: import('@lokalise/api-contracts').GetR
|
|
344
345
|
is_writable: boolean | 0 | 1;
|
345
346
|
}[];
|
346
347
|
admin_rights: string[];
|
347
|
-
permissions: string[];
|
348
348
|
role_id: number | null;
|
349
349
|
is_owner: boolean;
|
350
350
|
is_admin: boolean;
|
@@ -709,6 +709,7 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
709
709
|
fullname: string;
|
710
710
|
created_at: string;
|
711
711
|
created_at_timestamp: number;
|
712
|
+
permissions: string[];
|
712
713
|
avatar_url: string;
|
713
714
|
languages: {
|
714
715
|
lang_id: number;
|
@@ -717,7 +718,6 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
717
718
|
is_writable: boolean | 0 | 1;
|
718
719
|
}[];
|
719
720
|
admin_rights: string[];
|
720
|
-
permissions: string[];
|
721
721
|
role_id: number | null;
|
722
722
|
is_owner: boolean;
|
723
723
|
is_admin: boolean;
|
@@ -730,6 +730,7 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
730
730
|
fullname: string;
|
731
731
|
created_at: string;
|
732
732
|
created_at_timestamp: number;
|
733
|
+
permissions: string[];
|
733
734
|
avatar_url: string;
|
734
735
|
languages: {
|
735
736
|
lang_id: number;
|
@@ -738,7 +739,6 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
738
739
|
is_writable: boolean | 0 | 1;
|
739
740
|
}[];
|
740
741
|
admin_rights: string[];
|
741
|
-
permissions: string[];
|
742
742
|
role_id: number | null;
|
743
743
|
is_owner: boolean;
|
744
744
|
is_admin: boolean;
|
@@ -753,6 +753,7 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
753
753
|
fullname: string;
|
754
754
|
created_at: string;
|
755
755
|
created_at_timestamp: number;
|
756
|
+
permissions: string[];
|
756
757
|
avatar_url: string;
|
757
758
|
languages: {
|
758
759
|
lang_id: number;
|
@@ -761,7 +762,6 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
761
762
|
is_writable: boolean | 0 | 1;
|
762
763
|
}[];
|
763
764
|
admin_rights: string[];
|
764
|
-
permissions: string[];
|
765
765
|
role_id: number | null;
|
766
766
|
is_owner: boolean;
|
767
767
|
is_admin: boolean;
|
@@ -778,6 +778,7 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
778
778
|
fullname: string;
|
779
779
|
created_at: string;
|
780
780
|
created_at_timestamp: number;
|
781
|
+
permissions: string[];
|
781
782
|
avatar_url: string;
|
782
783
|
languages: {
|
783
784
|
lang_id: number;
|
@@ -786,7 +787,6 @@ export declare const addContributors: import('@lokalise/api-contracts').PayloadR
|
|
786
787
|
is_writable: boolean | 0 | 1;
|
787
788
|
}[];
|
788
789
|
admin_rights: string[];
|
789
|
-
permissions: string[];
|
790
790
|
role_id: number | null;
|
791
791
|
is_owner: boolean;
|
792
792
|
is_admin: boolean;
|
@@ -959,6 +959,7 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
959
959
|
fullname: string;
|
960
960
|
created_at: string;
|
961
961
|
created_at_timestamp: number;
|
962
|
+
permissions: string[];
|
962
963
|
avatar_url: string;
|
963
964
|
languages: {
|
964
965
|
lang_id: number;
|
@@ -967,7 +968,6 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
967
968
|
is_writable: boolean | 0 | 1;
|
968
969
|
}[];
|
969
970
|
admin_rights: string[];
|
970
|
-
permissions: string[];
|
971
971
|
role_id: number | null;
|
972
972
|
is_owner: boolean;
|
973
973
|
is_admin: boolean;
|
@@ -980,6 +980,7 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
980
980
|
fullname: string;
|
981
981
|
created_at: string;
|
982
982
|
created_at_timestamp: number;
|
983
|
+
permissions: string[];
|
983
984
|
avatar_url: string;
|
984
985
|
languages: {
|
985
986
|
lang_id: number;
|
@@ -988,7 +989,6 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
988
989
|
is_writable: boolean | 0 | 1;
|
989
990
|
}[];
|
990
991
|
admin_rights: string[];
|
991
|
-
permissions: string[];
|
992
992
|
role_id: number | null;
|
993
993
|
is_owner: boolean;
|
994
994
|
is_admin: boolean;
|
@@ -1004,6 +1004,7 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
1004
1004
|
fullname: string;
|
1005
1005
|
created_at: string;
|
1006
1006
|
created_at_timestamp: number;
|
1007
|
+
permissions: string[];
|
1007
1008
|
avatar_url: string;
|
1008
1009
|
languages: {
|
1009
1010
|
lang_id: number;
|
@@ -1012,7 +1013,6 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
1012
1013
|
is_writable: boolean | 0 | 1;
|
1013
1014
|
}[];
|
1014
1015
|
admin_rights: string[];
|
1015
|
-
permissions: string[];
|
1016
1016
|
role_id: number | null;
|
1017
1017
|
is_owner: boolean;
|
1018
1018
|
is_admin: boolean;
|
@@ -1028,6 +1028,7 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
1028
1028
|
fullname: string;
|
1029
1029
|
created_at: string;
|
1030
1030
|
created_at_timestamp: number;
|
1031
|
+
permissions: string[];
|
1031
1032
|
avatar_url: string;
|
1032
1033
|
languages: {
|
1033
1034
|
lang_id: number;
|
@@ -1036,7 +1037,6 @@ export declare const updateContributors: import('@lokalise/api-contracts').Paylo
|
|
1036
1037
|
is_writable: boolean | 0 | 1;
|
1037
1038
|
}[];
|
1038
1039
|
admin_rights: string[];
|
1039
|
-
permissions: string[];
|
1040
1040
|
role_id: number | null;
|
1041
1041
|
is_owner: boolean;
|
1042
1042
|
is_admin: boolean;
|
@@ -17,6 +17,7 @@ export declare function useAddContributorMutation<T>(wretchClient: Wretch<T>, he
|
|
17
17
|
fullname: string;
|
18
18
|
created_at: string;
|
19
19
|
created_at_timestamp: number;
|
20
|
+
permissions: string[];
|
20
21
|
avatar_url: string;
|
21
22
|
languages: {
|
22
23
|
lang_id: number;
|
@@ -25,7 +26,6 @@ export declare function useAddContributorMutation<T>(wretchClient: Wretch<T>, he
|
|
25
26
|
is_writable: boolean | 0 | 1;
|
26
27
|
}[];
|
27
28
|
admin_rights: string[];
|
28
|
-
permissions: string[];
|
29
29
|
role_id: number | null;
|
30
30
|
is_owner: boolean;
|
31
31
|
is_admin: boolean;
|
@@ -11,10 +11,10 @@ import { CreateProjectRequestBody, Project, ProjectApiBaseHeaders } from '../typ
|
|
11
11
|
*/
|
12
12
|
export declare function useCreateProjectMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ProjectApiBaseHeaders>, overrides?: ApiMutationOverrides<Project, CreateProjectRequestBody>): import('@tanstack/react-query').UseMutationResult<{
|
13
13
|
name: string;
|
14
|
+
description: string;
|
14
15
|
created_at: string;
|
15
16
|
created_at_timestamp: number;
|
16
17
|
team_id: number;
|
17
|
-
description: string;
|
18
18
|
uuid: string;
|
19
19
|
project_id: string;
|
20
20
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|
@@ -28,6 +28,7 @@ export declare const useListContributorsQuery: <T>(wretchClient: Wretch<T>, head
|
|
28
28
|
fullname: string;
|
29
29
|
created_at: string;
|
30
30
|
created_at_timestamp: number;
|
31
|
+
permissions: string[];
|
31
32
|
avatar_url: string;
|
32
33
|
languages: {
|
33
34
|
lang_id: number;
|
@@ -36,7 +37,6 @@ export declare const useListContributorsQuery: <T>(wretchClient: Wretch<T>, head
|
|
36
37
|
is_writable: boolean | 0 | 1;
|
37
38
|
}[];
|
38
39
|
admin_rights: string[];
|
39
|
-
permissions: string[];
|
40
40
|
role_id: number | null;
|
41
41
|
is_owner: boolean;
|
42
42
|
is_admin: boolean;
|
@@ -26,10 +26,10 @@ export declare const listProjectsKey: {
|
|
26
26
|
export declare function useListProjectsQuery<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ProjectApiBaseHeaders>, overrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey>): import('@tanstack/react-query').UseQueryResult<{
|
27
27
|
projects: {
|
28
28
|
name: string;
|
29
|
+
description: string;
|
29
30
|
created_at: string;
|
30
31
|
created_at_timestamp: number;
|
31
32
|
team_id: number;
|
32
|
-
description: string;
|
33
33
|
uuid: string;
|
34
34
|
project_id: string;
|
35
35
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|
@@ -36,6 +36,7 @@ export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, h
|
|
36
36
|
fullname: string;
|
37
37
|
created_at: string;
|
38
38
|
created_at_timestamp: number;
|
39
|
+
permissions: string[];
|
39
40
|
avatar_url: string;
|
40
41
|
languages: {
|
41
42
|
lang_id: number;
|
@@ -44,7 +45,6 @@ export declare const useRetrieveContributorQuery: <T>(wretchClient: Wretch<T>, h
|
|
44
45
|
is_writable: boolean | 0 | 1;
|
45
46
|
}[];
|
46
47
|
admin_rights: string[];
|
47
|
-
permissions: string[];
|
48
48
|
role_id: number | null;
|
49
49
|
is_owner: boolean;
|
50
50
|
is_admin: boolean;
|
@@ -17,10 +17,10 @@ export declare const retrieveProjectQueryKey: {
|
|
17
17
|
*/
|
18
18
|
export declare function useRetrieveProjectQuery<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ProjectApiBaseHeaders>, overrides: ApiQueryOverrides<Project, typeof retrieveProjectQueryKey>): import('@tanstack/react-query').UseQueryResult<{
|
19
19
|
name: string;
|
20
|
+
description: string;
|
20
21
|
created_at: string;
|
21
22
|
created_at_timestamp: number;
|
22
23
|
team_id: number;
|
23
|
-
description: string;
|
24
24
|
uuid: string;
|
25
25
|
project_id: string;
|
26
26
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
|
+
import { TeamApiBaseHeaders } from '../types/teamTypes';
|
3
|
+
import { GetTeamUserPermissionsRequestBody, GetTeamUserPermissionsResponse, TeamUserPathParams } from '../types/teamUserTypes';
|
4
|
+
import { ApiMutationOverrides } from '../../../utils/types/apiMutationOverrides';
|
5
|
+
import { Wretch } from 'wretch';
|
6
|
+
/**
|
7
|
+
* A react-router wrapper about the createProject public API endpoint
|
8
|
+
*
|
9
|
+
* @param wretchClient - Wretch instance configured to a public API instance.
|
10
|
+
* @param params - URL parameters
|
11
|
+
* @param headers - A header builder instance to resolve the headers for the request.
|
12
|
+
* @param overrides - Additional options to pass to the query.
|
13
|
+
*/
|
14
|
+
export declare function useRetrieveUserPermissions<T>(wretchClient: Wretch<T>, params: TeamUserPathParams, headers: HeaderBuilder<TeamApiBaseHeaders>, overrides?: ApiMutationOverrides<GetTeamUserPermissionsResponse, GetTeamUserPermissionsRequestBody>): import('@tanstack/react-query').UseMutationResult<{
|
15
|
+
projects: {
|
16
|
+
id: string;
|
17
|
+
permissions: {
|
18
|
+
[x: string]: 0 | 1 | undefined;
|
19
|
+
};
|
20
|
+
}[];
|
21
|
+
}, undefined, {
|
22
|
+
projectIds: string[];
|
23
|
+
}, undefined>;
|
@@ -18,6 +18,7 @@ export declare function useUpdateContributorMutation<T>(wretchClient: Wretch<T>,
|
|
18
18
|
fullname: string;
|
19
19
|
created_at: string;
|
20
20
|
created_at_timestamp: number;
|
21
|
+
permissions: string[];
|
21
22
|
avatar_url: string;
|
22
23
|
languages: {
|
23
24
|
lang_id: number;
|
@@ -26,7 +27,6 @@ export declare function useUpdateContributorMutation<T>(wretchClient: Wretch<T>,
|
|
26
27
|
is_writable: boolean | 0 | 1;
|
27
28
|
}[];
|
28
29
|
admin_rights: string[];
|
29
|
-
permissions: string[];
|
30
30
|
role_id: number | null;
|
31
31
|
is_owner: boolean;
|
32
32
|
is_admin: boolean;
|
@@ -12,10 +12,10 @@ import { Project, ProjectApiBaseHeaders, ProjectIdPathParam, UpdateProjectReques
|
|
12
12
|
*/
|
13
13
|
export declare function useUpdateProjectMutation<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ProjectApiBaseHeaders>, params: ProjectIdPathParam, overrides?: ApiMutationOverrides<Project, UpdateProjectRequestBody>): import('@tanstack/react-query').UseMutationResult<{
|
14
14
|
name: string;
|
15
|
+
description: string;
|
15
16
|
created_at: string;
|
16
17
|
created_at_timestamp: number;
|
17
18
|
team_id: number;
|
18
|
-
description: string;
|
19
19
|
uuid: string;
|
20
20
|
project_id: string;
|
21
21
|
project_type: "localization_files" | "paged_documents" | "marketing" | "content_integration";
|