@lokalise/harmony 2.0.2 → 2.0.4

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.
Files changed (234) hide show
  1. package/dist/harmony103.cjs +2 -1
  2. package/dist/harmony103.cjs.map +1 -1
  3. package/dist/harmony103.mjs +4 -3
  4. package/dist/harmony103.mjs.map +1 -1
  5. package/dist/harmony105.cjs +2 -2
  6. package/dist/harmony105.mjs +2 -2
  7. package/dist/harmony106.cjs +165 -13
  8. package/dist/harmony106.cjs.map +1 -1
  9. package/dist/harmony106.mjs +165 -13
  10. package/dist/harmony106.mjs.map +1 -1
  11. package/dist/harmony107.cjs +36 -158
  12. package/dist/harmony107.cjs.map +1 -1
  13. package/dist/harmony107.mjs +37 -159
  14. package/dist/harmony107.mjs.map +1 -1
  15. package/dist/harmony108.cjs +12 -42
  16. package/dist/harmony108.cjs.map +1 -1
  17. package/dist/harmony108.mjs +12 -42
  18. package/dist/harmony108.mjs.map +1 -1
  19. package/dist/harmony109.cjs +10 -9
  20. package/dist/harmony109.cjs.map +1 -1
  21. package/dist/harmony109.mjs +12 -11
  22. package/dist/harmony109.mjs.map +1 -1
  23. package/dist/harmony110.cjs +11 -20
  24. package/dist/harmony110.cjs.map +1 -1
  25. package/dist/harmony110.mjs +11 -20
  26. package/dist/harmony110.mjs.map +1 -1
  27. package/dist/harmony115.cjs +4 -0
  28. package/dist/harmony115.cjs.map +1 -1
  29. package/dist/harmony115.mjs +4 -0
  30. package/dist/harmony115.mjs.map +1 -1
  31. package/dist/harmony119.cjs +9 -10
  32. package/dist/harmony119.cjs.map +1 -1
  33. package/dist/harmony119.mjs +11 -12
  34. package/dist/harmony119.mjs.map +1 -1
  35. package/dist/harmony120.cjs +20 -11
  36. package/dist/harmony120.cjs.map +1 -1
  37. package/dist/harmony120.mjs +20 -11
  38. package/dist/harmony120.mjs.map +1 -1
  39. package/dist/harmony121.cjs +6 -98
  40. package/dist/harmony121.cjs.map +1 -1
  41. package/dist/harmony121.mjs +7 -82
  42. package/dist/harmony121.mjs.map +1 -1
  43. package/dist/harmony122.cjs +17 -20
  44. package/dist/harmony122.cjs.map +1 -1
  45. package/dist/harmony122.mjs +17 -20
  46. package/dist/harmony122.mjs.map +1 -1
  47. package/dist/harmony123.cjs +8 -7
  48. package/dist/harmony123.cjs.map +1 -1
  49. package/dist/harmony123.mjs +8 -7
  50. package/dist/harmony123.mjs.map +1 -1
  51. package/dist/harmony124.cjs +7 -16
  52. package/dist/harmony124.cjs.map +1 -1
  53. package/dist/harmony124.mjs +7 -16
  54. package/dist/harmony124.mjs.map +1 -1
  55. package/dist/harmony125.cjs +14 -7
  56. package/dist/harmony125.cjs.map +1 -1
  57. package/dist/harmony125.mjs +14 -7
  58. package/dist/harmony125.mjs.map +1 -1
  59. package/dist/harmony126.cjs +20 -8
  60. package/dist/harmony126.cjs.map +1 -1
  61. package/dist/harmony126.mjs +20 -8
  62. package/dist/harmony126.mjs.map +1 -1
  63. package/dist/harmony127.cjs +86 -14
  64. package/dist/harmony127.cjs.map +1 -1
  65. package/dist/harmony127.mjs +86 -14
  66. package/dist/harmony127.mjs.map +1 -1
  67. package/dist/harmony128.cjs +30 -87
  68. package/dist/harmony128.cjs.map +1 -1
  69. package/dist/harmony128.mjs +30 -87
  70. package/dist/harmony128.mjs.map +1 -1
  71. package/dist/harmony129.cjs +98 -29
  72. package/dist/harmony129.cjs.map +1 -1
  73. package/dist/harmony129.mjs +81 -29
  74. package/dist/harmony129.mjs.map +1 -1
  75. package/dist/harmony145.cjs +4 -6
  76. package/dist/harmony145.cjs.map +1 -1
  77. package/dist/harmony145.mjs +3 -5
  78. package/dist/harmony145.mjs.map +1 -1
  79. package/dist/harmony146.cjs +4 -6
  80. package/dist/harmony146.cjs.map +1 -1
  81. package/dist/harmony146.mjs +3 -5
  82. package/dist/harmony146.mjs.map +1 -1
  83. package/dist/harmony147.cjs +3 -3
  84. package/dist/harmony147.cjs.map +1 -1
  85. package/dist/harmony147.mjs +3 -3
  86. package/dist/harmony147.mjs.map +1 -1
  87. package/dist/harmony148.cjs +14 -3
  88. package/dist/harmony148.cjs.map +1 -1
  89. package/dist/harmony148.mjs +14 -3
  90. package/dist/harmony148.mjs.map +1 -1
  91. package/dist/harmony149.cjs +14 -3
  92. package/dist/harmony149.cjs.map +1 -1
  93. package/dist/harmony149.mjs +14 -3
  94. package/dist/harmony149.mjs.map +1 -1
  95. package/dist/harmony150.cjs +3 -14
  96. package/dist/harmony150.cjs.map +1 -1
  97. package/dist/harmony150.mjs +3 -14
  98. package/dist/harmony150.mjs.map +1 -1
  99. package/dist/harmony151.cjs +6 -15
  100. package/dist/harmony151.cjs.map +1 -1
  101. package/dist/harmony151.mjs +5 -14
  102. package/dist/harmony151.mjs.map +1 -1
  103. package/dist/harmony152.cjs +6 -4
  104. package/dist/harmony152.cjs.map +1 -1
  105. package/dist/harmony152.mjs +5 -3
  106. package/dist/harmony152.mjs.map +1 -1
  107. package/dist/harmony161.cjs +31 -95
  108. package/dist/harmony161.cjs.map +1 -1
  109. package/dist/harmony161.mjs +31 -95
  110. package/dist/harmony161.mjs.map +1 -1
  111. package/dist/harmony162.cjs +94 -11
  112. package/dist/harmony162.cjs.map +1 -1
  113. package/dist/harmony162.mjs +94 -11
  114. package/dist/harmony162.mjs.map +1 -1
  115. package/dist/harmony163.cjs +12 -13
  116. package/dist/harmony163.cjs.map +1 -1
  117. package/dist/harmony163.mjs +12 -13
  118. package/dist/harmony163.mjs.map +1 -1
  119. package/dist/harmony164.cjs +13 -35
  120. package/dist/harmony164.cjs.map +1 -1
  121. package/dist/harmony164.mjs +13 -35
  122. package/dist/harmony164.mjs.map +1 -1
  123. package/dist/harmony165.cjs +32 -24
  124. package/dist/harmony165.cjs.map +1 -1
  125. package/dist/harmony165.mjs +32 -24
  126. package/dist/harmony165.mjs.map +1 -1
  127. package/dist/harmony166.cjs +27 -31
  128. package/dist/harmony166.cjs.map +1 -1
  129. package/dist/harmony166.mjs +27 -31
  130. package/dist/harmony166.mjs.map +1 -1
  131. package/dist/harmony167.cjs +1 -1
  132. package/dist/harmony167.mjs +1 -1
  133. package/dist/harmony168.cjs +1 -1
  134. package/dist/harmony168.mjs +1 -1
  135. package/dist/harmony169.cjs +2 -2
  136. package/dist/harmony169.mjs +2 -2
  137. package/dist/harmony17.cjs +1 -1
  138. package/dist/harmony17.mjs +1 -1
  139. package/dist/harmony170.cjs +4 -11
  140. package/dist/harmony170.cjs.map +1 -1
  141. package/dist/harmony170.mjs +4 -11
  142. package/dist/harmony170.mjs.map +1 -1
  143. package/dist/harmony171.cjs +10 -15
  144. package/dist/harmony171.cjs.map +1 -1
  145. package/dist/harmony171.mjs +10 -15
  146. package/dist/harmony171.mjs.map +1 -1
  147. package/dist/harmony172.cjs +13 -18
  148. package/dist/harmony172.cjs.map +1 -1
  149. package/dist/harmony172.mjs +13 -18
  150. package/dist/harmony172.mjs.map +1 -1
  151. package/dist/harmony173.cjs +19 -10
  152. package/dist/harmony173.cjs.map +1 -1
  153. package/dist/harmony173.mjs +19 -10
  154. package/dist/harmony173.mjs.map +1 -1
  155. package/dist/harmony174.cjs +12 -4
  156. package/dist/harmony174.cjs.map +1 -1
  157. package/dist/harmony174.mjs +12 -4
  158. package/dist/harmony174.mjs.map +1 -1
  159. package/dist/harmony20.cjs +1 -1
  160. package/dist/harmony20.mjs +1 -1
  161. package/dist/harmony28.cjs +1 -1
  162. package/dist/harmony28.mjs +1 -1
  163. package/dist/harmony29.cjs +1 -1
  164. package/dist/harmony29.mjs +1 -1
  165. package/dist/harmony32.cjs +1 -1
  166. package/dist/harmony32.mjs +1 -1
  167. package/dist/harmony33.cjs +1 -1
  168. package/dist/harmony33.mjs +1 -1
  169. package/dist/harmony34.cjs +1 -1
  170. package/dist/harmony34.mjs +1 -1
  171. package/dist/harmony39.cjs +1 -1
  172. package/dist/harmony39.mjs +1 -1
  173. package/dist/harmony40.cjs +1 -1
  174. package/dist/harmony40.mjs +1 -1
  175. package/dist/harmony41.cjs +1 -1
  176. package/dist/harmony41.mjs +1 -1
  177. package/dist/harmony42.cjs +2 -2
  178. package/dist/harmony42.mjs +2 -2
  179. package/dist/harmony43.cjs +2 -2
  180. package/dist/harmony43.mjs +2 -2
  181. package/dist/harmony44.cjs +1 -1
  182. package/dist/harmony44.mjs +1 -1
  183. package/dist/harmony62.cjs.map +1 -1
  184. package/dist/harmony62.mjs.map +1 -1
  185. package/dist/harmony63.cjs.map +1 -1
  186. package/dist/harmony63.mjs.map +1 -1
  187. package/dist/harmony64.cjs.map +1 -1
  188. package/dist/harmony64.mjs.map +1 -1
  189. package/dist/harmony65.cjs.map +1 -1
  190. package/dist/harmony65.mjs.map +1 -1
  191. package/dist/harmony66.cjs.map +1 -1
  192. package/dist/harmony66.mjs.map +1 -1
  193. package/dist/harmony67.cjs.map +1 -1
  194. package/dist/harmony67.mjs.map +1 -1
  195. package/dist/harmony68.cjs.map +1 -1
  196. package/dist/harmony68.mjs.map +1 -1
  197. package/dist/harmony69.cjs.map +1 -1
  198. package/dist/harmony69.mjs.map +1 -1
  199. package/dist/harmony70.cjs.map +1 -1
  200. package/dist/harmony70.mjs.map +1 -1
  201. package/dist/harmony71.cjs.map +1 -1
  202. package/dist/harmony71.mjs.map +1 -1
  203. package/dist/harmony72.cjs.map +1 -1
  204. package/dist/harmony72.mjs.map +1 -1
  205. package/dist/harmony73.cjs.map +1 -1
  206. package/dist/harmony73.mjs.map +1 -1
  207. package/dist/harmony74.cjs.map +1 -1
  208. package/dist/harmony74.mjs.map +1 -1
  209. package/dist/harmony75.cjs.map +1 -1
  210. package/dist/harmony75.mjs.map +1 -1
  211. package/dist/harmony94.cjs +1 -1
  212. package/dist/harmony94.mjs +1 -1
  213. package/dist/harmony96.cjs +2 -2
  214. package/dist/harmony96.mjs +2 -2
  215. package/dist/harmony98.cjs +2 -2
  216. package/dist/harmony98.mjs +2 -2
  217. package/dist/types/src/components/Sidebar/types.d.ts +4 -0
  218. package/dist/types/src/features/auth/frontend/hooks/useGetPromotedClassicSessionJwtQuery.d.ts +1 -1
  219. package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +1 -26
  220. package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -11
  221. package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -11
  222. package/dist/types/src/features/publicApi/hooks/useGetUserTokenQuery.d.ts +1 -4
  223. package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -25
  224. package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -13
  225. package/dist/types/src/features/publicApi/hooks/useListProjectLanguagesQuery.d.ts +1 -13
  226. package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -65
  227. package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -11
  228. package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -14
  229. package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -25
  230. package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -63
  231. package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -33
  232. package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -8
  233. package/dist/types/src/utils/types/apiQueryOverrides.d.ts +1 -1
  234. package/package.json +1 -1
@@ -1,7 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const assertIsNever = (value) => {
4
- throw new Error(`Unexpected value: ${value}`);
5
- };
6
- exports.assertIsNever = assertIsNever;
3
+ var isObjectLike_1;
4
+ var hasRequiredIsObjectLike;
5
+ function requireIsObjectLike() {
6
+ if (hasRequiredIsObjectLike) return isObjectLike_1;
7
+ hasRequiredIsObjectLike = 1;
8
+ function isObjectLike(value) {
9
+ return value != null && typeof value == "object";
10
+ }
11
+ isObjectLike_1 = isObjectLike;
12
+ return isObjectLike_1;
13
+ }
14
+ exports.__require = requireIsObjectLike;
7
15
  //# sourceMappingURL=harmony174.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony174.cjs","sources":["../src/utils/types/assertIsNever.ts"],"sourcesContent":["export const assertIsNever = (value: never): never => {\n\tthrow new Error(`Unexpected value: ${value}`)\n}\n"],"names":[],"mappings":";;AAAa,MAAA,gBAAgB,CAAC,UAAwB;AACrD,QAAM,IAAI,MAAM,qBAAqB,KAAK,EAAE;AAC7C;;"}
1
+ {"version":3,"file":"harmony174.cjs","sources":["../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;;;AAwBA,WAAS,aAAa,OAAO;AAC3B,WAAO,SAAS,QAAQ,OAAO,SAAS;AAAA,EAC1C;AAEA,mBAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,7 +1,15 @@
1
- const assertIsNever = (value) => {
2
- throw new Error(`Unexpected value: ${value}`);
3
- };
1
+ var isObjectLike_1;
2
+ var hasRequiredIsObjectLike;
3
+ function requireIsObjectLike() {
4
+ if (hasRequiredIsObjectLike) return isObjectLike_1;
5
+ hasRequiredIsObjectLike = 1;
6
+ function isObjectLike(value) {
7
+ return value != null && typeof value == "object";
8
+ }
9
+ isObjectLike_1 = isObjectLike;
10
+ return isObjectLike_1;
11
+ }
4
12
  export {
5
- assertIsNever
13
+ requireIsObjectLike as __require
6
14
  };
7
15
  //# sourceMappingURL=harmony174.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony174.mjs","sources":["../src/utils/types/assertIsNever.ts"],"sourcesContent":["export const assertIsNever = (value: never): never => {\n\tthrow new Error(`Unexpected value: ${value}`)\n}\n"],"names":[],"mappings":"AAAa,MAAA,gBAAgB,CAAC,UAAwB;AACrD,QAAM,IAAI,MAAM,qBAAqB,KAAK,EAAE;AAC7C;"}
1
+ {"version":3,"file":"harmony174.mjs","sources":["../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;AAwBA,WAAS,aAAa,OAAO;AAC3B,WAAO,SAAS,QAAQ,OAAO,SAAS;AAAA,EAC1C;AAEA,mBAAiB;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jwtTokenPayload = require("./harmony122.cjs");
3
+ const jwtTokenPayload = require("./harmony126.cjs");
4
4
  function parseJwtTokenPayload(token) {
5
5
  try {
6
6
  const payload = token.split(".")[1];
@@ -1,4 +1,4 @@
1
- import { JWT_TOKEN_PAYLOAD_SCHEMA } from "./harmony122.mjs";
1
+ import { JWT_TOKEN_PAYLOAD_SCHEMA } from "./harmony126.mjs";
2
2
  function parseJwtTokenPayload(token) {
3
3
  try {
4
4
  const payload = token.split(".")[1];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const useGetUserTokenQuery = require("./harmony65.cjs");
4
4
  const React = require("react");
5
- const NewJwtIssuedEvent = require("./harmony106.cjs");
5
+ const NewJwtIssuedEvent = require("./harmony108.cjs");
6
6
  const cookieTokenUtils = require("./harmony21.cjs");
7
7
  function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
8
8
  const csrf = cookieTokenUtils.getCsrfTokenFromCookie();
@@ -1,6 +1,6 @@
1
1
  import { useGetUserTokenQuery, getUserTokenKey } from "./harmony65.mjs";
2
2
  import { useRef, useEffect } from "react";
3
- import { NewJwtIssuedEvent } from "./harmony106.mjs";
3
+ import { NewJwtIssuedEvent } from "./harmony108.mjs";
4
4
  import { getCsrfTokenFromCookie } from "./harmony21.mjs";
5
5
  function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
6
6
  const csrf = getCsrfTokenFromCookie();
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const jwtTokenPayload = require("./harmony20.cjs");
5
- const NewJwtIssuedEvent = require("./harmony106.cjs");
5
+ const NewJwtIssuedEvent = require("./harmony108.cjs");
6
6
  const cookieTokenUtils = require("./harmony21.cjs");
7
7
  function useAuthenticatedSessionPayload() {
8
8
  const [payload, setPayload] = React.useState();
@@ -1,6 +1,6 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { parseJwtTokenPayload } from "./harmony20.mjs";
3
- import { NewJwtIssuedEvent } from "./harmony106.mjs";
3
+ import { NewJwtIssuedEvent } from "./harmony108.mjs";
4
4
  import { getJwtTokenFromCookie } from "./harmony21.mjs";
5
5
  function useAuthenticatedSessionPayload() {
6
6
  const [payload, setPayload] = useState();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ActionsContext = require("./harmony123.cjs");
4
+ const ActionsContext = require("./harmony121.cjs");
5
5
  const FeatureFlagActionResolverContextProvider = ({
6
6
  enabledFeatureFlags,
7
7
  children
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { featureFlagContext } from "./harmony123.mjs";
2
+ import { featureFlagContext } from "./harmony121.mjs";
3
3
  const FeatureFlagActionResolverContextProvider = ({
4
4
  enabledFeatureFlags,
5
5
  children
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ActionsContext = require("./harmony123.cjs");
4
+ const ActionsContext = require("./harmony121.cjs");
5
5
  const TeamActionResolverContextProvider = ({
6
6
  teamRole,
7
7
  children
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { teamContext } from "./harmony123.mjs";
2
+ import { teamContext } from "./harmony121.mjs";
3
3
  const TeamActionResolverContextProvider = ({
4
4
  teamRole,
5
5
  children
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ActionsContext = require("./harmony123.cjs");
4
+ const ActionsContext = require("./harmony121.cjs");
5
5
  const React = require("react");
6
6
  const ProjectActionResolverContextProvider = ({
7
7
  projectType,
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { projectPermissionsContext } from "./harmony123.mjs";
2
+ import { projectPermissionsContext } from "./harmony121.mjs";
3
3
  import { useMemo } from "react";
4
4
  const ProjectActionResolverContextProvider = ({
5
5
  projectType,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const useActionResolverPayload = require("./harmony124.cjs");
3
+ const useActionResolverPayload = require("./harmony122.cjs");
4
4
  const canPerformAction = require("./harmony44.cjs");
5
5
  const React = require("react");
6
6
  const useCanPerformAction = (action) => {
@@ -1,4 +1,4 @@
1
- import { useActionResolverPayload } from "./harmony124.mjs";
1
+ import { useActionResolverPayload } from "./harmony122.mjs";
2
2
  import { canPerformAction } from "./harmony44.mjs";
3
3
  import { useMemo } from "react";
4
4
  const useCanPerformAction = (action) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const useActionResolverPayload = require("./harmony124.cjs");
3
+ const useActionResolverPayload = require("./harmony122.cjs");
4
4
  const canPerformAction = require("./harmony44.cjs");
5
5
  const React = require("react");
6
6
  const useCanPerformAllActions = (...actions) => {
@@ -1,4 +1,4 @@
1
- import { useActionResolverPayload } from "./harmony124.mjs";
1
+ import { useActionResolverPayload } from "./harmony122.mjs";
2
2
  import { canPerformAction } from "./harmony44.mjs";
3
3
  import { useMemo } from "react";
4
4
  const useCanPerformAllActions = (...actions) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const useActionResolverPayload = require("./harmony124.cjs");
3
+ const useActionResolverPayload = require("./harmony122.cjs");
4
4
  const canPerformAction = require("./harmony44.cjs");
5
5
  const React = require("react");
6
6
  const useCanPerformAnyAction = (...actions) => {
@@ -1,4 +1,4 @@
1
- import { useActionResolverPayload } from "./harmony124.mjs";
1
+ import { useActionResolverPayload } from "./harmony122.mjs";
2
2
  import { canPerformAction } from "./harmony44.mjs";
3
3
  import { useMemo } from "react";
4
4
  const useCanPerformAnyAction = (...actions) => {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const useActionResolverPayload = require("./harmony124.cjs");
4
- const hasAny = require("./harmony125.cjs");
3
+ const useActionResolverPayload = require("./harmony122.cjs");
4
+ const hasAny = require("./harmony123.cjs");
5
5
  const React = require("react");
6
6
  const useHasAnyFeatureFlags = (...features) => {
7
7
  const { enabledFeatureFlags } = useActionResolverPayload.useActionResolverPayload();
@@ -1,5 +1,5 @@
1
- import { useActionResolverPayload } from "./harmony124.mjs";
2
- import { hasAny } from "./harmony125.mjs";
1
+ import { useActionResolverPayload } from "./harmony122.mjs";
2
+ import { hasAny } from "./harmony123.mjs";
3
3
  import { useMemo } from "react";
4
4
  const useHasAnyFeatureFlags = (...features) => {
5
5
  const { enabledFeatureFlags } = useActionResolverPayload();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const useActionResolverPayload = require("./harmony124.cjs");
4
- const has = require("./harmony126.cjs");
3
+ const useActionResolverPayload = require("./harmony122.cjs");
4
+ const has = require("./harmony124.cjs");
5
5
  const React = require("react");
6
6
  const useHasAllFeatureFlags = (...features) => {
7
7
  const { enabledFeatureFlags } = useActionResolverPayload.useActionResolverPayload();
@@ -1,5 +1,5 @@
1
- import { useActionResolverPayload } from "./harmony124.mjs";
2
- import { has } from "./harmony126.mjs";
1
+ import { useActionResolverPayload } from "./harmony122.mjs";
2
+ import { has } from "./harmony124.mjs";
3
3
  import { useMemo } from "react";
4
4
  const useHasAllFeatureFlags = (...features) => {
5
5
  const { enabledFeatureFlags } = useActionResolverPayload();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const action = require("./harmony127.cjs");
3
+ const action = require("./harmony125.cjs");
4
4
  function canPerformAction(action$1, payload) {
5
5
  const resolver = action.actionResolvers[action$1];
6
6
  if (!resolver) {
@@ -1,4 +1,4 @@
1
- import { actionResolvers } from "./harmony127.mjs";
1
+ import { actionResolvers } from "./harmony125.mjs";
2
2
  function canPerformAction(action, payload) {
3
3
  const resolver = actionResolvers[action];
4
4
  if (!resolver) {
@@ -1 +1 @@
1
- {"version":3,"file":"harmony62.cjs","sources":["../src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getProjectPermissionMeta } from '../projects'\nimport type {\n\tGetProjectPermissionMetaResponseBody,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the getProjectPermissionMeta query\n */\nexport const getProjectPermissionMetaQueryKey = {\n\tprojectIdKey: (projectId: string) => ['getProjectPermissionMeta', projectId],\n}\n\n/**\n * A react-router wrapper about the getProjectPermissionMeta public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useGetProjectPermissionMetaQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<\n\t\tGetProjectPermissionMetaResponseBody,\n\t\ttypeof getProjectPermissionMetaQueryKey\n\t>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getProjectPermissionMeta, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","getProjectPermissionMeta"],"mappings":";;;;;AAcO,MAAM,mCAAmC;AAAA,EAC/C,cAAc,CAAC,cAAsB,CAAC,4BAA4B,SAAS;AAC5E;AASgB,SAAA,iCACf,cACA,SACA,WAIC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,mCAA0B;AAAA,MACtD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony62.cjs","sources":["../src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getProjectPermissionMeta } from '../projects'\nimport type {\n\tGetProjectPermissionMetaResponseBody,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the getProjectPermissionMeta query\n */\nexport const getProjectPermissionMetaQueryKey = {\n\tprojectIdKey: (projectId: string) => ['getProjectPermissionMeta', projectId],\n}\n\n/**\n * A react-router wrapper about the getProjectPermissionMeta public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useGetProjectPermissionMetaQuery<T, S = GetProjectPermissionMetaResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<\n\t\tGetProjectPermissionMetaResponseBody,\n\t\ttypeof getProjectPermissionMetaQueryKey,\n\t\tS\n\t>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getProjectPermissionMeta, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","getProjectPermissionMeta"],"mappings":";;;;;AAcO,MAAM,mCAAmC;AAAA,EAC/C,cAAc,CAAC,cAAsB,CAAC,4BAA4B,SAAS;AAC5E;AASgB,SAAA,iCACf,cACA,SACA,WAKC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,mCAA0B;AAAA,MACtD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony62.mjs","sources":["../src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getProjectPermissionMeta } from '../projects'\nimport type {\n\tGetProjectPermissionMetaResponseBody,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the getProjectPermissionMeta query\n */\nexport const getProjectPermissionMetaQueryKey = {\n\tprojectIdKey: (projectId: string) => ['getProjectPermissionMeta', projectId],\n}\n\n/**\n * A react-router wrapper about the getProjectPermissionMeta public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useGetProjectPermissionMetaQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<\n\t\tGetProjectPermissionMetaResponseBody,\n\t\ttypeof getProjectPermissionMetaQueryKey\n\t>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getProjectPermissionMeta, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAcO,MAAM,mCAAmC;AAAA,EAC/C,cAAc,CAAC,cAAsB,CAAC,4BAA4B,SAAS;AAC5E;AASgB,SAAA,iCACf,cACA,SACA,WAIC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,0BAA0B;AAAA,MACtD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony62.mjs","sources":["../src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getProjectPermissionMeta } from '../projects'\nimport type {\n\tGetProjectPermissionMetaResponseBody,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * Factory function to create the query key for the getProjectPermissionMeta query\n */\nexport const getProjectPermissionMetaQueryKey = {\n\tprojectIdKey: (projectId: string) => ['getProjectPermissionMeta', projectId],\n}\n\n/**\n * A react-router wrapper about the getProjectPermissionMeta public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useGetProjectPermissionMetaQuery<T, S = GetProjectPermissionMetaResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<\n\t\tGetProjectPermissionMetaResponseBody,\n\t\ttypeof getProjectPermissionMetaQueryKey,\n\t\tS\n\t>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getProjectPermissionMeta, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAcO,MAAM,mCAAmC;AAAA,EAC/C,cAAc,CAAC,cAAsB,CAAC,4BAA4B,SAAS;AAC5E;AASgB,SAAA,iCACf,cACA,SACA,WAKC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,0BAA0B;AAAA,MACtD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony63.cjs","sources":["../src/features/publicApi/hooks/useGetScoreQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/node'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getScore } from '../score'\nimport type { GetScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\nexport const getScoreKey = {\n\tparamsKey: (params: ScoreRequestQuery) => ['getScore', params] as const,\n}\n\nexport function useGetScoreQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiQueryOverrides<GetScoreResponseBody, typeof getScoreKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, getScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","getScore"],"mappings":";;;;;AASO,MAAM,cAAc;AAAA,EAC1B,WAAW,CAAC,WAA8B,CAAC,YAAY,MAAM;AAC9D;AAEgB,SAAA,iBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,gBAAU;AAAA,MACtC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony63.cjs","sources":["../src/features/publicApi/hooks/useGetScoreQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/node'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getScore } from '../score'\nimport type { GetScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\nexport const getScoreKey = {\n\tparamsKey: (params: ScoreRequestQuery) => ['getScore', params] as const,\n}\n\nexport function useGetScoreQuery<T, S = GetScoreResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiQueryOverrides<GetScoreResponseBody, typeof getScoreKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, getScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","getScore"],"mappings":";;;;;AASO,MAAM,cAAc;AAAA,EAC1B,WAAW,CAAC,WAA8B,CAAC,YAAY,MAAM;AAC9D;AAEgB,SAAA,iBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,gBAAU;AAAA,MACtC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony63.mjs","sources":["../src/features/publicApi/hooks/useGetScoreQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/node'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getScore } from '../score'\nimport type { GetScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\nexport const getScoreKey = {\n\tparamsKey: (params: ScoreRequestQuery) => ['getScore', params] as const,\n}\n\nexport function useGetScoreQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiQueryOverrides<GetScoreResponseBody, typeof getScoreKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, getScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AASO,MAAM,cAAc;AAAA,EAC1B,WAAW,CAAC,WAA8B,CAAC,YAAY,MAAM;AAC9D;AAEgB,SAAA,iBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,UAAU;AAAA,MACtC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony63.mjs","sources":["../src/features/publicApi/hooks/useGetScoreQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/node'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { getScore } from '../score'\nimport type { GetScoreResponseBody, ScoreRequestQuery } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\nexport const getScoreKey = {\n\tparamsKey: (params: ScoreRequestQuery) => ['getScore', params] as const,\n}\n\nexport function useGetScoreQuery<T, S = GetScoreResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiQueryOverrides<GetScoreResponseBody, typeof getScoreKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, getScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AASO,MAAM,cAAc;AAAA,EAC1B,WAAW,CAAC,WAA8B,CAAC,YAAY,MAAM;AAC9D;AAEgB,SAAA,iBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,UAAU;AAAA,MACtC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony64.cjs","sources":["../src/features/publicApi/hooks/useGetTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tTeamUserApiBaseHeaders,\n\tTeamUserResponse,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getTeamUser } from '../teamUsers'\n\n/**\n * Factory for generating the query key for the getTeamUser public API endpoint\n */\nexport const getTeamUsersQueryKey = {\n\tteamUserKey: (teamId: number, userId: number) => ['GetTeamUsers', teamId, userId] as const,\n}\n\n/**\n * A react-router wrapper about the getTeamUser public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetTeamUsersQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamUserApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<TeamUserResponse, typeof getTeamUsersQueryKey>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId, userId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getTeamUser, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId, userId },\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","getTeamUser"],"mappings":";;;;;AAcO,MAAM,uBAAuB;AAAA,EACnC,aAAa,CAAC,QAAgB,WAAmB,CAAC,gBAAgB,QAAQ,MAAM;AACjF;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,MAAM,QAC7CC,mBAAAA,eAAe,cAAcC,uBAAa;AAAA,IACzC,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,QAAQ,OAAO;AAAA,EAC7B,CAAA;AACH,CAAC;;;"}
1
+ {"version":3,"file":"harmony64.cjs","sources":["../src/features/publicApi/hooks/useGetTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tTeamUserApiBaseHeaders,\n\tTeamUserResponse,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getTeamUser } from '../teamUsers'\n\n/**\n * Factory for generating the query key for the getTeamUser public API endpoint\n */\nexport const getTeamUsersQueryKey = {\n\tteamUserKey: (teamId: number, userId: number) => ['GetTeamUsers', teamId, userId] as const,\n}\n\n/**\n * A react-router wrapper about the getTeamUser public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetTeamUsersQuery = <T, S = TeamUserResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamUserApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<TeamUserResponse, typeof getTeamUsersQueryKey, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId, userId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getTeamUser, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId, userId },\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","getTeamUser"],"mappings":";;;;;AAcO,MAAM,uBAAuB;AAAA,EACnC,aAAa,CAAC,QAAgB,WAAmB,CAAC,gBAAgB,QAAQ,MAAM;AACjF;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,MAAM,QAC7CC,mBAAAA,eAAe,cAAcC,uBAAa;AAAA,IACzC,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,QAAQ,OAAO;AAAA,EAC7B,CAAA;AACH,CAAC;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony64.mjs","sources":["../src/features/publicApi/hooks/useGetTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tTeamUserApiBaseHeaders,\n\tTeamUserResponse,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getTeamUser } from '../teamUsers'\n\n/**\n * Factory for generating the query key for the getTeamUser public API endpoint\n */\nexport const getTeamUsersQueryKey = {\n\tteamUserKey: (teamId: number, userId: number) => ['GetTeamUsers', teamId, userId] as const,\n}\n\n/**\n * A react-router wrapper about the getTeamUser public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetTeamUsersQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamUserApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<TeamUserResponse, typeof getTeamUsersQueryKey>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId, userId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getTeamUser, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId, userId },\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAcO,MAAM,uBAAuB;AAAA,EACnC,aAAa,CAAC,QAAgB,WAAmB,CAAC,gBAAgB,QAAQ,MAAM;AACjF;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,MAAM,QAC7C,eAAe,cAAc,aAAa;AAAA,IACzC,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,QAAQ,OAAO;AAAA,EAC7B,CAAA;AACH,CAAC;"}
1
+ {"version":3,"file":"harmony64.mjs","sources":["../src/features/publicApi/hooks/useGetTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tTeamUserApiBaseHeaders,\n\tTeamUserResponse,\n} from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getTeamUser } from '../teamUsers'\n\n/**\n * Factory for generating the query key for the getTeamUser public API endpoint\n */\nexport const getTeamUsersQueryKey = {\n\tteamUserKey: (teamId: number, userId: number) => ['GetTeamUsers', teamId, userId] as const,\n}\n\n/**\n * A react-router wrapper about the getTeamUser public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetTeamUsersQuery = <T, S = TeamUserResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<TeamUserApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<TeamUserResponse, typeof getTeamUsersQueryKey, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId, userId] }) =>\n\t\t\tsendByGetRoute(wretchClient, getTeamUser, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId, userId },\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAcO,MAAM,uBAAuB;AAAA,EACnC,aAAa,CAAC,QAAgB,WAAmB,CAAC,gBAAgB,QAAQ,MAAM;AACjF;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,MAAM,QAC7C,eAAe,cAAc,aAAa;AAAA,IACzC,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,QAAQ,OAAO;AAAA,EAC7B,CAAA;AACH,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony65.cjs","sources":["../src/features/publicApi/hooks/useGetUserTokenQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { JwtToken, UserTokenRequestHeader } from '@features/publicApi/types/userTokenTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getUserToken } from '../userToken'\n\n/**\n * Factory for generating keys for the getUserToken public API endpoint\n */\nexport const getUserTokenKey = {\n\tteamKey: (teamId: number) => ['getUserToken', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the getUserToken public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - HeaderBuilder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetUserTokenQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<UserTokenRequestHeader>,\n\toverrides: ApiQueryOverrides<JwtToken | null, typeof getUserTokenKey>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getUserToken, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByPayloadRoute","getUserToken"],"mappings":";;;;;AAWO,MAAM,kBAAkB;AAAA,EAC9B,SAAS,CAAC,WAAmB,CAAC,gBAAgB,MAAM;AACrD;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,mBAAmB,cAAcC,wBAAc;AAAA,IAC9C,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,OAAO;AAAA,EACrB,CAAA;AACH,CAAC;;;"}
1
+ {"version":3,"file":"harmony65.cjs","sources":["../src/features/publicApi/hooks/useGetUserTokenQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { JwtToken, UserTokenRequestHeader } from '@features/publicApi/types/userTokenTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getUserToken } from '../userToken'\n\n/**\n * Factory for generating keys for the getUserToken public API endpoint\n */\nexport const getUserTokenKey = {\n\tteamKey: (teamId: number) => ['getUserToken', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the getUserToken public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - HeaderBuilder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetUserTokenQuery = <T, S = JwtToken>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<UserTokenRequestHeader>,\n\toverrides: ApiQueryOverrides<JwtToken | null, typeof getUserTokenKey, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getUserToken, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByPayloadRoute","getUserToken"],"mappings":";;;;;AAWO,MAAM,kBAAkB;AAAA,EAC9B,SAAS,CAAC,WAAmB,CAAC,gBAAgB,MAAM;AACrD;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,mBAAmB,cAAcC,wBAAc;AAAA,IAC9C,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,OAAO;AAAA,EACrB,CAAA;AACH,CAAC;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony65.mjs","sources":["../src/features/publicApi/hooks/useGetUserTokenQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { JwtToken, UserTokenRequestHeader } from '@features/publicApi/types/userTokenTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getUserToken } from '../userToken'\n\n/**\n * Factory for generating keys for the getUserToken public API endpoint\n */\nexport const getUserTokenKey = {\n\tteamKey: (teamId: number) => ['getUserToken', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the getUserToken public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - HeaderBuilder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetUserTokenQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<UserTokenRequestHeader>,\n\toverrides: ApiQueryOverrides<JwtToken | null, typeof getUserTokenKey>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getUserToken, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAWO,MAAM,kBAAkB;AAAA,EAC9B,SAAS,CAAC,WAAmB,CAAC,gBAAgB,MAAM;AACrD;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,mBAAmB,cAAc,cAAc;AAAA,IAC9C,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,OAAO;AAAA,EACrB,CAAA;AACH,CAAC;"}
1
+ {"version":3,"file":"harmony65.mjs","sources":["../src/features/publicApi/hooks/useGetUserTokenQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { JwtToken, UserTokenRequestHeader } from '@features/publicApi/types/userTokenTypes'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\nimport { getUserToken } from '../userToken'\n\n/**\n * Factory for generating keys for the getUserToken public API endpoint\n */\nexport const getUserTokenKey = {\n\tteamKey: (teamId: number) => ['getUserToken', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the getUserToken public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - HeaderBuilder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useGetUserTokenQuery = <T, S = JwtToken>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<UserTokenRequestHeader>,\n\toverrides: ApiQueryOverrides<JwtToken | null, typeof getUserTokenKey, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByPayloadRoute(wretchClient, getUserToken, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { teamId },\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAWO,MAAM,kBAAkB;AAAA,EAC9B,SAAS,CAAC,WAAmB,CAAC,gBAAgB,MAAM;AACrD;AASO,MAAM,uBAAuB,CACnC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,mBAAmB,cAAc,cAAc;AAAA,IAC9C,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,YAAY,EAAE,OAAO;AAAA,EACrB,CAAA;AACH,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony66.cjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","listContributors"],"mappings":";;;;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,+BAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
1
+ {"version":3,"file":"harmony66.cjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T, S = ListContributorsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","listContributors"],"mappings":";;;;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,+BAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony66.mjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,kBAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
1
+ {"version":3,"file":"harmony66.mjs","sources":["../src/features/publicApi/hooks/useListContributorsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tListContributorsPathParams,\n\tListContributorsResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listContributors } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listContributorsKeys = {\n\tprojectUserKey: (params: ListContributorsPathParams) => ['ListContributors', params] as const,\n}\n\n/**\n * A react-router wrapper about the listContributors public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListContributorsQuery = <T, S = ListContributorsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListContributorsResponse, typeof listContributorsKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listContributors, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,uBAAuB;AAAA,EACnC,gBAAgB,CAAC,WAAuC,CAAC,oBAAoB,MAAM;AACpF;AASO,MAAM,2BAA2B,CACvC,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,kBAAkB;AAAA,IAC9C,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony67.cjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListPermissionTemplatesResponse, typeof listPermissionTemplatesKeys>,\n) => {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listPermissionTemplates, {\n\t\t\t\tpathParams: { teamId },\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listPermissionTemplates"],"mappings":";;;;;AAYO,MAAM,8BAA8B;AAAA,EAC1C,4BAA4B,CAAC,WAAmB,CAAC,2BAA2B,MAAM;AACnF;AASO,MAAM,kCAAkC,CAC9C,cACA,SACA,cACI;AACJ,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,6CAAyB;AAAA,MACrD,YAAY,EAAE,OAAO;AAAA,MACrB,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony67.cjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T, S = ListPermissionTemplatesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<\n\t\tListPermissionTemplatesResponse,\n\t\ttypeof listPermissionTemplatesKeys,\n\t\tS\n\t>,\n) => {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listPermissionTemplates, {\n\t\t\t\tpathParams: { teamId },\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listPermissionTemplates"],"mappings":";;;;;AAYO,MAAM,8BAA8B;AAAA,EAC1C,4BAA4B,CAAC,WAAmB,CAAC,2BAA2B,MAAM;AACnF;AASO,MAAM,kCAAkC,CAC9C,cACA,SACA,cAKI;AACJ,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,6CAAyB;AAAA,MACrD,YAAY,EAAE,OAAO;AAAA,MACrB,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony67.mjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<ListPermissionTemplatesResponse, typeof listPermissionTemplatesKeys>,\n) => {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listPermissionTemplates, {\n\t\t\t\tpathParams: { teamId },\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,8BAA8B;AAAA,EAC1C,4BAA4B,CAAC,WAAmB,CAAC,2BAA2B,MAAM;AACnF;AASO,MAAM,kCAAkC,CAC9C,cACA,SACA,cACI;AACJ,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,yBAAyB;AAAA,MACrD,YAAY,EAAE,OAAO;AAAA,MACrB,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony67.mjs","sources":["../src/features/publicApi/hooks/useListPermissionTemplates.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listPermissionTemplates } from '@features/publicApi/permissionTemplates'\nimport type { ContributorApiBaseHeader } from '@features/publicApi/types/contributorTypes'\nimport type { ListPermissionTemplatesResponse } from '@features/publicApi/types/permissionTemplateTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const listPermissionTemplatesKeys = {\n\tteamPermissionTemplatesKey: (teamId: number) => ['ListPermissionTemplates', teamId] as const,\n}\n\n/**\n * A react-router wrapper about the listPermissionTemplates public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useListPermissionTemplatesQuery = <T, S = ListPermissionTemplatesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<\n\t\tListPermissionTemplatesResponse,\n\t\ttypeof listPermissionTemplatesKeys,\n\t\tS\n\t>,\n) => {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, teamId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listPermissionTemplates, {\n\t\t\t\tpathParams: { teamId },\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,8BAA8B;AAAA,EAC1C,4BAA4B,CAAC,WAAmB,CAAC,2BAA2B,MAAM;AACnF;AASO,MAAM,kCAAkC,CAC9C,cACA,SACA,cAKI;AACJ,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,yBAAyB;AAAA,MACrD,YAAY,EAAE,OAAO;AAAA,MACrB,SAAS,MAAM,QAAQ,QAAQ;AAAA,IAC/B,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony68.cjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectLanguagesQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjectLanguages"],"mappings":";;;;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,gCAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony68.cjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectLanguagesQuery<T, S = ListProjectLanguagesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjectLanguages"],"mappings":";;;;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxCC,mBAAAA,eAAe,cAAcC,gCAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony68.mjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectLanguagesQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,sBAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony68.mjs","sources":["../src/features/publicApi/hooks/useListProjectLanguagesQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { listProjectLanguages } from '@features/publicApi/languages'\nimport type { ListProjectLanguagesResponse } from '@features/publicApi/types/languageTypes'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch/types'\n\nexport const listProjectLanguagesKey = {\n\tprojectIdKey: (projectId: string) => ['listProjectLanguages', projectId] as const,\n}\n\n/**\n * A react-router wrapper about the listProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectLanguagesQuery<T, S = ListProjectLanguagesResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectLanguagesResponse, typeof listProjectLanguagesKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, projectId] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjectLanguages, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AASO,MAAM,0BAA0B;AAAA,EACtC,cAAc,CAAC,cAAsB,CAAC,wBAAwB,SAAS;AACxE;AASgB,SAAA,6BACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,SAAS,QACxC,eAAe,cAAc,sBAAsB;AAAA,MAClD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,UAAU;AAAA,IACxB,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony69.cjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjects"],"mappings":";;;;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,uBAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony69.cjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T, S = ListProjectsSuccessResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listProjects"],"mappings":";;;;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,uBAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony69.mjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,cAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony69.mjs","sources":["../src/features/publicApi/hooks/useListProjectsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tListProjectsRequestQuery,\n\tListProjectsSuccessResponseBody,\n\tProjectApiBaseHeaders,\n} from '@features/publicApi/types/projectTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listProjects } from '../projects'\n\n/**\n * Factory for the listProjects public API endpoint key\n */\nexport const listProjectsKey = {\n\tparamsKey: (params: ListProjectsRequestQuery) => ['listProjects', params] as const,\n}\n\n/**\n * A react-router wrapper about the listProjects public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListProjectsQuery<T, S = ListProjectsSuccessResponseBody>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListProjectsSuccessResponseBody, typeof listProjectsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listProjects, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAeO,MAAM,kBAAkB;AAAA,EAC9B,WAAW,CAAC,WAAqC,CAAC,gBAAgB,MAAM;AACzE;AASgB,SAAA,qBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,cAAc;AAAA,MAC1C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony70.cjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeams"],"mappings":";;;;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,gBAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony70.cjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T, S = ListTeamsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeams"],"mappings":";;;;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,gBAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony70.mjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,WAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony70.mjs","sources":["../src/features/publicApi/hooks/useListTeamsQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamsQueryParams, ListTeamsResponse } from '@features/publicApi/types/teamTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeams } from '../team'\n\n/**\n * Factory for the listTeams public API endpoint key\n */\nexport const listTeamsKey = {\n\tparamsKey: (params: ListTeamsQueryParams) => ['listTeams', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeams public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamsQuery<T, S = ListTeamsResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeams, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tqueryParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,eAAe;AAAA,EAC3B,WAAW,CAAC,WAAiC,CAAC,aAAa,MAAM;AAClE;AASgB,SAAA,kBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,WAAW;AAAA,MACvC,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,aAAa;AAAA,IACb,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony71.cjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeamUsers"],"mappings":";;;;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,yBAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;;"}
1
+ {"version":3,"file":"harmony71.cjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T, S = ListTeamUsersResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useQuery","sendByGetRoute","listTeamUsers"],"mappings":";;;;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAOA,oBAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,yBAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony71.mjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,eAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
1
+ {"version":3,"file":"harmony71.mjs","sources":["../src/features/publicApi/hooks/useListTeamUsersQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type { ProjectApiBaseHeaders } from '@features/publicApi/types/projectTypes'\nimport type { ListTeamUsersResponse, TeamPathParams } from '@features/publicApi/types/teamUserTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { listTeamUsers } from '../teamUsers'\n\n/**\n * Factory for the listTeamUsers public API endpoint key\n */\nexport const listTeamUsersKey = {\n\tparamsKey: (params: TeamPathParams) => ['listTeamUsers', params] as const,\n}\n\n/**\n * A react-router wrapper about the listTeamUsers public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useListTeamUsersQuery<T, S = ListTeamUsersResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiQueryOverrides<ListTeamUsersResponse, typeof listTeamUsersKey, S>,\n) {\n\treturn useQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, listTeamUsers, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAYO,MAAM,mBAAmB;AAAA,EAC/B,WAAW,CAAC,WAA2B,CAAC,iBAAiB,MAAM;AAChE;AASgB,SAAA,sBACf,cACA,SACA,WACC;AACD,SAAO,SAAS;AAAA,IACf,GAAG;AAAA,IACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,eAAe;AAAA,MAC3C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony72.cjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","retrieveContributor"],"mappings":";;;;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,kCAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
1
+ {"version":3,"file":"harmony72.cjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T, S = RetrieveContributorResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":["useQuery","sendByGetRoute","retrieveContributor"],"mappings":";;;;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEAA,WAAAA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrCC,mBAAAA,eAAe,cAAcC,kCAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"harmony72.mjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,qBAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}
1
+ {"version":3,"file":"harmony72.mjs","sources":["../src/features/publicApi/hooks/useRetrieveContributorQuery.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport type {\n\tContributorApiBaseHeader,\n\tRetrieveContributorPathParams,\n\tRetrieveContributorResponse,\n} from '@features/publicApi/types/contributorTypes'\nimport { sendByGetRoute } from '@lokalise/frontend-http-client'\nimport { useQuery } from '@tanstack/react-query'\nimport type { ApiQueryOverrides } from '@utils/types/apiQueryOverrides'\nimport type { Wretch } from 'wretch'\nimport { retrieveContributor } from '../contributors'\n\n/**\n * Factory for creating keys for the useRetrieveContributorQuery hook\n */\nexport const retrieveContributorKeys = {\n\tprojectUserKey: (params: RetrieveContributorPathParams) =>\n\t\t['RetrieveContributor', params] as const,\n}\n\n/**\n * A react-router wrapper about the retrieveContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport const useRetrieveContributorQuery = <T, S = RetrieveContributorResponse>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\toverrides: ApiQueryOverrides<RetrieveContributorResponse, typeof retrieveContributorKeys, S>,\n) =>\n\tuseQuery({\n\t\t...overrides,\n\t\tqueryFn: async ({ queryKey: [_, params] }) =>\n\t\t\tsendByGetRoute(wretchClient, retrieveContributor, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t}),\n\t})\n"],"names":[],"mappings":";;;AAeO,MAAM,0BAA0B;AAAA,EACtC,gBAAgB,CAAC,WAChB,CAAC,uBAAuB,MAAM;AAChC;AASO,MAAM,8BAA8B,CAC1C,cACA,SACA,cAEA,SAAS;AAAA,EACR,GAAG;AAAA,EACH,SAAS,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,QACrC,eAAe,cAAc,qBAAqB;AAAA,IACjD,YAAY;AAAA,IACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,EAC/B,CAAA;AACH,CAAC;"}